/* ============================================================
   SKWKY — Design Tokens
   ============================================================ */
:root {
  --brand-blue: #555CFF;
  --brand-purple: #B534FF;
  --brand-yellow: #FFD86B;
  --brand-yellow-deep: #FFC532;

  --gradient-brand: linear-gradient(135deg, #555CFF 0%, #B534FF 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(85,92,255,0.08) 0%, rgba(181,52,255,0.08) 100%);
  --gradient-brand-reverse: linear-gradient(135deg, #B534FF 0%, #555CFF 100%);

  --bg: #FFFFFF;
  --bg-muted: #F6F6FB;
  --bg-dark: #0E0F1B;
  --bg-darker: #060713;

  --text: #0E0F1B;
  --text-muted: #5A5E76;
  --text-dim: #8A8FA8;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255,255,255,0.72);

  --border: rgba(14,15,27,0.08);
  --border-strong: rgba(14,15,27,0.16);
  --border-inverse: rgba(255,255,255,0.12);

  --shadow-sm: 0 1px 2px rgba(14,15,27,0.06);
  --shadow-md: 0 8px 24px rgba(14,15,27,0.08);
  --shadow-lg: 0 24px 60px rgba(14,15,27,0.14);
  --shadow-glow: 0 20px 60px rgba(85,92,255,0.35);
  --shadow-glow-purple: 0 20px 60px rgba(181,52,255,0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-h: 124px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--brand-purple); color: white; }

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-purple);
  margin-bottom: 16px;
}
.eyebrow.on-dark { color: #C0BFFF; }

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-heading p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--bg-dark); color: var(--text-inverse); }
.section--dark .eyebrow { color: #C0BFFF; }
.section--gradient {
  background: var(--gradient-brand);
  color: var(--text-inverse);
  overflow: hidden;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn--secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.24);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

/* Sign in (gradient pill, slightly compact for navbar) */
.btn--signin {
  background: var(--gradient-brand);
  color: white;
  padding: 11px 22px;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(85,92,255,0.35);
}
.btn--signin:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* SKWKY Labs (yellow accent pill, distinct + leads to /labs.html) */
.btn--labs {
  background: linear-gradient(135deg, #FFD86B 0%, #FFC532 100%);
  color: #1A1300;
  padding: 11px 18px 11px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255,197,50,0.35);
  border: 1px solid rgba(255, 220, 100, 0.6);
}
.btn--labs:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,197,50,0.55);
  filter: brightness(1.05);
}
.btn--labs svg { opacity: 0.7; transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.btn--labs:hover svg { transform: translate(2px, -2px); opacity: 1; }

/* Mobile menu button group */
.mobile-menu__buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  width: 100%;
  max-width: 280px;
}
.mobile-menu__buttons .btn { width: 100%; padding: 14px 24px; font-size: 1rem; }

/* ============================================================
   Store Badges
   ============================================================ */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #0E0F1B;
  border-radius: 14px;
  color: white;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 180px;
}
.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(85,92,255,0.5);
}
.store-badge svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge__small { font-size: 0.7rem; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge__big { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(14, 15, 27, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar__logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: clamp(-24px, -2vw, -12px);
}
@media (max-width: 600px) {
  .navbar__logo { margin-left: -8px; }
}
.navbar__logo-img {
  height: 96px;
  width: auto;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  transition: filter 0.3s, height 0.3s;
}
.navbar.is-scrolled .navbar__logo-img { height: 76px; }
@media (max-width: 600px) {
  .navbar__logo-img { height: 64px; }
  .navbar.is-scrolled .navbar__logo-img { height: 54px; }
}
.navbar__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.navbar__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s, opacity 0.3s;
}
.navbar.is-scrolled .navbar__links a { color: rgba(255,255,255,0.72); }
.navbar__links a:hover { opacity: 1; color: white; }
.navbar.is-scrolled .navbar__links a:hover { color: white; }
.navbar__cta { display: flex; gap: 10px; align-items: center; }
.navbar__toggle { display: none; }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--gradient-brand);
  z-index: 99;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  padding: var(--nav-h) var(--gutter) var(--gutter);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mobile-menu .store-badges { margin-top: 24px; flex-direction: column; }

@media (max-width: 860px) {
  .navbar__links, .navbar__cta { display: none; }
  .navbar__toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: white;
  }
  .navbar.is-scrolled .navbar__toggle {
    background: rgba(255,255,255,0.12);
    color: white;
  }
  .mobile-menu { display: flex; }
}

/* ============================================================
   Scroll Progress
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 200;
  transition: width 0.1s linear;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  background: var(--gradient-brand);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* Pulse keyframe used elsewhere in the site (eyebrow pills, scene-ers-pill) */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Minimal hero — centered, oversized headline, two grainy orbs, pixel edge */
.hero--minimal {
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 0;
  isolation: isolate;
}
.hero__inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 var(--gutter);
}
.hero__content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero__headline {
  font-size: clamp(3.5rem, 8vw, 6.25rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin: 0 0 28px;
}
.hero__sub {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: white;
  color: var(--text);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 32px rgba(14, 15, 27, 0.18);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(14, 15, 27, 0.28);
}
.hero__small-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s, color 0.3s;
}
.hero__small-link:hover { gap: 10px; color: white; }
.hero__small-link::after { content: '→'; }

/* ============================================================
   Two grainy drifting orbs (atmospheric backdrop)
   ============================================================ */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  isolation: isolate;
  will-change: transform;
}
.hero__orb::before {
  /* the colored radial-gradient body */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.hero__orb::after {
  /* grain texture overlay (SVG noise data URL, blended on top) */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' seed='5'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.65 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: 0.85;
}
.hero__orb--a {
  width: 720px; height: 720px;
  top: -8%;
  left: -10%;
  opacity: 0.42;
  animation: hero-orb-drift-a 24s ease-in-out infinite;
}
.hero__orb--a::before {
  background: radial-gradient(circle, #555CFF 0%, rgba(85,92,255,0.55) 35%, transparent 70%);
}
.hero__orb--b {
  width: 640px; height: 640px;
  bottom: -12%;
  right: -8%;
  opacity: 0.42;
  animation: hero-orb-drift-b 28s ease-in-out infinite;
}
.hero__orb--b::before {
  background: radial-gradient(circle, #B534FF 0%, rgba(181,52,255,0.55) 35%, transparent 70%);
}
@keyframes hero-orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(0.85); }
  50%      { transform: translate(-60px, 40px) scale(1.25); }
}
@keyframes hero-orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(0.88); }
  50%      { transform: translate(60px, -40px) scale(1.22); }
}

/* ============================================================
   Pixel-reveal scroll edge at bottom of hero
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none !important; }
}

/* Phone mockup (used by For Schools split visual) */
.phone {
  position: relative;
  width: 230px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  background: #0E0F1B;
  padding: 8px;
  box-shadow: 0 30px 80px rgba(14,15,27,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 22px;
  background: #0E0F1B;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0E0F1B;
}
.phone > .phone__screen > img,
.phone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ============================================================
   In-phone chat mockup — recreates the Opening Statement screen
   pixel-by-pixel to fit the phone's 9:19.5 aspect ratio.
   ============================================================ */
.mockup {
  background: #D6E8FB;
  display: flex;
  flex-direction: column;
  font-size: 9px;
  line-height: 1.3;
  color: #1a1a2e;
  position: relative;
  overflow: hidden;
}
.mockup__chat {
  background: #FFFFFF;
}
.mockup__header {
  background: linear-gradient(90deg, #555CFF 0%, #B534FF 100%);
  color: #fff;
  padding: 22px 8px 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.mockup__logo {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.mockup__title {
  font-size: 8.5px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  letter-spacing: 0.01em;
}
.mockup__end {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.85);
  font-size: 6.5px;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.mockup__chat {
  padding: 6px 8px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.mockup__row {
  display: flex;
  flex-direction: column;
  max-width: 72%;
  position: relative;
  z-index: 3;
}
.mockup__row--left { align-self: flex-start; }
.mockup__row--center { align-self: center; align-items: center; text-align: center; max-width: 78%; }
.mockup__row--right { align-self: flex-end; align-items: flex-end; }
.mockup__row--overlap { margin-top: 2px; margin-bottom: -14px; }
.mockup__name {
  font-size: 6.5px;
  font-weight: 500;
  color: #888;
  margin: 0 2px 0;
  letter-spacing: 0.02em;
}
.mockup__name--ai {
  color: #B07A1A;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 6px;
}
.mockup__bubble {
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 8px;
  line-height: 1.32;
  margin-top: 1px;
  position: relative;
}
.mockup__bubble--ai {
  background: linear-gradient(135deg, #FFE36B 0%, #FFA947 100%);
  color: #1a1a2e;
  font-weight: 500;
}
.mockup__bubble--user {
  background: #E8E8EE;
  color: #1a1a2e;
}
.mockup__bubble--chris {
  background: linear-gradient(135deg, #555CFF 0%, #8C44FF 70%, #B534FF 100%);
  color: #fff;
  font-weight: 500;
}
.mockup__score {
  position: absolute;
  right: -26px;
  bottom: 4px;
  font-size: 6.5px;
  color: #bbb;
  font-weight: 500;
  white-space: nowrap;
}

/* Water area — takes the bottom portion of the screen */
.mockup__water {
  position: relative;
  flex: 1;
  background: #D6E8FB;
  margin-top: 6px;
  min-height: 120px;
}
.mockup__wave {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 12px;
  display: block;
  z-index: 1;
}
.mockup__duck {
  position: absolute;
  top: -10px;
  left: 38%;
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  z-index: 4;
}
.mockup__cta {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: #6B5BD6;
  color: #fff;
  border: none;
  padding: 7px 22px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.mockup__input {
  margin: 4px 8px 14px;
  background: #FFFFFF;
  border: 1px solid #DCDCE6;
  border-radius: 999px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #999;
  flex-shrink: 0;
}

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

/* ============================================================
   Legacy: removed maze + flock + scene styles (no DOM matches)
   ============================================================ */
.hero__flock {
  width: 100%;
  height: auto;
  max-height: 600px;
  overflow: visible;
  display: block;
}
.flock-duck {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
  transform-box: fill-box;
  transform-origin: center;
  animation: flock-bob 4s ease-in-out infinite;
}
.flock-duck--center {
  filter: drop-shadow(0 0 18px rgba(255, 216, 107, 0.7)) drop-shadow(0 8px 14px rgba(0,0,0,0.25));
  animation: flock-bob 5s ease-in-out -1s infinite;
}
.flock-duck--1 { animation-delay: -0.5s; }
.flock-duck--2 { animation-delay: -1.5s; animation-duration: 4.4s; }
.flock-duck--3 { animation-delay: -2.5s; animation-duration: 4.2s; }
.flock-duck--4 { animation-delay: -3.5s; animation-duration: 4.6s; }
.flock-duck--5 { animation-delay: -2s;   animation-duration: 3.8s; }
.flock-duck--6 { animation-delay: -0.8s; animation-duration: 4.2s; }
@keyframes flock-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* connection lines flicker subtly */
.flock-links path { animation: flock-flicker 4s ease-in-out infinite; }
.flock-links path:nth-child(2n) { animation-delay: -1s; }
.flock-links path:nth-child(3n) { animation-delay: -2s; }
.flock-links path:nth-child(5n) { animation-delay: -3s; }
@keyframes flock-flicker {
  0%, 100% { stroke-opacity: 0.25; }
  50%      { stroke-opacity: 0.7; }
}

/* glow on traveling pulses */
.flock-pulses circle { filter: drop-shadow(0 0 6px rgba(255, 216, 107, 0.95)); }

@media (prefers-reduced-motion: reduce) {
  .flock-duck { animation: none !important; }
}

/* ============================================================
   Old hero scene placeholder (unused; kept for compatibility)
   ============================================================ */
.hero__scene--legacy {
  position: relative;
  height: 540px;
  width: 100%;
  --duck-size: 96px;
  --duck-y: 56%;
}

/* horizontal "table" band — sets the scene */
.scene-table {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 22%;
  height: 14px;
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0.18) 0,
      rgba(255,255,255,0.18) 2px,
      rgba(255, 216, 107, 0.28) 2px,
      rgba(255, 216, 107, 0.28) 4px,
      rgba(255,255,255,0.06) 4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  pointer-events: none;
}

/* ducks (pixel art, gentle bob) */
.scene-duck {
  position: absolute;
  bottom: var(--duck-y);
  width: var(--duck-size);
  z-index: 3;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}
.scene-duck img {
  width: 100%;
  display: block;
  image-rendering: pixelated;
}
.scene-duck--left {
  left: 8%;
  animation: float-y 4s ease-in-out infinite;
}
.scene-duck--center {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--duck-y) + 18px);
  width: calc(var(--duck-size) * 1.18);
  z-index: 4;
  animation: float-y 5s ease-in-out -1.5s infinite;
}
.scene-duck--center img {
  filter: drop-shadow(0 0 14px rgba(255, 216, 107, 0.65));
}
.scene-duck--right {
  right: 8%;
  animation: float-y 4.5s ease-in-out -3s infinite;
}
.scene-duck--right img {
  transform: scaleX(-1);
}

/* mediator halo — soft yellow glow pulsing behind center duck */
.scene-duck__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180%;
  height: 180%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 107, 0.45) 0%, rgba(255, 216, 107, 0) 70%);
  pointer-events: none;
  animation: scene-halo-pulse 4s ease-in-out infinite;
  z-index: -1;
}
@keyframes scene-halo-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

/* speech bubbles — pixel-art style, cycling visibility on a 12s loop */
.scene-bubble {
  position: absolute;
  z-index: 5;
  padding: 12px 16px;
  background: #FFFEF5;
  color: #1A1300;
  border: 2px solid #1A1300;
  border-radius: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.25);
  animation-duration: 12s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.scene-bubble::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: #FFFEF5;
  border-right: 2px solid #1A1300;
  border-bottom: 2px solid #1A1300;
  transform: rotate(45deg);
}

/* left disputant bubble */
.scene-bubble--left {
  left: 4%;
  bottom: calc(var(--duck-y) + var(--duck-size) + 16px);
  animation-name: bubble-1;
}
.scene-bubble--left::after {
  bottom: -8px;
  left: 30%;
}

/* right disputant bubble */
.scene-bubble--right {
  right: 4%;
  bottom: calc(var(--duck-y) + var(--duck-size) + 16px);
  animation-name: bubble-3;
}
.scene-bubble--right::after {
  bottom: -8px;
  right: 30%;
}

/* mediator bubbles — warm gradient, centered */
.scene-bubble--mediator {
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--duck-y) + var(--duck-size) + 56px);
  background: linear-gradient(135deg, #FFA94D 0%, #FFC532 50%, #FFD86B 100%);
  border-color: #5C2A00;
  color: #2C1A00;
  font-style: italic;
  box-shadow: 4px 4px 0 rgba(92, 42, 0, 0.35);
}
.scene-bubble--mediator::after {
  background: #FFD86B;
  border-color: #5C2A00;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}
.scene-bubble--phase2 { animation-name: bubble-2; }
.scene-bubble--phase4 { animation-name: bubble-4; }

@keyframes bubble-1 {
  0%        { opacity: 0; transform: translateY(8px); }
  3%        { opacity: 1; transform: translateY(0); }
  22%       { opacity: 1; transform: translateY(0); }
  25%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes bubble-2 {
  0%, 25%   { opacity: 0; transform: translate(-50%, 8px); }
  28%       { opacity: 1; transform: translate(-50%, 0); }
  47%       { opacity: 1; transform: translate(-50%, 0); }
  50%, 100% { opacity: 0; transform: translate(-50%, -6px); }
}
@keyframes bubble-3 {
  0%, 50%   { opacity: 0; transform: translateY(8px); }
  53%       { opacity: 1; transform: translateY(0); }
  72%       { opacity: 1; transform: translateY(0); }
  75%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes bubble-4 {
  0%, 75%   { opacity: 0; transform: translate(-50%, 8px); }
  78%       { opacity: 1; transform: translate(-50%, 0); }
  97%       { opacity: 1; transform: translate(-50%, 0); }
  100%      { opacity: 0; transform: translate(-50%, -6px); }
}

/* drifting pixel sparkles */
.scene-sparkle {
  position: absolute;
  width: 6px; height: 6px;
  background: #FFD86B;
  box-shadow: 0 0 8px #FFD86B;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  animation: scene-drift-up 6s linear infinite;
}
.scene-sparkle--1 { left: 12%; bottom: 0; animation-delay: 0s;     animation-duration: 5.5s; }
.scene-sparkle--2 { left: 28%; bottom: 0; animation-delay: -1.5s;  animation-duration: 6.5s; }
.scene-sparkle--3 { left: 44%; bottom: 0; animation-delay: -3s;    animation-duration: 5s;   }
.scene-sparkle--4 { left: 62%; bottom: 0; animation-delay: -0.8s;  animation-duration: 7s;   }
.scene-sparkle--5 { left: 78%; bottom: 0; animation-delay: -2.3s;  animation-duration: 5.8s; }
.scene-sparkle--6 { left: 90%; bottom: 0; animation-delay: -4s;    animation-duration: 6.2s; }
@keyframes scene-drift-up {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-260px) scale(1.1); }
}

/* corner ERS pill */
.scene-ers-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(14, 15, 27, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 216, 107, 0.35);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.92);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 6;
}
.scene-ers-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  animation: pulse 2s ease-in-out infinite;
}
.scene-ers-pill__value {
  color: #FFD86B;
  font-weight: 800;
}
.scene-ers-pill__arrow {
  color: #4ADE80;
  font-weight: 700;
}

@media (max-width: 700px) {
  .hero__orb--a { width: 460px; height: 460px; }
  .hero__orb--b { width: 420px; height: 420px; }
  .hero__cta { padding: 14px 28px; font-size: 0.95rem; }
}

/* ============================================================
   Reveal animation utility
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.56s; }

/* ============================================================
   How It Works (4-phase journey)
   ============================================================ */
.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.phases::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  opacity: 0.18;
  z-index: 0;
}
.phase {
  position: relative;
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  z-index: 1;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}
.phase:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(85,92,255,0.2);
}
.phase__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-glow);
}
.phase h3 { margin-bottom: 8px; font-size: 1.15rem; }
.phase p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 900px) {
  .phases { grid-template-columns: 1fr; gap: 16px; }
  .phases::before { display: none; }
}

/* ============================================================
   Features grid
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-brand-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-purple);
}
.feature__icon svg { width: 26px; height: 26px; stroke-width: 2; }
.feature h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ============================================================
   ERS Engine — 6 signals + layers
   ============================================================ */
.ers-tagline {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 60px;
  max-width: 800px;
}
.ers-tagline em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 100px;
}
.signal {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.signal:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.signal__number {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.signal__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: white;
  box-shadow: var(--shadow-glow);
}
.signal__icon svg { width: 24px; height: 24px; }
.signal h3 { font-size: 1.05rem; margin-bottom: 6px; }
.signal p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 900px) { .signals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .signals { grid-template-columns: 1fr; } }

.layers {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.layer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}
.layer__number {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: white;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.layer__small { font-size: 0.7rem; opacity: 0.85; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.layer__big { font-size: 1.1rem; line-height: 1; }
.layer h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.layer p { color: var(--text-muted); font-size: 0.98rem; }

.ml-callout {
  margin-top: 60px;
  padding: 32px clamp(28px, 4vw, 48px);
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}
.ml-callout::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  filter: blur(60px);
  top: -100px; right: -100px;
}
.ml-callout p {
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .layer { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .layer__number { width: 64px; height: 64px; font-size: 1.2rem; }
}

/* ============================================================
   Get started CTA strip (between Features and Labs teaser)
   ============================================================ */
.get-started {
  padding: 60px 0;
}
.get-started__inner {
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 56px) clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.get-started__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 50%, black 30%, transparent 75%);
  pointer-events: none;
}
.get-started__copy { position: relative; z-index: 2; }
.get-started__copy h2 {
  color: white;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 8px 0 12px;
}
.get-started__copy p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 480px;
}
.get-started .store-badges { position: relative; z-index: 2; justify-content: flex-end; }
@media (max-width: 800px) {
  .get-started__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .get-started__copy p { margin: 0 auto; }
  .get-started .store-badges { justify-content: center; }
}

/* ============================================================
   Labs teaser (homepage callout)
   ============================================================ */
.labs-teaser { padding: 60px 0; }
.labs-teaser__card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-darker);
  color: white;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  border: 1px solid rgba(255,255,255,0.06);
}
.labs-teaser__card::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 216, 107, 0.18), transparent 65%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.labs-teaser__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 80%);
  pointer-events: none;
}
.labs-teaser__card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }

.labs-teaser__left { position: relative; z-index: 2; }
.labs-teaser__left h2 { color: white; margin: 12px 0 18px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.labs-teaser__left p { color: rgba(255,255,255,0.72); font-size: 1.02rem; max-width: 540px; }
.labs-teaser__cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #FFD86B 0%, #FFC532 100%);
  color: #1A1300;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  transition: gap 0.3s, box-shadow 0.3s;
}
.labs-teaser__card:hover .labs-teaser__cta { gap: 12px; box-shadow: 0 10px 28px rgba(255,197,50,0.4); }

.labs-teaser__right {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 300px;
  z-index: 2;
}
.teaser-neuron {
  width: 280px;
  height: 280px;
  overflow: visible;
}
.teaser-neuron .neuron-trunks path { animation: synapse-flicker 4s ease-in-out infinite; }
.teaser-neuron .neuron-trunks path:nth-child(2n) { animation-delay: -1s; }
.teaser-neuron .neuron-trunks path:nth-child(3n) { animation-delay: -2s; }
.teaser-neuron .neuron-branches path { animation: synapse-flicker 4.5s ease-in-out infinite; }
.teaser-neuron .neuron-branches path:nth-child(2n) { animation-delay: -1.5s; }
.teaser-neuron .neuron-branches path:nth-child(3n) { animation-delay: -2.5s; }
.teaser-neuron .neuron-branches path:nth-child(4n) { animation-delay: -3.5s; }
.teaser-neuron .neuron-terminals path { animation: synapse-flicker 5s ease-in-out infinite; }
.teaser-neuron .neuron-terminals path:nth-child(2n) { animation-delay: -1.2s; }
.teaser-neuron .neuron-terminals path:nth-child(3n) { animation-delay: -2.4s; }
.teaser-neuron .neuron-terminals path:nth-child(4n) { animation-delay: -3.6s; }
.teaser-neuron .nn {
  transform-box: fill-box; transform-origin: center;
  animation: neuron-breathe 3s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.teaser-neuron .nn circle:first-child {
  transform-box: fill-box; transform-origin: center;
  animation: halo-breathe 3s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.teaser-core-duck {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  animation: core-pulse 4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.teaser-neuron .neuron-pulses circle { filter: drop-shadow(0 0 5px rgba(255, 216, 107, 0.95)); }
@keyframes synapse-flicker {
  0%, 100% { stroke-opacity: 0.25; }
  50%      { stroke-opacity: 0.7; }
}
@keyframes neuron-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes halo-breathe   { 0%,100% { opacity: 0.12; } 50% { opacity: 0.28; } }
@keyframes core-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 216, 107, 0.6)) drop-shadow(0 0 20px rgba(255, 197, 50, 0.4)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 18px rgba(255, 216, 107, 1)) drop-shadow(0 0 36px rgba(255, 197, 50, 0.8)); transform: scale(1.06); }
}

@media (max-width: 800px) {
  .labs-teaser__card { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .labs-teaser__left p { margin-left: auto; margin-right: auto; }
  .labs-teaser__right { min-height: 240px; }
}

/* ============================================================
   For Schools (split layout)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
.split__visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 560px;
}
.split__visual .phone {
  position: relative;
  width: 260px;
  animation: float-y 7s ease-in-out infinite;
}
.split__visual::before {
  content: '';
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: var(--gradient-brand);
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
}

.benefits { display: flex; flex-direction: column; gap: 18px; margin: 32px 0; }
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--gradient-brand-soft);
  color: var(--brand-purple);
  display: flex; align-items: center; justify-content: center;
}
.benefit__icon svg { width: 18px; height: 18px; }
.benefit__text strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.benefit__text span { color: var(--text-muted); font-size: 0.95rem; }

.testimonial {
  margin-top: 32px;
  padding: 24px;
  border-left: 3px solid var(--brand-purple);
  background: var(--bg-muted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.testimonial p { font-style: italic; color: var(--text); font-size: 1rem; margin-bottom: 12px; }
.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse > :first-child { order: 0; }
  .split__visual { min-height: 480px; }
}

/* ============================================================
   Pricing
   ============================================================ */
.pricing-card {
  max-width: 540px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
}
.pricing-card__price {
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 8px 0 4px;
}
.pricing-card__period { color: var(--text-muted); font-size: 1rem; margin-bottom: 28px; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pricing-card__desc { color: var(--text-muted); font-size: 0.98rem; max-width: 420px; margin: 0 auto 32px; }

.pricing-includes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  text-align: left;
}
.pricing-includes > div {
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
  padding: 16px 12px;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
}
.pricing-includes svg { width: 22px; height: 22px; color: var(--brand-purple); }
.pricing-includes span { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }

.pricing-card__schools {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--brand-blue);
  font-weight: 600;
}

@media (max-width: 600px) {
  .pricing-card { padding: 40px 24px; }
  .pricing-includes { grid-template-columns: 1fr; }
}

/* ============================================================
   Report Showcase
   ============================================================ */
.report-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 460px;
  margin: 0 auto;
}
.report-card__header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.report-card__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.report-card__meta { font-size: 0.78rem; color: var(--text-muted); }

.gauge {
  text-align: center;
  margin: 16px 0 24px;
}
.gauge__value {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #16A34A 0%, #16A34A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gauge__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 6px;
}

/* Horizontal score bar (replaces arc gauge) */
.score-bar {
  position: relative;
  margin: 18px auto 8px;
  max-width: 280px;
  padding-top: 16px;
}
.score-bar__track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #EF4444 0%, #F59E0B 50%, #16A34A 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.score-bar__marker {
  position: absolute;
  top: 6px;
  left: 0%;
  transform: translateX(-50%);
  transition: left 1.4s var(--ease-out) 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.is-visible .score-bar__marker {
  left: 78.4%; /* matches the 0.784 score */
}
.score-bar__marker-arrow {
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--text);
}
.score-bar__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.classification {
  display: inline-block;
  background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(74,222,128,0.05));
  color: #16A34A;
  border: 1px solid rgba(74,222,128,0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.timeline-chart { margin: 16px 0 24px; }
.risk-list { display: flex; flex-direction: column; gap: 10px; }
.risk-item { display: flex; align-items: center; gap: 12px; }
.risk-item__label { width: 130px; font-size: 0.85rem; color: var(--text-muted); }
.risk-item__bar {
  flex: 1; height: 6px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
}
.risk-item__fill {
  height: 100%; background: var(--gradient-brand);
  border-radius: 999px;
  width: 0;
  transition: width 1.4s var(--ease-out) 0.5s;
}
.risk-item__fill--warn { background: linear-gradient(90deg, #F59E0B, #EF4444); }
.risk-item__value { width: 40px; text-align: right; font-size: 0.85rem; font-weight: 600; }
.is-visible .risk-item__fill[data-fill] { width: var(--w); }

/* ============================================================
   For Investors (dark)
   ============================================================ */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.metric {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-lg);
}
.metric__value {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #8B91FF 0%, #D070FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.metric__label { color: var(--text-inverse-muted); font-size: 0.95rem; margin-top: 8px; }

.investor-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 60px;
}
.investor-point {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-inverse);
}
.investor-point h3 { color: white; font-size: 1.1rem; margin-bottom: 8px; }
.investor-point p { color: var(--text-inverse-muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .metrics, .investor-points { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-grid h2 { margin-bottom: 16px; }
.contact-grid p { color: var(--text-muted); margin-bottom: 24px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li svg { width: 22px; height: 22px; color: var(--brand-purple); flex-shrink: 0; margin-top: 2px; }
.contact-list strong { display: block; margin-bottom: 2px; font-size: 0.98rem; }
.contact-list span { color: var(--text-muted); font-size: 0.9rem; }

.form {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(85,92,255,0.12);
}
.field textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.field--row { flex-direction: row; gap: 12px; }
.field--row .field { flex: 1; }
.field--hp { position: absolute; left: -9999px; }
.form__btn { margin-top: 8px; }
.form__success {
  display: none;
  padding: 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(74,222,128,0.04));
  border: 1.5px solid rgba(74,222,128,0.3);
  border-radius: var(--radius-md);
  color: #16A34A;
}
.form__success.is-visible { display: block; animation: fadeInUp 0.5s var(--ease-out); }
.form__success svg { width: 48px; height: 48px; margin: 0 auto 12px; display: block; }
.form__success strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: #166534; }
.form.is-submitted .form-fields { display: none; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta { text-align: center; padding: 100px 0; position: relative; overflow: hidden; }
.final-cta__inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; }
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.final-cta p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 36px; }
.final-cta .store-badges { justify-content: center; }
.final-cta__duck {
  position: absolute;
  width: 80px; bottom: 10%; right: 10%;
  image-rendering: pixelated;
  animation: float-y 5s ease-in-out infinite;
}
.final-cta__sparkle {
  position: absolute;
  width: 24px; height: 24px;
  background: white; border-radius: 50%;
  filter: blur(8px);
  opacity: 0.6;
}
.final-cta__sparkle--1 { top: 20%; left: 12%; animation: sparkle 3s ease-in-out infinite; }
.final-cta__sparkle--2 { bottom: 30%; right: 18%; animation: sparkle 4s ease-in-out infinite -1s; }
.final-cta__sparkle--3 { top: 40%; right: 8%; animation: sparkle 3.5s ease-in-out infinite -2s; }
@keyframes sparkle { 0%,100% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 0.8; transform: scale(1.2); } }

@media (max-width: 700px) { .final-cta__duck { display: none; } }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-darker);
  color: var(--text-inverse-muted);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__logo-img { height: 48px; width: auto; image-rendering: pixelated; }
.footer__about p { font-size: 0.95rem; max-width: 320px; margin-bottom: 20px; }
.footer h4 { color: white; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 0.92rem; transition: color 0.2s; }
.footer ul a:hover { color: white; }
.footer__bottom {
  border-top: 1px solid var(--border-inverse);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer__bottom .version-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-inverse);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}
.footer__bottom .version-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 14px; }
}

/* ============================================================
   Sticky mobile download bar
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 90;
  background: var(--gradient-brand);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar__text { font-size: 0.92rem; font-weight: 600; }
.mobile-cta-bar__btn {
  background: white;
  color: var(--brand-blue);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
}
.mobile-cta-bar__close {
  background: rgba(255,255,255,0.2);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
@media (max-width: 700px) { .mobile-cta-bar { display: flex; } }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Coming Soon Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 15, 27, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(85, 92, 255, 0.12);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s var(--ease-spring);
}
.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--text); }
.modal__duck {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: block;
}
.modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal__text {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0 0 24px;
}
.modal__cta {
  display: inline-block;
  width: 100%;
}
