:root {
  --black: #000;
  --white: #fff;
  --gray-1: #cfcfcf;
  --gray-2: #8a8a8a;
  --gray-3: #3b3b3b;
  --line: rgba(255, 255, 255, .28);
  --shell: min(1240px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--black);
  font-family: "Courier New", Consolas, "Microsoft YaHei", monospace;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

::selection { color: var(--black); background: var(--white); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

#pixel-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.09) 4px);
}

.page { position: relative; z-index: 1; }

.pixel-cursor {
  position: fixed;
  z-index: 120;
  width: 24px;
  height: 24px;
  display: none;
  border: 1px solid var(--white);
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.pixel-cursor::before,
.pixel-cursor::after {
  content: "";
  position: absolute;
  background: var(--white);
}
.pixel-cursor::before { width: 36px; height: 1px; left: -7px; top: 11px; }
.pixel-cursor::after { width: 1px; height: 36px; top: -7px; left: 11px; }
.pixel-cursor i { position: absolute; width: 3px; height: 3px; left: 10px; top: 10px; background: var(--white); }
body.cursor-ready .pixel-cursor { display: block; }

.topbar {
  width: var(--shell);
  height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--white);
  font-size: 11px;
  letter-spacing: .12em;
}

.logo { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-weight: 700; letter-spacing: .12em; }
.logo-box { padding: 7px 6px 6px; color: var(--black); background: var(--white); font-size: 10px; line-height: 1; }
nav { display: flex; gap: 38px; }
nav a { color: var(--gray-1); transition: .12s steps(2, end); }
nav a:hover { color: var(--black); background: var(--white); }
.status { justify-self: end; display: flex; align-items: center; gap: 9px; }
.status i { width: 8px; height: 8px; border: 1px solid var(--white); }
.status.online i { background: var(--white); animation: blink 1.3s steps(2, end) infinite; }

.hero {
  width: var(--shell);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 80px 0 86px;
  display: grid;
  grid-template-columns: 1.36fr .64fr;
  gap: 74px;
  align-items: center;
  position: relative;
}

.kicker { display: flex; align-items: center; gap: 18px; color: var(--gray-1); font-size: 10px; letter-spacing: .2em; }
.kicker::before { content: ""; width: 34px; height: 8px; background: repeating-linear-gradient(90deg,var(--white) 0 3px,transparent 3px 6px); }
.kicker b { padding-left: 18px; border-left: 1px solid var(--line); font-weight: 400; color: var(--gray-2); }

.hero h1 {
  margin: 36px 0 6px;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(88px, 10.5vw, 166px);
  line-height: .74;
  letter-spacing: -.065em;
  font-weight: 900;
  text-transform: uppercase;
}
.hero h1 > span { display: block; white-space: nowrap; }
.hero h1 .offset {
  margin: .24em 0 0 .25em;
  color: var(--black);
  -webkit-text-stroke: 2px var(--white);
  text-shadow: 7px 7px 0 var(--white);
}
.hero h1 sup { font: 700 .12em/1 "Courier New", monospace; letter-spacing: .05em; -webkit-text-stroke: 0; color: var(--white); text-shadow: none; vertical-align: top; margin-left: 12px; }
.hero-cn { margin: 34px 0 12px; font-size: 17px; letter-spacing: .24em; }
.hero-desc { margin: 0; color: var(--gray-1); font-size: 13px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.pixel-button {
  min-width: 188px;
  min-height: 52px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--white);
  background: var(--black);
  font-size: 11px;
  letter-spacing: .1em;
  transition: .12s steps(2, end);
}
.pixel-button:hover,
.pixel-button.solid { color: var(--black); background: var(--white); }
.pixel-button.solid:hover { color: var(--white); background: var(--black); }

.hero-module {
  width: 100%;
  min-height: 510px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  box-shadow: 12px 12px 0 transparent, 12px 12px 0 1px var(--white);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}
.module-head,
.module-foot { display: flex; justify-content: space-between; padding: 16px; font-size: 9px; letter-spacing: .14em; }
.module-head { border-bottom: 2px solid var(--black); }
.module-head b { font-weight: 400; }
.ai-block { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 26px 12px 14px; font: 900 clamp(120px,14vw,194px)/.8 Impact,"Arial Black",sans-serif; letter-spacing: -.09em; overflow: hidden; }
.ai-block span:last-child { color: var(--white); -webkit-text-stroke: 4px var(--black); text-shadow: 8px 8px 0 var(--black); }
.module-grid { display: grid; grid-template-columns: repeat(8, 1fr); height: 48px; border-block: 2px solid var(--black); }
.module-grid i { border-right: 1px solid var(--black); }
.module-grid i:nth-child(3n),.module-grid i:nth-child(7),.module-grid i:nth-child(12) { background: var(--black); }
.module-foot { padding-block: 13px; }
.hero-coordinates { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; gap: 28px; color: var(--gray-2); font-size: 8px; letter-spacing: .13em; }
.hero-coordinates span:last-child { margin-left: auto; }

.marquee { color: var(--black); background: var(--white); overflow: hidden; border-block: 1px solid var(--white); }
.marquee div { display: flex; align-items: center; gap: 36px; width: max-content; padding: 15px 0; animation: marquee 25s linear infinite; }
.marquee span { font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.marquee b { font-size: 9px; }

.section { width: var(--shell); margin: 0 auto; padding: 150px 0; }
.section-title { display: grid; grid-template-columns: 54px 1fr .7fr; align-items: end; gap: 28px; margin-bottom: 66px; }
.section-title > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--black); background: var(--white); font-size: 11px; }
.section-title h2 { margin: 0; font: 900 clamp(54px,7vw,96px)/.76 Impact,"Arial Black",sans-serif; letter-spacing: -.035em; }
.section-title p { margin: 0; color: var(--gray-1); font-size: 12px; line-height: 1.8; }
.section-title.compact { margin-bottom: 48px; }

.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.spec-card { min-height: 420px; padding: 26px; border: 1px solid var(--white); position: relative; overflow: hidden; }
.spec-card + .spec-card { border-left: 0; }
.inverse { color: var(--black)!important; background: var(--white)!important; }
.spec-no { font-size: 10px; color: var(--gray-2); }
.inverse .spec-no { color: #4a4a4a; }
.spec-card h3 { margin: 42px 0 24px; font: 900 42px/.9 Impact,"Arial Black",sans-serif; letter-spacing: .01em; }
.spec-card p { max-width: 290px; color: var(--gray-1); font-size: 12px; line-height: 1.8; }
.inverse p { color: #333; }
.meter { position: absolute; left: 26px; right: 26px; bottom: 28px; display: grid; grid-template-columns: repeat(8,1fr); gap: 4px; height: 38px; align-items: end; }
.meter i { display: block; background: var(--white); height: 20%; animation: meter 1.5s steps(4,end) infinite; }
.meter i:nth-child(2n){height:42%;animation-delay:-.3s}.meter i:nth-child(3n){height:78%;animation-delay:-.7s}.meter i:nth-child(5n){height:100%;animation-delay:-1s}
.lock-pixel { position: absolute; width: 96px; height: 82px; right: 28px; bottom: 25px; border: 12px solid var(--black); border-top: 0; }
.lock-pixel::before { content:""; position:absolute; width:50px; height:44px; border:12px solid var(--black); border-bottom:0; left:11px; top:-50px; }
.lock-pixel span { position:absolute; width:10px;height:22px;background:var(--black);left:31px;top:25px; }
.binary { position:absolute; right:22px; bottom:24px; color:var(--white); font:700 18px/1.35 "Courier New",monospace; letter-spacing:.16em; text-align:right; }

.route-section { border-top: 1px solid var(--white); border-bottom: 1px solid var(--white); }
.route { display: grid; grid-template-columns: 1fr 110px 1fr 110px 1fr; align-items: center; }
.route-node { min-height: 174px; padding: 24px; border: 1px solid var(--white); display: grid; align-content: center; }
.route-node span { color: var(--gray-2); font-size: 9px; }
.route-node b { margin: 17px 0 8px; font: 900 24px/1 Impact,"Arial Black",sans-serif; letter-spacing:.05em; }
.route-node small { color: var(--gray-2); font-size: 9px; letter-spacing: .13em; }
.route-node.inverse small,.route-node.inverse span{color:#444}
.route-wire { color: var(--white); text-align:center; overflow:hidden; font-size:10px; }
.route-wire b { display:block; animation: wire 1.2s steps(6,end) infinite; font-weight:400; }

.terminal { border: 1px solid var(--white); background: rgba(0,0,0,.87); }
.terminal-head { height: 54px; padding: 0 20px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--white); font-size:10px; letter-spacing:.12em; }
.terminal-head b { font-weight:400; }
.terminal-tabs { min-height: 56px; padding:0 18px; display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--line); }
.code-tab { padding:9px 12px; color:var(--gray-1); background:transparent; border:0; font-size:10px; letter-spacing:.08em; }
.code-tab.active,.code-tab:hover{color:var(--black);background:var(--white)}
.terminal-code { min-height: 390px; display:grid; grid-template-columns:52px 1fr auto; position:relative; }
.line-no { padding:29px 15px; color:var(--gray-3); border-right:1px solid var(--line); font:10px/1.9 "Courier New",monospace; text-align:right; user-select:none; }
pre { margin:0; padding:29px 24px; overflow:auto; color:var(--white); font:12px/1.9 "Courier New",monospace; white-space:pre-wrap; }
.copy-button { align-self:start; margin:24px 20px 0 0; padding:8px 10px; color:var(--white); background:var(--black); border:1px solid var(--white); font-size:9px; }
.copy-button:hover { color:var(--black); background:var(--white); }
.base-row { min-height:64px; padding:0 20px; display:grid; grid-template-columns:auto 1fr auto; gap:20px; align-items:center; border-top:1px solid var(--white); font-size:10px; }
.base-row code { color:var(--gray-1); font-size:11px; overflow:hidden; text-overflow:ellipsis; }
.base-row button { padding:8px 10px; color:var(--white); background:transparent; border:0; }
.base-row button:hover { color:var(--black); background:var(--white); }

.manifesto { display:grid; grid-template-columns:.45fr 1fr; gap:100px; align-items:center; border-top:1px solid var(--white); }
.manifesto-mark { aspect-ratio:1; display:grid; place-items:center; color:var(--black); background:var(--white); font:900 clamp(160px,22vw,300px)/1 Impact,sans-serif; overflow:hidden; }
.label { color:var(--gray-2); font-size:9px; letter-spacing:.16em; }
blockquote { margin:28px 0 40px; font:900 clamp(36px,4.5vw,64px)/1.25 "Microsoft YaHei",sans-serif; letter-spacing:-.04em; }
.signature { display:flex; align-items:center; gap:22px; }
.signature b { padding:8px 10px; color:var(--black); background:var(--white); font-size:13px; letter-spacing:.16em; }
.signature span { color:var(--gray-2); font-size:9px; letter-spacing:.13em; }

footer { width:var(--shell); min-height:130px; margin:0 auto; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border-top:1px solid var(--white); color:var(--gray-2); font-size:8px; letter-spacing:.14em; }
footer .logo { color:var(--white); font-size:10px; }
footer p { margin:0; }
footer > span { justify-self:end; }
.footer-actions { display:flex; align-items:center; gap:18px; }
.admin-link { color:var(--gray-2); transition:color .18s ease, background .18s ease; }
.admin-link:hover,.admin-link:focus-visible { color:var(--black); background:var(--white); outline:none; }

.toast { position:fixed; left:50%; bottom:28px; z-index:200; padding:12px 18px; color:var(--black); background:var(--white); border:1px solid var(--black); font-size:10px; letter-spacing:.12em; opacity:0; transform:translate(-50%,24px); transition:.15s steps(3,end); pointer-events:none; }
.toast.show { opacity:1; transform:translate(-50%,0); }

.js [data-reveal] { opacity:0; transform:translateY(28px); transition:opacity .55s steps(6,end),transform .55s steps(6,end); }
.js [data-reveal].revealed { opacity:1; transform:none; }

@keyframes blink { 50%{opacity:.15} }
@keyframes marquee { to{transform:translateX(-50%)} }
@keyframes meter { 50%{height:100%} }
@keyframes wire { from{transform:translateX(-20px)}to{transform:translateX(20px)} }

@media (pointer:fine) {
  body.cursor-ready,body.cursor-ready a,body.cursor-ready button { cursor:none; }
}

@media (max-width: 980px) {
  :root { --shell:min(760px,calc(100vw - 36px)); }
  .topbar { grid-template-columns:1fr auto; }
  nav { display:none; }
  .hero { grid-template-columns:1fr; gap:60px; padding-top:100px; }
  .hero h1 { font-size:clamp(82px,18vw,136px); }
  .hero-module { width:min(520px,100%); justify-self:center; }
  .hero-coordinates { position:static; grid-column:1; margin-top:10px; }
  .section-title { grid-template-columns:48px 1fr; }
  .section-title p { grid-column:2; }
  .spec-grid { grid-template-columns:1fr; }
  .spec-card + .spec-card { border-left:1px solid var(--white); border-top:0; }
  .route { grid-template-columns:1fr; }
  .route-wire { height:64px; display:grid; place-items:center; transform:rotate(90deg); }
  .manifesto { grid-template-columns:1fr; gap:60px; }
  .manifesto-mark { max-width:520px; width:100%; }
}

@media (max-width: 620px) {
  :root { --shell:calc(100vw - 28px); }
  .topbar { height:74px; }
  .status span { display:none; }
  .hero { min-height:auto; padding:90px 0 64px; gap:48px; }
  .hero h1 { font-size:20vw; line-height:.78; }
  .hero h1 .offset { margin-left:.08em; text-shadow:4px 4px 0 var(--white); -webkit-text-stroke-width:1px; }
  .hero-cn { font-size:14px; letter-spacing:.15em; }
  .hero-actions { flex-direction:column; }
  .pixel-button { width:100%; }
  .hero-module { min-height:410px; box-shadow:7px 7px 0 transparent,7px 7px 0 1px var(--white); }
  .ai-block { font-size:38vw; }
  .hero-coordinates { gap:14px; flex-wrap:wrap; }
  .hero-coordinates span:last-child { width:100%; margin:0; }
  .section { padding:105px 0; }
  .section-title { gap:14px; margin-bottom:45px; }
  .section-title h2 { font-size:48px; }
  .spec-card { min-height:360px; }
  .terminal-code { grid-template-columns:38px 1fr; }
  .copy-button { position:absolute; right:10px; top:6px; margin:0; }
  pre { padding:52px 14px 24px; font-size:10px; }
  .line-no { padding:52px 8px 24px; }
  .terminal-tabs { padding-inline:8px; gap:2px; }
  .code-tab { padding-inline:7px; font-size:8px; }
  .base-row { grid-template-columns:1fr auto; padding:13px; gap:10px; }
  .base-row > span { display:none; }
  blockquote { font-size:34px; }
  .signature { align-items:flex-start; flex-direction:column; }
  footer { grid-template-columns:1fr auto; }
  footer p { display:none; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important; }
  .pixel-cursor { display:none!important; }
}
