/* ════════════════════════════════════════════════════════════════════════
   landing.css — Phase 1 Ecosystem Landing Page (Rev 5 — Apple design language)
   ════════════════════════════════════════════════════════════════════════
   Redesigned per apple.com product-page principles:

   SPACING & RHYTHM
     - Strict 8px base unit scale: 8/16/24/32/48/64/96/128
     - No arbitrary values anywhere — every spacing is a multiple of 8
     - Hero gets the most space; smaller sections breathe less
     - Vertical rhythm scales with section importance

   TYPOGRAPHY HIERARCHY
     - 3 weights only: 400 (regular), 500 (medium), 600 (semibold)
     - One dominant headline per section, 5–8 words max
     - Headlines: 56px hero, 40px section, 24px subhead — tight tracking
     - Subtext: noticeably smaller, lighter weight, max-width 560px
     - Body: 17px regular, max-width 600px for readability

   ARRANGEMENT
     - Hero + feature intros: center-aligned
     - Body copy + lists: left-aligned
     - Strict grid alignment throughout
     - One concept, one visual, one short line per section

   TONE
     - Short, punchy, benefit-led phrases
     - No jargon, no over-explaining
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1. Page base ─────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  background: var(--system-background);
}

body {
  font-family: var(--font-text);
  background: var(--system-background);
  color: var(--label-primary);
  overflow-x: hidden;
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* Apple uses 400 as the base body weight. Headlines use 600. */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Perspective wrapper for push-forward entrance effect */
.page-content {
  perspective: 1400px;
  perspective-origin: 50% 30%;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%,
      rgba(0, 232, 138, 0.10) 0%,
      transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 110%,
      rgba(59, 130, 246, 0.08) 0%,
      transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 90%,
      rgba(18, 200, 176, 0.07) 0%,
      transparent 60%);
}

body::after {
  content: '';
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle 480px at 20% 30%, rgba(0, 232, 138, 0.14), transparent 70%),
    radial-gradient(circle 520px at 80% 20%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(circle 440px at 60% 80%, rgba(168, 85, 247, 0.10), transparent 70%),
    radial-gradient(circle 380px at 30% 70%, rgba(18, 200, 176, 0.10), transparent 70%);
  animation: bg-drift 28s var(--ease-spring-gentle) infinite alternate;
  animation-duration: calc(var(--duration-slow) * 12);
  will-change: transform;
}
@keyframes bg-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(3%, -2%, 0) scale(1.04); }
  66%  { transform: translate3d(-2%, 3%, 0) scale(0.98); }
  100% { transform: translate3d(2%, 1%, 0) scale(1.02); }
}

/* ── 2. Particle canvas ───────────────────────────────────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* ════════════════════════════════════════════════════════════════════════
   3. Top nav — minimal, glass-chrome pill
   ════════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 24px;
  border-radius: var(--radius-full);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--label-primary);
  padding-right: 16px;
  transition: opacity var(--duration-fast) var(--ease-out-quick);
}
.nav-brand:hover { opacity: 0.7; }
.nav-brand img { width: 24px; height: 24px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--label-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-quick),
              background var(--duration-fast) var(--ease-out-quick);
}
.nav-links a:hover {
  color: var(--label-primary);
  background: var(--glass-brand-tint-hover);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--system-background);
  background: var(--accent);
  transition: transform var(--duration-fast) var(--ease-spring-snappy),
              opacity var(--duration-fast) var(--ease-out-quick);
}
.nav-cta:hover { opacity: 0.88; }
.nav-cta:active { transform: scale(0.96); }

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--label-secondary);
  transition: background var(--duration-fast) var(--ease-out-quick),
              color var(--duration-fast) var(--ease-out-quick);
}
.theme-toggle:hover {
  background: var(--glass-brand-tint-hover);
  color: var(--label-primary);
}
.theme-toggle i { font-size: 14px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: inline-block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Tablet: collapse the link list */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { padding: 8px 8px 8px 16px; }
}

/* ════════════════════════════════════════════════════════════════════════
   4. Hero — center-aligned, dominant headline, generous space
   Apple hero pattern: eyebrow → headline → short sub → CTA → visual
   Pushed down 1 inch (~96px) per user direction.
   ════════════════════════════════════════════════════════════════════════ */
.hero.container {
  position: relative;
  /* No min-height — let the padding + content define the height. This
     avoids the flexbox centering that was overriding our padding-top. */
  /* 1 inch ≈ 96px. Nav offset (16px) + nav height (44px) = 60px.
     We want hero content to start ~96px below the nav, so padding-top
     = 60 + 96 = 156px. Rounded to the nearest 8px = 160px.
     NOTE: .hero.container has higher specificity than .container alone,
     so this padding-top wins over .container's padding: 0 24px. */
  padding-top: calc(160px + env(safe-area-inset-top, 0px));
  padding-bottom: 96px;
  padding-left: 48px;
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0;
}
@media (max-width: 960px) {
  .hero.container {
    padding-top: calc(128px + env(safe-area-inset-top, 0px));
    padding-bottom: 64px;
  }
}

.hero-eyebrow {
  margin-bottom: 16px;
}

/* Value-speaking lead-in — small, gradient, sits above headline */
.hero-lead {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 24px;
  max-width: 560px;
  background: var(--clid-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: grad-shimmer 6s linear infinite;
}

/* THE dominant headline — large, bold, short, tight tracking */
.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0;
  max-width: 800px;
}
.hero-title .grad {
  background: var(--clid-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: grad-shimmer 6s linear infinite;
}
@keyframes grad-shimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@media (max-width: 960px) {
  .hero-title { font-size: 48px; }
}
@media (max-width: 560px) {
  .hero-title { font-size: 36px; }
  .hero-lead { font-size: 18px; }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
}

/* Primary CTA — Apple-style: filled accent, simple, confident */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--system-background);
  background: var(--clid-grad);
  transition: transform var(--duration-fast) var(--ease-spring-snappy),
              opacity var(--duration-fast) var(--ease-out-quick);
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:active {
  transform: scale(0.96);
  transition-duration: var(--duration-fast);
}
.btn-primary i { font-size: 14px; }

/* Ghost button — Apple's secondary CTA: plain link with arrow */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--accent-bright);
  background: transparent;
  border: none;
  transition: transform var(--duration-fast) var(--ease-spring-snappy);
}
.btn-ghost:hover { transform: translateX(4px); }
.btn-ghost:active { transform: scale(0.96); }
.btn-ghost::after {
  content: '\f054'; /* fa-chevron-right */
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
  font-size: 12px;
  margin-left: 2px;
}

/* Hero stats — minimal, inline, centered */
.hero-stats {
  margin-top: 64px;
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--clid-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--label-secondary);
  letter-spacing: 0;
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════════
   5. Flywheel 3D scene — moved below hero text, full-bleed focal point
   ════════════════════════════════════════════════════════════════════════ */
.flywheel-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 520px;
  margin: 64px auto 0;
  perspective: 1400px;
  perspective-origin: 50% 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity var(--duration-base) var(--ease-out-quick);
  will-change: opacity;
}
@media (max-width: 960px) {
  .flywheel-stage { height: 400px; margin-top: 48px; }
}

.flywheel-3d {
  position: relative;
  width: 480px;
  height: 480px;
  transform-style: preserve-3d;
  z-index: 2;
}
@media (max-width: 960px) {
  .flywheel-3d { width: 360px; height: 360px; }
}

.flywheel-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

.flywheel-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flywheel-billboard {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  transform-style: preserve-3d;
  will-change: transform;
}
@media (max-width: 960px) {
  .flywheel-billboard { width: 88px; height: 88px; margin: -44px 0 0 -44px; }
}

.flywheel-card {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: rgba(var(--glass-tint), 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 var(--glass-highlight) inset,
    0 16px 40px -12px var(--glass-shadow),
    0 0 0 1px var(--glass-brand-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--duration-base) var(--ease-spring-standard),
              transform var(--duration-base) var(--ease-spring-standard);
}

.flywheel-node:hover .flywheel-card {
  box-shadow:
    0 1px 0 var(--glass-highlight) inset,
    0 24px 56px -12px rgba(0, 217, 126, 0.4),
    0 0 0 1px var(--glass-brand-tint-hover);
  transform: scale(1.06);
}

.flywheel-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--glass-brand-tint);
}
.flywheel-icon i { font-size: 18px; }
.flywheel-icon img { width: 28px; height: 28px; }
@media (max-width: 960px) {
  .flywheel-icon { width: 32px; height: 32px; }
  .flywheel-icon i { font-size: 14px; }
  .flywheel-icon img { width: 22px; height: 22px; }
}

.flywheel-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--label-primary);
  white-space: nowrap;
}
@media (max-width: 960px) {
  .flywheel-label { font-size: 11px; }
}

/* Per-division accent colors */
.flywheel-node[data-hue="green"]   .flywheel-icon { background: rgba(48, 209, 88, 0.18);  color: #30D158; }
.flywheel-node[data-hue="cyan"]    .flywheel-icon { background: rgba(64, 200, 224, 0.18); color: #40C8E0; }
.flywheel-node[data-hue="blue"]    .flywheel-icon { background: rgba(10, 132, 255, 0.18); color: #0A84FF; }
.flywheel-node[data-hue="pink"]    .flywheel-icon { background: rgba(255, 55, 95, 0.18);  color: #FF375F; }
.flywheel-node[data-hue="purple"]  .flywheel-icon { background: rgba(191, 90, 242, 0.18); color: #BF5AF2; }
.flywheel-node[data-hue="amber"]   .flywheel-icon { background: rgba(255, 159, 10, 0.18); color: #FF9F0A; }

/* Center core — Clid mark */
.flywheel-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: var(--radius-xl);
  background: rgba(var(--glass-tint), 0.78);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 var(--glass-highlight) inset,
    0 0 48px rgba(0, 217, 126, 0.35),
    0 0 0 1px var(--glass-brand-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: core-breathe 4s var(--ease-spring-gentle) infinite alternate;
}
@keyframes core-breathe {
  from {
    box-shadow:
      0 1px 0 var(--glass-highlight) inset,
      0 0 32px rgba(0, 217, 126, 0.25),
      0 0 0 1px var(--glass-brand-tint);
  }
  to {
    box-shadow:
      0 1px 0 var(--glass-highlight) inset,
      0 0 64px rgba(0, 217, 126, 0.55),
      0 0 0 1px var(--glass-brand-tint-hover);
  }
}
.flywheel-core img { width: 56px; height: 56px; }

/* Caption strip */
.flywheel-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(var(--glass-tint), 0.45);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px var(--glass-shadow);
  font-size: 14px;
  font-weight: 400;
  color: var(--label-secondary);
  white-space: nowrap;
  z-index: 4;
}
.flywheel-caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
}

/* ════════════════════════════════════════════════════════════════════════
   6. Section pattern — Apple-style feature sections
   Center-aligned intro (eyebrow + headline + subtext), then content.
   ════════════════════════════════════════════════════════════════════════ */
.section.container {
  padding: 128px 48px;
  position: relative;
}
@media (max-width: 960px) {
  .section.container { padding: 80px 32px; }
}
@media (max-width: 560px) {
  .section.container { padding: 80px 20px; }
}

/* Section intro — centered, narrow, one dominant headline */
.section-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
@media (max-width: 960px) {
  .section-intro { margin-bottom: 48px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-bright);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--glass-brand-tint);
  border: 1px solid var(--separator);
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 960px) {
  .section-title { font-size: 36px; }
}
@media (max-width: 560px) {
  .section-title { font-size: 28px; }
}

.section-subtitle {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--label-secondary);
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .section-subtitle { font-size: 17px; }
}

/* ════════════════════════════════════════════════════════════════════════
   7. Division section — alternating left/right, one concept per section
   Apple pattern: short headline → one-line lede → bullet list → visual
   ════════════════════════════════════════════════════════════════════════ */
.division {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.division.flip { direction: rtl; }
.division.flip > * { direction: ltr; }
@media (max-width: 960px) {
  .division, .division.flip {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }
}

.division-copy .eyebrow { margin-bottom: 16px; }

/* Division headline — 5–8 words, bold, tight */
.division-copy h2 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 500px;
}
@media (max-width: 960px) {
  .division-copy h2 { font-size: 32px; }
}

/* Lede — one short line, medium weight */
.division-copy .lede {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--label-secondary);
  margin-bottom: 32px;
  max-width: 500px;
}

/* Bullet list — left-aligned, single idea per bullet */
.division-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 16px;
  max-width: 500px;
}
.division-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--label-primary);
}
.division-bullets li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--clid-grad);
  color: var(--system-background);
  font-size: 10px;
}

/* Division CTA — Apple-style plain link with arrow */
.division-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent-bright);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring-snappy);
}
.division-cta:hover { transform: translateX(4px); }
.division-cta::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands';
  font-weight: 900;
  font-size: 12px;
  margin-left: 2px;
}

/* Division visual — the focal point */
.division-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(var(--glass-tint), 0.62);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 var(--glass-highlight) inset,
    0 32px 64px -16px var(--glass-shadow);
  overflow: hidden;
}
.division-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 30%);
  pointer-events: none;
}

/* Mini-mock UI inside each division card */
.mock {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-bar {
  height: 28px;
  border-radius: 8px;
  background: var(--glass-brand-tint);
  border: 1px solid var(--separator);
}
.mock-bar.short { width: 60%; }
.mock-bar.med { width: 80%; }
.mock-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mock-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--glass-brand-tint);
  border: 1px solid var(--separator);
  font-size: 12px;
  color: var(--label-secondary);
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.mock-cell {
  height: 36px;
  border-radius: 8px;
  background: var(--glass-brand-tint);
  border: 1px solid var(--separator);
}
.mock-cell.bright {
  background: var(--clid-grad);
  border: none;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--glass-brand-tint);
  border: 1px solid var(--separator);
}
.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clid-grad);
  flex: 0 0 auto;
}
.mock-line {
  flex: 1;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--separator);
}
.mock-line.short { width: 40%; flex: 0 0 auto; }

/* ════════════════════════════════════════════════════════════════════════
   8. Flywheel explainer — 5-step strip
   ════════════════════════════════════════════════════════════════════════ */
.flywheel-explainer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .flywheel-explainer { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .flywheel-explainer { grid-template-columns: 1fr; }
}

.explainer-step {
  position: relative;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: rgba(var(--glass-tint), 0.45);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px var(--glass-shadow);
  counter-increment: explainer;
}
.explainer-step::before {
  content: counter(explainer);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--clid-grad);
  color: var(--system-background);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}
.flywheel-explainer { counter-reset: explainer; }

.explainer-step h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.explainer-step p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--label-secondary);
}

/* ════════════════════════════════════════════════════════════════════════
   9. Final CTA band — centered, bold, confident
   ════════════════════════════════════════════════════════════════════════ */
.cta-band {
  position: relative;
  padding: 96px 48px;
  border-radius: var(--radius-xl);
  background: rgba(var(--glass-tint), 0.78);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 1px 0 var(--glass-highlight) inset,
    0 48px 96px -24px var(--glass-shadow);
  text-align: center;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .cta-band { padding: 64px 24px; }
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0, 232, 138, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
@media (max-width: 560px) {
  .cta-band h2 { font-size: 32px; }
}
.cta-band p {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--label-secondary);
  max-width: 480px;
  margin: 0 auto 48px;
}

/* ════════════════════════════════════════════════════════════════════════
   10. Footer
   ════════════════════════════════════════════════════════════════════════ */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--separator);
  margin-top: 96px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.footer-brand img { width: 24px; height: 24px; }
.footer-meta {
  font-size: 14px;
  font-weight: 400;
  color: var(--label-secondary);
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 400;
}
.footer-links a {
  color: var(--label-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-quick);
}
.footer-links a:hover { color: var(--label-primary); }

/* ── Layout primitives ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 960px) {
  .container { padding: 0 32px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
}

/* ── Selection ────────────────────────────────────────────────────────────── */
::selection {
  background: rgba(0, 217, 126, 0.3);
  color: var(--label-primary);
}

/* ── Spring-in entrance utilities ─────────────────────────────────────────── */
.spring-in,
.spring-in-left,
.spring-in-right {
  opacity: 0;
  transform: translateY(24px) translateZ(-48px) scale(0.98);
  transform-style: preserve-3d;
  transition: opacity var(--duration-slow) var(--ease-spring-standard),
              transform var(--duration-slow) var(--ease-spring-standard);
  transition-delay: var(--spring-delay, 0ms);
  will-change: opacity, transform;
}
.spring-in-left  { transform: translateX(-32px) translateZ(-48px) scale(0.98); }
.spring-in-right { transform: translateX(32px) translateZ(-48px) scale(0.98); }

.spring-in.is-visible,
.spring-in-left.is-visible,
.spring-in-right.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) translateZ(0) scale(1);
}

.press-scale {
  transition: transform var(--duration-fast) var(--ease-spring-snappy);
}
.press-scale:active {
  transform: scale(0.96);
}

/* ── Global link reset ────────────────────────────────────────────────────── */
a {
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════════
   11. Newsletter form — Apple-style, minimal
   ════════════════════════════════════════════════════════════════════════ */
.newsletter {
  max-width: 440px;
  margin: 48px auto 0;
  text-align: center;
}
.newsletter-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--label-primary);
  margin-bottom: 4px;
}
.newsletter-sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--label-secondary);
  margin-bottom: 16px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.newsletter-input {
  flex: 1;
  max-width: 280px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--separator);
  background: var(--fill-quaternary);
  color: var(--label-primary);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  transition: border-color var(--duration-fast) var(--ease-out-quick),
              box-shadow var(--duration-fast) var(--ease-out-quick);
}
.newsletter-input::placeholder { color: var(--label-tertiary); }
.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--system-background);
  background: var(--accent);
  transition: transform var(--duration-fast) var(--ease-spring-snappy),
              opacity var(--duration-fast) var(--ease-out-quick);
}
.newsletter-btn:hover { opacity: 0.88; }
.newsletter-btn:active { transform: scale(0.96); }
.newsletter-success {
  font-size: 13px;
  font-weight: 400;
  color: var(--accent-bright);
  margin-top: 12px;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-quick);
}
.newsletter-success.show { opacity: 1; }

/* ════════════════════════════════════════════════════════════════════════
   12. FAQ — Apple-style accordion
   ════════════════════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  border-radius: var(--radius-lg);
  background: rgba(var(--glass-tint), 0.45);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px var(--glass-shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--label-primary);
  transition: background var(--duration-fast) var(--ease-out-quick);
}
.faq-question:hover { background: var(--glass-brand-tint-hover); }
.faq-question i {
  flex-shrink: 0;
  color: var(--label-secondary);
  transition: transform var(--duration-base) var(--ease-spring-standard);
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-spring-standard);
}
.faq-answer-inner {
  padding: 0 24px 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--label-secondary);
}
.faq-item.open .faq-answer { max-height: 320px; }

/* ════════════════════════════════════════════════════════════════════════
   13. Footer additions — social + legal
   ════════════════════════════════════════════════════════════════════════ */
.footer-social {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--fill-tertiary);
  border: 1px solid var(--separator);
  color: var(--label-secondary);
  transition: transform var(--duration-fast) var(--ease-spring-snappy),
              background var(--duration-fast) var(--ease-out-quick),
              color var(--duration-fast) var(--ease-out-quick);
}
.footer-social a:hover {
  transform: translateY(-2px);
  background: var(--glass-brand-tint-hover);
  color: var(--accent-bright);
}
.footer-social a i { font-size: 16px; }
.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.footer-legal a {
  font-size: 13px;
  font-weight: 400;
  color: var(--label-tertiary);
  transition: color var(--duration-fast) var(--ease-out-quick);
}
.footer-legal a:hover { color: var(--label-secondary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════════
   14. Feedback button + modal
   ════════════════════════════════════════════════════════════════════════ */
.feedback-btn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  z-index: var(--z-nav);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--label-primary);
  background: rgba(var(--glass-tint), 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 32px var(--glass-shadow);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring-snappy),
              box-shadow var(--duration-fast) var(--ease-spring-snappy);
}
.feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px var(--glass-shadow);
}
.feedback-btn:active { transform: scale(0.96); }
.feedback-btn i { font-size: 14px; color: var(--accent-bright); }

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.feedback-modal.show { display: flex; }
.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.feedback-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 32px;
  border-radius: var(--radius-xl);
  background: rgba(var(--glass-tint), 0.86);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 48px 96px var(--glass-shadow);
}
.feedback-panel h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.feedback-panel p {
  font-size: 14px;
  font-weight: 400;
  color: var(--label-secondary);
  margin-bottom: 16px;
}
.feedback-panel textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--separator);
  background: var(--fill-quaternary);
  color: var(--label-primary);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  resize: vertical;
  transition: border-color var(--duration-fast) var(--ease-out-quick);
}
.feedback-panel textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.feedback-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.feedback-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--label-secondary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out-quick);
}
.feedback-close:hover { background: var(--fill-tertiary); }

/* ════════════════════════════════════════════════════════════════════════
   15. Friday mascot chat
   ════════════════════════════════════════════════════════════════════════ */
.mascot-fab {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: var(--z-nav);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring-snappy);
}
.mascot-fab:hover { transform: scale(1.08); }
.mascot-fab:active { transform: scale(0.95); }
.mascot-fab img { width: 100%; height: 100%; }
.mascot-fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.3);
  animation: mascot-pulse 2.5s var(--ease-out-quick) infinite;
  pointer-events: none;
}
@keyframes mascot-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mascot-chat {
  position: fixed;
  bottom: calc(24px + 80px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: var(--z-nav);
  width: min(380px, calc(100vw - 32px));
  max-height: 520px;
  display: none;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: rgba(var(--glass-tint), 0.86);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 48px 96px var(--glass-shadow);
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform var(--duration-base) var(--ease-spring-standard),
              opacity var(--duration-base) var(--ease-out-quick);
}
.mascot-chat.show {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}
.mascot-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--separator);
  background: var(--glass-brand-tint);
}
.mascot-chat-head img { width: 40px; height: 40px; }
.mascot-chat-head-info { flex: 1; }
.mascot-chat-head-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--label-primary);
}
.mascot-chat-head-status {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mascot-chat-head-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
}
.mascot-chat-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--label-secondary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out-quick);
}
.mascot-chat-close:hover { background: var(--fill-tertiary); }

.mascot-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  max-height: 340px;
}
.mascot-chat-messages::-webkit-scrollbar { width: 4px; }
.mascot-chat-messages::-webkit-scrollbar-thumb {
  background: var(--separator);
  border-radius: var(--radius-full);
}

.mascot-msg {
  max-width: 85%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  word-wrap: break-word;
}
.mascot-msg.friday {
  align-self: flex-start;
  background: var(--fill-tertiary);
  color: var(--label-primary);
  border-bottom-left-radius: 4px;
}
.mascot-msg.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--system-background);
  border-bottom-right-radius: 4px;
}
.mascot-msg.thinking {
  color: var(--label-tertiary);
  font-style: italic;
}

.mascot-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--separator);
  background: var(--glass-brand-tint);
}
.mascot-chat-input {
  flex: 1;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--separator);
  background: var(--fill-quaternary);
  color: var(--label-primary);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 400;
  transition: border-color var(--duration-fast) var(--ease-out-quick);
}
.mascot-chat-input:focus {
  outline: none;
  border-color: var(--accent);
}
.mascot-chat-send {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--system-background);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring-snappy);
}
.mascot-chat-send:active { transform: scale(0.92); }

/* ════════════════════════════════════════════════════════════════════════
   16. Language switcher
   ════════════════════════════════════════════════════════════════════════ */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--fill-tertiary);
  border: 1px solid var(--separator);
  color: var(--label-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--duration-fast) var(--ease-out-quick),
              color var(--duration-fast) var(--ease-out-quick);
}
.lang-btn:hover {
  background: var(--glass-brand-tint-hover);
  color: var(--label-primary);
}
.lang-btn i { font-size: 12px; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: rgba(var(--glass-tint), 0.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 48px var(--glass-shadow);
  display: none;
  z-index: var(--z-nav);
}
.lang-menu.show { display: block; }
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  color: var(--label-primary);
  transition: background var(--duration-fast) var(--ease-out-quick);
}
.lang-option:hover { background: var(--fill-tertiary); }
.lang-option.active { background: var(--glass-brand-tint-hover); color: var(--accent-bright); }
.lang-option-flag { font-size: 18px; }

.nav-lang {
  display: flex;
  align-items: center;
}
@media (max-width: 980px) {
  .nav-lang { display: none; }
}

.footer-lang {
  margin-top: 16px;
}
@media (min-width: 981px) {
  .footer-lang { display: none; }
}
