/* ═══════════════════════════════════════════════════════════════
   ALERTGIA 2026 — PREMIUM HEALTHTECH DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #374151;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── DESIGN TOKENS ───────────────────────────────────────────────── */
:root {
  --navy:        #1B2A4A;
  --navy-deep:   #0C1628;
  --navy-mid:    #1E3260;
  --navy-card:   #14223A;
  --green:       #6AAF4B;
  --green-dark:  #4E8E35;
  --green-light: #8CC96B;
  --green-bright:#79C457;
  --steel:       #8FA4BE;
  --steel-light: #C2D3E4;
  --sage:        #E8F0E4;
  --sage-mid:    #D0E2C7;
  --amber:       #F59E0B;

  --white:       #FFFFFF;
  --surface-1:   #F9FAFB;
  --surface-2:   #F3F6FA;
  --surface-3:   #EBF0F5;

  --text-primary:   #0C1628;
  --text-secondary: #374151;
  --text-muted:     #6B7280;
  --text-faint:     #9CA3AF;

  --border-light:  rgba(15,25,55,.06);
  --border:        rgba(15,25,55,.1);
  --border-medium: rgba(15,25,55,.17);

  --green-tint:  rgba(106,175,75,.09);
  --green-glow:  rgba(106,175,75,.22);
  --navy-tint:   rgba(27,42,74,.05);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,.06), 0 14px 40px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 28px rgba(0,0,0,.08), 0 36px 80px rgba(0,0,0,.12);
  --shadow-green: 0 8px 32px rgba(106,175,75,.38);

  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  28px;
  --radius-xl:  40px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:    .14s;
  --dur-base:    .22s;
  --dur-slow:    .4s;

  --max-w:      1160px;
  --section-y:  56px;
}

/* ── UTILITIES ──────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.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;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.07;
  letter-spacing: -.028em;
}
h1 { font-size: clamp(42px, 6vw, 80px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; }
h3 { font-size: clamp(17px, 1.7vw, 20px); font-weight: 700; letter-spacing: -.018em; }

.text-gradient {
  background: linear-gradient(135deg, var(--green-bright) 0%, #4E9E35 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast);
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover  { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.btn:active { opacity: .92; }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.btn--green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 10px rgba(106,175,75,.28);
}
.btn--green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: var(--shadow-green);
}

/* for dark backgrounds */
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn--outline:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* for light backgrounds */
.btn--outline-light {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-medium);
}
.btn--outline-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: #fff; }

.btn--white {
  background: #fff;
  color: var(--green-dark);
  border-color: #fff;
  font-weight: 700;
}
.btn--white:hover { background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); }
.btn--sm { padding: 9px 18px; font-size: 13px; }

/* ── LABEL TAGS ─────────────────────────────────────────────────── */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--green-tint);
  color: var(--green-dark);
  border: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.label-tag--light {
  background: var(--green-tint);
  color: var(--green-dark);
}

/* ── SECTION HEADER ─────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.section-header h2 { max-width: 600px; color: var(--navy); }
.section-header p  {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.8;
}

/* ── SCROLL PROGRESS ─────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 2px; z-index: 200;
  transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 100%);
  transition: transform .05s linear;
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ══════════════════════════════════════════════════════════════════
   NAVIGATION — Dark Premium
══════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: none;
  transition: box-shadow var(--dur-base);
}
.nav.scrolled { box-shadow: none; }
.nav__inner {
  display: flex; align-items: center;
  height: 64px; gap: 40px;
}
.nav__brand { flex-shrink: 0; }
.nav__logo {
  width: 130px; height: 44px;
  background-image: url('../assets/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
}
.nav__links { display: flex; gap: 2px; flex: 1; }
.nav__links a {
  padding: 7px 13px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav__links a:hover { background: var(--surface-2); color: var(--text-primary); }
.nav__links a.active { background: rgba(106,175,75,.12); color: var(--green-dark); font-weight: 600; }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: 8px; }
.nav__burger span { display: block; width: 20px; height: 1.5px; background: var(--text-muted); border-radius: 2px; transition: .2s; }
.nav__mobile {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 12px 24px 24px;
}
.nav__mobile ul { display: flex; flex-direction: column; gap: 2px; }
.nav__mobile a {
  display: block; padding: 11px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--text-secondary);
}
.nav__mobile a:hover { background: var(--surface-2); color: var(--text-primary); }
.nav__mobile .btn { margin-top: 10px; width: 100%; }

/* ══════════════════════════════════════════════════════════════════
   HERO — Light, 2-Column Split Layout
══════════════════════════════════════════════════════════════════ */
.hero {
  background: var(--white);
  overflow: hidden;
  position: relative;
}
.hero::before {
  display: none;
}
.hero__inner {
  display: flex; flex-direction: row;
  align-items: center; gap: 56px;
  padding: 32px 0 40px;
  position: relative; z-index: 1;
}
.hero__content {
  display: flex; flex-direction: column;
  align-items: flex-start; text-align: left;
  gap: 28px; flex: 1; max-width: 560px;
}
.hero__logo {
  display: block;
  width: 280px;
  height: auto;
  margin-bottom: -16px;
}

.google-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  cursor: default;
}
.google-badge__icon { flex-shrink: 0; width: 20px; height: 20px; }
.google-badge strong { color: var(--text-primary); font-weight: 600; }

.hero__title {
  color: var(--text-primary);
  max-width: 540px;
  line-height: 1.04;
}
.hero__sub {
  font-size: clamp(15.5px, 1.6vw, 18px);
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.82;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

/* Hero visual — phone */
.hero__visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  flex-shrink: 0;
  padding: 24px 48px;
}
.hero__visual::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px; height: 500px;
  background: radial-gradient(ellipse, rgba(106,175,75,.12) 0%, transparent 65%);
  filter: blur(48px);
  pointer-events: none; z-index: 0;
}

/* Hero metrics strip */
.hero__metrics {
  border-top: 1px solid var(--border-light);
  background: var(--surface-1);
  position: relative; z-index: 1;
}
.hero__metrics .container {
  display: flex; align-items: stretch;
}
.hero-metric {
  flex: 1; display: flex; flex-direction: column;
  gap: 4px; padding: 16px 0;
  position: relative;
}
.hero-metric + .hero-metric::before {
  content: '';
  position: absolute; left: 0; top: 20%; height: 60%;
  width: 1px; background: var(--border);
}
.hero-metric__number {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700; color: var(--green);
  letter-spacing: -.04em; line-height: 1;
}
.hero-metric__label {
  font-size: 11.5px; color: var(--text-muted);
  font-weight: 500; line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════
   TRUSTED BY
══════════════════════════════════════════════════════════════════ */
.trusted {
  padding: 28px 0; background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.trusted .container {
  display: flex; align-items: center;
  gap: 28px; flex-wrap: wrap;
}
.trusted__label {
  font-size: 10.5px; color: var(--text-faint);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; white-space: nowrap;
}
.trusted__sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; }
.trusted__logos { display: flex; gap: 36px; flex-wrap: wrap; align-items: center; }
.trusted__logos span {
  font-size: 13px; font-weight: 700;
  color: var(--steel-light); letter-spacing: -.01em;
  transition: color var(--dur-base); user-select: none; cursor: default;
}
.trusted__logos span:hover { color: var(--steel); }

/* ══════════════════════════════════════════════════════════════════
   PROBLEM
══════════════════════════════════════════════════════════════════ */
.problem { padding: var(--section-y) 0; background: #fff; }
.problem__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.problem-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow var(--dur-base);
}
.problem-card::after { display: none; }
.problem-card:hover { box-shadow: var(--shadow-sm); }
.problem-card__icon {
  width: 44px; height: 44px;
  background: var(--green-tint);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
}
.problem-card__stat {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900; color: var(--navy);
  letter-spacing: -.04em; line-height: 1;
}
.problem-card h3 {
  font-size: 14px; color: var(--navy); line-height: 1.45;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
}
.problem-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════════════════════ */
.how {
  padding: var(--section-y) 0; background: var(--surface-1);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.steps-track {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; position: relative;
}
.steps-track::before {
  content: '';
  position: absolute; top: 54px;
  left: calc(16.67% + 26px); right: calc(16.67% + 26px);
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--green) 0, var(--green) 5px, transparent 5px, transparent 13px);
  opacity: .4; z-index: 0;
}
.step-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; z-index: 1;
  transition: box-shadow var(--dur-base);
}
.step-card:hover { box-shadow: var(--shadow-sm); }
.step-card__number {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--green);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: 20px; right: 20px;
  letter-spacing: 0;
}
.step-card__icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.step-card h3 { font-size: 17px; color: var(--navy); font-family: 'DM Sans', sans-serif; font-weight: 700; }
.step-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.72; }

/* ══════════════════════════════════════════════════════════════════
   FEATURES — BENTO GRID
══════════════════════════════════════════════════════════════════ */
.features { padding: var(--section-y) 0; background: #fff; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.bento-card:nth-child(1) { grid-column: span 2; }
.bento-card:nth-child(2) { grid-column: span 1; }
.bento-card:nth-child(3) { grid-column: span 1; }
.bento-card:nth-child(4) { grid-column: span 2; }
.bento-card:nth-child(5) { grid-column: span 2; }
.bento-card:nth-child(6) { grid-column: span 1; }

.bento-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px; padding: 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: box-shadow var(--dur-base);
}
.bento-card:hover { box-shadow: var(--shadow-sm); }
.bento-card::before { display: none; }
.bento-card::after  { display: none; }
.bento-card__tag {
  font-size: 10px; font-weight: 700;
  color: var(--green-dark); letter-spacing: .08em; text-transform: uppercase;
  background: var(--green-tint); border-radius: 999px;
  padding: 2px 10px; width: fit-content;
}
.bento-card__icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.bento-card h3 { font-size: 16px; color: var(--navy); line-height: 1.3; font-weight: 700; }
.bento-card p { font-size: 13px; color: var(--text-muted); line-height: 1.72; max-width: 400px; }

/* ══════════════════════════════════════════════════════════════════
   SOCIAL PROOF — Dark Section
══════════════════════════════════════════════════════════════════ */
.proof {
  padding: var(--section-y) 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.proof::before { display: none; }
.proof::after  { display: none; }
.proof__inner {
  display: flex; flex-direction: column;
  gap: 44px; align-items: flex-start;
  position: relative; z-index: 1;
  max-width: 720px;
}
.proof__left { display: flex; flex-direction: column; gap: 32px; }
.proof__left h2 { color: var(--navy); }
.proof__google {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px; width: fit-content;
  transition: box-shadow var(--dur-base);
}
.proof__google:hover { box-shadow: var(--shadow-sm); }
.proof__google-logo {
  width: 36px; height: 36px; background: var(--surface-2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.proof__google strong { display: block; font-size: 14px; font-weight: 600; color: var(--navy); }
.proof__google span   { font-size: 12px; color: var(--text-muted); }
.proof__stats { display: flex; gap: 0; }
.proof-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding-right: 32px; border-right: 1px solid var(--border);
  margin-right: 32px;
}
.proof-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.proof-stat__n {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700; color: var(--green);
  letter-spacing: -.04em; line-height: 1;
}
.proof-stat__l { font-size: 12px; color: var(--text-muted); line-height: 1.5; max-width: 110px; }
.proof__right { display: flex; flex-direction: column; gap: 14px; }
.testimonial-block {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 28px 30px;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.testimonial-block:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.testimonial-block blockquote p {
  font-size: 15px; color: rgba(255,255,255,.72);
  line-height: 1.82; margin-bottom: 22px; font-style: italic;
}
.testimonial-block figcaption {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06);
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--steel));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 14px; flex-shrink: 0;
}
.testimonial-block strong { display: block; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.testimonial-block span   { font-size: 12px; color: rgba(194,211,228,.48); }

/* ══════════════════════════════════════════════════════════════════
   B2B
══════════════════════════════════════════════════════════════════ */
.b2b { padding: var(--section-y) 0; background: var(--surface-2); border-top: 1px solid var(--border-light); }
.b2b__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 52px; }
.b2b-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 36px 30px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.b2b-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--navy), var(--navy-mid));
  opacity: 0; transition: opacity var(--dur-base);
}
.b2b-card:hover { border-color: rgba(27,42,74,.22); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.b2b-card:hover::after { opacity: 1; }
.b2b-card__icon {
  width: 52px; height: 52px;
  background: var(--navy-tint); border: 1px solid var(--border);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background var(--dur-base), border-color var(--dur-base);
}
.b2b-card:hover .b2b-card__icon { background: rgba(27,42,74,.1); border-color: rgba(27,42,74,.22); }
.b2b-card h3 { font-size: 17.5px; color: var(--navy); }
.b2b-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.78; }
.b2b__cta { text-align: center; }

/* ══════════════════════════════════════════════════════════════════
   DEMO
══════════════════════════════════════════════════════════════════ */
.demo-section { padding: var(--section-y) 0; background: #fff; }
.demo-wrapper { max-width: 820px; margin: 0 auto; }
.video-placeholder {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; aspect-ratio: 16/9;
  background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.04);
  box-shadow: var(--shadow-lg);
}
.video-placeholder__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(106,175,75,.14) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(143,164,190,.08) 0%, transparent 55%),
    radial-gradient(circle, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}
.play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative; z-index: 1;
  backdrop-filter: blur(8px);
  transition: background var(--dur-base), transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.play-btn:hover { background: var(--green); border-color: var(--green); transform: scale(1.12); box-shadow: var(--shadow-green); }
.video-placeholder__label {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,.38); white-space: nowrap;
}
.demo-version-badge { text-align: center; margin-bottom: 16px; }
.demo-version-tag {
  display: inline-block;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 99px;
  border: 1px solid rgba(106,175,75,.5);
}
.video-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-embed video {
  width: 100%; display: block;
  aspect-ratio: 16/9; object-fit: contain;
}
.demo-github-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  text-decoration: none; margin-top: 12px;
  transition: color var(--dur-base);
}
.demo-github-link:hover { color: var(--navy); }
.demo-caption { text-align: center; font-size: 15px; color: var(--text-muted); line-height: 1.78; margin-bottom: 4px; }
.demo-wrapper { text-align: center; }

/* ══════════════════════════════════════════════════════════════════
   CTA / EARLY ACCESS
══════════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--section-y) 0;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 78% 40%, rgba(106,175,75,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 22% 65%, rgba(143,164,190,.08) 0%, transparent 55%),
    radial-gradient(circle, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: auto, auto, 30px 30px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: -150px; right: -150px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(106,175,75,.1) 0%, transparent 65%);
  pointer-events: none;
}
.cta-section__inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 22px; position: relative; z-index: 1;
}
.cta-section h2 { color: #fff; }
.cta-section h2 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-section > .cta-section__inner > p { color: rgba(194,211,228,.68); font-size: 17px; }
.cta-form {
  display: flex; gap: 10px;
  width: 100%; max-width: 500px; margin-top: 8px;
}
.cta-form input {
  flex: 1; padding: 14px 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); color: #fff;
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.cta-form input::placeholder { color: rgba(255,255,255,.33); }
.cta-form input:focus { border-color: rgba(106,175,75,.65); background: rgba(255,255,255,.1); }
.cta-form__note { font-size: 12.5px; color: rgba(255,255,255,.28); }

/* ══════════════════════════════════════════════════════════════════
   PHONE MOCKUP
══════════════════════════════════════════════════════════════════ */
.phone {
  width: 260px;
  background: #060E1A; border-radius: 44px; padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 44px 100px rgba(0,0,0,.65),
    0 8px 28px rgba(0,0,0,.35);
  position: relative; flex-shrink: 0; z-index: 1;
}
.phone::before { content: ''; position: absolute; background: #060E1A; border-radius: 2px 0 0 2px; width: 3px; height: 36px; left: -3px; top: 80px; box-shadow: 0 48px 0 #060E1A; }
.phone::after  { content: ''; position: absolute; background: #060E1A; border-radius: 0 2px 2px 0; width: 3px; height: 52px; right: -3px; top: 96px; }
.phone__body { background: #fff; border-radius: 36px; overflow: hidden; height: 524px; position: relative; }
.phone__notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; background: #060E1A;
  border-bottom-left-radius: 14px; border-bottom-right-radius: 14px; z-index: 10;
}
.phone__screen { display: flex; flex-direction: column; height: 100%; position: relative; }
.app-bar {
  padding: 28px 16px 10px;
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
/* App bar logo */
.app-bar__logo-img { height: 45px; width: auto; }
.app-bar__name {
  font-family: 'Fraunces', serif;
  font-size: 15px; font-weight: 700;
  color: var(--navy); letter-spacing: -.02em;
  flex: 1; text-align: center;
  font-style: normal;
}
.app-bar__name em {
  color: var(--green); font-style: normal;
}
.app-bar__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid var(--green);
}
.app-bar__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── PHONE SLIDES ─────────────────────────────────────────────── */
.phone-slide {
  position: absolute; inset: 0; top: 80px; bottom: 28px;
  padding: 0 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateX(18px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  pointer-events: none;
  font-family: 'DM Sans', sans-serif;
}
.phone-slide--active {
  opacity: 1; transform: translateX(0);
  pointer-events: auto;
}
.phone-slide--exit {
  opacity: 0; transform: translateX(-18px);
}
.slide-header {
  font-size: 12px; font-weight: 700; color: var(--navy);
  padding-bottom: 6px; border-bottom: 1px solid var(--border-light);
}

/* Slide 1 — Allergy profile */
.allergy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  flex: 1;
}
.allergy-chip {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 9px; border-radius: 8px;
  font-size: 10px; font-weight: 500;
  background: var(--surface-2); color: var(--text-secondary);
  border: 1px solid var(--border-light);
  cursor: default;
}
.allergy-chip span { font-size: 14px; }
.allergy-chip--selected {
  background: rgba(106,175,75,.12);
  border-color: rgba(106,175,75,.35);
  color: var(--green-dark); font-weight: 600;
}
.slide-action {
  font-size: 10px; font-weight: 600; color: var(--green-dark);
  background: rgba(106,175,75,.1); border-radius: 8px;
  padding: 7px 10px; text-align: center;
}

/* QR Viewfinder */
.qr-viewfinder {
  position: relative;
  background: #0a0a0a;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  flex-shrink: 0;
  height: 120px;
}
.qr-code {
  width: 80px; height: 80px;
  background: #fff; border-radius: 4px; padding: 4px;
  box-sizing: border-box;
}
.qr-corners { position: absolute; inset: 8px; pointer-events: none; }
.qr-corner {
  position: absolute; width: 16px; height: 16px;
  border-color: var(--green); border-style: solid; border-width: 0;
}
.qr-corner--tl { top: 0; left: 0; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 4px; }
.qr-corner--tr { top: 0; right: 0; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 4px; }
.qr-corner--bl { bottom: 0; left: 0; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 4px; }
.qr-corner--br { bottom: 0; right: 0; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 4px; }
.qr-scan-line {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  filter: drop-shadow(0 0 4px var(--green));
  animation: scanMove 2s ease-in-out infinite;
}
@keyframes scanMove {
  0%   { top: 8px; }
  100% { top: calc(100% - 8px); }
}

/* Scroll hint */
.scroll-hint {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 9px; font-weight: 600; color: var(--green-dark);
  background: rgba(106,175,75,.1); border-radius: 999px;
  padding: 3px 10px; align-self: center;
  opacity: 1; transition: opacity .5s;
  flex-shrink: 0;
}
.scroll-hint--hidden { opacity: 0; pointer-events: none; }
.scroll-hint__arrow {
  animation: bounceDown .8s ease-in-out infinite;
  display: inline-block;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}

/* Slide 2 — Menu QR */
.menu-options { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow-y: auto; scrollbar-width: none; }
.menu-options::-webkit-scrollbar { display: none; }
.menu-option-label {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--green-dark);
  background: rgba(106,175,75,.1); border-radius: 6px;
  padding: 3px 8px; align-self: flex-start;
}
.menu-results { display: flex; flex-direction: column; gap: 5px; }
.menu-course__label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  color: var(--text-faint); letter-spacing: .06em;
  display: block; margin-bottom: 4px;
}
.menu-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 9px; border-radius: 8px;
  font-size: 10.5px; font-weight: 500;
}
.menu-item--safe   { background: #DCFCE7; color: #14532D; }
.menu-item--warn   { background: #FEF3C7; color: #92400E; }
.menu-item--danger { background: #FEE2E2; color: #991B1B; }
.menu-item__icon { font-size: 13px; flex-shrink: 0; }
.slide-footnote {
  font-size: 9px; color: var(--text-faint); line-height: 1.4;
  padding-top: 4px; border-top: 1px solid var(--border-light);
}

/* Slide 3 — Dish recognition */
.capture-row {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.capture-thumb {
  position: relative;
  width: 56px; height: 56px; border-radius: 8px;
  background: #0a0a0a; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,.15);
}
.capture-thumb__img { font-size: 26px; }
.capture-thumb__label {
  position: absolute; bottom: 2px; left: 0; right: 0;
  text-align: center; font-size: 7px; color: rgba(255,255,255,.6);
  font-family: 'DM Sans', sans-serif;
}
.capture-thumb__check {
  position: absolute; top: 3px; right: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  font-size: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.capture-thumb__check--done { background: var(--green); color: #fff; }
.capture-status {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; font-size: 8.5px; color: var(--text-muted); text-align: center;
  font-family: 'DM Sans', sans-serif; line-height: 1.3;
}
.capture-status__icon { font-size: 18px; }
.capture-divider {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-faint);
  text-align: center; flex-shrink: 0;
  border-top: 1px solid var(--border-light); padding-top: 6px;
}
.dish-compare {
  display: flex; gap: 8px; flex: 1;
}
.dish-card {
  flex: 1; border-radius: 10px; padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; text-align: center;
  border: 2px solid transparent;
}
.dish-card--safe   { background: #DCFCE7; border-color: #86EFAC; }
.dish-card--danger { background: #FEE2E2; border-color: #FCA5A5; }
.dish-card__img  { font-size: 36px; }
.dish-card__name { font-size: 9.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.risk-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
}
.risk-badge--safe   { background: #DCFCE7; color: #14532D; }
.risk-badge--warn   { background: #FEF3C7; color: #92400E; }
.risk-badge--danger { background: #FEE2E2; color: #991B1B; }

/* Slide 4 — Nearby */
.nearby-list { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.nearby-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border-light);
}
.nearby-item__icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.nearby-item__icon--hospital { background: #FEE2E2; }
.nearby-item__icon--pharmacy { background: #DCFCE7; }
.nearby-item__info { display: flex; flex-direction: column; gap: 1px; }
.nearby-item__info strong { font-size: 10px; font-weight: 700; color: var(--navy); }
.nearby-item__info span   { font-size: 9px; color: var(--text-muted); }

/* ── MAP SCREEN ───────────────────────────────────────────────── */
.phone-slide--map {
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden;
}
.map-searchbar {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 10px 6px;
  background: #fff; border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
  flex-shrink: 0; z-index: 2; position: relative;
}
.map-searchbar__icon { font-size: 11px; }
.map-searchbar__text { font-size: 9.5px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }

.map-area {
  flex: 1; position: relative;
  background: #E8F0E4;
  overflow: hidden;
}
.map-road--h {
  position: absolute; left: 0; right: 0; height: 6px;
  background: #fff; transform: translateY(-50%);
}
.map-road--v {
  position: absolute; top: 0; bottom: 0; width: 6px;
  background: #fff; transform: translateX(-50%);
}
.map-road--main { background: #FCD34D; z-index: 1; }
.map-road--h.map-road--main { height: 8px; }
.map-road--v.map-road--main { width: 8px; }
.map-block {
  position: absolute;
  background: #D1E8C7; border-radius: 3px;
}

/* User location dot */
.map-user-dot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #4285F4; border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(66,133,244,.4);
  z-index: 3;
}
.map-user-pulse {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(66,133,244,.18);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: translate(-50%,-50%) scale(.6); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; }
}

/* Map pins */
.map-pin {
  position: absolute; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.map-pin span {
  font-size: 16px;
  background: #fff; border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.map-pin--hospital span { border: 2px solid #EF4444; }
.map-pin--pharmacy span { border: 2px solid #10B981; }
.map-pin__tail {
  width: 2px; height: 6px;
  background: rgba(0,0,0,.3); border-radius: 0 0 2px 2px;
}

/* Bottom info card */
.map-card {
  background: #fff;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0; z-index: 2; position: relative;
}
.map-card__badge {
  font-size: 9px; font-weight: 700;
  color: #991B1B; background: #FEE2E2;
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  margin-bottom: 4px; font-family: 'DM Sans', sans-serif;
}
.map-card__name { font-size: 11.5px; font-weight: 700; color: var(--navy); font-family: 'DM Sans', sans-serif; }
.map-card__meta { font-size: 9px; color: var(--text-muted); margin-top: 2px; font-family: 'DM Sans', sans-serif; }
.map-card__open { color: #15803D; font-weight: 600; }

/* Slide dots */
.slide-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.slide-dot {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--steel-light); transition: width .3s, background .3s;
}
.slide-dot--active { width: 14px; background: var(--green); }

/* Floating glass cards */
.float-card {
  position: absolute;
  background: var(--white);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
  min-width: 164px;
  animation: floatBob 5s ease-in-out infinite; z-index: 2;
}
.float-card--speed    { top: 36px; right: -16px; animation-delay: 0s; }
.float-card--location { bottom: 72px; left: -20px; animation-delay: -2.5s; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}
.float-card__icon { font-size: 20px; flex-shrink: 0; }
.float-card__text { display: flex; flex-direction: column; }
.float-card__text strong { font-size: 13.5px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.float-card__text span   { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════════ */
.footer { background: var(--navy-deep); padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.04); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 24px; text-align: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer__logo {
  width: 120px; height: 40px;
  background-image: url('../assets/logo.png');
  background-size: contain; background-repeat: no-repeat;
  background-position: center left;
  background-color: var(--navy-deep); background-blend-mode: screen;
  filter: brightness(1.15);
}
.footer__brand p { font-size: 13px; color: rgba(143,164,190,.38); }
.footer__links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  padding: 7px 12px; border-radius: 8px;
  font-size: 13.5px; color: rgba(194,211,228,.42);
  transition: color var(--dur-base), background var(--dur-base);
  display: flex; align-items: center; gap: 6px;
}
.footer__links a:hover { color: rgba(255,255,255,.78); background: rgba(255,255,255,.04); }
.footer__sep { width: 1px; height: 14px; background: rgba(255,255,255,.08); }
.footer__copy {
  width: 100%; padding: 20px 40px;
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center; font-size: 12px; color: rgba(143,164,190,.24);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-y: 44px; }
  .hero__inner { gap: 52px; }
  .proof__inner { gap: 56px; }
}

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; align-items: center; padding: 72px 0 64px; gap: 48px; }
  .hero__content { align-items: center; text-align: center; max-width: 600px; }
  .hero__logo { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__title { max-width: 580px; }
  .hero__visual { margin-top: 0; }
  .hero__metrics .container { flex-wrap: wrap; }
  .problem__grid, .b2b__grid { grid-template-columns: 1fr 1fr; }
  .steps-track { grid-template-columns: 1fr; }
  .steps-track::before { display: none; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card:nth-child(1),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5) { grid-column: span 2; }
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(6) { grid-column: span 1; }
  .proof__inner { grid-template-columns: 1fr; gap: 52px; }
  .proof__stats { flex-wrap: wrap; }
  .proof-stat { padding-right: 28px; margin-right: 28px; }
}

@media (max-width: 640px) {
  :root { --section-y: 36px; }
  .container { padding: 0 20px; }
  .nav__links  { display: none; }
  .nav__inner > .btn--sm { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile[hidden] { display: none; }
  .nav__mobile:not([hidden]) { display: block; }
  .hero__inner { padding: 56px 0 48px; gap: 36px; }
  .hero__logo { width: 220px; }
  .hero__visual { padding: 16px 20px; }
  .float-card--speed { right: -8px; }
  .float-card--location { left: -10px; }
  .hero__metrics .container { flex-direction: column; }
  .hero-metric { border-top: 1px solid var(--border-light); padding: 16px 0; flex-direction: row; align-items: center; justify-content: space-between; }
  .hero-metric + .hero-metric::before { display: none; }
  .hero-metric__label { text-align: right; max-width: 160px; }
  .problem__grid, .bento-grid, .b2b__grid { grid-template-columns: 1fr; }
  .bento-card:nth-child(n) { grid-column: span 1; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta-form { flex-direction: column; }
  .proof__stats { flex-direction: column; gap: 0; }
  .proof-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 0 0 20px; margin: 0 0 20px; }
  .proof-stat:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
  .trusted .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}
