:root {
  color-scheme: dark;
  --bg: #0b0f12;
  --surface: #11171b;
  --surface-2: #171f24;
  --line: #2a353b;
  --text: #f0f5f2;
  --muted: #8c9ba0;
  --mint: #7bffc9;
  --blue: #54a7ff;
  --page: min(1240px, calc(100% - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; padding-bottom: 46px; background: var(--bg); color: var(--text); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: var(--mint); color: #07100c; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.grid-field { position: fixed; inset: 0; z-index: -1; opacity: .22; background-image: repeating-linear-gradient(90deg, transparent 0, transparent 79px, #334047 80px), repeating-linear-gradient(0deg, transparent 0, transparent 79px, #334047 80px); mask-image: linear-gradient(to bottom, black 0, transparent 86%); }

.site-header { width: var(--page); height: 84px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; }
.brand-mark i { width: 7px; height: 7px; background: var(--mint); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--blue); }
.site-nav { display: flex; gap: 34px; font-size: 13px; color: var(--muted); }
.site-nav a { padding: 10px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); border-color: var(--mint); }
.system-state { justify-self: end; color: var(--muted); font: 11px/1 ui-monospace, monospace; }
.system-state span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: blink 2s step-end infinite; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 8px 10px; }

.hero { width: var(--page); min-height: calc(88svh - 84px); margin: auto; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 7vw; padding: 72px 0 86px; }
.eyebrow, .section-index { margin: 0 0 24px; color: var(--muted); font: 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.eyebrow span { color: var(--mint); }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-size: 68px; line-height: 1.06; font-weight: 400; }
h1 strong { color: var(--mint); font-weight: 700; }
.hero-intro { max-width: 570px; margin: 30px 0 0; color: #b2bec1; font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; min-width: 206px; padding: 14px 16px; background: var(--mint); color: #07100c; font-size: 14px; font-weight: 700; }
.primary-action:hover { background: #a3ffdc; }
.text-action { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.text-action:hover { color: var(--text); border-color: var(--text); }
.hero-stats { display: flex; gap: 40px; margin: 48px 0 0; }
.hero-stats div { min-width: 80px; }
.hero-stats dt { color: var(--text); font: 22px/1 ui-monospace, monospace; }
.hero-stats dd { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

.assembly { min-height: 490px; border: 1px solid var(--line); background: #0d1215; box-shadow: 14px 14px 0 #080b0d, 15px 15px 0 var(--line); }
.assembly-head, .assembly-foot { height: 46px; padding: 0 16px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); border-bottom: 1px solid var(--line); font: 10px/1 ui-monospace, monospace; }
.assembly-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.assembly-foot i { display: inline-block; width: 6px; height: 6px; background: var(--mint); }
.assembly-stage { height: 396px; position: relative; overflow: hidden; background-image: radial-gradient(#39464c 1px, transparent 1px); background-size: 20px 20px; }
.axis { position: absolute; background: #263137; }
.axis-x { top: 50%; left: 7%; right: 7%; height: 1px; }
.axis-y { left: 50%; top: 7%; bottom: 7%; width: 1px; }
.module { position: absolute; display: flex; flex-direction: column; justify-content: center; padding: 14px; border: 1px solid; background: var(--surface-2); box-shadow: 8px 8px 0 #080b0d; }
.module b { font: 700 24px/1 ui-monospace, monospace; }
.module small { margin-top: 8px; font: 8px/1 ui-monospace, monospace; color: var(--muted); }
.module-a { width: 126px; height: 100px; left: 15%; top: 17%; border-color: var(--mint); color: var(--mint); animation: float-a 5s ease-in-out infinite; }
.module-b { width: 108px; height: 90px; right: 13%; top: 27%; border-color: var(--blue); color: var(--blue); animation: float-b 6s ease-in-out infinite; }
.module-c { width: 142px; height: 108px; left: 38%; bottom: 13%; border-color: #e2e9e6; color: #e2e9e6; animation: float-c 7s ease-in-out infinite; }
.connector { position: absolute; height: 1px; background: var(--line); transform-origin: left center; }
.connector::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; background: var(--mint); }
.connector-a { width: 130px; left: 35%; top: 34%; transform: rotate(9deg); }
.connector-b { width: 100px; left: 33%; top: 53%; transform: rotate(58deg); }
.connector-b::after { background: var(--blue); }
.cursor-tag { position: absolute; left: 19%; bottom: 17%; padding: 6px 9px; background: var(--mint); color: #06100b; font: 9px/1 ui-monospace, monospace; }

.section { width: var(--page); margin: auto; border-top: 1px solid var(--line); padding: 108px 0; }
.focus-section { padding-top: 70px; }
.focus-section { display: grid; grid-template-columns: .74fr 1.26fr; gap: 80px; }
.section-heading h2, .section-top h2, .about-copy h2 { margin: 0; font-size: 46px; line-height: 1.12; }
.section-heading > p:last-child { max-width: 370px; margin: 28px 0 0; color: var(--muted); }
.focus-list { border-top: 1px solid var(--line); }
.focus-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 22px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.focus-number, .focus-code { color: var(--mint); font: 10px/1.5 ui-monospace, monospace; }
.focus-item h3 { margin: 0 0 8px; font-size: 22px; }
.focus-item p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; }
.focus-code { color: #66757b; }

.section-top { display: flex; align-items: end; justify-content: space-between; margin-bottom: 44px; }
.section-top > p { max-width: 310px; margin: 0; color: var(--muted); font-size: 13px; }
.article-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.article-card { min-height: 440px; padding: 24px; border: 1px solid var(--line); background: #0e1316; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.article-card:hover { transform: translateY(-5px); border-color: #64737a; }
.article-card.featured { background: var(--surface); }
.article-meta { display: flex; justify-content: space-between; color: var(--muted); font: 10px/1 ui-monospace, monospace; }
.article-meta span { color: var(--mint); }
.code-window, .article-visual { height: 155px; margin: 30px 0; border: 1px solid var(--line); background: #090d0f; }
.code-window { display: grid; grid-template-columns: 28px 1fr; align-content: center; padding: 18px; color: var(--muted); font-size: 11px; }
.code-window span { color: #425159; }
.code-window code { color: #c2ced0; }
.article-card h3 { margin: 0; font-size: 21px; line-height: 1.4; }
.article-card > p { margin: 14px 0 22px; color: var(--muted); font-size: 13px; }
.read-more { margin-top: auto; color: #c2cccf; font-size: 12px; }
.read-more b { float: right; color: var(--mint); }
.article-visual { position: relative; overflow: hidden; }
.rings i { position: absolute; inset: 50% auto auto 50%; width: 118px; height: 118px; border: 1px solid var(--blue); border-radius: 50%; transform: translate(-50%, -50%); }
.rings i:nth-child(2) { width: 78px; height: 78px; border-color: var(--mint); }
.rings i:nth-child(3) { width: 12px; height: 12px; background: var(--mint); border: 0; }
.bars { display: flex; align-items: end; justify-content: center; gap: 8px; padding: 26px; }
.bars i { width: 14px; height: 22%; background: #26343b; }
.bars i:nth-child(2) { height: 42%; }.bars i:nth-child(3) { height: 68%; background: var(--blue); }.bars i:nth-child(4) { height: 92%; background: var(--mint); }.bars i:nth-child(5) { height: 74%; }.bars i:nth-child(6) { height: 54%; }

.about-section { display: grid; grid-template-columns: .35fr 1fr .7fr; gap: 50px; align-items: start; }
.about-copy p { max-width: 570px; margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.about-note { border-left: 2px solid var(--mint); padding-left: 22px; display: flex; flex-direction: column; }
.about-note span, .about-note small { color: var(--muted); font: 9px/1.5 ui-monospace, monospace; }
.about-note strong { margin: 9px 0; font: 13px/1.5 ui-monospace, monospace; }
.site-footer { position: fixed; bottom: 0; left: 0; z-index: 40; width: 100%; height: 46px; padding: 0 max(32px, calc((100% - 1240px) / 2)); border-top: 1px solid var(--line); background: #0b0f12; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font-size: 10px; box-shadow: 0 -8px 24px #05070899; }
.site-footer div { display: flex; align-items: center; gap: 14px; }
.site-footer strong { color: var(--text); font: 700 13px/1 ui-monospace, monospace; }
.site-footer p { margin: 0; }
.site-footer > a { justify-self: end; border-bottom: 1px solid #49565c; }
.site-footer > a:hover { color: var(--mint); border-color: var(--mint); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: .35; } }
@keyframes float-a { 50% { transform: translate(5px, -8px); } }
@keyframes float-b { 50% { transform: translate(-7px, 6px); } }
@keyframes float-c { 50% { transform: translate(6px, 7px); } }

@media (max-width: 980px) {
  h1 { font-size: 54px; }
  .hero { gap: 38px; }
  .assembly { min-height: 430px; }
  .assembly-stage { height: 336px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .article-card.featured { grid-column: span 2; }
  .about-section { grid-template-columns: .3fr 1fr; }
  .about-note { grid-column: 2; }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 36px); }
  .grid-field { background-size: 48px 48px; }
  .site-header { height: 68px; grid-template-columns: 1fr auto; }
  .system-state { display: none; }
  .menu-toggle { display: block; justify-self: end; font-size: 12px; }
  .site-nav { display: none; position: absolute; top: 58px; right: 0; width: 170px; padding: 12px; background: var(--surface); border: 1px solid var(--line); flex-direction: column; gap: 2px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding: 48px 0 24px; }
  h1 { font-size: 44px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-stats { gap: 20px; justify-content: space-between; }
  .hero-stats div { min-width: 0; }
  .assembly { min-height: 0; height: 160px; overflow: hidden; box-shadow: 8px 8px 0 #080b0d, 9px 9px 0 var(--line); }
  .assembly-stage { height: 114px; }
  .assembly-foot { display: none; }
  .module-a { left: 8%; }.module-b { right: 7%; }.module-c { left: 30%; }
  .section { padding: 78px 0; }
  .focus-section { padding-top: 24px; }
  .focus-section { grid-template-columns: 1fr; gap: 46px; }
  .section-heading h2, .section-top h2, .about-copy h2 { font-size: 36px; }
  .focus-item { grid-template-columns: 34px 1fr; }
  .focus-code { display: none; }
  .section-top { display: block; }
  .section-top > p { margin-top: 20px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: auto; }
  .article-card { min-height: 410px; }
  .about-section { grid-template-columns: 1fr; gap: 34px; }
  .about-note { grid-column: auto; }
  .site-footer { padding: 0 18px; grid-template-columns: auto 1fr; gap: 16px; text-align: left; }
  .site-footer div span, .site-footer > p { display: none; }
  .site-footer > a { justify-self: end; white-space: nowrap; }
}

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

:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
