/* ==========================================================================
   StarfallSoft — Draft E: Starfall Observatory & Playroom
   Bright, welcoming night-sky studio aesthetic (390px mobile to 2560px wide)
   ========================================================================== */

:root {
  /* Night sky & cozy starlight palette */
  --sky-deep: #091026;
  --sky-mid: #122048;
  --sky-glow: #1f346e;
  --surface-glass: rgba(18, 30, 66, 0.62);
  --surface-border: rgba(255, 245, 218, 0.14);

  --ink-light: #f8f5ec;
  --ink-muted: #b8c4e0;
  --ink-dark: #101936;
  --ink-dark-muted: #4b577a;

  --gold: #ffd452;
  --gold-strong: #ffbe2e;
  --peach: #ff9b71;
  --mint: #38e4ae;
  --mint-deep: #0b8a62;
  --lime: #b8ff4a;
  --coral: #ff5b6e;
  --sky-accent: #5ec8ff;

  --font-ko: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-en: 'Bricolage Grotesque', 'Pretendard Variable', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1740px;
  --pad: clamp(20px, 4vw, 72px);
  --header-h: 78px;
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #091026 0%, #101e44 38%, #152654 72%, #0a122a 100%);
  color: var(--ink-light);
  font-family: var(--font-ko);
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure, pre { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* Language switching */
html[lang="ko"] body [lang="en"],
html[lang="en"] body [lang="ko"] { display: none !important; }

html[lang="en"] .hero__title,
html[lang="en"] .stage__title,
html[lang="en"] .story h2,
html[lang="en"] .section-head h2,
.brand__name,
.product-kicker {
  font-family: var(--font-en);
}
html[lang="ko"] .product-kicker { font-family: var(--font-ko); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #091026;
  border-radius: 8px;
}
.stage--persona :focus-visible,
.btn--gold:focus-visible {
  outline-color: #101936;
  box-shadow: 0 0 0 6px var(--gold);
}

.skip {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink-dark);
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 14px; }

/* ---------- Fixed Starfall Sky & Aurora ---------- */
#sky-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 42% at 78% 16%, rgba(94, 200, 255, 0.16), transparent 72%),
    radial-gradient(46% 38% at 18% 28%, rgba(145, 118, 255, 0.15), transparent 72%),
    radial-gradient(60% 34% at 52% 96%, rgba(255, 155, 113, 0.18), transparent 70%);
}

main, .footer { position: relative; z-index: 2; }

/* ---------- Sticky Glass Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px var(--pad);
  transition: background .25s ease, border-color .25s ease;
}
.header.is-scrolled {
  background: rgba(9, 16, 38, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--surface-border);
}
.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-light);
}
.brand__mark {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  filter: drop-shadow(0 0 10px rgba(255, 212, 82, 0.55));
  transition: transform .35s cubic-bezier(.2, 1.5, .4, 1);
}
.brand:hover .brand__mark { transform: rotate(45deg) scale(1.12); }

.header__right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header__links a {
  position: relative;
  padding: 6px 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .2s ease;
}
.header__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.header__links a:hover { color: var(--ink-light); }
.header__links a:hover::after { transform: scaleX(1); }

/* Minimal side starlight rail (desktop wide) */
.star-rail {
  position: fixed;
  right: clamp(14px, 1.8vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.star-rail__dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(248, 245, 236, 0.3);
  border: 1px solid rgba(255, 245, 218, 0.35);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.star-rail__dot:hover,
.star-rail__dot.is-current {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(255, 212, 82, 0.75);
}
.star-rail__tip {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(11, 20, 48, 0.92);
  border: 1px solid rgba(255, 212, 82, 0.35);
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.star-rail__dot:hover .star-rail__tip,
.star-rail__dot:focus-visible .star-rail__tip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 1460px) {
  .star-rail { display: none; }
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: rgba(16, 28, 62, 0.65);
  color: var(--ink-light);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.tool-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 212, 82, 0.5); }
.tool-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-btn .icon-off { display: none; }
html.reduce .tool-btn .icon-on { display: none; }
html.reduce .tool-btn .icon-off { display: block; }
html.reduce .tool-btn { background: var(--gold); color: var(--ink-dark); border-color: var(--gold); }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(16, 28, 62, 0.65);
  border: 1px solid var(--surface-border);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink-light);
  color: var(--ink-dark);
}

/* ---------- Shared Buttons & Badges ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 212, 82, 0.12);
  border: 1px solid rgba(255, 212, 82, 0.34);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.eyebrow__star { font-size: 15px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(135deg, #ffe073 0%, #ffc43b 100%);
  color: #1a1204;
  box-shadow: 0 12px 30px -6px rgba(255, 200, 65, 0.42);
}
.btn--gold:hover { box-shadow: 0 16px 36px -4px rgba(255, 200, 65, 0.56); }

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-light);
  border: 1px solid rgba(255, 245, 218, 0.28);
  backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 245, 218, 0.55); }

.btn--indigo {
  background: #16234f;
  color: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(22, 35, 79, 0.55);
}
.btn--indigo:hover { background: #213780; box-shadow: 0 18px 34px -8px rgba(33, 55, 128, 0.65); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.badge--soon { background: rgba(255, 212, 82, 0.18); color: #ffe07a; border: 1px solid rgba(255, 212, 82, 0.42); }
.badge--live { background: #dff8ee; color: #0b6e4e; border: 1px solid rgba(11, 110, 78, 0.2); }
.badge--live .badge__dot {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s infinite;
}
.badge--wip { background: rgba(184, 255, 74, 0.16); color: #d2ff80; border: 1px solid rgba(184, 255, 74, 0.36); }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28); } 50% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0.06); } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 56px) var(--pad) clamp(110px, 11vw, 175px);
  overflow: hidden;
}
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 84px);
}
.hero__copy { position: relative; z-index: 3; }

.hero__title {
  margin-top: 20px;
  font-size: clamp(42px, 4.4vw, 82px);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -0.03em;
  color: var(--ink-light);
  text-shadow: 0 10px 34px rgba(4, 8, 24, 0.55);
}
html[lang="en"] .hero__title {
  font-size: clamp(40px, 4.2vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #ffe680 0%, #ffb960 55%, #ff8f7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(18px, 1.25vw, 22px);
  color: var(--ink-muted);
  line-height: 1.65;
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 3-Star Quick Dock */
.star-dock {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
}
.star-dock__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(16, 28, 62, 0.58);
  border: 1px solid rgba(255, 245, 218, 0.14);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.star-dock__item:hover,
.star-dock__item.is-hot {
  transform: translateY(-3px);
  background: rgba(28, 45, 92, 0.78);
  border-color: rgba(255, 212, 82, 0.55);
}
.star-dock__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 3px;
}
.star-dock__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.star-dock__body strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-light);
  line-height: 1.25;
}
.star-dock__body small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 600;
}
.star-dock__body small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-soon::before { background: var(--gold); }
.dot-live::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.dot-wip::before  { background: var(--lime); }

/* Triad Interactive Showcase Stage */
.hero__stage {
  position: relative;
  aspect-ratio: 16 / 13.5;
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  z-index: 3;
}
.stage-orbit {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  pointer-events: none;
  z-index: 0;
}
.stage-orbit ellipse {
  fill: none;
  stroke: rgba(255, 240, 200, 0.14);
  stroke-width: 1.4;
  stroke-dasharray: 5 8;
}

.orbit-card {
  position: absolute;
  text-decoration: none;
  border-radius: 22px;
  transition: transform .38s cubic-bezier(.2, .85, .25, 1), opacity .3s ease, filter .3s ease;
  will-change: transform;
}
.orbit-card__tag {
  position: absolute;
  top: -17px;
  left: 16px;
  z-index: 6;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(5, 10, 25, 0.45);
}
.orbit-card--persona .orbit-card__tag {
  left: auto;
  right: 16px;
}
.tag--soon { background: #ffd452; color: #191204; }
.tag--live { background: #10b981; color: #041d15; }
.tag--wip  { background: #b8ff4a; color: #111f02; }

/* Card 1: Kickoff! (Left-middle) */
.orbit-card--kickoff {
  left: 0%;
  top: 15%;
  width: 55%;
  z-index: 2;
  transform: rotate(-2.5deg);
}
.mini-phone {
  padding: 7px;
  border-radius: 22px;
  background: linear-gradient(145deg, #273459, #111830);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 60px rgba(4, 8, 24, 0.62);
}
.mini-phone img { border-radius: 15px; width: 100%; }
.orbit-char--aria {
  position: absolute;
  left: -10%;
  bottom: -24%;
  width: 44%;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(5, 10, 26, 0.62));
  animation: float-slow 5.6s ease-in-out infinite;
}

/* Card 2: Persona Wizard (Top-right — crisp daylight beacon in the night sky) */
.orbit-card--persona {
  right: -1%;
  top: 0%;
  width: 49%;
  z-index: 3;
  transform: rotate(2.4deg);
}
.mini-browser {
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 26px 56px rgba(4, 10, 30, 0.58), 0 0 42px rgba(94, 200, 255, 0.22);
}
.mini-browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #eef2fb;
  border-bottom: 1px solid #dde3f0;
}
.mini-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd4e6; }
.mini-browser__bar i:nth-child(1) { background: #ff7a70; }
.mini-browser__bar i:nth-child(2) { background: #ffca4b; }
.mini-browser__bar i:nth-child(3) { background: #4cd480; }
.mini-browser__bar span {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #465374;
  font-family: var(--font-mono);
}
.mini-pills {
  position: absolute;
  right: 12px;
  bottom: -14px;
  display: flex;
  gap: 6px;
  z-index: 5;
}
.mini-pills span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #121c3d;
  color: #e6f2ff;
  border: 1px solid rgba(94, 200, 255, 0.45);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(4, 8, 22, 0.5);
}

/* Card 3: Slop Play (Bottom-right) */
.orbit-card--slop {
  right: 3%;
  bottom: 9%;
  width: 49%;
  z-index: 4;
  transform: rotate(-1.6deg);
}
.mini-stack {
  position: relative;
  aspect-ratio: 16 / 10.5;
}
.mini-stack__back,
.mini-stack__front {
  position: absolute;
  width: 86%;
  border-radius: 16px;
  border: 2px solid rgba(184, 255, 74, 0.45);
  box-shadow: 0 24px 48px rgba(4, 8, 24, 0.62);
}
.mini-stack__back {
  left: 0;
  top: 0;
  transform: rotate(-6deg);
  opacity: 0.92;
}
.mini-stack__front {
  right: 0;
  bottom: 0;
  transform: rotate(2.5deg);
}
.orbit-slime {
  position: absolute;
  left: -8%;
  bottom: -14%;
  width: 34%;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 18px rgba(4, 8, 22, 0.65));
  animation: float-slow 4.4s 0.6s ease-in-out infinite;
}

/* Hover / Spotlight States on Hero Triad */
.hero__stage.has-focus .orbit-card { opacity: 0.52; filter: saturate(0.75); }
.hero__stage.has-focus .orbit-card.is-focused,
.orbit-card:hover {
  opacity: 1 !important;
  filter: saturate(1.08) !important;
  z-index: 12 !important;
  transform: rotate(0deg) scale(1.045) translateY(-6px);
}

.sky-hint {
  position: absolute;
  right: 2%;
  bottom: -2%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 243, 209, 0.72);
  pointer-events: none;
}
.sky-hint span:first-child { color: var(--gold); }

@keyframes float-slow {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* Horizon SVG */
.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(80px, 9vw, 155px);
  z-index: 2;
  pointer-events: none;
}
.horizon__far { fill: rgba(23, 39, 86, 0.85); }
.horizon__near { fill: #0c1633; }
.horizon__town path { fill: #091026; }
.horizon__town .win {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px var(--gold));
  animation: twinkle-win 3.6s ease-in-out infinite;
}
.horizon__town .win:nth-child(2n) { animation-delay: -1.4s; }
@keyframes twinkle-win { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- WORKS WRAPPER ---------- */
.works {
  padding: clamp(56px, 6vw, 110px) var(--pad) clamp(48px, 5vw, 90px);
  background: linear-gradient(180deg, #0c1633 0%, rgba(12, 22, 51, 0.72) 22%, rgba(12, 22, 51, 0.35) 100%);
}
.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(36px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.section-head h2 {
  font-size: clamp(32px, 3vw, 52px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Shared Stage Shell */
.stage {
  position: relative;
  max-width: var(--max);
  margin: 0 auto clamp(36px, 4.2vw, 64px);
  padding: clamp(32px, 4.5vw, 72px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 36px 80px -24px rgba(3, 7, 20, 0.65);
}
.stage__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 80px);
}
.stage__grid--flip {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}
.stage__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.stage__index {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  opacity: 0.65;
  letter-spacing: 0.06em;
}
.product-kicker {
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stage__title {
  font-size: clamp(30px, 2.8vw, 50px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.stage__desc {
  font-size: clamp(17px, 1.15vw, 20px);
  line-height: 1.68;
  max-width: 34em;
  opacity: 0.88;
}
.spec-pills {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.spec-pills li {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- STAGE 01: KICKOFF! (Night Stadium) ---------- */
.stage--kickoff {
  background:
    radial-gradient(60% 60% at 24% 0%, rgba(114, 245, 179, 0.24), transparent 68%),
    radial-gradient(50% 60% at 85% 95%, rgba(255, 212, 82, 0.15), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 110px, transparent 110px 220px),
    linear-gradient(145deg, #0b2a25 0%, #114335 48%, #0e2538 100%);
  border-color: rgba(114, 245, 179, 0.24);
}
.stage__bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 48%, transparent 0 138px, rgba(255, 255, 255, 0.06) 139px 141px, transparent 142px),
    linear-gradient(90deg, transparent calc(30% - 1px), rgba(255, 255, 255, 0.05) 30%, transparent calc(30% + 1px));
}

.kickoff-logo {
  width: min(100%, 300px);
  margin: 0 0 14px -4px;
  filter: drop-shadow(0 12px 24px rgba(5, 18, 14, 0.55));
}

.kickoff-media {
  position: relative;
  padding-right: clamp(0px, 10.5vw, 155px);
  padding-bottom: 24px;
}
.screen-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(6, 20, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
}
.screen-tabs button {
  border: 0;
  background: transparent;
  color: rgba(248, 245, 236, 0.72);
  font-size: 14px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.screen-tabs button[aria-selected="true"] {
  background: var(--gold);
  color: #161004;
}

.device-frame--phone {
  position: relative;
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(155deg, #27364c, #0f1726);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 32px 64px -12px rgba(4, 14, 12, 0.72);
}
.device-frame--phone img {
  width: 100%;
  border-radius: 17px;
  transition: opacity .22s ease;
}
.device-frame--phone img.is-swapping { opacity: 0.35; }

/* Standing Character Spotlight */
.char-stage {
  position: absolute;
  right: -14px;
  bottom: -6px;
  width: clamp(160px, 19.5vw, 240px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.char-stage__img {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(4, 15, 12, 0.68));
  transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), opacity .2s ease;
}
.char-stage__img.is-pop {
  animation: char-pop .38s cubic-bezier(.2, 1.45, .4, 1);
}
@keyframes char-pop {
  0% { opacity: 0; transform: translateY(16px) scale(0.88); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.char-stage__badge {
  margin-top: -8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(9, 20, 34, 0.88);
  border: 1px solid rgba(255, 212, 82, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}
.char-stage__badge strong { color: var(--gold); font-weight: 800; }
.char-stage__badge span { color: var(--ink-muted); font-weight: 600; }

/* 15-Character Interactive Roster Dock */
.roster-bar {
  position: relative;
  z-index: 3;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.roster-bar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.roster-bar__label {
  font-size: 15px;
  font-weight: 700;
  color: rgba(248, 245, 236, 0.88);
}
.roster-bar__hint {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  min-height: 22px;
}
.roster {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 8px;
}
.roster__btn {
  position: relative;
  width: 100%;
  padding: 4px 2px 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 24, 22, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, 1.4, .4, 1), border-color .18s, background .18s;
}
.roster__btn img {
  width: 100%;
  max-width: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #132c3d;
}
.roster__btn span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(248, 245, 236, 0.8);
  white-space: nowrap;
}
.roster__btn.has-full::after {
  content: "★";
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 11px;
  color: var(--gold);
}
.roster__btn:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 212, 82, 0.65);
  background: rgba(255, 212, 82, 0.14);
}
.roster__btn.is-active {
  border-color: var(--gold);
  background: rgba(255, 212, 82, 0.24);
  transform: translateY(-4px);
}
.roster__btn.is-active img { border-color: var(--gold); }
.roster__btn.is-active span { color: #ffffff; }

/* ---------- STAGE 02: PERSONA WIZARD (Crisp Daylight Studio Card) ---------- */
.stage--persona {
  background:
    radial-gradient(50% 60% at 88% 12%, rgba(94, 200, 255, 0.22), transparent 68%),
    radial-gradient(45% 55% at 10% 90%, rgba(56, 228, 174, 0.18), transparent 68%),
    radial-gradient(circle at 1px 1px, rgba(16, 25, 54, 0.055) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(155deg, #fbfcff 0%, #f1f5ff 55%, #eefaf6 100%);
  color: var(--ink-dark);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 36px 80px -20px rgba(4, 10, 32, 0.62), 0 0 60px rgba(94, 200, 255, 0.12);
}
.stage--persona .stage__desc { color: var(--ink-dark-muted); opacity: 1; }
.stage--persona .stage__index { color: #3652b3; opacity: 0.75; }
.stage--persona .product-kicker { color: #2a46a8; }

.format-box {
  margin-top: 24px;
  border-radius: 18px;
  background: #121b38;
  color: #e9f0ff;
  padding: 14px 16px 16px;
  box-shadow: 0 18px 34px -14px rgba(16, 25, 54, 0.45);
}
.format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.format-tabs button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #a9b8db;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.format-tabs button[aria-selected="true"] {
  background: var(--mint);
  color: #062119;
  border-color: var(--mint);
}
.format-code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: #d8e6ff;
  white-space: pre-wrap;
  overflow-x: auto;
}

.stage__actions { margin-top: 26px; }

.persona-media { position: relative; }
.device-frame--browser {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(16, 25, 54, 0.12);
  box-shadow: 0 32px 64px -18px rgba(16, 30, 74, 0.28);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.device-frame--browser:hover { transform: translateY(-6px); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #f1f4fa;
  border-bottom: 1px solid #e1e6f2;
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots i:nth-child(1) { background: #ff6b63; }
.browser-dots i:nth-child(2) { background: #ffc645; }
.browser-dots i:nth-child(3) { background: #43ce77; }
.browser-url {
  flex: 1;
  max-width: 340px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dfe5f2;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #4a577a;
}
.browser-lock { font-size: 11px; }

/* ---------- STAGE 03: SLOP PLAY (Neon Pixel Arcade Playground) ---------- */
.stage--slop {
  background:
    radial-gradient(50% 55% at 15% 15%, rgba(184, 255, 74, 0.16), transparent 65%),
    radial-gradient(50% 55% at 88% 85%, rgba(255, 91, 110, 0.22), transparent 65%),
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1.2px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(145deg, #171238 0%, #24174e 52%, #152147 100%);
  border-color: rgba(184, 255, 74, 0.26);
}
.stage--slop .product-kicker { color: var(--lime); }

.slop-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.arcade-deck {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 11.2;
  cursor: pointer;
}
.deck-card {
  position: absolute;
  inset: 6% 12% 10% 4%;
  border-radius: 20px;
  overflow: hidden;
  background: #100b26;
  border: 2px solid rgba(184, 255, 74, 0.5);
  box-shadow: 0 28px 54px -14px rgba(5, 3, 18, 0.8);
  transition: transform .42s cubic-bezier(.2, 1.2, .3, 1), opacity .35s ease;
}
.deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deck-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 9, 32, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-light);
  backdrop-filter: blur(8px);
}
.deck-card.is-front {
  z-index: 4;
  transform: translate(0, 0) rotate(-1.5deg) scale(1);
  opacity: 1;
}
.deck-card.is-mid {
  z-index: 3;
  transform: translate(7%, -5%) rotate(4.5deg) scale(0.95);
  opacity: 0.88;
  border-color: rgba(255, 255, 255, 0.22);
}
.deck-card.is-back {
  z-index: 2;
  transform: translate(-5%, 6%) rotate(-6deg) scale(0.9);
  opacity: 0.65;
  border-color: rgba(255, 255, 255, 0.14);
}
.deck-card.is-hidden {
  z-index: 1;
  transform: translate(0, 10%) scale(0.84);
  opacity: 0;
  pointer-events: none;
}

.slop-mascot {
  position: absolute;
  right: -2%;
  bottom: -4%;
  width: clamp(120px, 16vw, 195px);
  z-index: 6;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(4, 2, 16, 0.72));
}
.slop-mascot.is-boing {
  animation: slime-boing .42s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes slime-boing {
  0% { transform: scale(1, 1) translateY(0); }
  30% { transform: scale(1.14, 0.86) translateY(6px); }
  65% { transform: scale(0.92, 1.12) translateY(-14px); }
  100% { transform: scale(1, 1) translateY(0); }
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}
.deck-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(184, 255, 74, 0.45);
  background: rgba(184, 255, 74, 0.12);
  color: var(--ink-light);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s, background .18s;
}
.deck-shuffle:hover { transform: translateY(-2px); background: rgba(184, 255, 74, 0.22); }
.deck-counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lime);
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Interactive Easter-Egg Red Toy Button */
.toy-box {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(9, 7, 26, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 520px;
}
.red-btn {
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: #8f1426;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 65, 92, 0.32);
}
.red-btn__cap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff6b7c 0%, #e62943 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  transform: translateY(-6px);
  transition: transform .08s ease;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.red-btn:hover .red-btn__cap { transform: translateY(-7px); }
.red-btn:active .red-btn__cap,
.red-btn.is-pressed .red-btn__cap { transform: translateY(-1px); }

.toy-box__readout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.toy-count {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--lime);
  background: rgba(184, 255, 74, 0.1);
  border: 1px solid rgba(184, 255, 74, 0.3);
  border-radius: 10px;
  padding: 4px 10px;
}
.toy-msg {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ---------- STORY: CONSTELLATION FINALE ---------- */
.story {
  padding: clamp(72px, 8vw, 140px) var(--pad);
}
.story__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 96px);
}
.constellation {
  position: relative;
  aspect-ratio: 600 / 420;
  width: 100%;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 60% at 75% 20%, rgba(255, 212, 82, 0.14), transparent 70%),
    radial-gradient(50% 50% at 25% 80%, rgba(94, 200, 255, 0.14), transparent 70%),
    rgba(13, 24, 56, 0.68);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 32px 70px -20px rgba(3, 8, 24, 0.65);
}
.constellation__trails {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.star-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.star-node img,
.star-node__orb,
.star-node__persona {
  width: clamp(64px, 6.2vw, 90px);
  height: clamp(64px, 6.2vw, 90px);
  border-radius: 22px;
  object-fit: cover;
  border: 2px solid rgba(255, 226, 138, 0.65);
  box-shadow: 0 0 28px rgba(255, 212, 82, 0.35), 0 14px 28px rgba(4, 8, 22, 0.65);
  background: #101d42;
}
.star-node__persona {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f7faff 0%, #e5eeff 100%);
  padding: 6px;
}
.star-node__persona svg { width: 100%; height: 100%; display: block; }
.star-node--3 img { image-rendering: pixelated; padding: 6px; object-fit: contain; }
.star-node__orb {
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--gold);
  border-style: dashed;
  background: rgba(255, 212, 82, 0.08);
  animation: float-slow 4.5s ease-in-out infinite;
}
.star-node span {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-light);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(9, 16, 38, 0.78);
  white-space: nowrap;
}
.star-node--1 { left: 20%; top: 50%; }
.star-node--2 { left: 46%; top: 47%; }
.star-node--3 { left: 68%; top: 57%; }
.star-node--next { left: 57%; top: 82%; }

.story__copy h2 {
  margin-top: 18px;
  font-size: clamp(32px, 3.2vw, 56px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.story__copy p:not(.eyebrow) {
  margin-top: 20px;
  font-size: clamp(18px, 1.25vw, 21px);
  color: var(--ink-muted);
  max-width: 34em;
  line-height: 1.7;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--surface-border);
  background: rgba(7, 13, 30, 0.85);
  backdrop-filter: blur(12px);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--pad) 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__line { font-size: 15px; color: var(--ink-muted); }
.footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.footer__links a {
  color: var(--ink-light);
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 212, 82, 0.55);
  padding-bottom: 2px;
}
.footer__links a:hover { border-bottom-color: var(--gold); color: var(--gold); }
.footer__copy { color: var(--ink-muted); }

/* ---------- MODAL ---------- */
.modal {
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  background: #101b3f;
  color: var(--ink-light);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.7);
}
.modal::backdrop { background: rgba(4, 8, 22, 0.72); backdrop-filter: blur(6px); }
.modal h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.modal p { color: var(--ink-muted); margin-bottom: 22px; font-size: 16px; }

/* ---------- SCROLL REVEAL ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
html.reduce { scroll-behavior: auto; }
html.reduce [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.reduce .orbit-char--aria,
html.reduce .orbit-slime,
html.reduce .star-node__orb,
html.reduce .horizon__town .win,
html.reduce .badge--live .badge__dot { animation: none !important; }

/* ---------- RESPONSIVE (TABLET & MOBILE 390px) ---------- */
@media (max-width: 1180px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__stage { max-width: 720px; margin: 0 auto; }
  .star-dock { max-width: none; }
  .stage__grid, .stage__grid--flip { grid-template-columns: 1fr; }
  .stage__grid--flip .persona-media { order: 2; }
  .stage__grid--flip .stage__copy { order: 1; }
  .roster { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .story__inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .header { padding: 12px 16px; }
  .header__links { display: none; }
  .brand { font-size: 21px; }
  .hero { min-height: 0; padding: 20px 16px 88px; }
  .hero__title { font-size: clamp(34px, 9.6vw, 46px); }
  .hero__lead { font-size: 16px; margin-top: 14px; line-height: 1.55; }
  .hero__actions { margin-top: 20px; flex-wrap: nowrap; gap: 10px; }
  .btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .star-dock { display: none; }
  .format-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .format-tabs button { padding: 7px 4px; text-align: center; }

  /* Mobile hero triad: crisp stacked 2-tier layout with zero ugly overlap */
  .hero__stage {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 12px;
  }
  .stage-orbit, .sky-hint { display: none; }
  .orbit-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    transform: none !important;
  }
  .orbit-char--aria { width: 32%; left: auto; right: -2%; bottom: -10%; }
  .orbit-slime { width: 28%; left: auto; right: 2%; bottom: -10%; }
  .mini-pills { right: 10px; bottom: -12px; }

  .works { padding: 36px 14px 48px; }
  .stage { padding: 24px 18px; border-radius: 26px; }
  .stage__title { font-size: clamp(26px, 7.2vw, 34px); }
  .kickoff-media { padding-right: 0; padding-bottom: 0; }
  .char-stage {
    position: relative;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
  }
  .char-stage__img { width: 110px; max-height: 140px; }
  .char-stage__badge { margin-top: 0; }
  .roster { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .roster__btn span { font-size: 11px; }

  .arcade-deck { aspect-ratio: 16 / 12.5; }
  .deck-card { inset: 4% 8% 12% 2%; }
  .slop-mascot { width: 108px; right: -4px; bottom: -8px; }
  .toy-box { flex-direction: column; align-items: stretch; gap: 14px; }
  .red-btn { width: 100%; }
  .red-btn__cap { width: 100%; }

  .constellation { aspect-ratio: 4 / 3.4; }
  .star-node img, .star-node__orb, .star-node__persona { width: 58px; height: 58px; border-radius: 16px; }
  .star-node span { font-size: 12px; }
  .story { padding: 48px 16px 64px; }
  .footer__inner { padding: 32px 16px 40px; }
}
