:root {
  --ink: #0f0c0a;
  --panel: #1a1512;
  --panel-2: #241e19;
  --line: rgba(255, 230, 210, 0.12);
  --text: #f7f0e8;
  --mute: #9a8b7e;
  --red: #e8392f;
  --red-deep: #b82018;
  --sky: #4eb0e2;
  --sky-deep: #2a8fc4;
  --kraft: #d4b48a;
  --kraft-soft: #efe0c8;
  --wash: #f3ebe2;
  --wash-ink: #1a1512;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Syne", "Noto Sans SC", sans-serif;
  --header: 72px;
  --gap: clamp(28px, 6vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol, p, h1, h2, h3, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.shell { width: min(1180px, calc(100% - var(--gap))); margin-inline: auto; }

/* ===== header ===== */
.mast {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header);
  display: flex; align-items: center;
  background: rgba(15, 12, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.mast-inner {
  width: min(1180px, calc(100% - var(--gap)));
  margin-inline: auto;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img {
  width: 42px; height: 42px; border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.4), 0 0 0 1px rgba(232,57,47,.35);
}
.brand strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; font-size: 11px; color: var(--mute); letter-spacing: .1em; }
.nav { margin-left: auto; display: flex; gap: 15px; font-size: 13px; font-weight: 700; color: var(--mute); }
.nav a:hover { color: var(--sky); }
.mast-cta {
  padding: 10px 16px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(232,57,47,.45);
}
.menu {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; font-size: 20px;
}

/* ===== HERO ARENA ===== */
.arena {
  position: relative;
  padding: calc(var(--header) + 24px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(78,176,226,.2), transparent 45%),
    radial-gradient(ellipse at 15% 30%, rgba(232,57,47,.16), transparent 40%),
    linear-gradient(180deg, #16110e 0%, var(--ink) 70%);
}
.arena-orbits { position: absolute; inset: 0; pointer-events: none; }
.arena-orbits i {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(78,176,226,.18);
  animation: spin 28s linear infinite;
}
.arena-orbits i:nth-child(1) { width: 520px; height: 520px; right: -80px; top: 40px; }
.arena-orbits i:nth-child(2) {
  width: 360px; height: 360px; right: 40px; top: 120px;
  border-color: rgba(232,57,47,.2); animation-duration: 18s; animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.arena-grid {
  position: relative;
  width: min(1180px, calc(100% - var(--gap)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas:
    "copy stage"
    "cta stage"
    "hud stage";
  gap: 16px 28px;
  padding-bottom: 56px;
  align-items: start;
}
.arena-copy { grid-area: copy; }
.arena-cta { grid-area: cta; }
.arena-hud { grid-area: hud; }
.arena-stage { grid-area: stage; }

.arena-copy .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(232,57,47,.15); color: #ff8a7e;
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
}
.arena-copy .kicker em {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(232,57,47,.2); animation: pulse 1.5s ease infinite;
}
@keyframes pulse { 50% { opacity: .35; } }
.arena-copy h1 {
  font-family: var(--display);
  font-size: clamp(46px, 7.5vw, 82px);
  font-weight: 800; letter-spacing: -.04em; line-height: .98;
}
.arena-copy .lead {
  margin-top: 12px; font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 800; color: var(--sky);
}
.arena-copy .desc {
  margin-top: 14px; max-width: 34em; color: var(--mute); font-size: 15px; line-height: 1.85;
}
.hot-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center;
}
.hot-row > span { font-size: 12px; font-weight: 800; color: var(--mute); }
.hot-row button, .hot-row a.chip {
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-size: 12px; font-weight: 800; color: var(--kraft);
}
.hot-row button:hover, .hot-row a.chip:hover { border-color: var(--sky); color: var(--sky); }

.btn-dl {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 0 26px; border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; font-size: 16px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(232,57,47,.45);
}
.btn-dl i { font-size: 22px; }
.btn-dl small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; opacity: .88; }

.hud {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.hud article {
  padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.hud b { display: block; font-size: 11px; letter-spacing: .08em; color: var(--mute); margin-bottom: 4px; }
.hud strong { display: block; font-size: 18px; font-weight: 900; }
.hud span { display: block; margin-top: 2px; font-size: 11px; color: var(--mute); }
.hud article:nth-child(1) strong { color: var(--sky); }
.hud article:nth-child(2) strong { color: #ff8a7e; }
.hud article:nth-child(3) strong { color: var(--kraft); }

/* stage: layered phones + floating cards */
.stage {
  position: relative;
  min-height: 520px;
  display: grid; place-items: center;
}
.stage-glow {
  position: absolute; width: 70%; height: 55%; border-radius: 50%;
  background: radial-gradient(circle, rgba(78,176,226,.28), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.phone-a, .phone-b {
  position: relative; padding: 12px; border-radius: 34px;
  background: #090706;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.45);
}
.phone-a { width: min(240px, 58%); z-index: 2; transform: rotate(-4deg) translateX(-18px); }
.phone-b {
  position: absolute; width: min(200px, 48%); right: 4%; bottom: 8%; z-index: 1;
  transform: rotate(7deg); opacity: .95;
}
.phone-a .notch, .phone-b .notch {
  width: 36%; height: 8px; margin: 0 auto 8px; border-radius: 999px; background: #2a231e;
}
.phone-a img, .phone-b img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  image-rendering: auto;
}
.float-card {
  position: absolute; z-index: 3;
  padding: 12px 14px; border-radius: 16px;
  background: #fff; color: var(--wash-ink);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
  max-width: 180px; text-align: left;
  animation: floaty 4.8s ease-in-out infinite;
}
.float-card.f1 { top: 6%; left: -2%; }
.float-card.f2 { top: 38%; right: -4%; animation-delay: -1.5s; background: #1a1512; color: var(--text); border: 1px solid var(--line); }
.float-card.f3 { bottom: 4%; left: 8%; animation-delay: -2.8s; background: var(--red); color: #fff; }
.float-card b { display: block; font-size: 11px; letter-spacing: .08em; opacity: .7; margin-bottom: 4px; }
.float-card strong { display: block; font-size: 14px; font-weight: 900; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== LAB FILTER ===== */
.lab {
  padding: 72px 0;
  background:
    repeating-linear-gradient(-8deg, rgba(212,180,138,.06) 0 2px, transparent 2px 12px),
    var(--panel);
  border-block: 1px solid var(--line);
}
.sec-head { margin-bottom: 24px; }
.sec-head .label {
  display: block; margin-bottom: 8px;
  color: var(--sky); font-size: 12px; font-weight: 800; letter-spacing: .14em;
}
.sec-head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 16em;
}
.sec-head p { margin-top: 10px; max-width: 42em; color: var(--mute); font-size: 15px; }

.lab-console {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px;
  padding: 18px; border-radius: 28px;
  background: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.lab-filters h3 { font-size: 14px; font-weight: 900; margin-bottom: 12px; color: var(--kraft); }
.filter-group { margin-bottom: 14px; }
.filter-group span {
  display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; color: var(--mute);
}
.filter-group .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-group button {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); font-size: 12px; font-weight: 800; color: var(--mute);
}
.filter-group button.is-on {
  background: var(--sky); color: #06202c; border-color: var(--sky);
}
.lab-results {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start;
}
.result {
  padding: 14px; border-radius: 18px;
  background: var(--panel-2); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s;
}
.result:hover { transform: translateY(-3px); border-color: rgba(78,176,226,.4); }
.result .top {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px;
  font-size: 11px; font-weight: 800; color: var(--mute); position: static;
  background: none; border: 0; height: auto; backdrop-filter: none;
}
.result strong { display: block; font-size: 15px; font-weight: 900; margin-bottom: 4px; }
.result p { font-size: 12px; color: var(--mute); }
.result .go {
  display: inline-flex; margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--sky);
}

/* ===== TRIPLE BOARD ===== */
.boards {
  padding: 80px 0;
  background: var(--ink);
}
.board-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.board-tabs button {
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 800; color: var(--mute); background: var(--panel);
}
.board-tabs button.is-on {
  background: var(--red); color: #fff; border-color: var(--red);
}
.board-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.board {
  border-radius: 24px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.board header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--panel-2);
  font-size: 13px; font-weight: 900;
}
.board header em { color: var(--sky); font-style: normal; font-size: 11px; letter-spacing: .08em; }
.board ol { padding: 8px 0 12px; }
.board li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 10px 16px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.board li:last-child { border-bottom: 0; }
.board li b {
  width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(232,57,47,.18); color: #ff8a7e; font-size: 11px;
}
.board li:nth-child(1) b { background: var(--red); color: #fff; }
.board li:nth-child(2) b { background: var(--sky); color: #06202c; }
.board li:nth-child(3) b { background: var(--kraft); color: #2a1c0c; }
.board li span { color: var(--mute); font-size: 12px; }
.board-panel { display: none; }
.board-panel.is-on { display: grid; }

/* ===== SCREEN SHOWCASE ===== */
.comic {
  padding: 80px 0;
  background:
    linear-gradient(90deg, rgba(232,57,47,.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(78,176,226,.06) 1px, transparent 1px) 0 0 / 48px 48px,
    #140f0c;
  border-block: 1px solid var(--line);
}
.comic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.comic-cell {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.comic-cell.tall { grid-row: auto; }
.comic-cell .shot {
  display: grid;
  place-items: center;
  padding: 16px 16px 0;
  background: #0c0a08;
}
.comic-cell img {
  width: min(100%, 240px);
  height: auto;
  border-radius: 18px;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
.comic-cell figcaption {
  position: static;
  padding: 14px 16px 16px;
  background: transparent;
  backdrop-filter: none;
}
.comic-cell figcaption b { display: block; color: var(--sky); font-size: 11px; letter-spacing: .1em; margin-bottom: 4px; }
.comic-cell figcaption strong { display: block; font-size: 15px; font-weight: 900; }
.comic-cell figcaption span { display: block; margin-top: 4px; font-size: 12px; color: var(--mute); }
.comic-cell:nth-child(2),
.comic-cell:nth-child(3) { transform: none; box-shadow: 0 16px 36px rgba(0,0,0,.28); }

/* ===== ZIG PATH ===== */
.path {
  padding: 80px 0;
  background: var(--wash); color: var(--wash-ink);
}
.path .sec-head .label { color: var(--sky-deep); }
.path .sec-head p { color: #6d6258; }
.zig {
  display: grid; gap: 18px;
}
.zig-item {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center;
  padding: 22px; border-radius: 28px; background: #fff;
  border: 1px solid rgba(26,22,18,.08);
  box-shadow: 0 16px 40px rgba(26,22,18,.06);
}
.zig-item:nth-child(even) { direction: rtl; }
.zig-item:nth-child(even) > * { direction: ltr; }
.zig-item .num {
  font-family: var(--display); font-size: 72px; font-weight: 800;
  line-height: .9; color: rgba(232,57,47,.18);
}
.zig-item h3 { font-size: 22px; font-weight: 900; margin: 8px 0; }
.zig-item p { font-size: 14px; color: #5c524a; }
.zig-item .badge {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  background: rgba(78,176,226,.15); color: var(--sky-deep);
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.zig-visual {
  border-radius: 20px; overflow: hidden; background: #1a1512;
  border: 1px solid rgba(26,22,18,.1);
  display: grid; place-items: center; padding: 18px;
}
.zig-visual img {
  width: min(100%, 220px);
  height: auto;
  border-radius: 16px;
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
  background: var(--panel);
}
.faq-list {
  display: grid;
  gap: 10px;
  width: 100%;
}
.faq details {
  width: 100%;
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 20px;
  font-weight: 400;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin-top: 10px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.8;
  max-width: none;
}

/* ===== VOICES WALL ===== */
.voices {
  padding: 80px 0;
  background: #0a0807;
}
.voice-wall {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px;
}
.voice {
  grid-column: span 4;
  padding: 20px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.voice:nth-child(1) { grid-column: span 5; transform: translateY(8px); }
.voice:nth-child(2) { grid-column: span 7; background: linear-gradient(160deg, rgba(78,176,226,.12), var(--panel)); }
.voice:nth-child(3) { grid-column: span 7; background: linear-gradient(160deg, rgba(232,57,47,.12), var(--panel)); }
.voice:nth-child(4) { grid-column: span 5; transform: translateY(-12px); }
.voice:nth-child(5) { grid-column: span 4; }
.voice:nth-child(6) { grid-column: span 8; }
.voice time { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: var(--mute); }
.voice strong { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 900; }
.voice p { font-size: 14px; color: #cfc3b8; line-height: 1.8; }

/* ===== GET ===== */
.get {
  position: relative; padding: 80px 0 96px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #2a1210, var(--ink));
  border-top: 1px solid rgba(232,57,47,.25);
}
.get::before {
  content: ""; position: absolute; inset: -20% 20% auto; height: 60%;
  background: radial-gradient(circle, rgba(232,57,47,.35), transparent 70%);
  pointer-events: none;
}
.get h2 {
  position: relative;
  font-family: var(--display); font-size: clamp(32px, 5vw, 52px); font-weight: 800;
}
.get p { position: relative; margin: 12px auto 26px; max-width: 32em; color: var(--mute); }
.get .btn-dl { position: relative; }

.foot {
  padding: 36px var(--gap) 52px;
  background: #050403; color: #8a7d72; font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 10px; color: #fff; font-weight: 800;
}
.foot-brand img { width: 28px; height: 28px; border-radius: 8px; background: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 10px; }
.foot nav a:hover { color: var(--sky); }

#interaction-complaint-button { color: #1f2430 !important; font-weight: 700; }
#interaction-complaint-button:hover { color: #1f2430 !important; }
.backtop {
  position: fixed; right: 24px; bottom: 84px; z-index: 40;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--red); color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  box-shadow: 0 2px 6px rgba(232,57,47,.4);
}
.backtop.on { opacity: 1; pointer-events: auto; }

.fade { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade, .float-card, .arena-orbits i, .arena-copy .kicker em { animation: none !important; transition: none !important; }
  .fade { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 10px; background: #1a1512; border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 12px; color: var(--text); }
  .menu { display: grid; place-items: center; margin-left: auto; }
  .mast-cta { display: none; }
  .arena-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "cta" "hud" "stage";
  }
  .arena-cta .btn-dl { width: 100%; justify-content: center; }
  .hud { grid-template-columns: 1fr; }
  .stage { min-height: 420px; margin-top: 8px; }
  .phone-a { width: min(220px, 62%); transform: rotate(-2deg); }
  .phone-b { width: min(170px, 46%); }
  .float-card.f1, .float-card.f2 { display: none; }
  .lab-console, .board-grid, .zig-item, .zig-item:nth-child(even) {
    grid-template-columns: 1fr; direction: ltr;
  }
  .comic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-results { grid-template-columns: 1fr; }
  .voice-wall { grid-template-columns: 1fr; }
  .voice, .voice:nth-child(n) { grid-column: auto; transform: none; }
  .board-panel.is-on { grid-template-columns: 1fr; }
  .backtop { right: 16px; bottom: 76px; }
}
