/* PrismAura Website 2.0 — Darkroom Living-Room Cinema + Responsive Mobile Ergonomics */

:root {
  --bg: var(--color-paper);
  --surface: var(--color-paper-2);
  --raised: var(--color-paper-3);
  --fg: var(--color-ink);
  --fg-2: var(--color-ink-2);
  --muted: var(--color-muted);
  --line: var(--color-rule);
  --accent: var(--color-accent);
  --accent-2: var(--color-accent-2);
  --accent-ink: var(--color-accent-ink);
  --ambient-hue: 80;
  --ambient-c: 0.13;
  --ambient-l: 74%;
}

html[data-room-theme="porcelain"] {
  color-scheme: light;
  --bg: #F5F2EB;
  --surface: #ECE7DD;
  --raised: #E2DBCE;
  --fg: #242019;
  --fg-2: #3D372D;
  --muted: #6A6255;
  --line: #CFC6B5;
  --accent: #8A6626;
  --accent-2: #A67D34;
  --accent-ink: #FFFFFF;
}

html[data-room-theme="mono"] {
  color-scheme: dark;
  --bg: #080808;
  --surface: #131313;
  --raised: #1D1D1D;
  --fg: #F4F4F4;
  --fg-2: #D4D4D4;
  --muted: #929292;
  --line: #2F2F2F;
  --accent: #F4F4F4;
  --accent-2: #DCDCDC;
  --accent-ink: #0C0C0C;
  --ambient-c: 0.01;
}

html[data-scene="gallery"] { --ambient-hue: 235; --ambient-c: 0.09; }
html[data-scene="party"] { --ambient-hue: 152; --ambient-c: 0.11; }
html[data-scene="immersion"] { --ambient-hue: 48; --ambient-c: 0.13; }
html[data-scene="mv"] { --ambient-hue: 25; --ambient-c: 0.12; }

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 999;
}
.skip-link:focus { left: 16px; }

.container {
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
}

/* Reactive Wall Ambient Lighting */
.room-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 64% 46% at 50% 18%, oklch(var(--ambient-l) var(--ambient-c) var(--ambient-hue) / 0.16), transparent 72%),
    radial-gradient(ellipse 42% 38% at 16% 68%, oklch(var(--ambient-l) var(--ambient-c) var(--ambient-hue) / 0.08), transparent 70%);
  transition: background 0.7s var(--ease-out);
}
html[data-room-theme="porcelain"] .room-ambient {
  background:
    radial-gradient(ellipse 68% 44% at 50% 12%, rgba(138, 102, 38, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 34% at 80% 60%, rgba(138, 102, 38, 0.06), transparent 70%);
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 300;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.brand small { font-size: 10px; color: var(--muted); letter-spacing: 0.18em; margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--fg-2);
}
.nav-links a:hover { color: var(--accent); }
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-github svg { width: 17px; height: 17px; }
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
.nav-cta:hover { opacity: 0.92; transform: translateY(-1px); }

/* Shared Typography & Buttons */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.eyebrow__num {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 11px;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn--gold {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn--ghost {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--fg);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* 1. Hero Cinema Stage */
.hero {
  padding: 56px 0 72px;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.hero__intro {
  text-align: center;
  max-width: 720px;
}
.hero__intro h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.35rem);
  line-height: 1.12;
}
.hero__intro h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__lead {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.72;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.cinema-stage {
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tv-frame {
  position: relative;
}
.tv-frame__glow {
  position: absolute;
  inset: -28px 6% 10%;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, oklch(var(--ambient-l) var(--ambient-c) var(--ambient-hue) / 0.28), transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  transition: background 0.6s var(--ease-out);
}
.tv-frame__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 20px;
  border: 2px solid color-mix(in srgb, var(--fg) 14%, transparent);
  background: #07080A;
  overflow: hidden;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.72);
}
.tv-stand {
  width: 240px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 22%, transparent), transparent);
}

.hero-scene {
  position: relative;
  width: 100%;
  height: 100%;
  animation: sceneFade 0.35s var(--ease-out);
}
@keyframes sceneFade {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: none; }
}
.hero-scene > img,
.hero-scene > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tv-overlay-badge {
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 4;
}
.tv-overlay-badge span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 199, 141, 0.32);
  color: #F4EFE6;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.video-toggle {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(232, 199, 141, 0.4);
  background: rgba(10, 11, 14, 0.76);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}
.video-toggle span {
  display: block;
  width: 12px;
  height: 14px;
  border-left: 3px solid #E8C78D;
  border-right: 3px solid #E8C78D;
}
.video-toggle[data-state="paused"] span {
  width: 0;
  height: 0;
  border-left: 11px solid #E8C78D;
  border-right: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  transform: translateX(2px);
}

/* Live Ambient Gallery Clock Scene inside Hero TV & Story Monitor (1:1 matched with TV AmbientGallery) */
.hero-gallery {
  background: #060709;
  color: #F4F0E8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5% 8% 4.5%;
  width: 100%;
  height: 100%;
  position: relative;
}
.hero-gallery__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 46%, rgba(196, 130, 118, 0.24), transparent 56%),
    radial-gradient(circle at 24% 54%, rgba(92, 108, 178, 0.16), transparent 52%);
}
.hero-gallery__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7%;
  transform: translateY(-2%);
}
.hero-gallery__left { flex: 1.15; min-width: 0; }
.hero-gallery__clock {
  font-size: clamp(2.6rem, 7.2vw, 5.8rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.03em;
  color: rgba(244, 240, 232, 0.88);
  font-variant-numeric: tabular-nums;
}
.hero-gallery__date {
  margin-top: 8px;
  font-size: clamp(0.75rem, 1.3vw, 1.05rem);
  color: rgba(244, 240, 232, 0.62);
  letter-spacing: 0.09em;
}
.hero-gallery__rule {
  display: block;
  width: 42px;
  height: 1px;
  margin: 18px 0 14px;
  background: rgba(232, 199, 141, 0.34);
}
.hero-gallery__track {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.82rem, 1.25vw, 1.02rem);
  color: rgba(244, 240, 232, 0.86);
}
.hero-gallery__track span:last-child { color: rgba(244, 240, 232, 0.62); font-size: 0.88em; }
.hero-gallery__whisper {
  margin: 8px 0 0;
  font-size: clamp(0.7rem, 1vw, 0.84rem);
  color: rgba(244, 240, 232, 0.48);
  letter-spacing: 0.04em;
}
.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.eq-bars i {
  width: 2.5px;
  height: 5px;
  border-radius: 2px;
  background: #E8C78D;
  animation: eqBounce 1.1s ease-in-out infinite;
}
.eq-bars i:nth-child(2) { animation-duration: 0.78s; }
.eq-bars i:nth-child(3) { animation-duration: 1.32s; }
@keyframes eqBounce { 0%, 100% { height: 4px; } 50% { height: 12px; } }

.hero-gallery__right {
  position: relative;
  width: clamp(110px, 24%, 236px);
  aspect-ratio: 1;
  flex: none;
  display: grid;
  place-items: center;
}
.hero-gallery__halo {
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(232, 199, 141, 0.22) 0%, rgba(196, 130, 118, 0.12) 44%, transparent 72%);
  filter: blur(14px);
}
.hero-gallery__sleeve {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 199, 141, 0.24);
  padding: 6px;
  background: #14161B;
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, 0.72);
}
.hero-gallery__sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}
html[data-room-theme="porcelain"] .hero-gallery {
  background: #F5F2EB;
  color: #242019;
}
html[data-room-theme="porcelain"] .hero-gallery__wash {
  background:
    radial-gradient(circle at 68% 46%, rgba(138, 102, 38, 0.14), transparent 56%),
    radial-gradient(circle at 24% 54%, rgba(166, 125, 52, 0.08), transparent 52%);
}
html[data-room-theme="porcelain"] .hero-gallery__clock { color: rgba(36, 32, 25, 0.86); }
html[data-room-theme="porcelain"] .hero-gallery__date { color: rgba(74, 67, 56, 0.78); }
html[data-room-theme="porcelain"] .hero-gallery__track { color: rgba(36, 32, 25, 0.86); }
html[data-room-theme="porcelain"] .hero-gallery__track span:last-child { color: rgba(74, 67, 56, 0.74); }
html[data-room-theme="porcelain"] .hero-gallery__whisper { color: rgba(74, 67, 56, 0.62); }
html[data-room-theme="porcelain"] .hero-gallery__rule { background: rgba(138, 102, 38, 0.36); }
html[data-room-theme="porcelain"] .hero-gallery__sleeve {
  background: #EAE4D8;
  border-color: rgba(138, 102, 38, 0.28);
  box-shadow: 0 18px 36px -18px rgba(64, 52, 32, 0.34);
}
html[data-room-theme="porcelain"] .hero-gallery__rail { background: rgba(36, 32, 25, 0.12); }
html[data-room-theme="porcelain"] .hero-gallery__rail i { background: #8A6626; }
html[data-room-theme="porcelain"] .hero-gallery__meta { color: rgba(74, 67, 56, 0.72); }
html[data-room-theme="porcelain"] .hero-gallery__time i { color: #8A6626; }
html[data-room-theme="mono"] .hero-gallery__halo {
  background: radial-gradient(circle, rgba(244, 244, 244, 0.14) 0%, rgba(180, 180, 180, 0.06) 44%, transparent 72%);
}
html[data-room-theme="mono"] .hero-gallery__rail i,
html[data-room-theme="mono"] .eq-bars i { background: #F4F4F4; }
html[data-room-theme="mono"] .hero-gallery__time i { color: #F4F4F4; }
.hero-gallery__footer {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-gallery__rail {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(244, 240, 232, 0.14);
  overflow: hidden;
}
.hero-gallery__rail i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(232, 199, 141, 0.85);
}
.hero-gallery__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(0.62rem, 0.85vw, 0.75rem);
  color: rgba(244, 240, 232, 0.54);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.hero-gallery__time i {
  font-style: normal;
  font-size: 0.78em;
  color: rgba(232, 199, 141, 0.85);
  margin-right: 4px;
}
.hero-gallery__hint {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-gallery--compact { padding: 5.5% 7% 4%; }
.hero-gallery--compact .hero-gallery__clock { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.hero-gallery--compact .hero-gallery__date { font-size: 0.76rem; margin-top: 5px; }
.hero-gallery--compact .hero-gallery__rule { margin: 11px 0 9px; width: 32px; }
.hero-gallery--compact .hero-gallery__track { font-size: 0.82rem; }
.hero-gallery--compact .hero-gallery__whisper { font-size: 0.72rem; margin-top: 5px; }
.hero-gallery--compact .hero-gallery__right { width: 25%; }
.hero-gallery--compact .hero-gallery__meta { font-size: 0.64rem; }
.hero-gallery--compact[hidden] { display: none; }

/* Party Toast overlay inside Hero TV */
.hero-party__toast {
  position: absolute;
  right: 22px;
  bottom: 62px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(19, 21, 25, 0.92);
  border: 1px solid rgba(232, 199, 141, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  color: #F4F0E8;
  animation: toastFloat 0.45s var(--ease-out);
}
@keyframes toastFloat {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero-party__ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232, 199, 141, 0.16);
  color: #E8C78D;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.hero-party__toast b {
  display: block;
  font-size: 11px;
  color: #E8C78D;
  font-weight: 600;
}
.hero-party__toast span {
  display: block;
  font-size: 14px;
  margin-top: 2px;
}

/* Stage Dock Switcher */
.stage-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.16s ease;
}
.dock-btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.dock-btn span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dock-btn b { font-size: 15px; font-weight: 600; color: var(--fg); }
.dock-btn small { font-size: 12px; color: var(--muted); }
.dock-btn.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
}
.dock-btn.is-active span,
.dock-btn.is-active b { color: var(--accent); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.hero__facts i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

/* Sections */
.section {
  padding: 96px 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.18;
}
.section-head p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* 2. Scroll-Driven Dual-Screen Story */
.story-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.story-sticky {
  position: sticky;
  top: 96px;
}
.story-monitor {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.55);
}
.story-monitor__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.story-monitor__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.story-monitor__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #07080A;
  overflow: hidden;
}
.story-monitor__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.28s ease;
}
.story-monitor__stage img.is-fading { opacity: 0.25; }
.story-monitor__party-toast {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(18, 20, 24, 0.94);
  border: 1px solid rgba(232, 199, 141, 0.5);
  color: #F4F0E8;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s ease, transform 0.26s var(--ease-out);
  pointer-events: none;
}
.story-monitor__party-toast.is-shown {
  opacity: 1;
  transform: none;
}
.story-monitor__party-toast b {
  display: block;
  font-size: 11px;
  color: #E8C78D;
}
.story-monitor__party-toast span {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}
.story-monitor__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.story-monitor__step {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.story-chapters {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.chapter {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  transition: border-color 0.28s ease, background 0.28s ease;
}
.chapter.is-active {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--surface);
}
.chapter__num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.chapter h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.3;
}
.chapter p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}
.chapter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chapter__tags span {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-2);
}

/* Interactive Phone Party Demo inside Chapter 2 */
.try-phone {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg));
}
.try-phone__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}
.try-phone__head span { color: var(--accent); font-weight: 600; }
.try-phone__head small { color: var(--muted); font-size: 11px; }
.try-phone__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.try-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.try-row b { display: block; font-size: 13px; }
.try-row small { display: block; font-size: 11px; color: var(--muted); }
.try-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.12s ease, background 0.16s ease;
}
.try-btn--gold {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.try-btn:active { transform: scale(0.95); }

/* 3. Scannable Feature Capabilities */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat-item {
  padding: 26px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.22s ease, transform 0.2s ease;
}
.feat-item:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  transform: translateY(-2px);
}
.feat-item__num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.feat-item h3 {
  font-size: 19px;
  line-height: 1.3;
  color: var(--fg);
}
.feat-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* 4. Live Theme Room Switcher */
.themes-box {
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
}
.themes-box__copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.22;
}
.themes-box__copy p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}
.theme-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.theme-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.16s ease;
}
.theme-card:hover { transform: translateY(-2px); }
.theme-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-card b { font-size: 15px; }
.theme-card small { font-size: 12px; color: var(--muted); }
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.swatch--gold { background: linear-gradient(135deg, #0B0C0E 48%, #E8C78D 52%); }
.swatch--porcelain { background: linear-gradient(135deg, #F5F2EB 48%, #8A6626 52%); }
.swatch--mono { background: linear-gradient(135deg, #0A0A0A 48%, #F3F3F3 52%); }

/* 4. Real App Screens Gallery */
.screen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.screen-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  color: var(--fg-2);
  transition: all 0.18s ease;
}
.screen-tab span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.screen-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.screen-tab.is-active span { color: var(--accent-ink); opacity: 0.78; }

.screen-panel {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.screen-panel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #08090B;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
}
.screen-panel__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease;
}
.screen-panel__frame.is-portrait img {
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 14px;
}
.screen-panel__frame img.is-changing { opacity: 0.25; }
.screen-panel__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.78);
  color: #E8C78D;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.screen-panel__index {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.screen-panel__copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.25;
}
.screen-panel__copy p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}
.screen-panel__footnote { font-size: 12px !important; opacity: 0.82; }
.screen-panel__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.screen-panel__controls i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
}
.screen-disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* 5. Install Card */
.install-card {
  padding: 48px;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  background:
    radial-gradient(ellipse 60% 50% at 88% 12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    var(--surface);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.install-card__head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.18;
}
.install-card__head p {
  margin: 12px 0 0;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
}
.install-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.install-steps > div {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.install-steps span {
  display: block;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.install-steps b { display: block; font-size: 15px; margin-bottom: 6px; }
.install-steps small { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.install-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Footer */
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand b { display: block; font-size: 14px; }
.footer__brand span, .footer__note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* Scroll Reveal */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile Tailored Ergonomics (< 900px) */
@media (max-width: 960px) {
  .story-layout,
  .themes-box,
  .screen-panel {
    grid-template-columns: 1fr;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .story-sticky { position: static; }
  .install-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .features-grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 28px); }
  .nav-links a:not(.nav-cta):not(.nav-github) { display: none; }
  .nav-github span { display: none; }
  .hero { padding: 32px 0 48px; }
  .section { padding: 64px 0; }
  .stage-dock {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .dock-btn { padding: 11px 12px; }
  .dock-btn b { font-size: 14px; }
  .tv-overlay-badge { left: 10px; bottom: 10px; }
  .tv-overlay-badge span { font-size: 10px; padding: 3px 8px; }
  .hero-party__toast { right: 10px; bottom: 44px; padding: 8px 12px; }
  .theme-picker { grid-template-columns: 1fr; }
  .themes-box, .install-card { padding: 24px; }
  .screen-panel { padding: 16px; }
}

@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;
  }
}
