/* =========================================================
   P象棋 · 官网
   Dark tech / emerald + vermilion
   ========================================================= */

:root {
  --bg: #05080a;
  --bg-soft: #071011;
  --panel: rgba(11, 20, 21, 0.72);
  --line: rgba(120, 220, 200, 0.14);
  --line-strong: rgba(120, 220, 200, 0.32);
  --teal: #3ce6bd;
  --teal-soft: #7ef2d8;
  --teal-deep: #12a98c;
  --red: #ff4d5e;
  --red-deep: #c0202f;
  --gold: #e3bd7a;
  --text: #e8f4f1;
  --muted: #8ba5a0;
  --muted-2: #5d7672;
  --sans: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --shell: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--teal-deep) #081012;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -6%, rgba(38, 200, 165, 0.16), transparent 62%),
    radial-gradient(800px 520px at 6% 22%, rgba(255, 77, 94, 0.06), transparent 65%),
    linear-gradient(180deg, #05080a 0%, #060b0d 40%, #050809 100%);
}

::selection { background: rgba(60, 230, 189, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id],
#top { scroll-margin-top: 88px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- global texture ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 4000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 8s steps(4) infinite;
}

@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, -1%); }
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle, rgba(60, 230, 189, 0.16), rgba(60, 230, 189, 0.05) 42%, transparent 68%);
  transition: opacity 0.5s ease;
  mix-blend-mode: screen;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3000;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-soft));
  box-shadow: 0 0 14px rgba(60, 230, 189, 0.7);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 40px;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(5, 9, 10, 0.72);
  border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: #fff7ef;
  background: radial-gradient(circle at 32% 28%, #e5474f, #a51624 68%, #6d0b16);
  border: 1px solid rgba(255, 180, 180, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 8px 24px -6px rgba(220, 40, 60, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-text em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--muted-2);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  transition: width 0.32s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-link-out { color: var(--teal) !important; display: inline-flex; align-items: center; gap: 5px; }
.nav-link-out::after { width: 100% !important; opacity: 0.5; }
.nav-link-out:hover { color: #8ff5de !important; }
.nav-link-out span { font-size: 11px; line-height: 1; color: var(--muted-2); transition: color 0.3s ease; }
.nav-link-out:hover span { color: var(--teal); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #04201a;
  background: linear-gradient(120deg, var(--teal-soft), var(--teal));
  box-shadow: 0 6px 24px -8px rgba(60, 230, 189, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(60, 230, 189, 0.9);
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.nav-burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(110, 220, 200, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 220, 200, 0.07) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(ellipse 70% 70% at 52% 44%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 52% 44%, #000 25%, transparent 78%);
  opacity: 0.7;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.hero-orb-teal {
  width: 620px;
  height: 620px;
  right: -140px;
  top: 4%;
  background: radial-gradient(circle, rgba(24, 190, 158, 0.38), transparent 66%);
}

.hero-orb-red {
  width: 340px;
  height: 340px;
  left: -120px;
  bottom: 4%;
  background: radial-gradient(circle, rgba(200, 35, 55, 0.3), transparent 68%);
  animation-delay: -6s;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-30px, 40px, 0) scale(1.08); }
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

body.webgl-ready .hero-canvas-wrap canvas { opacity: 1; }

body.no-webgl .hero-canvas-wrap {
  background:
    radial-gradient(560px 420px at 68% 46%, rgba(60, 230, 189, 0.18), transparent 70%),
    radial-gradient(420px 320px at 74% 58%, rgba(255, 77, 94, 0.1), transparent 72%);
}

body.no-webgl .hero-canvas-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(46vw, 560px);
  aspect-ratio: 0.9;
  transform: translate(-50%, -50%) rotate(-8deg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(to right, rgba(120, 240, 214, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 240, 214, 0.22) 1px, transparent 1px),
    rgba(6, 18, 17, 0.55);
  background-size: calc(100% / 8) calc(100% / 9), calc(100% / 8) calc(100% / 9);
  box-shadow: 0 0 90px rgba(60, 230, 189, 0.25);
}

.canvas-caption { display: none; }

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 82%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: 40px;
  min-height: calc(100svh - 216px);
}

.hero-copy { max-width: 660px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--teal);
  text-transform: uppercase;
}

.eyebrow i { font-style: normal; color: var(--muted-2); }

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(60, 230, 189, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 230, 189, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(60, 230, 189, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 230, 189, 0); }
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(64px, 9.4vw, 132px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.hero-title-main {
  background: linear-gradient(178deg, #ffffff 8%, #d9f7ee 44%, #69e6c7 78%, #22b894 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(46, 214, 178, 0.24));
}

.hero-title-main .cn { letter-spacing: 0.01em; }

.hero-title-en {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: var(--muted-2);
  transform: translateX(2px);
}

.hero-slogan {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 26px);
  letter-spacing: 0.16em;
  color: #e8dcc0;
  text-shadow: 0 0 30px rgba(227, 189, 122, 0.16);
}

.dot-sep { margin: 0 0.5em; color: var(--red); }

.hero-desc {
  margin: 0 0 38px;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateY(2px); }

.btn-primary {
  color: #032019;
  background: linear-gradient(118deg, var(--teal-soft), var(--teal) 55%, #19c2a0);
  box-shadow: 0 14px 40px -14px rgba(60, 230, 189, 0.75);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 46px -12px rgba(60, 230, 189, 0.9); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(140, 240, 220, 0.55); background: rgba(60, 230, 189, 0.07); }

.btn-red {
  color: #fff5f3;
  background: linear-gradient(118deg, #ff6b78, #e23446 62%, #b41b2c);
  box-shadow: 0 14px 40px -14px rgba(230, 60, 80, 0.7);
}

.btn-red:hover { transform: translateY(-3px); box-shadow: 0 18px 46px -12px rgba(230, 60, 80, 0.85); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.stat b i { font-style: normal; font-size: 14px; color: var(--teal); }
.stat span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.08em; color: var(--muted-2); }

/* hero hud */
.hero-hud {
  position: relative;
  height: 100%;
  pointer-events: none;
}

.hud-chip {
  position: absolute;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 16, 0.5);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  animation: floatChip 6s ease-in-out infinite;
}

.hud-chip b { font-size: 15px; color: var(--teal); letter-spacing: 0; }
.hud-chip i { font-style: normal; color: var(--muted-2); }
.hud-chip-1 { right: 3%; top: 6%; }
.hud-chip-2 { right: 3%; top: 18%; animation-delay: -2s; }

@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hud-reticle {
  position: absolute;
  right: 8%;
  top: 26%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px dashed rgba(60, 230, 189, 0.18);
  animation: spin 26s linear infinite;
}

.hud-reticle::before,
.hud-reticle::after {
  content: "";
  position: absolute;
  background: rgba(60, 230, 189, 0.3);
}

.hud-reticle::before { left: 50%; top: -8px; bottom: -8px; width: 1px; }
.hud-reticle::after { top: 50%; left: -8px; right: -8px; height: 1px; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
}

.hero-foot-left { display: inline-flex; align-items: center; gap: 10px; }
.hero-foot-left i {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
  animation: linePulse 2.6s ease-in-out infinite;
}

@keyframes linePulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(8, 16, 17, 0.9), rgba(9, 22, 20, 0.9), rgba(8, 16, 17, 0.9));
  overflow: hidden;
  padding: 16px 0;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  animation: tickerMove 30s linear infinite;
}

.ticker-track b { color: var(--teal); font-size: 10px; }

@keyframes tickerMove {
  to { transform: translateX(-50%); }
}

/* =========================================================
   SECTION COMMON
   ========================================================= */
.section {
  position: relative;
  z-index: 2;
  padding: 140px 0;
}

.sec-head { max-width: 760px; margin-bottom: 62px; }
.sec-head.centered { text-align: center; margin-left: auto; margin-right: auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--teal);
  text-transform: uppercase;
}

.kicker-red { color: var(--red); }

.sec-index {
  font-size: 9px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
}

h2 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(104deg, #ffffff 6%, #cdf8ec 38%, var(--teal) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-red {
  background: linear-gradient(104deg, #fff2ef 10%, #ffb0b6 42%, var(--red) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-lead {
  margin: 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 2;
  color: var(--muted);
}

.sec-head.centered .sec-lead { margin-left: auto; margin-right: auto; }
.sec-head .kicker { justify-content: flex-start; }
.sec-head.centered .kicker { justify-content: center; }

/* =========================================================
   BENTO FEATURES
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  grid-column: span 2;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(158deg, rgba(17, 31, 32, 0.78), rgba(7, 13, 14, 0.92));
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s ease, box-shadow 0.45s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 240, 220, 0.5), transparent);
  opacity: 0.35;
}

.card-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  top: -180px;
  left: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 230, 189, 0.22), transparent 66%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(60, 230, 189, 0.08);
}

.card:hover .card-glow { opacity: 1; }

.card-lg { grid-column: span 4; }
.card-wide { grid-column: span 6; display: flex; align-items: center; gap: 44px; }

.feat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid rgba(60, 230, 189, 0.24);
  background: rgba(60, 230, 189, 0.06);
  color: var(--teal);
  transition: transform 0.4s var(--ease), background 0.4s ease;
}

.card:hover .feat-icon { transform: translateY(-2px); background: rgba(60, 230, 189, 0.12); }

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.tags span {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.spark {
  margin-top: 22px;
  padding: 12px 14px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 10, 11, 0.6);
}

.spark-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.spark-head b { color: var(--teal); font-weight: 500; }

.spark svg {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: 6px;
  overflow: visible;
}

.engine-demo {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(4, 10, 11, 0.6);
}

.engine-demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.engine-demo-head b { margin-left: auto; color: var(--teal); font-weight: 500; }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

.moves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mv {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  text-align: center;
  border: 1px solid transparent;
  transition: background 0.3s ease;
}

.mv.red { color: #ffb2b7; border-color: rgba(255, 77, 94, 0.32); background: rgba(255, 77, 94, 0.1); }
.mv.teal { color: #9df5e2; border-color: rgba(60, 230, 189, 0.28); background: rgba(60, 230, 189, 0.08); }
.mv.dim { color: var(--muted-2); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }

.card-wide-text { flex: 1; }
.card-wide-text p { max-width: 620px; }

.status-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 200px;
  flex-shrink: 0;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(4, 10, 11, 0.5);
  font-size: 11.5px;
}

.status-pill span { color: var(--muted); }
.status-pill em { font-style: normal; margin-left: auto; color: var(--teal); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; }
.status-pill .ok {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(60, 230, 189, 0.14);
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
}

/* =========================================================
   SPLIT / ANALYSIS / ENDGAME
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 80px;
  align-items: center;
}

.split-copy .sec-lead { margin-bottom: 34px; }

.engine-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(150deg, rgba(14, 28, 29, 0.8), rgba(5, 11, 12, 0.9));
  margin-bottom: 30px;
}

.engine-panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.engine-panel-head b { margin-left: auto; color: var(--red); font-weight: 500; letter-spacing: 0.08em; }

.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0 16px;
}

.engine-grid b {
  display: block;
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.engine-grid b small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.engine-grid span { display: block; margin-top: 5px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted-2); }

.engine-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.engine-bar i {
  display: block;
  width: 64%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal), var(--teal-soft));
  box-shadow: 0 0 12px rgba(60, 230, 189, 0.7);
}

.engine-panel-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}

.score-good { color: var(--teal); font-family: var(--mono); }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-size: 12px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(60, 230, 189, 0.3);
  border-radius: 50%;
}

.split-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.frame-aura {
  position: absolute;
  width: 420px;
  height: 460px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(60, 230, 189, 0.22), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.frame-aura-red { background: radial-gradient(ellipse, rgba(255, 77, 94, 0.2), transparent 68%); }

.device {
  position: relative;
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(160deg, #1a2b2e, #060b0c 55%, #0c1517);
  border: 1px solid rgba(140, 235, 214, 0.22);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease), box-shadow 0.7s ease;
}

.device::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 26px;
  pointer-events: none;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.28);
}

.device img {
  display: block;
  width: 100%;
  aspect-ratio: 1272 / 2772;
  object-fit: cover;
  border-radius: 26px;
  background: #0a1213;
}

.device-analysis {
  width: clamp(260px, 27vw, 330px);
  transform: rotate(-7deg) rotateY(6deg);
  animation: deviceFloat 8s ease-in-out infinite;
}

.device-analysis:hover { transform: rotate(-2deg) rotateY(2deg) translateY(-8px); }

@keyframes deviceFloat {
  0%, 100% { transform: rotate(-7deg) rotateY(6deg) translateY(0); }
  50% { transform: rotate(-6deg) rotateY(4deg) translateY(-14px); }
}

.device-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 7px;
  border-radius: 999px;
  background: rgba(4, 8, 9, 0.85);
  z-index: 2;
}

.float-tag {
  position: absolute;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 16, 0.72);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  animation: floatChip 5.5s ease-in-out infinite;
}

.float-tag span { color: var(--teal); }
.float-tag b { color: var(--teal); font-weight: 500; }
.float-tag-1 { left: -6%; top: 9%; }
.float-tag-2 { right: -8%; bottom: 16%; animation-delay: -2.4s; }
.float-tag-red { left: 2%; bottom: 12%; border-color: rgba(255, 77, 94, 0.3); color: #ffb6bb; }

/* endgame */
.split-reverse { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); }
.split-reverse .split-visual { order: 2; }

.endgame-num {
  font-family: var(--mono);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff3f1, #ff8994 55%, #d92b3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 12px;
}

.endgame-unit { font-size: 22px; color: var(--muted); letter-spacing: 0.06em; }

.endgame-meta {
  display: flex;
  gap: 36px;
  margin: -6px 0 34px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.endgame-meta b { display: block; font-family: var(--mono); font-size: 17px; color: var(--text); font-weight: 600; }
.endgame-meta span { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }

.device-endgame {
  width: clamp(260px, 27vw, 330px);
  transform: rotate(6deg) rotateY(-5deg);
  animation: deviceFloatB 9s ease-in-out infinite;
}

.device-endgame:hover { transform: rotate(2deg) rotateY(-1deg) translateY(-8px); }

@keyframes deviceFloatB {
  0%, 100% { transform: rotate(6deg) rotateY(-5deg) translateY(0); }
  50% { transform: rotate(5deg) rotateY(-3deg) translateY(-12px); }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  padding: 130px 0 90px;
  overflow: hidden;
}

.gallery .sec-head { margin-bottom: 46px; }

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 28px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: marquee 68s linear infinite;
  will-change: transform;
}

.marquee-b .marquee-track { animation-duration: 76s; animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.shot {
  margin: 0;
  width: clamp(190px, 16vw, 236px);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}

.shot .device { width: 100%; }

.shot:hover { transform: translateY(-12px); }
.shot:hover .device { border-color: rgba(140, 240, 220, 0.5); box-shadow: 0 46px 80px -30px rgba(0, 0, 0, 0.95), 0 0 50px -12px rgba(60, 230, 189, 0.4); }

.shot figcaption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
}

/* =========================================================
   THEMES
   ========================================================= */
.theme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.theme-preview {
  --pv-bg: #f4f1ea;
  --pv-line: rgba(32, 64, 58, 0.32);
  --pv-face: #fffdf7;
  --pv-face-line: rgba(32, 96, 84, 0.4);
  --pv-red: #a52832;
  --pv-dark: #1d2a2a;
  --pv-dark-line: rgba(255, 255, 255, 0.35);
  --pv-river: rgba(32, 64, 58, 0.45);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: linear-gradient(155deg, rgba(17, 31, 32, 0.8), rgba(6, 12, 13, 0.94));
}

.theme-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.theme-preview-head b { font-size: 12px; color: var(--text); letter-spacing: 0.08em; font-weight: 600; }

.pv-board {
  position: relative;
  aspect-ratio: 0.9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--pv-bg);
  background-image:
    linear-gradient(to right, var(--pv-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--pv-line) 1px, transparent 1px);
  background-size: calc(100% / 8) calc(100% / 9), calc(100% / 8) calc(100% / 9);
  border: 1px solid var(--pv-line);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.pv-board::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(44.4% + 1px);
  height: calc(11.2% - 2px);
  background: var(--pv-bg);
  border-top: 1px solid var(--pv-line);
  border-bottom: 1px solid var(--pv-line);
  z-index: 1;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.pv-river {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(10px, 1.1vw, 14px);
  letter-spacing: 0.34em;
  color: var(--pv-river);
  pointer-events: none;
  z-index: 2;
}

.pv-piece {
  position: absolute;
  display: grid;
  place-items: center;
  width: 8.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(9px, 1vw, 13px);
  background: var(--pv-face);
  border: 1px solid var(--pv-face-line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -50%);
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease;
  z-index: 2;
}

.pv-piece.pv-red { color: var(--pv-red); border-color: var(--pv-red); }
.pv-piece.pv-dark { color: #f6efe2; background: var(--pv-dark); border-color: var(--pv-dark-line); }

.theme-preview-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}

.pv-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--teal);
}

.theme-swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.swatch {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}

.swatch i {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.15);
}

.swatch span {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.swatch:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.swatch.active { border-color: var(--teal); background: rgba(60, 230, 189, 0.09); }
.swatch.active span { color: var(--text); }

.theme-right {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.device-theme {
  width: clamp(220px, 21vw, 270px);
  transform: rotate(-6deg);
  animation: deviceFloat 8s ease-in-out infinite;
}

.device-skin {
  position: absolute;
  width: clamp(150px, 15vw, 190px);
  right: 0;
  bottom: 0;
  transform: rotate(7deg);
  opacity: 0.86;
  animation: deviceFloatB 10s ease-in-out infinite;
}

.theme-note {
  position: absolute;
  left: 0;
  bottom: 26px;
  max-width: 190px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 15, 16, 0.78);
  backdrop-filter: blur(10px);
}

.theme-note span { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em; color: var(--teal); }
.theme-note p { margin: 6px 0 0; font-size: 11px; line-height: 1.7; color: var(--muted); }

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download { padding-top: 60px; }

.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 70px 64px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(700px 400px at 88% 10%, rgba(60, 230, 189, 0.18), transparent 62%),
    radial-gradient(500px 300px at 8% 92%, rgba(255, 77, 94, 0.1), transparent 66%),
    linear-gradient(150deg, rgba(15, 30, 31, 0.9), rgba(5, 10, 11, 0.96));
  overflow: hidden;
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(120, 220, 200, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 220, 200, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 72%);
  pointer-events: none;
}

.download-copy { position: relative; z-index: 1; }
.download-copy h2 { margin-bottom: 18px; }
.download-copy .sec-lead { margin-bottom: 32px; max-width: 460px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.store-btn:hover { transform: translateY(-3px); border-color: rgba(140, 240, 220, 0.55); background: rgba(60, 230, 189, 0.08); }

.store-btn em { display: block; font-style: normal; font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }
.store-btn i { display: block; font-style: normal; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--muted-2); margin-top: 3px; }
.store-btn svg { color: var(--teal); flex-shrink: 0; }

.download-note { margin: 20px 0 0; font-size: 11px; letter-spacing: 0.06em; color: var(--muted-2); }

.download-visual { position: relative; display: flex; justify-content: center; }

.device-download {
  width: clamp(210px, 20vw, 260px);
  transform: rotate(5deg);
  animation: deviceFloatB 9s ease-in-out infinite;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.85), 0 0 60px -22px rgba(60, 230, 189, 0.55);
}

.download-visual .float-tag-1 { left: 2%; top: auto; bottom: 6%; animation-delay: -1s; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  background: rgba(4, 8, 9, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 19px; }
.footer-brand b { display: block; font-size: 16px; letter-spacing: 0.04em; }
.footer-brand p { margin: 2px 0 0; font-size: 11px; color: var(--muted-2); letter-spacing: 0.08em; }

.footer-links { display: flex; gap: 26px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--teal); }

.footer-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--muted-2); }

.footer-icp { color: var(--muted-2); text-decoration: none; transition: color 0.3s ease; }
.footer-icp:hover { color: var(--teal); }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  z-index: 3500;
  transform: translate(-50%, 20px);
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(8, 18, 18, 0.9);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .shell { padding: 0 32px; }
  .nav { padding: 0 32px; }
  .nav-links { gap: 22px; }
  .hero-inner { gap: 24px; }
  .bento { gap: 14px; }
  .card { padding: 26px 24px; }
  .card-lg { grid-column: span 6; }
  .card-wide { flex-direction: column; align-items: flex-start; gap: 26px; }
  .card-wide .status-stack { width: 100%; flex-direction: row; }
  .status-pill { flex: 1; }
  .card:not(.card-lg):not(.card-wide) { grid-column: span 3; }
  .split { gap: 48px; }
  .theme-layout { gap: 40px; }
  .device-analysis, .device-endgame { width: clamp(240px, 26vw, 300px); }
  .hud-chip-1 { right: 2%; top: 4%; }
  .hud-reticle { display: none; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 14, 15, 0.96);
    backdrop-filter: blur(18px);
    margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 9px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: rgba(60, 230, 189, 0.07); }
  .nav-burger { display: block; }
  .nav-right { margin-left: auto; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 116px 0 64px;
    min-height: auto;
    overflow: visible;
  }
  .hero-inner { order: 1; grid-template-columns: 1fr; min-height: 0; }
  .hero-canvas-wrap {
    order: 2;
    position: relative;
    inset: auto;
    height: clamp(360px, 48vh, 520px);
    margin-top: 20px;
  }
  .hero-canvas-wrap canvas,
  body.webgl-ready .hero-canvas-wrap canvas { opacity: 1; }
  .canvas-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 12px;
    left: 22px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--muted-2);
    text-transform: uppercase;
  }
  .hero-hud { display: none; }
  .hero-copy { max-width: 640px; }
  .hero-stats { margin-top: 40px; }
  .hero-foot { display: none; }

  .section { padding: 100px 0; }
  .sec-head { margin-bottom: 42px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card-lg, .card-wide { grid-column: span 2; }
  .card:not(.card-lg):not(.card-wide) { grid-column: span 1; }

  .split, .split-reverse { grid-template-columns: 1fr; gap: 60px; }
  .split-reverse .split-visual { order: 0; }
  .split-visual { min-height: 520px; }
  .device-analysis, .device-endgame { width: min(300px, 74vw); }
  .float-tag-1 { left: 0; }
  .float-tag-2 { right: 0; }

  .theme-layout { grid-template-columns: 1fr; gap: 56px; }
  .theme-right { min-height: 480px; }
  .device-theme { width: min(260px, 62vw); }
  .device-skin { width: min(170px, 40vw); right: 4%; }
  .theme-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .download-panel { grid-template-columns: 1fr; padding: 48px 34px; gap: 44px; }
  .download-visual { order: -1; }
  .download-visual .device-download { width: min(240px, 62vw); }
  .download-visual .float-tag { display: none; }

  .footer-inner { gap: 24px; }
  .footer-links { margin-left: 0; }
  .footer-meta { margin-left: auto; }
}

@media (max-width: 640px) {
  .shell { padding: 0 22px; }
  .nav { padding: 0 22px; }
  .brand-mark { width: 36px; height: 36px; font-size: 19px; }
  .brand-text { font-size: 17px; }
  .nav-cta { display: none; }

  .hero { padding-top: 104px; }
  .hero-title { font-size: clamp(58px, 19vw, 88px); }
  .hero-title-en { letter-spacing: 0.34em; font-size: 9px; }
  .hero-slogan { font-size: 18px; letter-spacing: 0.12em; }
  .hero-desc { font-size: 14px; line-height: 1.9; }
  .br-pc { display: none; }
  .btn { height: 46px; padding: 0 20px; font-size: 13px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .stat b { font-size: 22px; }

  .section { padding: 84px 0; }
  h2 { font-size: clamp(30px, 8.2vw, 42px); }
  .sec-lead { font-size: 14px; line-height: 1.9; }
  .kicker { gap: 10px; letter-spacing: 0.16em; }
  .sec-index { display: none; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card, .card-lg, .card-wide, .card:not(.card-lg):not(.card-wide) { grid-column: span 1; }
  .card { padding: 24px 22px; }
  .card h3 { font-size: 19px; }
  .card-wide .status-stack { flex-direction: column; }
  .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .engine-grid b { font-size: 22px; }

  .split-visual { min-height: 460px; }
  .device-analysis, .device-endgame { width: min(270px, 78vw); }
  .float-tag { display: none; }

  .gallery { padding: 84px 0 60px; }
  .shot { width: 176px; }
  .marquee { padding: 18px 0; }

  .theme-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .swatch span { font-size: 9px; }
  .theme-preview { padding: 14px; }
  .theme-right { min-height: 420px; }
  .theme-note { display: none; }
  .device-theme { width: min(230px, 66vw); }
  .device-skin { display: none; }

  .download-panel { padding: 38px 24px; border-radius: 22px; }
  .download-visual .device-download { width: min(220px, 66vw); }
  .store-row { flex-direction: column; }
  .store-btn { width: 100%; }

  .footer { padding: 36px 0 44px; }
  .footer-links { order: 3; width: 100%; flex-wrap: wrap; gap: 16px; }
  .footer-meta { margin-left: 0; order: 4; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
