:root {
  --bg: #0b0b0b;
  --ink: #e7e6d9;
  --muted: #b0afa6;
  --line: rgba(231, 230, 217, 0.18);
  --purple: #6236f4;
  --purple-2: #7a52ff;
  --pink: #ff4d8d;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  --header: 72px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); font-weight: 600; letter-spacing: -0.03em; margin: 0; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: grid;
  grid-template-columns: auto 1fr auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand, .top-nav, .top-end { display: flex; align-items: center; height: 100%; }
.brand {
  gap: 10px;
  padding: 0 28px;
  border-right: 1px solid var(--line);
  color: var(--ink);
}
.brand img { width: 26px; height: 26px; }
.brand span { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.top-nav { justify-content: center; gap: 8px; border-right: 1px solid var(--line); }
.top-end { gap: 8px; padding-right: 12px; }
.nav-link, .nav-btn {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
}
.nav-btn { display: inline-flex; align-items: center; gap: 8px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ink); }
.drop { position: static; }
.menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  background: #0e0e0e;
  border-bottom: 1px solid var(--line);
  padding: 36px var(--pad) 42px;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  z-index: 50;
}
.menu.slim { left: auto; right: 12px; width: min(320px, 100vw); grid-template-columns: 1fr; padding: 18px; }
.drop.open > .menu, .drop:focus-within > .menu { display: grid; }
.menu h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 14px;
}
.menu a, .menu button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--ink);
  padding: 8px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
.menu a:hover, .menu button.linkish:hover, .nav-link:hover, .nav-btn:hover { color: #fff; }
.menu-toggle { display: none; color: var(--ink); letter-spacing: 0.12em; text-transform: uppercase; padding: 0 18px; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #07070a;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(7, 7, 10, 0.28) 0%, rgba(7, 7, 10, 0.72) 72%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.45), transparent 28%, rgba(7, 7, 10, 0.55));
}
.hero-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px var(--pad) 32px;
}
.term-btn {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 1px solid var(--line);
  color: var(--ink);
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 8px 14px;
  background: rgba(11, 11, 11, 0.35);
}
.kicker {
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(52px, 5.5vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: none;
}
.gx {
  position: relative;
  display: inline-block;
  color: #111;
  background: var(--ink);
  padding: 0 0.06em 0.02em;
  line-height: 0.82;
}
.gx::before, .gx::after {
  content: attr(data-ch);
  position: absolute;
  inset: 0;
  background: transparent;
}
.gx::before { color: #ff2f86; transform: translate(-3px, 1px); mix-blend-mode: multiply; }
.gx::after { color: #35d0ff; transform: translate(3px, -1px); mix-blend-mode: multiply; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  border: 0;
}
.btn-cream { background: var(--ink); color: var(--bg); box-shadow: inset 3px 0 0 var(--pink); }
.btn-purple { background: var(--purple); color: var(--ink); }
.btn-dark { background: #111; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.08); }
.btn-text { color: var(--ink); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; padding: 0; border-bottom: 1px solid var(--line); }

.points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11,11,11,0.2), rgba(11,11,11,0.86));
}
.point {
  padding: 28px 32px 36px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.point:first-child { border-left: 0; }
.idx { color: var(--ink); font-size: 13px; letter-spacing: 0.08em; }
.point h2 { font-size: clamp(22px, 2vw, 32px); line-height: 1.15; margin: 18px 0 12px; max-width: 16ch; }
.point p { max-width: 36ch; margin-bottom: 16px; }

.section { padding: 108px 0; border-top: 1px solid var(--line); }
.wrap { width: min(1280px, calc(100% - var(--pad) * 2)); margin: 0 auto; }
.wide { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }

.built { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; }
.built h2, #scale h2, #secure h2, #engines h2, .cta h2 {
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 0.98;
  max-width: 14ch;
}
.built h2 { max-width: none; }
#scale h2 { max-width: 16ch; }
.cta h2 { max-width: 12ch; }
.acc { margin-top: 56px; }
.acc-row { border-top: 1px solid var(--line); }
.acc-row:last-child { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 22px 0;
  color: var(--ink);
}
.acc-btn strong { font-family: var(--sans); font-size: clamp(22px, 2vw, 32px); font-weight: 600; letter-spacing: -0.03em; }
.acc-num { font-family: var(--sans); font-size: 28px; letter-spacing: -0.04em; }
.acc-num span { color: var(--muted); }
.sign { font-family: var(--sans); font-size: 28px; color: var(--ink); }
.acc-copy { display: none; margin: -8px 48px 22px 84px; max-width: 62ch; }
.acc-row.open .acc-copy { display: block; }
.sign::before { content: "+"; }
.acc-row.open .sign::before { content: "–"; }

.stack { height: 460px; display: grid; place-items: center; }
.stack-scene { width: min(420px, 100%); display: grid; gap: 14px; transform: rotateX(18deg); }
.slab {
  position: relative;
  height: 78px;
  border: 1px solid rgba(231, 230, 217, 0.45);
  background:
    linear-gradient(180deg, rgba(231,230,217,0.08), rgba(231,230,217,0.02)),
    #121212;
  transform: skewX(-18deg);
  display: flex;
  align-items: center;
  padding-left: 28px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.slab span { transform: skewX(18deg); font-size: 13px; white-space: nowrap; }
.slab.lit { border-color: #9be7ff; box-shadow: 0 0 0 1px rgba(155, 231, 255, 0.35), 0 18px 40px rgba(0,0,0,0.35); }
.slab.top {
  height: 150px;
  background-image:
    radial-gradient(circle, #d7fff1 1.1px, transparent 1.2px),
    linear-gradient(180deg, rgba(231,230,217,0.08), rgba(231,230,217,0.02));
  background-size: 28px 28px, auto;
  align-items: flex-end;
  padding-bottom: 16px;
}

.scale-head { display: grid; gap: 28px; margin-bottom: 48px; }
.rule { display: flex; gap: 16px; align-items: flex-start; max-width: 46ch; margin-left: 8px; }
.rule::before {
  content: "";
  width: 36px;
  height: 18px;
  border-left: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  flex: none;
  margin-top: 4px;
}
.scale-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 22px 28px; min-height: 640px; }
.pixels {
  pointer-events: none;
  position: absolute;
  inset: -20px;
  background-image:
    linear-gradient(#e7e6d9, #e7e6d9),
    linear-gradient(#7ecbff, #7ecbff),
    linear-gradient(#ff4d8d, #ff4d8d),
    radial-gradient(circle, rgba(231,230,217,0.7) 0.7px, transparent 0.8px);
  background-size: 3px 3px, 4px 4px, 3px 3px, 22px 22px;
  background-position: 8% 30%, 70% 48%, 92% 70%, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  opacity: 0.45;
  mask-image: radial-gradient(circle at 60% 45%, #000 10%, transparent 72%);
}
.pcard {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(231, 230, 217, 0.28);
  background: rgba(11, 11, 11, 0.78);
  min-height: 280px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  text-align: left;
}
.pcard:hover { border-color: rgba(231, 230, 217, 0.6); }
.pcard .idx { margin-bottom: 18px; }
.pcard h3 { font-size: 28px; margin-bottom: 6px; }
.pcard p { max-width: 28ch; }
.pcard.a { grid-column: 1; grid-row: 1; }
.pcard.b { grid-column: 2; grid-row: 2; }
.pcard.c { grid-column: 3; grid-row: 1; }

.secure { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; }
.secure .rule { margin: 28px 0; }
.secure .btn { margin-top: 8px; }
.orbit { width: min(460px, 100%); margin-left: auto; }

.engines-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 36px; }
.engines-head p { max-width: 32ch; text-align: right; }
.gpus { display: flex; gap: 12px; height: 640px; }
.gpu {
  flex: 0.78;
  cursor: pointer;
  min-width: 0;
  background: #070707;
  border: 1px solid rgba(231, 230, 217, 0.12);
  display: flex;
  flex-direction: column;
  text-align: left;
  color: var(--ink);
  transition: flex 0.45s ease;
  overflow: hidden;
}
.gpu.active { flex: 1.7; }
.gpu img { width: 100%; height: 58%; object-fit: cover; background: #0c0c0e; }
.gpu.active img { height: 42%; }
.gpu-body { padding: 28px 24px 20px; margin-top: auto; }
.gpu h3 { font-size: clamp(22px, 2vw, 32px); max-width: 12ch; }
.gpu p { display: none; margin: 14px 0 22px; max-width: 28ch; }
.gpu .btn { display: none; }
.gpu.active p, .gpu.active .btn { display: inline-flex; }
.gpu.active p { display: block; }
.bar { height: 4px; background: var(--ink); margin-top: auto; }
.gpu.active .bar { background: var(--purple); }

.cta-band { padding: 0 0 8px; border-top: 0; }
.cta {
  background: var(--ink);
  color: #6d6c66;
  padding: 88px clamp(28px, 5vw, 80px);
}
.cta h2 { color: #161616; max-width: 14ch; }
.cta .hero-actions { justify-content: flex-start; }

.footer { padding: 28px 0 48px; }
.foot-label { color: var(--muted); letter-spacing: 0.14em; font-size: 12px; margin-bottom: 54px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.1fr 0.9fr; gap: 36px; }
.foot-col h2 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.foot-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.foot-col h3 { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 12px; }
.foot-col a, .foot-col button.linkish {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 0;
  font-size: 13px;
}
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 92px; gap: 24px; }
.foot-bottom .brand { border: 0; padding: 0; height: auto; }
.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 12px;
}
.copy { letter-spacing: 0.08em; font-size: 12px; text-transform: uppercase; }

.terminal, .gate, .sheet { position: fixed; inset: 0; z-index: 80; }
.terminal {
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: center;
  padding: 24px;
}
.terminal[hidden], .gate[hidden], .sheet[hidden], .page[hidden] { display: none !important; }
.term-panel {
  width: min(760px, 100%);
  background: #070807;
  border: 1px solid rgba(120, 255, 170, 0.35);
  color: #b7ffcf;
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.term-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--ink); }
.term-panel pre { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 13px; line-height: 1.6; }

.gate {
  background: #070707;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.gate-box { width: min(520px, 100%); }
.gate h2 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 28px; }
.gate-track { height: 2px; background: rgba(231,230,217,0.2); }
.gate-track i { display: block; height: 100%; width: 0; background: var(--purple); }
.gate.run .gate-track i { animation: load 8s linear forwards; }
.gate-count { margin-top: 18px; color: var(--ink); font-size: 28px; letter-spacing: 0.08em; }
@keyframes load { to { width: 100%; } }

.sheet { background: var(--bg); overflow: auto; z-index: 70; }
.sheet-bar {
  position: sticky;
  top: 0;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,11,0.94);
  backdrop-filter: blur(8px);
}
.sheet-bar .brand { border: 0; padding-left: 0; }
.sheet-main { width: min(1100px, calc(100% - var(--pad) * 2)); margin: 0 auto; padding: 72px 0 96px; }
.page h2 { font-size: clamp(42px, 6vw, 84px); line-height: 0.96; max-width: 16ch; }
.lede { margin: 22px 0 32px; max-width: 62ch; font-size: 16px; }
.page h3 { font-size: 28px; margin: 28px 0 10px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card, .spec, form.local {
  border: 1px solid var(--line);
  padding: 22px;
  background: #101010;
}
.spec { display: grid; grid-template-columns: 1.1fr 0.6fr 0.8fr 1fr; gap: 8px; align-items: center; }
.spec b { color: var(--ink); font-weight: 500; }
form.local { display: grid; gap: 12px; max-width: 560px; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
input, select, textarea {
  background: #070707;
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.note { border-left: 3px solid var(--purple); padding-left: 14px; margin-top: 18px; }
.ok { color: #b7ffcf; }

@media (max-width: 980px) {
  .top { grid-template-columns: 1fr auto; }
  .top-nav, .top-end { display: none; }
  .top.open .top-nav, .top.open .top-end {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0;
    background: #0b0b0b;
    border-bottom: 1px solid var(--line);
  }
  .top.open .top-nav { top: var(--header); padding: 12px 0 0; border-right: 0; }
  .top.open .top-end { top: 280px; padding: 0 0 16px; }
  .menu, .drop.open > .menu { position: static; display: none; }
  .drop.open > .menu { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 22px 16px; }
  .menu-toggle { display: block; }
  .points, .built, .scale-grid, .secure, .engines-head, .gpus, .foot-grid, .grid-2, .spec { display: flex; flex-direction: column; }
  .gpus { height: auto; }
  .gpu { min-height: 420px; }
  .pcard.a, .pcard.b, .pcard.c { grid-column: auto; grid-row: auto; }
  .engines-head p, .cta .hero-actions { text-align: left; justify-content: flex-start; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

.lang-note {
  margin-left: 8px;
  padding-right: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[lang="zh-Hans"] body,
html[lang="zh-Hant"] body,
html[lang="ja"] body,
html[lang="ko"] body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Noto Sans SC", "Noto Sans JP", "Malgun Gothic", sans-serif;
}
html[lang="zh-Hans"] .nav-link,
html[lang="zh-Hans"] .nav-btn,
html[lang="zh-Hant"] .nav-link,
html[lang="zh-Hant"] .nav-btn,
html[lang="ja"] .nav-link,
html[lang="ja"] .nav-btn,
html[lang="ko"] .nav-link,
html[lang="ko"] .nav-btn,
html[lang="ar"] .nav-link,
html[lang="ar"] .nav-btn {
  letter-spacing: 0.02em;
  text-transform: none;
}
html[lang="zh-Hans"] .hero h1,
html[lang="zh-Hant"] .hero h1,
html[lang="ja"] .hero h1,
html[lang="ko"] .hero h1 {
  font-size: clamp(44px, 4.8vw, 88px);
  letter-spacing: -0.04em;
}
html[dir="rtl"] .top,
html[dir="rtl"] .hero-main,
html[dir="rtl"] .sheet-main,
html[dir="rtl"] .footer { direction: rtl; }
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .top-end { direction: rtl; }

@media (prefers-reduced-motion: reduce) {
  .gx::before, .gx::after { display: none; }
  .gate.run .gate-track i { animation: none; width: 100%; }
  html { scroll-behavior: auto; }
}
