@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito_extrabold.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090d;
  --bg-elev: #10121a;
  --surface: #151822;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --well: #1b1f2c;
  --ink: #f5f3ee;
  --dim: #a5aab9;
  --faint: #707689;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --amber: #e9bc6b;
  --amber-soft: rgba(233, 188, 107, 0.14);
  --mint: #7cd8be;
  --mint-soft: rgba(124, 216, 190, 0.12);
  --sky: #9db4ff;
  --sky-soft: rgba(157, 180, 255, 0.12);
  --btn-ink: #110f0b;
  --shadow-card: 0 20px 50px -28px rgba(0, 0, 0, 0.78);
  --shadow-phone: 0 32px 72px -24px rgba(0, 0, 0, 0.86);
  --radius: 24px;
  --radius-sm: 15px;
  --font: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-soft: rgba(18, 20, 28, 0.035);
  --well: #ece8df;
  --ink: #14161e;
  --dim: #545969;
  --faint: #7d8394;
  --line: rgba(18, 20, 28, 0.1);
  --line-strong: rgba(18, 20, 28, 0.2);
  --amber: #a87118;
  --amber-soft: rgba(168, 113, 24, 0.11);
  --mint: #157d62;
  --mint-soft: rgba(21, 125, 98, 0.1);
  --sky: #3d56b8;
  --sky-soft: rgba(61, 86, 184, 0.1);
  --btn-ink: #ffffff;
  --shadow-card: 0 1px 2px rgba(18, 20, 28, 0.04), 0 16px 38px -22px rgba(18, 20, 28, 0.14);
  --shadow-phone: 0 24px 60px -24px rgba(18, 20, 28, 0.28);
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 17px/1.66 var(--font);
  font-family: var(--font);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@keyframes aura-backdrop {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.92; }
  50%  { transform: translate3d(-2%, 18px, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(2%, -8px, 0) scale(1.02); opacity: 0.94; }
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 760px;
  background:
    radial-gradient(620px 380px at 78% 18%, rgba(233, 188, 107, 0.14), transparent 72%),
    radial-gradient(540px 360px at 18% 12%, rgba(124, 216, 190, 0.09), transparent 72%);
  pointer-events: none;
  z-index: -1;
  animation: aura-backdrop 18s ease-in-out infinite alternate;
}

:root[data-theme="light"] body::before {
  background:
    radial-gradient(620px 380px at 78% 14%, rgba(233, 188, 107, 0.18), transparent 72%),
    radial-gradient(540px 360px at 18% 10%, rgba(124, 216, 190, 0.12), transparent 72%);
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

code, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
}

.num {
  font-variant-numeric: tabular-nums;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 90;
  background: var(--amber);
  color: var(--btn-ink);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.wrap {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.top-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="light"] .top-shell {
  background: rgba(246, 244, 239, 0.82);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.brand-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--dim);
}

.nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
}

.ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pill-ctrl:hover {
  border-color: var(--line-strong);
  background: var(--well);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
  padding: 58px 0 36px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 38px 0 24px;
  }
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 4.7vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.lede {
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--amber);
  color: var(--btn-ink);
  box-shadow: 0 12px 30px -14px rgba(233, 188, 107, 0.72);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  background: var(--well);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--faint);
}

/* Live Instrument Console */
.booth {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.booth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.booth-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
}

.booth-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.booth.is-playing .booth-led {
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.booth-seed {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.booth-seed:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.canvas-stage {
  position: relative;
  height: 228px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 52%, rgba(233, 188, 107, 0.14), rgba(10, 11, 16, 0.94) 74%);
  border: 1px solid var(--line);
  overflow: hidden;
}

:root[data-theme="light"] .canvas-stage {
  background: radial-gradient(circle at 50% 52%, rgba(233, 188, 107, 0.2), #151720 78%);
}

#aura-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.play-orb {
  pointer-events: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(245, 243, 238, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8f6f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.play-orb:hover:not(:disabled) {
  transform: scale(1.06);
  background: rgba(233, 188, 107, 0.28);
  border-color: rgba(233, 188, 107, 0.65);
}

.play-orb:disabled {
  opacity: 0.45;
  cursor: wait;
}

.booth.is-playing .play-orb {
  background: rgba(233, 188, 107, 0.24);
  border-color: rgba(233, 188, 107, 0.72);
}

.stage-status {
  font-size: 13px;
  font-weight: 700;
  color: rgba(245, 243, 238, 0.86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.mode-pill {
  flex: 1 1 auto;
  min-width: 78px;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--dim);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.mode-pill:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.mode-pill[aria-pressed="true"] {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}

.tele-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.tele-item span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
}

.tele-item b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.context-drawer {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--surface-soft);
}

.context-drawer summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dim);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.context-drawer summary::-webkit-details-marker {
  display: none;
}

.context-note {
  margin: 10px 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--faint);
}

.slider-grid {
  display: grid;
  gap: 10px;
}

.slider-row {
  display: grid;
  grid-template-columns: 118px 1fr 68px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.slider-row label {
  color: var(--dim);
  font-weight: 600;
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--amber);
}

.slider-row .val {
  text-align: right;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.booth-err {
  margin: 10px 0 0;
  font-size: 13px;
  color: #ff9c7a;
}

/* Metrics Ribbon */
.ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 28px;
}

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

.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}

.stat-num {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-num em {
  font-style: normal;
  color: var(--amber);
}

.stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--dim);
}

/* Sections */
.sec {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  max-width: 72ch;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.sec h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.sec-intro {
  margin: 0;
  font-size: 17.5px;
  color: var(--dim);
  line-height: 1.7;
}

/* Essay & Comparison */
.essay-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 880px) {
  .essay-grid {
    grid-template-columns: 1fr;
  }
}

.prose p {
  margin: 0 0 16px;
  color: var(--dim);
}

.prose p strong {
  color: var(--ink);
  font-weight: 700;
}

.compare-stack {
  display: grid;
  gap: 14px;
}

.compare-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
}

.compare-card.is-aura {
  border-color: rgba(233, 188, 107, 0.38);
  background: linear-gradient(155deg, rgba(233, 188, 107, 0.08), var(--bg-elev) 65%);
}

.compare-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.compare-tag.loop {
  background: rgba(255, 138, 112, 0.14);
  color: #ff9d82;
}

.compare-tag.aura {
  background: var(--mint-soft);
  color: var(--mint);
}

.compare-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
}

.compare-card p {
  margin: 0;
  font-size: 15px;
  color: var(--dim);
}

.wave-viz {
  margin-top: 14px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 4px;
  overflow: hidden;
}

.wave-viz i {
  display: block;
  flex: 1;
  height: 36%;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.6;
}

/* Periodic 6-bar pattern repeated across 18 bars to show dead MP3 loop */
.wave-viz.is-loop i:nth-child(6n+1) { height: 26%; }
.wave-viz.is-loop i:nth-child(6n+2) { height: 64%; }
.wave-viz.is-loop i:nth-child(6n+3) { height: 88%; }
.wave-viz.is-loop i:nth-child(6n+4) { height: 48%; }
.wave-viz.is-loop i:nth-child(6n+5) { height: 74%; }
.wave-viz.is-loop i:nth-child(6n+6) { height: 32%; }

/* Asymmetric evolving pattern across 18 bars */
.wave-viz.is-free i:nth-child(1) { height: 34%; }
.wave-viz.is-free i:nth-child(2) { height: 58%; }
.wave-viz.is-free i:nth-child(3) { height: 42%; }
.wave-viz.is-free i:nth-child(4) { height: 76%; }
.wave-viz.is-free i:nth-child(5) { height: 61%; }
.wave-viz.is-free i:nth-child(6) { height: 28%; }
.wave-viz.is-free i:nth-child(7) { height: 49%; }
.wave-viz.is-free i:nth-child(8) { height: 86%; }
.wave-viz.is-free i:nth-child(9) { height: 54%; }
.wave-viz.is-free i:nth-child(10) { height: 38%; }
.wave-viz.is-free i:nth-child(11) { height: 69%; }
.wave-viz.is-free i:nth-child(12) { height: 81%; }
.wave-viz.is-free i:nth-child(13) { height: 46%; }
.wave-viz.is-free i:nth-child(14) { height: 63%; }
.wave-viz.is-free i:nth-child(15) { height: 31%; }
.wave-viz.is-free i:nth-child(16) { height: 72%; }
.wave-viz.is-free i:nth-child(17) { height: 52%; }
.wave-viz.is-free i:nth-child(18) { height: 39%; }

.compare-card.is-aura .wave-viz {
  color: var(--amber);
}

.compare-card:not(.is-aura) .wave-viz {
  color: #ff9d82;
}

/* 4 Modes */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 780px) {
  .modes-grid {
    grid-template-columns: 1fr;
  }
}

.mode-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.mode-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mode-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.mode-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-soft);
  padding: 4px 11px;
  border-radius: 999px;
}

.mode-card p {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 15.5px;
}

.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--faint);
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.mode-listen {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.mode-listen:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.craft-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 820px) {
  .craft-strip {
    grid-template-columns: 1fr;
  }
}

.craft-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}

.craft-item h4 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 800;
}

.craft-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--dim);
}

/* App Screens Showcase */
.tour-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 880px) {
  .tour-layout {
    grid-template-columns: 1fr;
  }
}

.tour-tabs {
  display: grid;
  gap: 10px;
}

.tour-btn {
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.tour-btn:hover {
  border-color: var(--line-strong);
}

.tour-btn[aria-selected="true"] {
  border-color: var(--amber);
  background: linear-gradient(145deg, rgba(233, 188, 107, 0.11), var(--bg-elev) 75%);
}

.tour-btn strong {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.tour-btn span {
  display: block;
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--dim);
}

.phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.phone-bezel {
  width: min(330px, 100%);
  padding: 11px;
  border-radius: 40px;
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-phone);
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #0a0b10;
}

.phone-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1298;
  object-fit: cover;
}

.phone-cap {
  font-size: 13px;
  color: var(--faint);
  text-align: center;
}

/* Under the hood / Honesty */
.hood-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 820px) {
  .hood-grid {
    grid-template-columns: 1fr;
  }
}

.hood-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
}

.hood-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hood-kicker.ok {
  background: var(--mint-soft);
  color: var(--mint);
}

.hood-kicker.null {
  background: var(--sky-soft);
  color: var(--sky);
}

.hood-kicker.rt {
  background: var(--amber-soft);
  color: var(--amber);
}

.hood-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.hood-card p {
  margin: 0;
  color: var(--dim);
  font-size: 15.5px;
}

.hood-data {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* Plans & FAQ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 760px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
}

.plan-card.pro {
  border-color: rgba(233, 188, 107, 0.42);
}

.plan-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--dim);
  margin-bottom: 12px;
}

.plan-card.pro .plan-pill {
  background: var(--amber-soft);
  color: var(--amber);
}

.plan-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
}

.plan-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--dim);
  font-size: 15.5px;
}

.plan-card li {
  margin: 7px 0;
}

.wellness-note {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 16px;
  border-left: 3px solid var(--amber);
  background: var(--surface-soft);
  font-size: 14.5px;
  color: var(--dim);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--amber);
  font-size: 20px;
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 15.5px;
}

/* Download Banner & Footer */
.download-box {
  background: linear-gradient(145deg, rgba(233, 188, 107, 0.14), var(--bg-elev) 62%);
  border: 1px solid rgba(233, 188, 107, 0.34);
  border-radius: 28px;
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-box h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
}

.download-box p {
  margin: 0;
  color: var(--dim);
  max-width: 52ch;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer {
  padding: 36px 0 54px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Legal subpages */
.legal-main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.legal-main h1 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
}

.legal-main h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.legal-main p, .legal-main li {
  color: var(--dim);
  font-size: 16px;
}

.legal-tldr {
  background: var(--bg-elev);
  border: 1px solid rgba(233, 188, 107, 0.35);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .tele-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .slider-row {
    grid-template-columns: 100px 1fr 56px;
  }
  .download-box {
    padding: 26px 22px;
  }
}

/* =========================================================
   RICH MOTION, SCIENCE VISUALIZERS & MICRO-INTERACTIONS
   ========================================================= */

h1, h2, h3, h4, button, input, summary {
  font-family: var(--font);
}

@keyframes rise-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes beacon-ring {
  0%   { transform: scale(1); opacity: 0.72; }
  75%  { transform: scale(2.7); opacity: 0; }
  100% { transform: scale(2.7); opacity: 0; }
}

@keyframes title-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes orb-halo {
  0%   { transform: scale(0.96); opacity: 0.65; }
  70%  { transform: scale(1.48); opacity: 0; }
  100% { transform: scale(1.48); opacity: 0; }
}

@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes loop-seam {
  0%   { left: 2%; opacity: 0.15; }
  12%  { opacity: 0.9; }
  88%  { opacity: 0.9; }
  94%  { left: 97%; opacity: 1; background: rgba(255, 118, 92, 0.98); box-shadow: 0 0 18px rgba(255, 118, 92, 0.95); }
  100% { left: 2%; opacity: 0.15; }
}

@keyframes bar-bounce-a {
  0%, 100% { transform: scaleY(0.52); }
  50%      { transform: scaleY(1); }
}

@keyframes bar-bounce-b {
  0%, 100% { transform: scaleY(0.88); }
  45%      { transform: scaleY(0.42); }
  75%      { transform: scaleY(0.96); }
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-7px); }
}

@keyframes rim-glow {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50%      { opacity: 0.85; transform: scale(1.03); }
}

/* Status chip beacon ring */
.status-dot {
  position: relative;
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: beacon-ring 2.6s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}

/* Shimmering headline highlight */
.hero h1 em {
  background: linear-gradient(120deg, var(--amber) 0%, #f8df9c 34%, var(--mint) 68%, var(--amber) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shimmer 11s ease infinite;
}

:root[data-theme="light"] .hero h1 em {
  background: linear-gradient(120deg, #9d630b 0%, #c48015 35%, #12775d 70%, #9d630b 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero initial staggered entrance */
.hero > div:first-child > * {
  animation: rise-fade 0.72s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero > div:first-child > :nth-child(1) { animation-delay: 0.04s; }
.hero > div:first-child > :nth-child(2) { animation-delay: 0.12s; }
.hero > div:first-child > :nth-child(3) { animation-delay: 0.2s; }
.hero > div:first-child > :nth-child(4) { animation-delay: 0.28s; }
.hero > div:first-child > :nth-child(5) { animation-delay: 0.34s; }
.booth {
  position: relative;
  animation: rise-fade 0.82s cubic-bezier(0.16, 1, 0.3, 1) 0.14s backwards;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.booth.is-playing {
  border-color: rgba(233, 188, 107, 0.44);
  box-shadow: 0 28px 64px -26px rgba(233, 188, 107, 0.26), var(--shadow-card);
}

/* Play orb expanding harmonic halos */
.play-orb {
  position: relative;
}
.play-orb::before,
.play-orb::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(233, 188, 107, 0.55);
  opacity: 0;
  pointer-events: none;
}
.booth.is-playing .play-orb::before {
  animation: orb-halo 2.4s cubic-bezier(0.12, 0.65, 0.25, 1) infinite;
}
.booth.is-playing .play-orb::after {
  inset: -14px;
  border-style: dashed;
  border-color: rgba(124, 216, 190, 0.42);
  opacity: 0.75;
  animation: orb-spin 16s linear infinite;
}

/* Animated comparison wave bars */
.wave-viz {
  position: relative;
}
.wave-viz i {
  transform-origin: center center;
}
.wave-viz.is-loop::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: rgba(255, 140, 110, 0.78);
  box-shadow: 0 0 12px rgba(255, 120, 90, 0.75);
  animation: loop-seam 3.6s linear infinite;
}
.wave-viz.is-free i:nth-child(2n) {
  animation: bar-bounce-a 3.1s ease-in-out infinite;
}
.wave-viz.is-free i:nth-child(3n) {
  animation: bar-bounce-b 4.3s ease-in-out infinite;
}
.wave-viz.is-free i:nth-child(5n) {
  animation: bar-bounce-a 5.7s ease-in-out infinite reverse;
}
.wave-viz.is-free i:nth-child(7n) {
  animation: bar-bounce-b 2.9s ease-in-out infinite 0.5s;
}

/* Interactive Lorenz Chaos Visualizer Box */
.chaos-box {
  margin-top: 26px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.chaos-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.chaos-head-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.chaos-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
}
.leg-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.leg-dot i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.leg-dot.a i { background: #e9bc6b; }
.leg-dot.b i { background: #7cd8be; }
.chaos-stage {
  position: relative;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 25% 30%, rgba(233, 188, 107, 0.1), transparent 60%),
    radial-gradient(circle at 75% 70%, rgba(124, 216, 190, 0.08), transparent 60%),
    #090b12;
}
:root[data-theme="light"] .chaos-stage {
  background:
    radial-gradient(circle at 25% 30%, rgba(233, 188, 107, 0.14), transparent 60%),
    #111421;
}
#chaos-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.chaos-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--dim);
}
.chaos-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chaos-btn:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
  transform: translateY(-1px);
}

/* Three accessible popular-science cards */
.science-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
@media (max-width: 860px) {
  .science-pillars {
    grid-template-columns: 1fr;
  }
}
.pillar-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.pillar-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.pillar-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--dim);
}

/* Interactive Spotlight + Micro Wavebars on Mode Cards */
.mode-card, .stat-card, .hood-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s ease, box-shadow 0.26s ease;
}
.mode-card::before, .stat-card::before, .hood-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%), rgba(233, 188, 107, 0.11), transparent 70%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.mode-card[data-tone="sleep"]::before {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%), rgba(157, 180, 255, 0.14), transparent 70%);
}
.mode-card[data-tone="focus"]::before {
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 30%), rgba(124, 216, 190, 0.14), transparent 70%);
}
.mode-card:hover::before, .stat-card:hover::before, .hood-card:hover::before {
  opacity: 1;
}
.mode-card:hover, .stat-card:hover, .hood-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.mode-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
  margin-right: 8px;
}
.mode-bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--amber);
  transform-origin: bottom center;
  animation: bar-bounce-a 2.6s ease-in-out infinite;
}
.mode-card[data-tone="sleep"] .mode-bars i { background: var(--sky); animation-duration: 4.2s; }
.mode-card[data-tone="focus"] .mode-bars i { background: var(--mint); animation-duration: 2.1s; }
.mode-card[data-tone="recover"] .mode-bars i { background: var(--mint); animation-duration: 3.4s; }
.mode-bars i:nth-child(2) { animation-delay: 0.35s; }
.mode-bars i:nth-child(3) { animation-delay: 0.75s; }
.mode-bars i:nth-child(4) { animation-delay: 1.15s; }

/* Phone floating stage + smooth tab swap */
.phone-stage {
  position: relative;
}
.phone-stage::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 188, 107, 0.2), rgba(124, 216, 190, 0.08) 55%, transparent 72%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
  animation: rim-glow 6.5s ease-in-out infinite;
}
.phone-bezel {
  position: relative;
  z-index: 1;
  animation: phone-float 6.5s ease-in-out infinite;
}
.phone-screen img {
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.phone-screen img.is-swapping {
  opacity: 0.18;
  transform: scale(0.985);
}

/* Smooth Scroll Reveal Choreography */
html.anim-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.anim-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .status-dot::after,
  .hero h1 em,
  .hero > div:first-child > *,
  .booth,
  .booth.is-playing .play-orb::before,
  .booth.is-playing .play-orb::after,
  .wave-viz.is-loop::after,
  .wave-viz.is-free i,
  .mode-bars i,
  .phone-stage::before,
  .phone-bezel {
    animation: none !important;
  }
  html.anim-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
