/* ============================================================
   AppGenetics – Modern SaaS Stylesheet
   Design tokens → base → layout → components → pages → utilities
   ============================================================ */

/* ---------- FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --clr-primary:        #02353C;
  --clr-primary-mid:    #0D5966;
  --clr-primary-light:  #1a7a8c;
  --clr-accent:         #449342;
  --clr-accent-light:   #5bb558;

  /* Neutrals */
  --clr-white:   #ffffff;
  --clr-50:      #f7fafb;
  --clr-100:     #eef3f5;
  --clr-200:     #dce8eb;
  --clr-300:     #b8cfd4;
  --clr-500:     #5f8a92;
  --clr-700:     #2c4f55;
  --clr-900:     #0a1f23;

  /* Semantic */
  --clr-success: #22c55e;
  --clr-error:   #ef4444;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #02353C 0%, #0b4d58 55%, #1a6637 100%);
  --grad-cta:     linear-gradient(135deg, #449342 0%, #2d7a2a 100%);
  --grad-card:    linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(2,53,60,.08), 0 1px 2px rgba(2,53,60,.05);
  --shadow-md:  0 4px 12px rgba(2,53,60,.10), 0 2px 4px rgba(2,53,60,.06);
  --shadow-lg:  0 10px 30px rgba(2,53,60,.12), 0 4px 8px rgba(2,53,60,.07);
  --shadow-xl:  0 20px 48px rgba(2,53,60,.16);
  --shadow-glow: 0 0 40px rgba(68,147,66,.25);

  /* Motion */
  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-out:  cubic-bezier(0,0,.2,1);
  --dur-fast:  150ms;
  --dur-base:  250ms;
  --dur-slow:  400ms;

  /* Layout */
  --nav-h:     72px;
  --max-w:     1200px;
  --max-w-sm:  640px;
  --max-w-md:  768px;
}

/* Dark mode */
[data-theme="dark"] {
  --clr-white:  #0e1f23;
  --clr-50:     #111f24;
  --clr-100:    #162a30;
  --clr-200:    #1e3a42;
  --clr-300:    #2a5560;
  --clr-500:    #7ab3bb;
  --clr-700:    #a8d4da;
  --clr-900:    #e8f4f6;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,.35);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.4);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--clr-900);
  background: var(--clr-white);
  transition: background var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
  overflow-x: hidden;
}

/* Cross-document page transitions (Chrome 126+, Edge 126+).
   Silently ignored in Firefox/Safari — no broken experience. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 220ms ease-out both pageCrossFadeOut;
}
::view-transition-new(root) {
  animation: 280ms ease-in  both pageCrossFadeIn;
}

@keyframes pageCrossFadeOut {
  to { opacity: 0; }
}
@keyframes pageCrossFadeIn {
  from { opacity: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.text-display {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.text-headline {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.text-subhead {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-3xl));
  font-weight: 600;
  line-height: 1.3;
}
.text-lead {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  line-height: 1.7;
  color: var(--clr-500);
}
.text-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

/* ============================================================
   LAYOUT UTILS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
.container-sm { max-width: var(--max-w-sm); margin-inline: auto; padding-inline: var(--sp-6); }

.section { padding-block: var(--sp-24); }
.section-sm { padding-block: var(--sp-16); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.text-center { text-align: center; }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--dur-slow) var(--ease);
}

.nav--transparent { background: transparent; }

.nav--solid {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--clr-200);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .nav--solid {
  background: rgba(14,31,35,0.88);
  border-bottom-color: var(--clr-200);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--dur-base);
}

.nav__logo:hover { opacity: 0.85; }

.nav__logo-img {
  height: 50px;
  width: auto;
  display: block;
}

/* On the dark hero the wordmark needs a readable background.
   A frosted pill keeps it clean — not a "patch", a deliberate affordance. */
.nav--transparent .nav__logo {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-sm);
  padding: 5px 12px;
}


.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-700);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  transition: font-weight var(--dur-base) var(--ease);
}

.nav--transparent .nav__link { color: rgba(255,255,255,0.85); }
.nav__link:hover  { font-weight: 700; }
.nav__link.active { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav__theme-toggle {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-700);
  transition: all var(--dur-base);
  font-size: var(--text-lg);
}
.nav--transparent .nav__theme-toggle { color: rgba(255,255,255,0.85); }
.nav__theme-toggle:hover { background: var(--clr-100); color: var(--clr-primary); }

.nav__hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  border-radius: var(--r-sm);
  padding: var(--sp-2);
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-700);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease);
}
.nav--transparent .nav__hamburger span { background: white; }
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-200);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  z-index: 999;
  flex-direction: column;
  gap: var(--sp-1);
  box-shadow: var(--shadow-lg);
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  border-radius: var(--r-md);
}
.nav__mobile-divider {
  height: 1px;
  background: var(--clr-200);
  margin-block: var(--sp-2);
}
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: var(--sp-2); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-base);
}
.btn:hover::after { background: rgba(255,255,255,0.12); }

.btn-primary {
  background: var(--clr-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(2,53,60,.35);
}
.btn-primary:hover {
  background: var(--clr-primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2,53,60,.4);
}

.btn-accent {
  background: var(--grad-cta);
  color: white;
  box-shadow: 0 4px 14px rgba(68,147,66,.35);
}
.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--clr-700);
}
.nav--transparent .btn-ghost { color: rgba(255,255,255,0.85); }
.btn-ghost:hover { font-weight: 700; }

.btn-white {
  background: white;
  color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-lg { font-size: var(--text-base); padding: var(--sp-4) var(--sp-8); }
.btn-sm { font-size: var(--text-xs); padding: var(--sp-2) var(--sp-4); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Animated blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: blobFloat 12s ease-in-out infinite;
}
.hero__blob--1 {
  width: 600px; height: 600px;
  background: #449342;
  top: -150px; right: -100px;
  animation-delay: 0s;
}
.hero__blob--2 {
  width: 400px; height: 400px;
  background: #1a8fa8;
  bottom: -100px; left: -80px;
  animation-delay: -4s;
}
.hero__blob--3 {
  width: 300px; height: 300px;
  background: #449342;
  top: 50%; left: 50%;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Dot grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: var(--sp-24);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--sp-6);
}
.hero__eyebrow-dot {
  width: 8px; height: 8px;
  background: var(--clr-accent-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  color: white;
  margin-bottom: var(--sp-6);
  max-width: 820px;
}

.hero__title span {
  background: linear-gradient(135deg, #5bb558 0%, #8de88a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: var(--sp-10);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-16);
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
}
.hero__avatars {
  display: flex;
}
.hero__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  margin-left: -8px;
  background: linear-gradient(135deg, #449342, #02353C);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: white;
}
.hero__avatars .hero__avatar:first-child { margin-left: 0; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--clr-50);
  border-top: 1px solid var(--clr-200);
  border-bottom: 1px solid var(--clr-200);
  padding-block: var(--sp-8);
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.stat-item { text-align: center; }
.stat-item__number {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.stat-item__label {
  font-size: var(--text-sm);
  color: var(--clr-500);
  font-weight: 500;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}
.section-header .text-label { margin-bottom: var(--sp-3); }
.section-header .text-headline { margin-bottom: var(--sp-4); color: var(--clr-900); }
.section-header .text-lead { color: var(--clr-500); }

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-200);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: all var(--dur-slow) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.feature-card:hover {
  border-color: var(--clr-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--clr-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
  font-size: var(--text-2xl);
  transition: background var(--dur-base), transform var(--dur-base);
}
.feature-card:hover .feature-card__icon {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-mid));
  transform: scale(1.08);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-900);
  margin-bottom: var(--sp-3);
}
.feature-card__body {
  font-size: var(--text-sm);
  color: var(--clr-500);
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS / STEPS
   ============================================================ */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.step:nth-child(even) { direction: rtl; }
.step:nth-child(even) > * { direction: ltr; }

.step__content { }

.step__number {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  background: var(--grad-cta);
  color: white;
  font-weight: 800;
  font-size: var(--text-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-glow);
}

.step__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-900);
  margin-bottom: var(--sp-4);
}

.step__body {
  font-size: var(--text-base);
  color: var(--clr-500);
  line-height: 1.75;
}

.step__visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--clr-100), var(--clr-200));
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}

.step__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.step:hover .step__visual img { transform: scale(1.03); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { background: var(--clr-50); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.testimonial-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-200);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: box-shadow var(--dur-slow);
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }

.testimonial-card__stars {
  display: flex;
  gap: var(--sp-1);
  color: #f59e0b;
  font-size: var(--text-sm);
}

.testimonial-card__quote {
  font-size: var(--text-base);
  color: var(--clr-700);
  line-height: 1.75;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-base);
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--clr-900);
}
.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--clr-500);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--grad-hero);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-inline: var(--sp-6);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cta-banner__content { position: relative; }

.cta-banner__title {
  color: white;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.cta-banner__sub {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
  max-width: 480px;
  margin-inline: auto;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-100);
  border-radius: var(--r-full);
  padding: var(--sp-1);
}

.pricing-toggle__btn {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-500);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  position: relative;
}

.pricing-toggle__btn.active {
  background: var(--clr-white);
  color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

.pricing-toggle__badge {
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--grad-cta);
  color: white;
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-left: var(--sp-1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  align-items: start;
  margin-top: var(--sp-12);
}

.price-card {
  background: var(--clr-white);
  border: 2px solid var(--clr-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative;
  transition: all var(--dur-slow) var(--ease);
}

.price-card:hover {
  border-color: var(--clr-primary-light);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.price-card--featured {
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-xl);
  transform: scale(1.02);
  background: var(--clr-primary);
  color: white;
}

.price-card--featured:hover { transform: scale(1.02) translateY(-4px); }

.price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-cta);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-card__tier {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}
.price-card--featured .price-card__tier { color: rgba(255,255,255,0.7); }

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-bottom: var(--sp-2);
}

.price-card__amount {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--clr-900);
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-card--featured .price-card__amount { color: white; }

.price-card__currency {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--clr-500);
  align-self: flex-start;
  margin-top: var(--sp-2);
}
.price-card--featured .price-card__currency { color: rgba(255,255,255,0.6); }

.price-card__period {
  font-size: var(--text-sm);
  color: var(--clr-500);
  margin-bottom: var(--sp-5);
}
.price-card--featured .price-card__period { color: rgba(255,255,255,0.6); }

.price-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-500);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--clr-200);
}
.price-card--featured .price-card__desc {
  color: rgba(255,255,255,0.7);
  border-bottom-color: rgba(255,255,255,0.2);
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--clr-700);
  line-height: 1.5;
}
.price-card--featured .price-feature { color: rgba(255,255,255,0.85); }

.price-feature__check {
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: rgba(68,147,66,0.15);
  color: var(--clr-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.price-card--featured .price-feature__check {
  background: rgba(255,255,255,0.2);
  color: white;
}

.price-card .btn { width: 100%; justify-content: center; }

.price-card--featured .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
}
.price-card--featured .btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-12);
  font-size: var(--text-sm);
}
.comparison-table th, .comparison-table td {
  padding: var(--sp-4);
  text-align: center;
  border-bottom: 1px solid var(--clr-200);
}
.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left;
  color: var(--clr-700);
  font-weight: 500;
}
.comparison-table thead th {
  font-weight: 700;
  color: var(--clr-900);
  font-size: var(--text-base);
  padding-bottom: var(--sp-6);
}
.comparison-table thead th.highlight { color: var(--clr-primary); }
.comparison-table .check { color: var(--clr-accent); font-size: var(--text-base); }
.comparison-table .dash  { color: var(--clr-300); }
.comparison-table tbody tr:hover td { background: var(--clr-50); }
.comparison-table .section-row td {
  background: var(--clr-50);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-500);
  padding-top: var(--sp-5);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq { max-width: 720px; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--clr-200);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  gap: var(--sp-4);
}

.faq-item__question {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-900);
  transition: color var(--dur-base);
}
.faq-item.open .faq-item__question { color: var(--clr-primary); }

.faq-item__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--clr-200);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-lg);
  color: var(--clr-500);
  flex-shrink: 0;
  transition: all var(--dur-base) var(--ease);
}
.faq-item.open .faq-item__icon {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
  transform: rotate(45deg);
}

.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease);
}
.faq-item.open .faq-item__body { grid-template-rows: 1fr; }
.faq-item__body-inner {
  overflow: hidden;
  font-size: var(--text-sm);
  color: var(--clr-500);
  line-height: 1.75;
  padding-bottom: 0;
  transition: padding-bottom var(--dur-slow) var(--ease);
}
.faq-item.open .faq-item__body-inner { padding-bottom: var(--sp-5); }

/* ============================================================
   PLATFORM CARDS (feature grid)
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.platform-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-200);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: all var(--dur-slow) var(--ease);
}

.platform-card:hover {
  border-color: var(--clr-primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.platform-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.platform-card__icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.platform-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-900);
}

.platform-card__body {
  font-size: var(--text-sm);
  color: var(--clr-500);
  line-height: 1.7;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-700);
}

.form-input {
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--clr-200);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--clr-900);
  background: var(--clr-white);
  transition: all var(--dur-base) var(--ease);
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--clr-primary-light);
  box-shadow: 0 0 0 3px rgba(13,89,102,0.12);
}
.form-input::placeholder { color: var(--clr-300); }
.form-input.error {
  border-color: var(--clr-error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--clr-error);
  display: none;
}
.form-group.has-error .form-error { display: block; }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input { cursor: pointer; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--clr-700);
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  border: 2px solid var(--clr-200);
  border-radius: var(--r-sm);
  cursor: pointer;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--clr-primary);
}

/* Account/signup form */
.signup-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-200);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
}

.signup-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}

.signup-step {
  display: flex;
  align-items: center;
  flex: 1;
}

.signup-step__circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--clr-200);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-300);
  flex-shrink: 0;
  transition: all var(--dur-base);
}
.signup-step.active .signup-step__circle {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
}
.signup-step.done .signup-step__circle {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: white;
}

.signup-step__line {
  flex: 1;
  height: 2px;
  background: var(--clr-200);
  margin-inline: var(--sp-2);
}
.signup-step.done + .signup-step .signup-step__line,
.signup-step.done .signup-step__line { background: var(--clr-accent); }

/* Payment summary */
.payment-summary {
  background: var(--clr-50);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.payment-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding-block: var(--sp-2);
}
.payment-row.total {
  font-weight: 700;
  font-size: var(--text-base);
  border-top: 1px solid var(--clr-200);
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  color: var(--clr-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-900);
  color: rgba(255,255,255,0.7);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-8);
}

.footer__brand-name {
  color: white;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}

.footer__col-title {
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--dur-base);
}
.footer__link:hover { color: white; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.footer__legal {
  display: flex;
  gap: var(--sp-5);
}
.footer__legal a {
  color: rgba(255,255,255,0.55);
  transition: color var(--dur-base);
}
.footer__legal a:hover { color: white; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--grad-hero);
  padding: calc(var(--nav-h) + var(--sp-16)) var(--sp-6) var(--sp-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__title {
  color: white;
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}
.page-hero__sub {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-xl);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.65;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--clr-white);
  border: 1px solid var(--clr-200);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-xl);
  font-size: var(--text-sm);
  font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  pointer-events: all;
  animation: toastIn var(--dur-slow) var(--ease) forwards;
}
.toast.leaving { animation: toastOut var(--dur-slow) var(--ease) forwards; }

.toast--success { border-left: 4px solid var(--clr-success); }
.toast--error   { border-left: 4px solid var(--clr-error); }
.toast--info    { border-left: 4px solid var(--clr-primary-light); }

.toast__icon { font-size: var(--text-lg); flex-shrink: 0; }
.toast__msg  { flex: 1; color: var(--clr-900); }

@keyframes toastIn  { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(100%); } }

/* ============================================================
   SCROLL ANIMATION CLASSES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left  { opacity:0; transform:translateX(-32px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-right { opacity:0; transform:translateX(32px);  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-left.visible, .reveal-right.visible { opacity:1; transform:translateX(0); }

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ============================================================
   MISC COMPONENTS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.badge-green { background: rgba(68,147,66,0.12); color: var(--clr-accent); }
.badge-primary { background: rgba(2,53,60,0.1); color: var(--clr-primary); }

.divider {
  height: 1px;
  background: var(--clr-200);
  margin-block: var(--sp-12);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .step { grid-template-columns: 1fr; gap: var(--sp-8); }
  .step:nth-child(even) { direction: ltr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__actions .btn-ghost { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-4px); }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__bottom { flex-direction: column; gap: var(--sp-4); text-align: center; }
  .cta-banner { padding: var(--sp-12) var(--sp-6); margin-inline: 0; border-radius: 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .platform-grid { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__social-proof { flex-direction: column; align-items: flex-start; }
  .signup-card { padding: var(--sp-6); }
}
