/* ============================================================
   MedEat — Design System Tokens & Base Styles
   medeatapp.com
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* === TOKENS === */
:root {
  /* Brand colors */
  --color-primary:       #2dd4bf;
  --color-primary-dark:  #3d7a6a;
  --color-primary-glow:  rgba(45, 212, 191, 0.25);
  --color-accent:        #c084fc;
  --color-accent-glow:   rgba(192, 132, 252, 0.2);
  --color-danger:        #f87171;
  --color-warning:       #fbbf24;
  --color-safe:          #34d399;

  /* Backgrounds */
  --bg-base:             #0a0a1a;
  --bg-card:             #131320;
  --bg-card-elevated:    #1a1a2e;
  --bg-glass:            rgba(45, 212, 191, 0.05);
  --bg-glass-border:     rgba(45, 212, 191, 0.12);
  --bg-pro:              rgba(192, 132, 252, 0.06);

  /* Text */
  --text-primary:        #f8fafc;
  --text-secondary:      rgba(248, 250, 252, 0.7);
  --text-muted:          rgba(248, 250, 252, 0.4);
  --text-teal:           #2dd4bf;

  /* Typography */
  --font-sans:           'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale (fluid) */
  --text-display:        clamp(2.4rem, 5.5vw, 4.5rem);
  --text-headline:       clamp(1.6rem, 3vw, 2.75rem);
  --text-subheadline:    clamp(1.1rem, 1.8vw, 1.5rem);
  --text-lead:           clamp(1rem, 1.3vw, 1.125rem);
  --text-body:           1rem;
  --text-small:          0.875rem;
  --text-xs:             0.75rem;

  /* Font weights */
  --fw-normal:  400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;
  --fw-black:   800;

  /* Line heights */
  --lh-tight:   1.1;
  --lh-snug:    1.3;
  --lh-normal:  1.6;
  --lh-loose:   1.8;

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;
  --section-gap: clamp(5rem, 10vw, 9rem);

  /* Borders */
  --border-subtle:  1px solid rgba(45, 212, 191, 0.1);
  --border-card:    1px solid rgba(45, 212, 191, 0.16);
  --border-hover:   1px solid rgba(45, 212, 191, 0.35);
  --border-accent:  1px solid rgba(192, 132, 252, 0.25);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-2xl:  48px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-glow:   0 0 60px rgba(45, 212, 191, 0.18);
  --shadow-glow-sm:0 0 24px rgba(45, 212, 191, 0.15);
  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-phone:  0 48px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(45, 212, 191, 0.12);
  --shadow-accent: 0 0 40px rgba(192, 132, 252, 0.2);

  /* Transitions */
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:     150ms;
  --dur-normal:   300ms;
  --dur-slow:     600ms;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2.5rem);
  --nav-height:    72px;
}

/* === BASE === */
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === CONTAINER === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* === TYPOGRAPHY === */
.display { font-size: var(--text-display); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: -0.03em; }
.headline { font-size: var(--text-headline); font-weight: var(--fw-bold); line-height: var(--lh-snug); letter-spacing: -0.02em; }
.subheadline { font-size: var(--text-subheadline); font-weight: var(--fw-semi); line-height: var(--lh-snug); }
.lead { font-size: var(--text-lead); line-height: var(--lh-loose); color: var(--text-secondary); }
.label { font-size: var(--text-xs); font-weight: var(--fw-semi); letter-spacing: 0.1em; text-transform: uppercase; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #67e8f9 50%, var(--color-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.text-accent-gradient {
  background: linear-gradient(135deg, var(--color-accent), #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* === SECTION WRAPPER === */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-card-elevated);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-glass);
  border: var(--border-subtle);
  border-radius: var(--radius-pill);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-header .headline {
  margin-bottom: var(--space-5);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-semi);
  font-size: var(--text-body);
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal) var(--ease-smooth), opacity var(--dur-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0ea5e9 100%);
  color: #0a0a1a;
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 24px rgba(45, 212, 191, 0.35);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--dur-normal);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { box-shadow: 0 8px 40px rgba(45, 212, 191, 0.5); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: var(--border-card);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--bg-glass);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #e879f9 100%);
  color: white;
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { box-shadow: 0 8px 40px rgba(192, 132, 252, 0.45); }

.btn-lg {
  padding: var(--space-5) var(--space-10);
  font-size: 1.0625rem;
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-small);
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal), border-color var(--dur-normal);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
  border-color: rgba(45, 212, 191, 0.3);
}

.card--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-subtle);
}

.card--elevated {
  background: var(--bg-card-elevated);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
}

.badge--danger  { background: rgba(248, 113, 113, 0.15); color: var(--color-danger);  border: 1px solid rgba(248,113,113,0.3); }
.badge--warning { background: rgba(251,191, 36, 0.15); color: var(--color-warning); border: 1px solid rgba(251,191,36,0.3); }
.badge--safe    { background: rgba( 52,211,153, 0.15); color: var(--color-safe);    border: 1px solid rgba(52,211,153,0.3); }
.badge--pro     { background: rgba(192,132,252, 0.15); color: var(--color-accent);  border: var(--border-accent); }
.badge--teal    { background: var(--bg-glass); color: var(--color-primary); border: var(--border-subtle); }

/* === DIVIDER === */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: var(--radius-pill);
  margin: var(--space-5) 0;
}

.divider--center { margin: var(--space-5) auto; }

/* === GLOW BG ELEMENTS === */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb--teal {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
}

.glow-orb--purple {
  background: radial-gradient(circle, rgba(192, 132, 252, 0.1) 0%, transparent 70%);
}

/* === FOCUS VISIBLE === */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-card-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-dark); }

/* === SELECTION === */
::selection { background: rgba(45, 212, 191, 0.2); color: var(--text-primary); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  transition: background var(--dur-normal), border-bottom var(--dur-normal), backdrop-filter var(--dur-normal);
}

.nav.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--fw-bold);
  font-size: 1.125rem;
  color: var(--text-primary);
  transition: opacity var(--dur-fast);
}
.nav__logo:hover { opacity: 0.8; }

.nav__logo-icon {
  width: 36px;
  height: 36px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--dur-normal) var(--ease-smooth);
}

.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--dur-normal), opacity var(--dur-normal), width var(--dur-normal);
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(20px);
  padding: var(--space-8) var(--space-6);
  border-bottom: var(--border-subtle);
  transform: translateY(-110%);
  transition: transform var(--dur-slow) var(--ease-smooth);
  z-index: 99;
}

.nav__mobile.open { transform: translateY(0); }

.nav__mobile .nav__link {
  font-size: 1.1rem;
  padding: var(--space-3) 0;
  border-bottom: var(--border-subtle);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 560px;
}

.hero__eyebrow {
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-display);
  font-weight: var(--fw-black);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-lead);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  margin-bottom: var(--space-10);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero__appstore {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semi);
  font-size: var(--text-small);
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal);
  line-height: 1.2;
}
.hero__appstore:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 32px rgba(255,255,255,0.15); }

.hero__appstore-text { display: flex; flex-direction: column; }
.hero__appstore-text small { font-size: 0.6875rem; font-weight: var(--fw-normal); opacity: 0.6; }
.hero__appstore-text strong { font-size: 0.9375rem; font-weight: var(--fw-bold); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.hero__stat {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  background: var(--bg-glass);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
}

.hero__stat-value {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: var(--fw-black);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.3;
}

/* iPhone mockup */
.hero__phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__phone {
  position: relative;
  width: 280px;
  animation: float 5s ease-in-out infinite;
  transform-style: preserve-3d;
  filter: drop-shadow(var(--shadow-phone));
}

.hero__phone-frame {
  width: 100%;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  background: #1a1a2e;
  overflow: hidden;
  position: relative;
  aspect-ratio: 393/852;
}

.hero__phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #0a0a1a;
  border-radius: 20px;
  z-index: 2;
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-slow);
}

.hero__phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.35) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-3deg); }
  50% { transform: translateY(-16px) rotateX(2deg) rotateY(-3deg); }
}

/* Carousel dots */
.hero__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: background var(--dur-normal), width var(--dur-normal) var(--ease-spring);
}

.hero__dot.active {
  background: var(--color-primary);
  width: 20px;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.interaction-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  perspective: 1000px;
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal), border-color var(--dur-normal);
  cursor: default;
}

.interaction-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.interaction-card--danger { border-top: 3px solid var(--color-danger); }
.interaction-card--danger:hover { box-shadow: var(--shadow-card), 0 0 30px rgba(248,113,113,0.12); }

.interaction-card--warning { border-top: 3px solid var(--color-warning); }
.interaction-card--warning:hover { box-shadow: var(--shadow-card), 0 0 30px rgba(251,191,36,0.12); }

.interaction-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.interaction-card__icon {
  font-size: 1.75rem;
}

.interaction-card__body {
  margin-bottom: var(--space-6);
}

.interaction-card__compounds {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.compound-tag {
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: var(--fw-medium);
}

.compound-sep {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.interaction-card__effect {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-4);
}

.interaction-card__effect strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.interaction-card__source {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
}

.interaction-card__cta {
  padding-top: var(--space-5);
  border-top: var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--fw-semi);
}

/* ============================================================
   FEATURES SECTION (Tabs)
   ============================================================ */
.features__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.features__tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-tab {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: var(--border-subtle);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-normal), border-color var(--dur-normal), transform var(--dur-normal) var(--ease-spring);
  width: 100%;
  color: var(--text-secondary);
}

.feature-tab:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.feature-tab.active {
  background: var(--bg-glass);
  border-color: rgba(45, 212, 191, 0.3);
  color: var(--text-primary);
  transform: translateX(4px);
}

.feature-tab__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card-elevated);
  border: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: background var(--dur-normal), border-color var(--dur-normal);
}

.feature-tab.active .feature-tab__icon {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.3);
}

.feature-tab__title {
  font-size: 1rem;
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-1);
  line-height: var(--lh-snug);
}

.feature-tab__desc {
  font-size: var(--text-small);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}

.feature-tab.active .feature-tab__desc {
  color: var(--text-secondary);
}

.features__phone-wrap {
  display: flex;
  justify-content: center;
}

.features__phone {
  width: 260px;
  position: relative;
}

.features__phone-frame {
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.1);
  background: #1a1a2e;
  overflow: hidden;
  aspect-ratio: 393/852;
  filter: drop-shadow(var(--shadow-phone));
  position: relative;
}

.features__phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #0a0a1a;
  border-radius: 16px;
  z-index: 2;
}

.features__screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* ============================================================
   PIPELINE SECTION
   ============================================================ */
.pipeline {
  counter-reset: pipeline;
}

.pipeline__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.pipeline__steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 0;
}

.pipeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.pipeline__step-num {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--space-5);
  transition: box-shadow var(--dur-normal), transform var(--dur-normal) var(--ease-spring);
  box-shadow: 0 0 0 0 var(--color-primary-glow);
}

.pipeline__step.active .pipeline__step-num {
  box-shadow: 0 0 0 8px var(--color-primary-glow);
  transform: scale(1.08);
}

.pipeline__step-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pipeline__step-title {
  font-size: 1rem;
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-2);
}

.pipeline__step-desc {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

.pipeline__tech {
  margin-top: var(--space-16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.pipeline__tech-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
}

.pipeline__tech-card h4 {
  font-size: var(--text-small);
  font-weight: var(--fw-semi);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pipeline__tech-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

/* ============================================================
   BILAN SECTION
   ============================================================ */
.bilan__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.bilan__phone {
  width: 280px;
  margin: 0 auto;
}

.bilan__phone-frame {
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.1);
  background: #1a1a2e;
  overflow: hidden;
  aspect-ratio: 393/852;
  filter: drop-shadow(var(--shadow-phone));
  position: relative;
}

.bilan__phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #0a0a1a;
  border-radius: 16px;
  z-index: 2;
}

.bilan__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.bilan__check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.bilan__check.visible {
  opacity: 1;
  transform: translateX(0);
}

.bilan__check-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.bilan__check-text h4 {
  font-size: var(--text-small);
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-1);
}

.bilan__check-text p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

/* ============================================================
   SECURITY SECTION
   ============================================================ */
.security__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.security-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal), border-color var(--dur-normal);
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(45, 212, 191, 0.25);
}

.security-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-4);
  display: block;
}

.security-card__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-3);
}

.security-card__desc {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.security__sources {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-6);
  background: var(--bg-glass);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-10);
}

.source-badge {
  font-size: var(--text-small);
  font-weight: var(--fw-semi);
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  border: var(--border-subtle);
  border-radius: var(--radius-pill);
  transition: color var(--dur-normal), border-color var(--dur-normal);
}

.source-badge:hover {
  color: var(--color-primary);
  border-color: rgba(45, 212, 191, 0.3);
}

.security__quote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-8);
  border-left: 3px solid var(--color-primary);
  background: var(--bg-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--lh-loose);
}

/* ============================================================
   PRO SECTION
   ============================================================ */
.pro__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.pro__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pro__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--dur-normal);
}

.pro__feature:hover {
  background: var(--bg-glass);
}

.pro__feature-icon {
  font-size: 1.25rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pro__feature-text h4 {
  font-size: var(--text-small);
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-1);
}

.pro__feature-text p {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.pro__card {
  background: var(--bg-pro);
  border: var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.pro__card-header {
  margin-bottom: var(--space-8);
}

.pro__card-title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  margin: var(--space-4) 0 var(--space-3);
}

.pro__card-desc {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.pro__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-input {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  transition: border-color var(--dur-normal), box-shadow var(--dur-normal);
}

.form-input::placeholder { color: var(--text-muted); }

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.12);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--dur-normal) var(--ease-spring), box-shadow var(--dur-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.testimonial__stars {
  color: var(--color-warning);
  font-size: 0.875rem;
  margin-bottom: var(--space-5);
  letter-spacing: 2px;
}

.testimonial__quote {
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--text-small);
  flex-shrink: 0;
}

.testimonial__author-info strong {
  display: block;
  font-size: var(--text-small);
  font-weight: var(--fw-semi);
}

.testimonial__author-info span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   DOWNLOAD / CTA SECTION
   ============================================================ */
.download {
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 70%),
              var(--bg-card-elevated);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  text-align: center;
}

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

.download__subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-10);
  font-size: var(--text-lead);
}

.download__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.download__android-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.download__form-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.download__form-label {
  font-size: var(--text-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  display: block;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.waitlist-form .form-row {
  display: flex;
  gap: var(--space-3);
}

.waitlist-form .form-input {
  flex: 1;
}

.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  cursor: pointer;
  transition: border-color var(--dur-normal);
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232dd4bf' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

.form-select option { background: var(--bg-card); }
.form-select:focus { outline: none; border-color: var(--color-primary); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-6);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-lg);
  color: var(--color-safe);
  font-weight: var(--fw-semi);
}

.form-success.show { display: block; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-normal);
}

.faq-item.open {
  border-color: rgba(45, 212, 191, 0.25);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-small);
  font-weight: var(--fw-semi);
  cursor: pointer;
  background: none;
  color: var(--text-primary);
  text-align: left;
  width: 100%;
  transition: color var(--dur-normal);
  line-height: var(--lh-snug);
}

.faq-item__question:hover { color: var(--color-primary); }
.faq-item.open .faq-item__question { color: var(--color-primary); }

.faq-item__chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-normal) var(--ease-spring), background var(--dur-normal);
  color: var(--color-primary);
  font-size: 0.75rem;
}

.faq-item.open .faq-item__chevron {
  transform: rotate(180deg);
  background: rgba(45, 212, 191, 0.1);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-smooth);
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-small);
  color: var(--text-secondary);
  line-height: var(--lh-loose);
  border-top: var(--border-subtle);
  padding-top: var(--space-4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: var(--border-subtle);
}

.footer__brand p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer__col h5 {
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-small);
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.footer__link:hover { color: var(--color-primary); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: 480px;
  line-height: var(--lh-normal);
  font-style: italic;
}

/* ============================================================
   CURSOR CUSTOM
   ============================================================ */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s var(--ease-smooth), opacity 0.15s;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(45, 212, 191, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s var(--ease-smooth), height 0.3s var(--ease-smooth), border-color 0.3s, transform 0.1s linear;
  transform: translate(-50%, -50%);
}

.cursor.hovering {
  transform: translate(-50%, -50%) scale(0);
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(45, 212, 191, 0.05);
}

/* === PARTICLES === */
#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.opacity-0 { opacity: 0; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__phone { animation: none; }
  .cursor, .cursor-ring { display: none; }
}
