/* ============================================================
   元穹 ArcSeek — enterprise dark system
   深色 · 克制蓝 · 玻璃面板 · 技术可视化
   ============================================================ */

:root {
  --bg: #000000;
  --bg-2: #0b0b0f;
  --bg-3: #1c1c1e;
  --panel: #101014;
  --panel-2: #1c1c1e;

  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --line-3: rgba(255, 255, 255, 0.32);

  --text: #ffffff;
  --text-2: #a1a1aa;
  --text-3: #71717a;

  --blue: #ffffff;
  --blue-2: #e4e4e7;
  --cyan: #a1a1aa;
  --accent: #ffffff;

  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    ui-sans-serif, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "JetBrains Mono", ui-monospace,
    Consolas, monospace;

  --max: 1240px;
  --pad: 32px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -42px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, p, ul, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

::selection {
  background: rgba(37, 99, 235, 0.55);
  color: #fff;
}

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05070b; }
::-webkit-scrollbar-thumb {
  background: #1b2a42;
  border: 3px solid #05070b;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #2b4266; }

/* ---------------- background layers ---------------- */

#bg3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
#bg3d.ready { opacity: 1; }
html.no-webgl #bg3d { display: none; }
body.bg-flat #bg3d,
body.bg-flat .bg-scrim,
body.bg-flat .grain { display: none; }

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 78%, rgba(0, 0, 0, 0.6) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.012;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--text);
  color: #05070b;
  font-size: 12px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

/* ---------------- type ---------------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-2), transparent);
}
.kicker b {
  color: var(--blue-2);
  font-weight: 600;
}
.kicker i {
  font-style: normal;
  color: var(--text-3);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text);
}

.grad { color: var(--text); }

.lead {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-2);
}

/* ---------------- buttons ---------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}
.btn .ico { width: 16px; height: 16px; opacity: 0.9; }
.btn .arrow {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover .arrow { transform: translateX(2px); }

.btn-primary {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}
.btn-primary:hover {
  background: #d4d4d8;
  border-color: #d4d4d8;
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-3);
  transform: translateY(-1px);
}

.btn-sm { height: 40px; padding: 0 16px; font-size: 12.5px; }

/* ---------------- nav ---------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  background: rgba(5, 7, 11, 0.55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  background: rgba(5, 7, 11, 0.9);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #dceeff 0%, #7bb7ff 18%, #2563eb 52%, #07142c 82%, #03060c 100%);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.45), inset -2px -3px 7px rgba(0, 0, 0, 0.6);
}
.brand-mark i {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(103, 232, 249, 0.32);
  transform: rotate(-25deg) scaleY(0.42);
}

.brand-logo {
  display: block;
  width: 52px;
  height: auto;
  flex: 0 0 auto;
}
.footer-brand .brand-logo { width: 64px; }

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-name em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 26px;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.nav-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: calc(92px + env(safe-area-inset-top)) 0 0;
  overflow: hidden;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 92px);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-top i {
  font-style: normal;
  margin-left: 8px;
  color: var(--text-2);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 56px;
  align-items: center;
  padding: 46px 0 38px;
}

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

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12px;
  color: var(--text-2);
}
.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.08), 0 0 12px rgba(103, 232, 249, 0.5);
}
.hero-kicker .sep {
  width: 20px;
  height: 1px;
  background: var(--line-2);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.05em;
}
.hero-title-cn {
  display: block;
  font-size: clamp(56px, 6.8vw, 92px);
  color: #fff;
}
.hero-title-en {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 5px;
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: #dfe8f7;
}
.hero-title-en sup {
  margin-top: 0.28em;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-sub {
  margin-top: 26px;
  max-width: 35em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-2);
}

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

.hero-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* stage */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.stage-frame {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0a0a0c;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.console {
  width: 78%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: #111114;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.95);
  transform: rotate(-3deg) rotateY(4deg);
  overflow: hidden;
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--text-3);
}
.console-head span:last-child {
  padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-2);
}
.console-prompt { padding: 16px 14px; border-bottom: 1px solid var(--line); }
.console-prompt > span {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .12em; color: var(--text-3);
}
.console-prompt p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text); }
.console-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.console-chips i {
  padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-mono); font-size: 7.5px; font-style: normal; color: var(--text-2);
}
.console-rows { padding: 6px 14px; }
.console-rows > div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.console-rows > div:last-child { border-bottom: 0; }
.console-rows span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--text-3); }
.console-rows em { font-family: var(--font-mono); font-size: 10.5px; font-style: normal; color: var(--text-2); }
.console-progress {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--text-3);
}
.console-progress > div { flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.console-progress i { display: block; width: 6.4%; height: 100%; background: #fff; }
.console-progress b { font-weight: 500; color: var(--text-2); }

.tech-wall {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 22px 0; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-3);
}

.stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* CSS fallback orb */
.orb-fallback {
  position: absolute;
  inset: 13%;
  z-index: 1;
  display: grid;
  place-items: center;
  transition: opacity 0.9s ease;
}
.orb-core {
  width: 48%;
  height: 48%;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: radial-gradient(circle at 38% 32%, #1b2637 0%, #0a0e16 52%, #05070b 80%);
}
.orb-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(0.36);
}
.orb-ring.r2 { width: 90%; height: 90%; transform: rotate(42deg) scaleY(0.42); opacity: 0.5; }
.orb-ring.r3 { width: 68%; height: 68%; transform: rotate(-70deg) scaleY(0.5); opacity: 0.3; }
html.webgl .orb-fallback { opacity: 0; }

.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.hero-scroll:hover { color: var(--accent); }
.hero-scroll svg {
  width: 13px;
  height: 13px;
  animation: nudge 2.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---------------- spec strip ---------------- */

.strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #000;
}
.strip-wrap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.strip-item {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.strip-item:first-child { padding-left: 0; }
.strip-item:last-child { border-right: 0; }
.strip-item dt {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.strip-item dd {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--text);
}
.strip-item dd span {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-3);
}

/* ---------------- sections ---------------- */

main { position: relative; z-index: 2; }

.section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  border-top: 1px solid var(--line);
  background: #000;
}
.section-soft { background: #000; }
.strip + .section { border-top: 0; }

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}
.split-head .lead { max-width: 42ch; }
.sec-head { max-width: 680px; }
.sec-head .lead { max-width: 50ch; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}
.tags span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------------- stats ---------------- */

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), var(--shadow);
}
.stat {
  position: relative;
  padding: 24px 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n + 3) { border-bottom: 0; }
.stat-index {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.stat .num {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.stat .num span {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-2);
  letter-spacing: 0;
}
.stat-label {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------------- architecture ---------------- */

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.stack-panel {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
}
.stack-top,
.stack-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.stack-top { padding: 2px 4px 13px; border-bottom: 1px solid var(--line); }
.stack-foot { padding: 13px 4px 2px; border-top: 1px solid var(--line); }

.stack-stage {
  position: relative;
  height: 280px;
  display: grid;
  place-items: center;
  perspective: 1100px;
  overflow: hidden;
}
.stack-glow { display: none; }
.stack-axis {
  position: absolute;
  width: 1px;
  height: 240px;
  background: linear-gradient(180deg, transparent, rgba(103, 232, 249, 0.35), transparent);
}
.stack {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 160px;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-38deg);
  animation: stackSpin 36s linear infinite;
}
.stack-layer {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(103, 232, 249, 0.01));
  transform: translateZ(calc(var(--i) * 4.4px));
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.stack-layer:nth-child(3n) {
  border-color: rgba(103, 232, 249, 0.42);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(103, 232, 249, 0.02));
}
.stack-layer:nth-child(5n) { border-color: rgba(138, 184, 255, 0.5); }
.stack-panel:hover .stack { animation-play-state: paused; }
.stack-layer:hover,
.stack-layer.is-selected {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(103, 232, 249, 0.08));
  box-shadow: 0 0 24px rgba(103, 232, 249, 0.28), inset 0 0 18px rgba(37, 99, 235, 0.28);
  z-index: 2;
}
.stack-layer:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.stack-toggle {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255,255,255,.025); color: var(--text-2);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.stack-toggle:hover,
.stack-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--line-3); background: rgba(37,99,235,.12); }

.stack.is-exploded { animation: none; transform: none; width: 220px; height: 240px; }
.stack.is-exploded .stack-layer {
  inset: auto; top: calc(var(--i) * 10px); left: 0; width: 220px; height: 9px;
  border-radius: 2px; transform: none;
}
.stack.is-exploded .stack-layer::after {
  content: attr(data-layer); position: absolute; left: 8px; top: -2px;
  font-family: var(--font-mono); font-size: 7px; line-height: 12px; color: var(--text-3);
}
.stack.is-exploded .stack-layer.is-selected::after { color: var(--cyan); }
@keyframes stackSpin {
  from { transform: rotateX(60deg) rotateZ(-38deg); }
  to { transform: rotateX(60deg) rotateZ(322deg); }
}

.layer-rail {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.layer-rail button {
  height: 18px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(37, 99, 235, 0.05);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.layer-rail button:hover { background: rgba(37, 99, 235, 0.3); }
.layer-rail button.is-selected {
  background: var(--blue-2);
  border-color: var(--cyan);
  transform: scaleY(1.35);
}
.layer-rail button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.layer-inspector {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}
.layer-inspector-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.layer-no {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; color: var(--cyan);
}
.layer-group {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; color: var(--text-3);
}
.layer-desc {
  margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--text-2);
}
.layer-spec {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.layer-spec > div {
  padding: 7px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.layer-spec dt {
  font-family: var(--font-mono); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3);
}
.layer-spec dd {
  margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--text); font-variant-numeric: tabular-nums;
}

/* ---------------- architecture detail ---------------- */

.arch-detail {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.arch-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 18px;
}
.detail-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.arch-detail-head h3 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}
.detail-hint {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  white-space: nowrap;
}

.acc-list { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 0.9fr) 30px;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 19px 2px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.acc-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.acc-title {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.2s ease;
}
.acc-meta {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.acc-chev {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition: transform 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}
.acc-chev svg { width: 14px; height: 14px; }
.acc-btn:hover .acc-title { color: var(--accent); }
.acc-btn:hover .acc-chev { border-color: var(--line-2); color: var(--text); }
.acc-item.is-open .acc-chev {
  transform: rotate(180deg);
  border-color: var(--line-3);
  color: var(--accent);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.acc-panel-inner { overflow: hidden; min-height: 0; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-body { padding: 4px 0 30px 68px; }

.arch-table-wrap { max-width: 880px; }
.arch-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.arch-table th {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--text-3);
}
.arch-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.arch-table td:first-child { color: var(--text); font-weight: 500; }
.arch-table th:last-child,
.arch-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.arch-table tfoot td {
  border-bottom: 0;
  padding-top: 13px;
  font-weight: 600;
  color: var(--text);
}
.arch-table tfoot td:last-child { color: var(--accent); }

.param-bar {
  display: flex;
  height: 6px;
  margin-top: 20px;
  border-radius: 999px;
  overflow: hidden;
  background: #111827;
}
.param-bar i:nth-child(1) { width: 11%; background: #475569; }
.param-bar i:nth-child(2) { width: 78%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }
.param-bar i:nth-child(3) { width: 11%; background: var(--cyan); }
.param-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.param-legend span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}
.lg-embed { color: #94a3b8; }
.lg-block { color: var(--blue-2); }
.lg-head { color: var(--cyan); }
.arch-note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
}

.mech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1000px;
}
.mech {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}
.mech span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.mech h4 {
  margin: 7px 0 5px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.mech p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}

.detail-list {
  display: grid;
  gap: 9px;
  max-width: 860px;
}
.detail-list li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-2);
}
.detail-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}

/* ---------------- training ---------------- */

.split-train { align-items: start; }

.lab-note {
  display: flex;
  gap: 13px;
  max-width: 430px;
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 2px solid var(--blue-2);
  background: rgba(37, 99, 235, 0.06);
}
.lab-note > span {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.lab-note p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.rig {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--shadow);
}
.rig-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rig-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.rig-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 2.8s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.gpu-visual {
  position: relative;
  width: 100%;
  height: 238px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  perspective: 900px;
  overflow: hidden;
}
.gpu-visual:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.gpu-chip {
  position: relative;
  display: block;
  width: 172px;
  height: 172px;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 20px;
  background: linear-gradient(145deg, #0e1c31, #060b14 74%);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.6), inset 0 0 26px rgba(37, 99, 235, 0.10);
  transform: rotateX(56deg) rotateZ(-38deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gpu-visual:hover .gpu-chip,
.gpu-visual:focus-visible .gpu-chip {
  transform: rotateX(52deg) rotateZ(-34deg) scale(1.02);
}
.gpu-pins {
  position: absolute;
  inset: -10px;
  display: block;
  border-radius: 28px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(96, 165, 250, 0.26) 9px 11px) top / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(96, 165, 250, 0.26) 9px 11px) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(96, 165, 250, 0.26) 9px 11px) left / 5px 100% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(96, 165, 250, 0.26) 9px 11px) right / 5px 100% no-repeat;
  opacity: 0.6;
}
.gpu-die {
  position: absolute;
  inset: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.08), rgba(37, 99, 235, 0.02));
  box-shadow: inset 0 0 24px rgba(37, 99, 235, 0.16);
}
.gpu-die span {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.28em;
  color: var(--cyan);
}
.gpu-die b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}
.gpu-die em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.gpu-glow {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 260px;
  height: 64px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.3), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}
.gpu-hint {
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.gpu-visual:hover .gpu-hint,
.gpu-visual:focus-visible .gpu-hint { color: var(--accent); }
.gpu-hint svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}
.gpu-visual[aria-expanded="true"] .gpu-hint svg { transform: rotate(180deg); }

.gpu-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.gpu-details-inner { overflow: hidden; min-height: 0; }
.gpu-details.is-open { grid-template-rows: 1fr; }
.gpu-details-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.gpu-details-head b {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: none;
}
.gpu-photo {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #05070b;
}
.gpu-photo img { display: block; width: 100%; height: auto; max-height: 240px; object-fit: cover; object-position: center; }
.gpu-photo figcaption {
  padding: 8px 12px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
}

.gpu-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.gpu-spec-grid > div {
  padding: 11px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gpu-spec-grid dt {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.gpu-spec-grid dd {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text);
}
.gpu-note {
  padding: 12px 0 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-3);
}

.spec { margin-top: 4px; }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-row > span {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.spec-row em {
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: right;
  color: var(--text);
}

.vram {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.vram-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.vram-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.rig.in .vram-bar i { transform: scaleX(1); }
.vram b { color: var(--text); font-weight: 500; }

/* ---------------- training screenshots ---------------- */

.train-live { margin-top: 72px; }
.train-live-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.train-live-head h3 {
  margin-top: 8px; font-family: var(--font-display); font-size: 23px; font-weight: 600;
  letter-spacing: -.03em; color: var(--text);
}
.train-live-status {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}

.shot {
  position: relative; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #f6f8fb; color: inherit; text-align: left; cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: border-color .25s ease, transform .25s ease;
}
.shot:hover { border-color: var(--line-3); transform: translateY(-2px); }
.shot:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.shot-bar {
  display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 12px;
  background: #e9edf3; border-bottom: 1px solid #d8dee8;
}
.shot-dots { display: inline-flex; gap: 5px; flex: 0 0 auto; }
.shot-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b9c3d1; }
.shot-url {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; color: #6b7686;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shot img { display: block; width: 100%; height: auto; background: #fff; }
.shot-main img { max-height: 560px; object-fit: top; object-position: top center; }
.shot-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 13px; background: #f6f8fb; border-top: 1px solid #d8dee8;
}
.shot-caption b { font-size: 11px; font-weight: 600; color: #364152; }
.shot-caption span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .05em; color: #7c8798; text-align: right; }
.shot::after {
  content: "+"; position: absolute; top: 42px; right: 12px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(37,99,235,.35); border-radius: 6px;
  background: rgba(255,255,255,.88); color: var(--blue); font-size: 16px; line-height: 1;
  opacity: 0; transition: opacity .2s ease;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; }

.shot-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px;
}
.shot-grid .shot:nth-child(3) { grid-column: 1 / -1; }
.shot-grid .shot img { max-height: 260px; object-fit: top; object-position: top center; }
.shot-grid .shot:nth-child(3) img { max-height: 130px; }

.train-live-note {
  margin-top: 16px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em;
  color: var(--text-3);
}

.shot-dialog {
  position: fixed; z-index: 120; max-width: min(92vw, 1600px); max-height: 92vh;
  padding: 0; border: 1px solid var(--line-2); border-radius: 12px;
  background: #0a0f18; color: var(--text); overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.95);
}
.shot-dialog::backdrop { background: rgba(2,4,8,.86); backdrop-filter: blur(6px); }
.shot-dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.shot-dialog-head button {
  width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer;
}
.shot-dialog-head button:hover { color: #fff; border-color: var(--line-2); }
.shot-dialog img { display: block; max-width: 100%; max-height: calc(92vh - 54px); background: #fff; }

/* ---------------- about ---------------- */

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.about-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.about-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}
.about-list span {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.profile {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), var(--shadow);
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 2px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(103, 232, 249, 0.06));
}
.avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0a1222;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.profile-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.profile-role {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.profile-quote {
  margin: 22px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
}
.profile-quote::before { content: "“"; color: var(--accent); }
.profile-quote::after { content: "”"; color: var(--accent); }

.contact-list { border-top: 1px solid var(--line); }
.contact-list a,
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.contact-list span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.contact-list em {
  font-style: normal;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.contact-list a:hover em { color: var(--accent); }

.profile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}
.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 2.8s ease-in-out infinite;
}

/* ---------------- cta ---------------- */

.cta {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 104px 0;
  border-top: 1px solid var(--line);
  background: #000;
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.cta .lead {
  max-width: 44ch;
  text-align: center;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.cta-mail {
  margin-top: 24px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta-mail:hover { color: var(--accent); border-color: var(--accent); }
.cta-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------------- footer ---------------- */

.footer {
  position: relative;
  z-index: 2;
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #000;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark {
  width: 19px;
  height: 19px;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.35), inset -2px -3px 6px rgba(0, 0, 0, 0.6);
}
.footer-brand .brand-mark i { inset: -3px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.footer-brand span {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

/* ---------------- reveal ---------------- */

.reveal {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }

/* ---------------- iOS grouped surfaces ---------------- */

.stat-grid,
.rig,
.profile,
.stack-panel,
.arch-detail,
.train-live .shot { backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }

.stat { padding: 22px 24px; }
.spec-row { padding: 15px 0; min-height: 44px; }
.contact-list a,
.contact-row { padding: 13px 0; min-height: 44px; }
.about-list li { padding: 16px 0; }
.gpu-spec-grid > div { padding: 13px 14px; }
.layer-inspector { border-radius: 14px; }
.shot { border-radius: 14px; }
.shot-caption { padding: 11px 14px; }

/* iOS safe-area for narrow screens */
@media (max-width: 640px) {
  .nav {
    height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  .hero { padding-top: calc(76px + env(safe-area-inset-top)); }
  .strip-item:first-child { padding-left: max(20px, env(safe-area-inset-left)); }
  .mw-hint { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; }
  .split, .about { gap: 48px; }
  .arch-grid { gap: 40px; }
}

@media (max-width: 960px) {
  :root { --pad: 24px; }

  .nav-links { display: none; }

  .hero { min-height: 0; padding-top: 96px; }
  .hero-wrap { min-height: 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 40px 0 38px;
  }
  .hero-copy { max-width: none; }
  .hero-stage {
    max-width: 460px;
    margin: 0 auto;
    justify-self: center;
  }
  .hero-title-cn { font-size: clamp(58px, 10vw, 84px); }
  .hero-title-en { font-size: clamp(46px, 8vw, 68px); }
  .hero-foot { margin-top: 6px; }

  .strip { overflow-x: auto; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .strip-wrap {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    padding-right: 0;
  }
  .strip-item:first-child { padding-left: 24px; }

  .section { padding: 78px 0; }
  .split, .about { grid-template-columns: 1fr; gap: 40px; }
  .split-head .lead, .sec-head .lead, .lead { max-width: none; }
  .arch-grid { grid-template-columns: 1fr; gap: 34px; }
  .stack-panel { max-width: 540px; }
  .arch-detail { margin-top: 40px; }
  .arch-detail-head { align-items: flex-start; }
  .detail-hint { display: none; }
  .mech-grid { grid-template-columns: 1fr; }
  .train-live { margin-top: 56px; }
  .shot-grid { grid-template-columns: 1fr; }
  .shot-grid .shot:nth-child(3) { grid-column: auto; }
  .cta { padding: 88px 0 92px; }
}

@media (max-width: 720px) {
  .acc-btn { grid-template-columns: 32px minmax(0, 1fr) 28px; gap: 12px; }
  .acc-meta { display: none; }
  .acc-panel-body { padding-left: 44px; }
  .arch-table { font-size: 12.5px; }
  .arch-table td:nth-child(2) { font-size: 11.5px; }
  .gpu-spec-grid { grid-template-columns: 1fr 1fr; }
  .stack-stage { height: 250px; }
  .stack { width: 145px; height: 145px; }
  .hero-title-cn { font-size: clamp(54px, 14vw, 72px); }
  .hero-title-en { font-size: clamp(42px, 11.5vw, 58px); }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }

  .nav { height: 58px; }
  .brand-name { font-size: 15px; }
  .brand-name em { font-size: 8px; }
  .nav-ghost { display: none; }

  .hero { padding-top: 88px; }
  .hero-top { font-size: 8px; letter-spacing: 0.11em; }
  .hero-top i { display: none; }
  .hero-grid { padding: 32px 0 32px; gap: 34px; }
  .hero-kicker { font-size: 11px; gap: 8px; }
  .hero-title-cn { font-size: clamp(54px, 15vw, 68px); }
  .hero-title-en { font-size: clamp(42px, 12.5vw, 54px); gap: 8px; }
  .hero-title-en sup { margin-top: 0.2em; font-size: 8px; }
  .hero-sub { margin-top: 22px; font-size: 15px; }
  .hero-cta { margin-top: 26px; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-note { font-size: 7.5px; letter-spacing: 0.08em; }

  .hero-stage { max-width: 370px; }
  .stage-frame { border-radius: 12px; }
  .stage-caption { font-size: 7px; letter-spacing: 0.08em; }
  .stage-caption span:last-child { display: none; }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 7.5px;
    letter-spacing: 0.1em;
  }

  .section { padding: 64px 0; }
  .kicker { margin-bottom: 18px; }
  .lead { margin-top: 18px; font-size: 13.5px; }

  .stat { padding: 20px 18px; }
  .stat .num { margin-top: 16px; font-size: 38px; }
  .stat-label { font-size: 7.5px; }

  .stack-stage { height: 220px; }
  .stack { width: 126px; height: 126px; }

  .arch-detail-head { padding-top: 24px; }
  .arch-detail-head h3 { font-size: 20px; }
  .acc-btn { padding: 16px 0; }
  .acc-title { font-size: 15px; }
  .acc-panel-body { padding-left: 0; padding-bottom: 24px; }
  .layer-rail { gap: 2px; padding-top: 10px; }
  .layer-rail button { height: 14px; }
  .layer-inspector { padding: 12px; }
  .arch-table { font-size: 11.5px; }
  .arch-table th { font-size: 7px; }
  .arch-table td { padding: 9px 0; }
  .arch-table td:nth-child(2) { font-size: 10.5px; }
  .param-legend { gap: 12px; font-size: 7.5px; }
  .mech { padding: 14px; }
  .detail-list li { font-size: 12.5px; }

  .lab-note { max-width: none; }
  .rig { padding: 16px; }
  .gpu-visual { height: 208px; }
  .gpu-chip { width: 148px; height: 148px; }
  .gpu-die { inset: 29px; }
  .gpu-die b { font-size: 18px; }
  .gpu-hint { font-size: 7.5px; }
  .gpu-spec-grid { grid-template-columns: 1fr; }
  .gpu-details-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .spec-row { gap: 14px; }
  .spec-row em { font-size: 12px; }

  .about-list li { grid-template-columns: 82px 1fr; gap: 12px; }
  .profile { padding: 22px; }

  .cta { padding: 76px 0 84px; }
  .cta h2 { font-size: clamp(32px, 9.5vw, 44px); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 400px) {
  .hero-title-cn { font-size: 52px; }
  .hero-title-en { font-size: 40px; }
  .stat .num { font-size: 35px; }
  .acc-index { display: none; }
  .acc-btn { grid-template-columns: minmax(0, 1fr) 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .live-dot,
  .stack,
  .status i,
  .rig-live i,
  .hero-scroll svg { animation: none !important; }
  .vram-bar i { transition: none !important; transform: scaleX(1) !important; }
  .acc-panel,
  .gpu-details,
  .acc-chev,
  .gpu-hint svg { transition: none !important; }
  #bg3d { transition: none; }
}
