/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand */
  --navy: #1A1A2E;
  --navy-deep: #0F0F1A;
  --secondary: #0F3460;

  /* Backgrounds */
  --bg: #FFFFFF;
  --surface: #F8F9FA;
  --surface-dark: #F0F1F3;

  /* Text */
  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --text-on-dark: #FFFFFF;
  --text-on-dark-secondary: rgba(255, 255, 255, 0.7);

  /* Accents */
  --pro: #10B981;
  --pro-light: #D1FAE5;
  --pro-hover: #059669;
  --cis: #3B82F6;
  --cis-light: #DBEAFE;
  --cis-hover: #2563EB;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Borders */
  --border: #E5E7EB;
  --border-dark: #374151;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-xs: 0.75rem;
  --font-sm: 0.8125rem;
  --font-md: 0.9375rem;
  --font-lg: 1.0625rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.75rem;
  --font-4xl: 2rem;
  --font-5xl: 2.5rem;
  --font-6xl: 3.25rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 300ms ease;
}

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

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

body {
  font-family: var(--font);
  font-size: var(--font-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  line-height: 1.3;
  font-weight: 600;
}

h1 { font-size: var(--font-5xl); font-weight: 700; }
h2 { font-size: var(--font-3xl); }
h3 { font-size: var(--font-xl); }
h4 { font-size: var(--font-lg); font-weight: 600; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--font-md);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  min-height: 44px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-lg);
  min-height: 52px;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-sm);
  min-height: 36px;
}

.btn-block { width: 100%; }

.btn-pro {
  background: var(--pro);
  color: white;
}
.btn-pro:hover { background: var(--pro-hover); }

.btn-cis {
  background: var(--cis);
  color: white;
}
.btn-cis:hover { background: var(--cis-hover); }

.btn-white {
  background: white;
  color: var(--navy);
}
.btn-white:hover { background: var(--surface); }

.btn-outline-pro {
  background: transparent;
  color: var(--pro);
  border: 2px solid var(--pro);
}
.btn-outline-pro:hover { background: var(--pro-light); }

.btn-outline-cis {
  background: transparent;
  color: var(--cis);
  border: 2px solid var(--cis);
}
.btn-outline-cis:hover { background: var(--cis-light); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-6);
}

.logo {
  font-size: var(--font-xl);
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: var(--space-8);
}

.nav-link {
  color: var(--text-on-dark-secondary);
  font-size: var(--font-sm);
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: white;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  padding: 160px 0 var(--space-20);
  text-align: center;
  color: white;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: var(--font-6xl);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pro), var(--cis));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--font-xl);
  color: var(--text-on-dark-secondary);
  margin-bottom: var(--space-10);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.hero-trust {
  font-size: var(--font-sm);
  color: var(--text-on-dark-secondary);
}

/* ===== PAIN POINTS ===== */
.pain-points {
  padding: var(--space-20) 0;
  background: var(--surface);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pain-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.pain-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-5);
  color: var(--navy);
}

.pain-card h3 {
  margin-bottom: var(--space-3);
  color: var(--navy);
}

.pain-card p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.6;
}

/* ===== PRODUCT SECTIONS ===== */
.product {
  padding: var(--space-20) 0;
}

.product-cis {
  background: var(--surface);
}

.product-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.product-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.badge-pro {
  background: var(--pro-light);
  color: var(--pro-hover);
}

.badge-cis {
  background: var(--cis-light);
  color: var(--cis-hover);
}

.product-header h2 {
  font-size: var(--font-4xl);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.product-tagline {
  font-size: var(--font-xl);
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.product-cis .feature-card {
  background: white;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.icon-pro {
  background: var(--pro-light);
  color: var(--pro-hover);
}

.icon-cis {
  background: var(--cis-light);
  color: var(--cis-hover);
}

.feature-card h4 {
  margin-bottom: var(--space-2);
  color: var(--navy);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.6;
}

.product-cta {
  text-align: center;
}

.product-cta-note {
  margin-top: var(--space-3);
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--space-20) 0;
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: var(--space-12);
  color: var(--navy);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-6);
}

.step {
  flex: 1;
  max-width: 280px;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  font-size: var(--font-xl);
  font-weight: 700;
  margin: 0 auto var(--space-5);
}

.step h4 {
  margin-bottom: var(--space-2);
  color: var(--navy);
}

.step p {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 12px;
  color: var(--text-light);
}

/* ===== PRICING ===== */
.pricing {
  padding: var(--space-20) 0;
  background: var(--surface);
}

.pricing h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.pricing-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) 0 var(--space-2);
}

.toggle-label {
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.toggle-label:last-child {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.save-badge {
  background: var(--pro-light);
  color: var(--pro-hover);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-switch[aria-checked="true"] {
  background: var(--navy);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch[aria-checked="true"] .toggle-knob {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pricing-card-header {
  padding: var(--space-6);
  text-align: center;
  color: white;
}

.pricing-card-header h3 {
  font-size: var(--font-2xl);
  margin-bottom: var(--space-1);
}

.pricing-card-header p {
  font-size: var(--font-sm);
  opacity: 0.8;
}

.header-pro { background: var(--pro); }
.header-cis { background: var(--cis); }

.pricing-card-body {
  padding: var(--space-6);
}

.pricing-tier {
  padding: var(--space-4) 0;
}

.tier-price {
  text-align: center;
  margin-bottom: var(--space-4);
}

.price-amount {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--navy);
}

.price-currency {
  font-size: var(--font-xl);
  vertical-align: top;
  line-height: 2;
}

.price-period {
  display: block;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.tier-features {
  margin-bottom: var(--space-5);
}

.tier-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--pro-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%2310B981' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card-cis .tier-features li::before {
  background-color: var(--cis-light);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%23E94560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.tier-divider {
  text-align: center;
  position: relative;
  margin: var(--space-3) 0;
}

.tier-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.tier-divider span {
  background: white;
  padding: 0 var(--space-3);
  position: relative;
  font-size: var(--font-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== FAQ ===== */
.faq {
  padding: var(--space-20) 0;
}

.faq h2 {
  text-align: center;
  color: var(--navy);
  margin-bottom: var(--space-12);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-lg);
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: var(--font-2xl);
  font-weight: 400;
  color: var(--text-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding-bottom: var(--space-5);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--font-md);
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: var(--space-20) 0;
  background: var(--navy);
  text-align: center;
  color: white;
}

.final-cta h2 {
  font-size: var(--font-4xl);
  margin-bottom: var(--space-3);
}

.final-cta > .container > p {
  color: var(--text-on-dark-secondary);
  font-size: var(--font-lg);
  margin-bottom: var(--space-8);
}

.final-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.store-badges {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge img {
  height: 44px;
  width: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  padding: var(--space-12) 0 var(--space-6);
  color: var(--text-on-dark-secondary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-10);
}

.logo-footer span {
  color: var(--pro);
}

.footer-brand p {
  margin-top: var(--space-3);
  font-size: var(--font-sm);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-col h5 {
  color: white;
  font-size: var(--font-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--font-sm);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-6);
  margin-top: var(--space-6);
}

.footer-bottom p {
  font-size: var(--font-xs);
  color: var(--text-light);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: var(--font-4xl); }
  h2 { font-size: var(--font-2xl); }

  .hero {
    padding: 120px 0 var(--space-16);
  }

  .hero h1 {
    font-size: var(--font-4xl);
  }

  .hero-sub {
    font-size: var(--font-lg);
  }

  /* Nav */
  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    font-size: var(--font-lg);
    padding: var(--space-2) 0;
  }

  .header .btn-sm {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Pain points */
  .pain-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Steps */
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--font-3xl);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 280px;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .final-cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .pain-card,
  .feature-card,
  .step,
  .pricing-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .pain-card.visible,
  .feature-card.visible,
  .step.visible,
  .pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
