/* ═══════════════════════════════════════════════════════════════════
   Mates.ink — Cinematic Dark-First Art Direction v2.0
   Art Director: MIT CS / Award-winning 3D Studio
   Palette: obsidian, sakura, sky, cream, violet-neon
   Type: Fraunces (display), Space Grotesk (ui), JetBrains Mono (code)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Dark canvas primaries */
  --void:    #08060F;
  --deep:    #0F0D1A;
  --surface: #16132A;
  --raise:   #1E1A35;
  --lift:    #272245;

  /* Light mode paper (fallback) */
  --paper:      #F2EDE4;
  --paper-2:    #E9E2D4;
  --paper-shade:#D9D0BD;
  --ink:        #15131A;
  --ink-2:      #2A2530;
  --ink-soft:   #4A4250;

  /* Brand chromatics */
  --sakura:      #FF88C2;
  --sakura-glow: rgba(255,136,194,0.35);
  --sakura-deep: #E85FA3;
  --sky:         #7EC8FF;
  --sky-glow:    rgba(126,200,255,0.3);
  --cream:       #FFE07D;
  --cream-glow:  rgba(255,224,125,0.25);
  --violet:      #8B5CF6;
  --violet-neon: #A78BFA;
  --violet-glow: rgba(139,92,246,0.4);
  --mint:        #5EEAD4;
  --coral:       #FB7185;

  /* Typographic scale */
  --f-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --f-sans:    "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --f-hand:    "Ma Shan Zheng", "Caveat", "Brush Script MT", cursive;

  /* Lines */
  --line:       rgba(255,255,255,0.07);
  --line-mid:   rgba(255,255,255,0.12);
  --line-light: rgba(255,255,255,0.22);

  --maxw: 1440px;
  --radius-card: 20px;
}

/* ──────────────────────────────────────────────
   GLOBAL RESET & BASE
   ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Deep space ambient noise */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(139,92,246,0.12) 0, transparent 45%),
    radial-gradient(ellipse at 80% 85%, rgba(255,136,194,0.08) 0, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(126,200,255,0.04) 0, transparent 70%);
}

img { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
video { display: block; }

/* ──────────────────────────────────────────────
   TYPOGRAPHY UTILITIES
   ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--sakura);
  opacity: 0.6;
}

.tick { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; color: rgba(242,237,228,0.45); }
.hand { font-family: var(--f-hand); }
.serif { font-family: var(--f-display); }
.serif-i { font-family: var(--f-display); font-style: italic; font-weight: 300; }

.gradient-text {
  background: linear-gradient(110deg, var(--sakura) 0%, var(--violet-neon) 55%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ──────────────────────────────────────────────
   NAV / CHROME
   ────────────────────────────────────────────── */
.chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.chrome-backdrop {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(8,6,15,0.95) 0%, transparent 100%);
  z-index: 199;
  pointer-events: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.brand-mark .dot { color: var(--sakura); }
.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line-mid);
  background: var(--raise);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(22,19,42,0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--line-mid);
  border-radius: 999px;
}
.nav-pill a {
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  color: rgba(242,237,228,0.75);
  transition: background 180ms, color 180ms;
  letter-spacing: 0.01em;
}
.nav-pill a:hover { background: rgba(255,255,255,0.07); color: var(--paper); }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(22,19,42,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-mid);
  border-radius: 999px;
}
.lang-btn {
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(242,237,228,0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: background 150ms, color 150ms;
  border: none;
  background: none;
}
.lang-btn.active { background: var(--sakura); color: var(--void); font-weight: 600; }
.lang-btn:hover:not(.active) { color: var(--paper); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--sakura) 0%, var(--violet) 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 200ms, box-shadow 200ms, opacity 200ms;
  box-shadow: 0 0 0 0 var(--sakura-glow);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
  opacity: 0;
  transition: opacity 200ms;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--sakura-glow), 0 0 0 1px rgba(255,136,194,0.3); }
.cta:hover::before { opacity: 1; }
.cta .glyph { font-size: 14px; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--paper);
  transition: background 200ms, border-color 200ms, box-shadow 200ms;
}
.cta-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

/* ──────────────────────────────────────────────
   LAYOUT UTILITIES
   ────────────────────────────────────────────── */
section { position: relative; }

.frame {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

/* registration corner marks */
.reg-mark {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 3;
}
.reg-mark::before, .reg-mark::after {
  content: "";
  position: absolute;
  background: rgba(255,136,194,0.5);
}
.reg-mark::before { left: 0; top: 50%; width: 100%; height: 1px; }
.reg-mark::after  { top: 0; left: 50%; height: 100%; width: 1px; }
.reg-mark.tl { top: 20px; left: 20px; }
.reg-mark.tr { top: 20px; right: 20px; }
.reg-mark.bl { bottom: 20px; left: 20px; }
.reg-mark.br { bottom: 20px; right: 20px; }

/* ──────────────────────────────────────────────
   HERO SECTION — CINEMATIC FULL-BLEED
   ────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

/* Ambient depth glow behind figure */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-ambient::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse,
    rgba(139,92,246,0.22) 0%,
    rgba(255,136,194,0.12) 35%,
    transparent 70%);
  filter: blur(60px);
}
.hero-ambient::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 50%;
  width: 500px;
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(126,200,255,0.08) 0%, transparent 70%);
  filter: blur(80px);
}

/* Hero columns */
.hero-left {
  padding: 140px 32px 80px 40px;
  position: relative;
  z-index: 5;
  align-self: center;
}
.hero-right {
  padding: 140px 40px 80px 32px;
  position: relative;
  z-index: 5;
  align-self: center;
}

.hero-headline {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--paper);
  margin-top: 20px;
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(110deg, var(--sakura) 20%, var(--violet-neon) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-headline .underdash {
  display: inline-block;
  position: relative;
}
.hero-headline .underdash::after {
  content: "";
  position: absolute;
  bottom: 0.08em;
  left: -2px; right: -2px;
  height: 0.38em;
  background: var(--cream);
  z-index: -1;
  transform: skewX(-4deg);
  opacity: 0.3;
}

.hero-zh {
  margin-top: 12px;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: rgba(242,237,228,0.45);
  letter-spacing: 0.05em;
}
.hero-jp {
  display: none;
  margin-top: 12px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(242,237,228,0.45);
}

.hero-sub {
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242,237,228,0.65);
  max-width: 36ch;
}

.hero-cta-row {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 34px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-meta .meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(242,237,228,0.4);
  letter-spacing: 0.1em;
}
.hero-meta .meta b { color: rgba(242,237,228,0.75); font-weight: 600; }

/* ── Spec cards (hero right) ── */
.spec-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(22,19,42,0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 12px;
  text-align: left;
  transition: border-color 250ms, background 250ms;
}
.spec-card:hover {
  border-color: var(--line-mid);
  background: rgba(30,26,53,0.65);
}
.spec-card .label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.35);
  margin-bottom: 8px;
}
.spec-card .value {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.spec-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.spec-card .row + .row { margin-top: 7px; }
.spec-card .row span:last-child {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(242,237,228,0.6);
}

/* OC stamp */
.oc-stamp {
  position: absolute;
  top: 9%;
  left: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--f-hand);
  color: var(--sakura);
  z-index: 6;
  transform: rotate(-12deg);
  pointer-events: none;
  filter: drop-shadow(0 0 12px var(--sakura-glow));
}
.oc-stamp .ring-stamp {
  width: 88px;
  height: 88px;
  border: 1.5px solid var(--sakura);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  letter-spacing: 0;
  box-shadow: inset 0 0 20px rgba(255,136,194,0.1), 0 0 20px rgba(255,136,194,0.2);
}
.oc-stamp .label { margin-top: 4px; font-size: 15px; }

/* ──────────────────────────────────────────────
   HERO STAGE — 3D FIGURE
   ────────────────────────────────────────────── */
.hero-stage {
  position: relative;
  height: 100svh;
  min-height: 600px;
  perspective: 1600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.figure-platform {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

/* Ground platter rings */
.platter {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 55%;
  aspect-ratio: 1;
  transform: translateX(-50%) rotateX(74deg);
  transform-style: preserve-3d;
}
.platter .ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,136,194,0.18);
  border-radius: 50%;
}
.platter .ring.r2 { inset: 9%; border-style: dashed; border-color: rgba(126,200,255,0.15); opacity: 0.8; }
.platter .ring.r3 { inset: 20%; border-color: rgba(139,92,246,0.2); opacity: 0.6; }
.platter .ring.r4 { inset: 32%; border-style: dotted; border-color: rgba(255,224,125,0.2); opacity: 0.5; }
.platter .axis {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: var(--sakura);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(8,6,15,0.8), 0 0 0 4px var(--sakura), 0 0 16px var(--sakura);
}
.platter .tick-mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 50%;
  height: 1px;
  background: rgba(255,255,255,0.06);
  transform-origin: 0 50%;
}

/* Figure card */
.figure-card {
  position: relative;
  width: min(400px, 90%);
  aspect-ratio: 1 / 1.15;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Multi-layer glow aurora */
.figure-glow {
  position: absolute;
  inset: 4% 0%;
  border-radius: 40% 35% 45% 40% / 38% 40% 42% 38%;
  background:
    radial-gradient(ellipse at 35% 30%, rgba(255,136,194,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 70%, rgba(126,200,255,0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(139,92,246,0.35) 0%, transparent 65%);
  filter: blur(48px);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { opacity: 0.7; filter: blur(48px); }
  to   { opacity: 1.0; filter: blur(36px); }
}

.figure-img {
  position: relative;
  width: 78%;
  height: auto;
  border-radius: 24px;
  z-index: 2;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 60px -10px rgba(139,92,246,0.4);
  transform: translateZ(50px);
  background: var(--raise);
}

.figure-wire {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}
.figure-wire svg { width: 100%; height: 100%; }

.figure-shadow {
  position: absolute;
  bottom: 3%;
  left: 50%;
  width: 58%;
  height: 28px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(139,92,246,0.5), transparent 65%);
  filter: blur(12px);
  z-index: 1;
}

/* Floating data chips */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(22,19,42,0.75);
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(242,237,228,0.85);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 4;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: floatDrift 0s ease-in-out infinite alternate;
}
.float-chip .swatch { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.float-chip.fc1 { top: 12%; left: -8%; animation-duration: 5.2s; }
.float-chip.fc2 { top: 34%; right: -10%; animation-duration: 6.1s; }
.float-chip.fc3 { bottom: 30%; left: -5%; animation-duration: 4.8s; }
.float-chip.fc4 { bottom: 14%; right: -2%; animation-duration: 5.7s; }

@keyframes floatDrift {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}

/* ──────────────────────────────────────────────
   SCROLL TICKER
   ────────────────────────────────────────────── */
.ticker {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 20px 0;
}
.ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--surface) 0%, transparent 10%, transparent 90%, var(--surface) 100%);
  z-index: 1;
  pointer-events: none;
}
.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: tickerScroll 50s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: rgba(242,237,228,0.7);
}
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; }
.ticker-track .glyph { color: var(--sakura); font-style: normal; font-size: 14px; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────
   SECTION HEADERS
   ────────────────────────────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: 88px 0 36px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 16ch;
  color: var(--paper);
}
.section-head h2 em { font-style: italic; color: var(--violet-neon); }
.section-head .meta-side {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(242,237,228,0.3);
  letter-spacing: 0.14em;
  line-height: 1.8;
}

/* ──────────────────────────────────────────────
   THREE-PILLAR FEATURE CARDS
   ────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 36px 0 88px;
}

.pillar {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px 26px;
  overflow: hidden;
  transition: transform 250ms cubic-bezier(.2,.8,.2,1), border-color 250ms;
  cursor: default;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}
.pillar:hover { transform: translateY(-5px); border-color: var(--line-mid); }
.pillar:hover::before { opacity: 1; }

.pillar.p1 {
  background: linear-gradient(160deg, rgba(255,136,194,0.12) 0%, var(--surface) 60%);
}
.pillar.p1::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,136,194,0.08) 0%, transparent 70%);
}
.pillar.p2 {
  background: linear-gradient(160deg, rgba(126,200,255,0.1) 0%, var(--surface) 60%);
}
.pillar.p2::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(126,200,255,0.07) 0%, transparent 70%);
}
.pillar.p3 {
  background: linear-gradient(160deg, rgba(255,224,125,0.08) 0%, var(--surface) 60%);
}
.pillar.p3::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,224,125,0.06) 0%, transparent 70%);
}

.pillar .num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(242,237,228,0.3);
  letter-spacing: 0.2em;
}
.pillar .icon-frame {
  margin: 18px 0 22px;
  height: 170px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(255,255,255,0.015) 10px 11px);
  position: relative;
  overflow: hidden;
}
.pillar h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--paper);
}
.pillar h3 em { font-style: italic; }
.pillar .zh {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 13px;
  color: rgba(242,237,228,0.4);
  margin-top: 4px;
}
.pillar p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(242,237,228,0.6);
}
.pillar .bullets {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pillar .bullets li {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(242,237,228,0.5);
  display: flex;
  gap: 8px;
}
.pillar .bullets li::before { content: "▸"; color: var(--sakura); opacity: 0.8; }

/* ──────────────────────────────────────────────
   ROSTER (Character Gallery)
   ────────────────────────────────────────────── */
.roster-wrap { padding: 80px 0 100px; }
.roster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.roster-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), border-color 260ms, box-shadow 260ms;
  cursor: pointer;
}
.roster-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: var(--line-mid);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(139,92,246,0.15);
}
.roster-card .frame-img {
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.roster-card .corner-tag {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(242,237,228,0.4);
  z-index: 2;
}
.roster-card .badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 4px 9px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  border-radius: 999px;
  background: rgba(22,19,42,0.8);
  color: rgba(242,237,228,0.7);
  border: 1px solid var(--line-mid);
  z-index: 2;
}
.roster-card .badge.free { background: var(--cream); color: var(--void); border-color: transparent; }
.roster-card .badge.soon { color: rgba(242,237,228,0.35); }
.roster-card .info {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  z-index: 2;
}
.roster-card .info .name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #FFB8D6;
  text-shadow: 0 2px 14px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.8);
}
.roster-card .info .zh {
  font-family: var(--f-hand);
  font-size: 15px;
  color: rgba(255,184,214,0.8);
  margin-top: 2px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.roster-card .arrow {
  width: 30px; height: 30px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: transform 200ms, background 200ms, border-color 200ms;
  color: var(--paper);
}
.roster-card:hover .arrow {
  background: var(--sakura);
  border-color: var(--sakura);
  color: var(--void);
  transform: rotate(-45deg);
}

/* Card bg overrides */
.roster-card.r1 .frame-img { background: radial-gradient(circle at 50% 65%, rgba(255,136,194,0.5) 0%, rgba(92,45,140,0.4) 80%); }
.roster-card.r2 .frame-img { background: radial-gradient(circle at 50% 65%, rgba(126,200,255,0.45) 0%, rgba(22,19,42,0.6) 80%); }
.roster-card.r3 .frame-img { background: radial-gradient(circle at 50% 65%, rgba(255,224,125,0.45) 0%, rgba(139,92,246,0.3) 80%); }
.roster-card.r4 .frame-img {
  background: repeating-linear-gradient(135deg,
    rgba(22,19,42,0.9) 0 14px, rgba(30,26,53,0.9) 14px 28px);
}
.roster-card.r4 .silhouette-text {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  color: rgba(242,237,228,0.35);
  text-align: center;
  line-height: 1.2;
}

/* ──────────────────────────────────────────────
   VIDEO SHOWCASE SECTION
   ────────────────────────────────────────────── */
.video-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.video-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}
.video-main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-mid);
  aspect-ratio: 16 / 9;
  background: var(--deep);
  cursor: pointer;
}
.video-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 300ms;
}
.video-main:hover video { opacity: 1; }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: opacity 300ms;
}
.video-main:hover .video-play-btn { opacity: 0; }
.video-play-icon {
  width: 72px; height: 72px;
  background: rgba(22,19,42,0.7);
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(12px);
  font-size: 22px;
  transition: transform 250ms, background 250ms;
}
.video-main:hover .video-play-icon {
  transform: scale(1.1);
  background: var(--sakura);
}
.video-label {
  position: absolute;
  bottom: 18px; left: 20px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(242,237,228,0.7);
  background: rgba(8,6,15,0.6);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.video-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.video-thumb {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--deep);
  position: relative;
  cursor: pointer;
  transition: border-color 220ms, transform 220ms;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.video-thumb:hover { border-color: var(--line-mid); transform: translateX(4px); }
.video-thumb-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 220ms;
}
.video-thumb:hover .video-thumb-bg { opacity: 0.7; }
.video-thumb-info {
  position: relative;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(8,6,15,0.9) 0%, transparent 100%);
}
.video-thumb-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--paper);
}
.video-thumb-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  color: rgba(242,237,228,0.4);
  letter-spacing: 0.14em;
  margin-top: 3px;
}

/* ──────────────────────────────────────────────
   INTERACTION DEMO
   ────────────────────────────────────────────── */
.demo-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}
.demo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.demo-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  background: linear-gradient(160deg, #0E0C1B 0%, #14112A 100%);
  overflow: hidden;
  border: 1px solid var(--line-mid);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
}
.demo-stage .browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
}
.demo-stage .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.demo-stage .url { font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,0.35); margin-left: 8px; }
.demo-stage .canvas {
  position: absolute;
  inset: 44px 0 0;
  display: grid;
  place-items: center;
}
.demo-stage .panel-mini {
  position: absolute;
  right: 20px; top: 70px;
  width: 210px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  backdrop-filter: blur(20px);
}
.demo-stage .panel-mini .title {
  font-family: var(--f-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.demo-stage .panel-mini .preview {
  margin-top: 8px;
  height: 120px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 60%, rgba(255,136,194,0.3) 0%, rgba(0,0,0,0.4) 65%);
  position: relative;
  overflow: hidden;
}
.demo-stage .panel-mini .emo-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.demo-stage .emo {
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: background 200ms, border-color 200ms;
}
.demo-stage .emo.active { background: var(--sakura); color: var(--void); border-color: var(--sakura); }

.demo-text h3 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 42px;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--paper);
}
.demo-text h3 em { font-style: italic; color: var(--violet-neon); }
.demo-text .desc {
  margin-top: 18px;
  font-size: 14.5px;
  color: rgba(242,237,228,0.6);
  line-height: 1.7;
  max-width: 44ch;
}
.demo-text .step-list {
  margin-top: 28px;
  list-style: none;
  display: flex; flex-direction: column;
  gap: 0;
}
.demo-text .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  transition: background 200ms;
}
.demo-text .step .n {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(242,237,228,0.3);
  letter-spacing: 0.18em;
  padding-top: 4px;
}
.demo-text .step .name {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--paper);
}
.demo-text .step .body {
  font-size: 13px;
  color: rgba(242,237,228,0.5);
  margin-top: 4px;
  line-height: 1.6;
}

/* ──────────────────────────────────────────────
   DEVELOPER STRIP
   ────────────────────────────────────────────── */
.dev-strip {
  background: var(--deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0 108px;
  position: relative;
  overflow: hidden;
}
.dev-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 25%, rgba(255,136,194,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 8% 75%, rgba(126,200,255,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(139,92,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.dev-strip .frame { position: relative; z-index: 1; }
.dev-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.dev-strip h2 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.dev-strip h2 em {
  font-style: italic;
  background: linear-gradient(110deg, var(--sakura), var(--cream));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dev-strip .desc {
  margin-top: 20px;
  font-size: 15px;
  color: rgba(242,237,228,0.55);
  max-width: 42ch;
  line-height: 1.7;
}
.code-frame {
  background: #07060E;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 20px 24px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(242,237,228,0.8);
  overflow: auto;
  position: relative;
}
.code-frame::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sakura), var(--violet-neon), var(--sky));
  border-radius: 16px 16px 0 0;
}
.code-frame .c { color: rgba(255,255,255,0.25); }
.code-frame .k { color: var(--sakura); }
.code-frame .s { color: var(--cream); }
.code-frame .v { color: var(--sky); }
.code-frame .f { color: var(--violet-neon); }

/* ──────────────────────────────────────────────
   PRICING
   ────────────────────────────────────────────── */
.pricing-section {
  padding: 100px 0 100px;
  border-top: 1px solid var(--line);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color 250ms, transform 250ms;
}
.price-card:hover { border-color: var(--line-mid); transform: translateY(-3px); }
.price-card.featured {
  background: linear-gradient(160deg, rgba(139,92,246,0.2) 0%, var(--surface) 70%);
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.2), 0 32px 80px rgba(139,92,246,0.15);
}
.price-card.featured:hover { border-color: rgba(139,92,246,0.6); }
.price-card .tier {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.price-card .desc {
  font-size: 13px;
  color: rgba(242,237,228,0.5);
  line-height: 1.5;
}
.price-card .price {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 54px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
}
.price-card .price small {
  font-family: var(--f-sans);
  font-size: 12px;
  color: rgba(242,237,228,0.4);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 4px;
}
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  flex: 1;
}
.price-card li {
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: rgba(242,237,228,0.65);
}
.price-card li::before {
  content: "+";
  font-family: var(--f-mono);
  color: var(--sakura);
  font-size: 12px;
  flex-shrink: 0;
}
.price-card .pick {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  margin-top: auto;
  transition: transform 200ms, box-shadow 200ms;
  border: 1px solid var(--line-mid);
  color: var(--paper);
  background: transparent;
}
.price-card .pick:hover { transform: translateY(-2px); }
.price-card.featured .pick {
  background: linear-gradient(135deg, var(--sakura) 0%, var(--violet) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 32px var(--sakura-glow);
}
.price-card.featured .pick:hover {
  box-shadow: 0 12px 40px var(--sakura-glow), 0 4px 16px var(--violet-glow);
}
.price-card .featured-flag {
  position: absolute;
  top: -11px; right: 22px;
  background: var(--sakura);
  color: var(--void);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* ──────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────── */
.footer {
  background: var(--deep);
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.35);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { font-size: 13px; color: rgba(242,237,228,0.55); transition: color 160ms; }
.footer ul a:hover { color: var(--sakura); }
.footer-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(100px, 20vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 64px 0 -24px;
  background: linear-gradient(180deg, rgba(242,237,228,0.12) 0%, transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}
.wordmark em {
  font-style: italic;
  background: none;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background: linear-gradient(135deg, var(--sakura), var(--violet-neon));
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(242,237,228,0.3);
}

/* Ecosystem partners row */
.footer-eco {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-eco-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.3);
  padding-top: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-eco-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-eco-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7px 14px;
  border: 1px solid rgba(255,136,194,0.15);
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255,136,194,0.03);
  transition: border-color 160ms, background 160ms;
}
.footer-eco-link:hover {
  border-color: rgba(255,136,194,0.45);
  background: rgba(255,136,194,0.07);
}
.footer-eco-link .eco-name {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 500;
  color: rgba(242,237,228,0.75);
  line-height: 1.3;
}
.footer-eco-link .eco-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: rgba(255,136,194,0.5);
  line-height: 1.2;
}

/* ──────────────────────────────────────────────
   PARTICLES
   ────────────────────────────────────────────── */
.particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* ──────────────────────────────────────────────
   SCROLL INDICATOR
   ────────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: rgba(242,237,228,0.35);
  z-index: 6;
  pointer-events: none;
}
.scroll-hint .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,136,194,0.5));
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 50%;
  background: var(--sakura);
  animation: scrollRun 2.2s ease-in-out infinite;
}
@keyframes scrollRun {
  0%, 100% { top: -50%; opacity: 0; }
  40%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { top: 120%; opacity: 0; }
}

/* ──────────────────────────────────────────────
   SCROLL-REVEAL ANIMATIONS
   ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.8,.2,1), transform 700ms cubic-bezier(.2,.8,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 320ms; }

/* ──────────────────────────────────────────────
   SCROLL PROGRESS
   ────────────────────────────────────────────── */
.scroll-progress-bar {
  position: fixed;
  left: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sakura), var(--violet-neon), var(--sky));
  z-index: 300;
  transition: width 80ms linear;
  box-shadow: 0 0 8px var(--sakura-glow);
}

/* ──────────────────────────────────────────────
   ICON SYSTEM SECTION
   ────────────────────────────────────────────── */
.icon-system-section {
  padding: 60px 0 48px;
  border-top: 1px solid var(--line);
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 120px 40px 40px; }
  .hero-right { padding: 20px 40px 60px; }
  .hero-stage { height: 80vw; min-height: 480px; }
  .hero-sub { max-width: 52ch; }
  .pillars, .roster, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid, .dev-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video-sidebar { flex-direction: row; }
  .video-thumb { min-height: 160px; }
}

@media (max-width: 768px) {
  .frame { padding: 0 20px; }
  .hero-left, .hero-right { padding-left: 20px; padding-right: 20px; }
  .pillars, .roster, .pricing-grid, .footer-top { grid-template-columns: 1fr; }
  .nav-pill { display: none; }
  .hero-headline { font-size: clamp(40px, 11vw, 60px); }
  .dev-strip h2 { font-size: 40px; }
  .video-sidebar { flex-direction: column; }
}

@media (max-width: 480px) {
  .float-chip { display: none; }
  .wordmark { font-size: 22vw; }
}

/* ──────────────────────────────────────────────
   i18n DISPLAY HELPERS
   ────────────────────────────────────────────── */
[data-lang="zh"] .txt-en { display: none; }
[data-lang="zh"] .txt-zh { display: block; }
[data-lang="zh"] .txt-jp { display: none; }
[data-lang="jp"] .txt-en { display: none; }
[data-lang="jp"] .txt-zh { display: none; }
[data-lang="jp"] .txt-jp { display: block; }
.txt-zh, .txt-jp { display: none; }
