/* ===== CSS Custom Properties ===== */
:root {
  --color-dark: #1B1D28;
  --color-dark-alt: #252736;
  --color-primary: #FF5E5B;
  --color-primary-hover: #E84D4A;
  --color-secondary: #5B6FE5;
  --color-secondary-hover: #4A5DD4;
  --color-light: #FFFFFF;
  --color-light-alt: #F4F5F7;
  --color-text: #2D2E36;
  --color-text-light: #FFFFFF;
  --color-text-muted: #6B6D7B;
  --color-border: #E0E1E6;
  --color-card: #2A2C3A;
  --color-card-hover: #323440;
  --color-success: #22C55E;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --transition: 0.3s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 94, 91, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.btn-outline:hover {
  background-color: var(--color-text-light);
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  border-color: var(--color-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 111, 229, 0.35);
}

/* ===== Site Navigation (CLASS SELECTOR) ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-dark);
  padding: 0 24px;
  height: 80px;
  transition: all var(--transition);
}

.site-nav.scrolled {
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-nav .nav-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-light);
  letter-spacing: -0.5px;
}

.site-nav .nav-logo span {
  color: var(--color-primary);
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav .nav-links a {
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.site-nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.site-nav .nav-links a:hover {
  color: var(--color-primary);
}

.site-nav .nav-links a:hover::after {
  width: 100%;
}

.site-nav .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.site-nav .nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-text-light);
  transition: all var(--transition);
  border-radius: 2px;
}

.site-nav .nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.site-nav .nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.site-nav .nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero-section {
  background-color: var(--color-dark);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 111, 229, 0.15) 0%, transparent 70%);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 94, 91, 0.12) 0%, transparent 70%);
}

.hero-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-section .hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-section .hero-content h1 span {
  color: var(--color-primary);
}

.hero-section .hero-content p {
  font-size: 18px;
  color: #B5B6BA;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
  background: none;
}

.hero-section .hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-section .hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .hero-card {
  background: var(--color-dark-alt);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.hero-section .hero-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.hero-section .hero-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.hero-section .hero-card p {
  font-size: 15px;
  color: #ADAFB3;
  line-height: 1.6;
  background: none;
}

.hero-section .hero-card .card-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.hero-section .hero-card .card-features .feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #C3C4C7;
}

.hero-section .hero-card .card-features .feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  flex-shrink: 0;
}

/* ===== About Section ===== */
.about-section {
  padding: 100px 0;
  background-color: var(--color-light);
}

.about-section .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-section .about-image-area {
  position: relative;
}

.about-section .about-image-area .about-box {
  background-color: var(--color-dark);
  border-radius: 20px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.about-section .about-image-area .about-box::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 111, 229, 0.3) 0%, transparent 70%);
}

.about-section .about-image-area .about-box .stat-row {
  display: flex;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.about-section .about-image-area .about-box .stat-item {
  text-align: center;
}

.about-section .about-image-area .about-box .stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.about-section .about-image-area .about-box .stat-label {
  font-size: 14px;
  color: #A2A4A8;
  margin-top: 4px;
}

.about-section .about-text h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.about-section .about-text p {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-section .about-text .about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.about-section .about-text .about-features .af-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-section .about-text .about-features .af-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--color-light-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--color-secondary);
}

.about-section .about-text .about-features .af-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.about-section .about-text .about-features .af-text p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ===== Services Section ===== */
.services-section {
  padding: 100px 0;
  background-color: var(--color-light-alt);
}

.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.services-section .service-card {
  background-color: var(--color-light);
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.services-section .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.services-section .service-card .svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.services-section .service-card .svc-icon.blue {
  background-color: #EBEDFC;
  color: var(--color-secondary);
}

.services-section .service-card .svc-icon.red {
  background-color: #FFE8E7;
  color: var(--color-primary);
}

.services-section .service-card .svc-icon.green {
  background-color: #E6F7EE;
  color: #22C55E;
}

.services-section .service-card .svc-icon.purple {
  background-color: #F3E8FF;
  color: #A855F7;
}

.services-section .service-card .svc-icon.amber {
  background-color: #FFF7E6;
  color: #F59E0B;
}

.services-section .service-card .svc-icon.teal {
  background-color: #E6F7F5;
  color: #14B8A6;
}

.services-section .service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.services-section .service-card p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.services-section .service-card .svc-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
}

.services-section .service-card .svc-link:hover {
  color: var(--color-primary);
}

/* ===== Process Section ===== */
.process-section {
  padding: 100px 0;
  background-color: var(--color-light);
}

.process-section .process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-section .process-step {
  text-align: center;
  position: relative;
}

.process-section .process-step .step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-dark);
  color: var(--color-text-light);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.process-section .process-step h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.process-section .process-step p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Counters Section ===== */
.counters-section {
  padding: 80px 0;
  background-color: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.counters-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(91, 111, 229, 0.08) 0%, rgba(255, 94, 91, 0.08) 100%);
}

.counters-section .counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.counters-section .counter-item {
  text-align: center;
}

.counters-section .counter-num {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1;
}

.counters-section .counter-suffix {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
}

.counters-section .counter-label {
  font-size: 15px;
  color: #B5B6BA;
  margin-top: 8px;
  background: none;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 100px 0;
  background-color: var(--color-light-alt);
}

.contact-section .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-section .contact-info h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.contact-section .contact-info > p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-section .contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-section .contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-section .contact-detail-item .cd-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-section .contact-detail-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 2px;
}

.contact-section .contact-detail-item p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.contact-section .contact-form {
  background-color: var(--color-light);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--color-border);
}

.contact-section .contact-form .form-group {
  margin-bottom: 20px;
}

.contact-section .contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea,
.contact-section .contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-light);
  transition: border-color var(--transition);
  outline: none;
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus,
.contact-section .contact-form select:focus {
  border-color: var(--color-secondary);
}

.contact-section .contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-section .contact-form .form-success {
  display: none;
  padding: 16px;
  background-color: #E6F7EE;
  border-radius: 8px;
  color: #166534;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
}

.contact-section .contact-form .form-success.visible {
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--color-dark);
  padding: 60px 0 40px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .footer-brand h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.site-footer .footer-brand h3 span {
  color: var(--color-primary);
}

.site-footer .footer-brand p {
  font-size: 14px;
  color: #A2A4A8;
  line-height: 1.6;
  max-width: 300px;
  background: none;
}

.site-footer h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer ul a {
  font-size: 14px;
  color: #A2A4A8;
  transition: color var(--transition);
}

.site-footer ul a:hover {
  color: var(--color-primary);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .footer-bottom p {
  font-size: 14px;
  color: #8E9094;
  background: none;
}

.site-footer .footer-bottom .footer-legal {
  display: flex;
  gap: 24px;
}

.site-footer .footer-bottom .footer-legal a {
  font-size: 14px;
  color: #A2A4A8;
}

.site-footer .footer-bottom .footer-legal a:hover {
  color: var(--color-primary);
}

/* ===== Scroll Reveal ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-section .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section .hero-buttons {
    justify-content: center;
  }

  .hero-section .hero-visual {
    order: -1;
  }

  .about-section .about-grid {
    grid-template-columns: 1fr;
  }

  .services-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-section .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .counters-section .counters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-section .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-dark-alt);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform var(--transition);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .site-nav .nav-links.active {
    transform: translateX(0);
  }

  .site-nav .nav-toggle {
    display: flex;
  }

  .hero-section {
    padding: 120px 0 80px;
  }

  .hero-section .hero-content h1 {
    font-size: 36px;
  }

  .hero-section .hero-content p {
    font-size: 16px;
  }

  .hero-section .hero-card {
    padding: 32px 24px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .services-section .services-grid {
    grid-template-columns: 1fr;
  }

  .process-section .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .counters-section .counter-num,
  .counters-section .counter-suffix {
    font-size: 36px;
  }

  .about-section .about-text h2 {
    font-size: 28px;
  }

  .contact-section .contact-form {
    padding: 24px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
