/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
  --purple-600: #7C47DB;
  --purple-700: #6535B8;
  --purple-800: #4B268A;
  --purple-900: #2E1657;
  --purple-500: #9B6BE6;
  --purple-400: #B48FEF;
  --purple-300: #D4BFF7;
  --purple-200: #EAE0FB;
  --purple-100: #F5F0FD;
  --purple-50:  #FAF7FE;

  --slate-950: #0B0B10;
  --slate-900: #12121A;
  --slate-800: #1E1E2A;
  --slate-700: #2A2A3A;
  --slate-600: #3D3D50;
  --slate-500: #6B6B80;
  --slate-400: #9494A6;
  --slate-300: #C4C4D0;
  --slate-200: #E2E2EA;
  --slate-100: #F1F1F5;
  --slate-50:  #F8F8FA;

  --white: #FFFFFF;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 112.5%; /* 18px base — scales all rem values */
}

body {
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ============================================
   UTILITIES
============================================ */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================
   REVEAL ANIMATION SYSTEM
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(124, 71, 219, 0.08);
  transition: box-shadow 0.4s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 12px rgba(124, 71, 219, 0.1);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.4s ease;
}
.nav.scrolled .nav-inner { height: 64px; }

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-600);
  letter-spacing: 0.01em;
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a:not(.nav-cta) {
  padding: 8px 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 0;
  height: 2px;
  background: var(--purple-600);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:not(.nav-cta):hover { color: var(--purple-600); }
.nav-links a:not(.nav-cta):hover::after { width: calc(100% - 8px); }

.nav-cta {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--white) !important;
  background: var(--purple-600);
  padding: 10px 24px;
  border-radius: 10px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--purple-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 71, 219, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   NAV DROPDOWN
============================================ */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate-600);
  letter-spacing: 0.01em;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  transition: color 0.25s ease;
  position: relative;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 0;
  height: 2px;
  background: var(--purple-600);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.open .nav-dropdown-trigger { color: var(--purple-600); }

.nav-dropdown-chevron {
  flex-shrink: 0;
  color: var(--slate-400);
  transition: transform 0.25s ease, color 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--purple-600);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  min-width: 224px;
  list-style: none;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-dropdown-menu li a::after { display: none !important; }
.nav-dropdown-menu li a:hover {
  background: var(--purple-50);
  color: var(--purple-700);
}

/* ============================================
   SECTION TYPOGRAPHY
============================================ */
.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--purple-600);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--slate-950);
  max-width: 560px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 64px;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background: var(--purple-600);
  padding: 16px 32px;
  border-radius: 14px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 71, 219, 0.35), 0 2px 8px rgba(124, 71, 219, 0.2);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg {
  transition: transform 0.3s var(--ease-out-expo);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-700);
  padding: 16px 28px;
  border-radius: 14px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  transition: all 0.3s var(--ease-out-expo);
}
.btn-secondary:hover {
  border-color: var(--purple-300);
  color: var(--purple-700);
  background: var(--purple-50);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
  background: var(--purple-600);
  padding: 16px 32px;
  border-radius: 14px;
  transition: all 0.3s var(--ease-out-expo);
}
.btn-white:hover {
  background: var(--purple-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 71, 219, 0.35);
}

/* ============================================
   CHECK CIRCLE (used in checklists across pages)
============================================ */
.check-circle {
  width: 28px;
  height: 28px;
  background: var(--purple-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-circle svg { width: 14px; height: 14px; color: var(--white); }

/* ============================================
   WHY CARD (dark dark panel — reused across pages)
============================================ */
.why-card {
  background: linear-gradient(145deg, var(--purple-800) 0%, var(--purple-900) 100%);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-card-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 28px;
}

.why-card-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.why-card-item:last-child { border-bottom: none; padding-bottom: 0; }
.why-card-item:first-of-type { padding-top: 0; }

.why-card-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.why-card-item-desc {
  font-size: 0.875rem;
  color: var(--purple-300);
  line-height: 1.5;
}

/* ============================================
   BOTTOM CTA
============================================ */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(145deg, var(--white) 0%, var(--purple-50) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--purple-200);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(124, 71, 219, 0.07) 0%, transparent 70%);
  animation: float-slow 18s ease-in-out infinite;
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 50%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(124, 71, 219, 0.05) 0%, transparent 70%);
  animation: float-slow 24s ease-in-out infinite reverse;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--slate-950);
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-email {
  font-size: 0.95rem;
  color: var(--slate-500);
  transition: color 0.2s ease;
}
.cta-email:hover { color: var(--purple-600); }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--purple-900);
  padding: 72px 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
}
.footer-logo img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--purple-300);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--purple-300);
  line-height: 1.8;
}
.footer-address strong {
  display: block;
  color: var(--purple-200);
  font-weight: 500;
  margin-bottom: 4px;
}
.footer-address a {
  color: var(--purple-300);
  transition: color 0.2s ease;
}
.footer-address a:hover { color: var(--white); }

.footer-nav-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--purple-300);
  transition: color 0.2s ease;
}
.footer-nav-list a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--purple-300);
}
.footer-bottom a {
  color: var(--purple-300);
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: var(--white); }

/* ============================================
   ANIMATIONS (shared)
============================================ */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

@keyframes net-packet {
  0%   { stroke-dashoffset: 0;    opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { stroke-dashoffset: -170; opacity: 0; }
}
.net-packet { animation: net-packet 2.4s linear infinite; }
.net-packet-1 { animation-delay: 0s; }
.net-packet-2 { animation-delay: 0.48s; }
.net-packet-3 { animation-delay: 0.96s; }
.net-packet-4 { animation-delay: 1.44s; }
.net-packet-5 { animation-delay: 1.92s; }
.net-packet-6 { animation-delay: 2.40s; }
.net-packet-7 { animation-delay: 2.88s; }
.net-packet-8 { animation-delay: 0.24s; }

/* ============================================
   SERVICE PAGE HERO (shared shell for service pages)
============================================ */
.page-hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* Hero background blobs (same as home) */
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(124, 71, 219, 0.08) 0%, transparent 70%);
  animation: float-slow 20s ease-in-out infinite;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(155, 107, 230, 0.06) 0%, transparent 70%);
  animation: float-slow 25s ease-in-out infinite reverse;
}

/* Grid pattern overlay */
.page-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(124, 71, 219, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 71, 219, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.page-hero-text { max-width: 580px; }

/* Hero visual (shared) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(124, 71, 219, 0.45) 0%, rgba(155, 107, 230, 0.22) 50%, transparent 75%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.hero-graphic-wrapper {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}
.hg-option {
  width: 100%;
  height: 100%;
  display: none;
  position: relative;
}
.hg-option.active { display: flex; align-items: center; justify-content: center; }
.hg-option svg { width: 100%; height: 100%; }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 20px;
  font-family: var(--font-display);
}
.breadcrumb a { color: var(--slate-400); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--purple-600); }
.breadcrumb span { margin: 0 6px; color: var(--slate-300); }

/* ============================================
   PROBLEMS STRIP (shared — used on home + service pages)
============================================ */
.problems {
  padding: 96px 0;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.problems-header {
  text-align: center;
  margin-bottom: 64px;
}
.problems-header .section-title {
  max-width: 100%;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.problem-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--slate-200);
}

.problem-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--purple-100);
  border: 1px solid var(--purple-200);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--purple-600);
}
.problem-icon-wrap svg { width: 26px; height: 26px; }

.problem-pain {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-900);
  margin-bottom: 16px;
  line-height: 1.5;
}

.problem-divider {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-600), var(--purple-400));
  border-radius: 2px;
  margin: 0 auto 16px;
}

.problem-outcome {
  font-size: 0.9rem;
  color: var(--purple-700);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .page-hero-content { grid-template-columns: 1fr; gap: 60px; }
  .page-hero-text { max-width: 100%; }
  .hero-visual { order: -1; }
  .hero-graphic-wrapper { max-width: 460px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  }
  .nav-toggle { display: flex; }

  /* Mobile dropdown — inline expand */
  .nav-dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--purple-200);
    border-radius: 0;
    background: none;
    padding: 4px 0 4px 16px;
    margin-top: 4px;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu li a {
    padding: 8px 4px;
    border-radius: 0;
  }
  .nav-dropdown-menu li a:hover { background: none; color: var(--purple-600); }
  .nav-dropdown-trigger { width: 100%; justify-content: space-between; }

  .container { padding: 0 24px; }

  .problems-grid { grid-template-columns: 1fr; gap: 20px; }
  .problem-card { padding: 32px 24px; }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    text-align: center;
  }

  .page-hero { padding: 120px 0 80px; }
  .page-hero-content { gap: 32px; }
  .hero-graphic-wrapper { max-width: 340px; }
}

@media (max-width: 480px) {
  .page-hero { padding: 90px 0 40px; }
  .page-hero-content { gap: 8px; }
  .hero-graphic-wrapper { max-width: 240px; }
  .footer-main { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .btn-white { width: 100%; justify-content: center; }
}
