:root {
  --bg: #080b14;
  --bg-soft: #0c101c;
  --panel: #101624;
  --line: rgba(164, 182, 220, 0.14);
  --line-strong: rgba(151, 128, 255, 0.34);
  --text: #f4f6fb;
  --muted: #9da8bf;
  --subtle: #6f7b92;
  --accent: #8b73ff;
  --accent-strong: #7158f5;
  --cyan: #56c8f5;
  --max-width: 1200px;
  --header-height: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }

.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 9px 14px; transform: translateY(-150%);
  background: var(--text); color: var(--bg); border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-height);
  border-bottom: 1px solid transparent; transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(8, 11, 20, .88); border-color: var(--line); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; position: relative; z-index: 2; }
.brand-mark { width: 32px; color: var(--accent); }
.brand-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.35; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 15px; letter-spacing: .08em; }
.brand-copy small { color: var(--subtle); font: 500 8px/1.4 ui-monospace, monospace; letter-spacing: .24em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: #bac3d5; font-size: 14px; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.site-nav .nav-cta { padding: 9px 15px; border: 1px solid var(--line-strong); color: #e5e0ff; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 100vh; padding: 150px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 45vw; height: 45vw; max-width: 650px; max-height: 650px;
  right: -12vw; top: 7vh; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(113, 88, 245, .13), transparent 67%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-layout { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 84px; }
.eyebrow, .section-index { margin: 0 0 22px; color: var(--accent); font: 600 11px/1.4 ui-monospace, SFMono-Regular, monospace; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 27px; font-size: clamp(45px, 5.2vw, 74px); line-height: 1.12; letter-spacing: -.045em; font-weight: 650; }
.hero-lead { max-width: 620px; margin-bottom: 34px; color: #aeb8cc; font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; }
.button {
  min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid transparent; color: var(--text); background: transparent; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: 0 12px 32px rgba(113, 88, 245, .18); }
.button-primary:hover { background: var(--accent); }
.button-secondary { border-color: var(--line); color: #c0c8d8; }
.button-secondary:hover { border-color: rgba(181, 193, 219, .34); }

.architecture { border: 1px solid var(--line); background: rgba(10, 14, 25, .78); box-shadow: 0 28px 70px rgba(0, 0, 0, .22); }
.architecture-head, .architecture-foot { display: flex; justify-content: space-between; padding: 14px 17px; color: var(--subtle); font: 600 9px/1.4 ui-monospace, monospace; letter-spacing: .14em; }
.architecture-head { border-bottom: 1px solid var(--line); }
.architecture-foot { border-top: 1px solid var(--line); }
.architecture-foot span { flex: 1; text-align: center; }
.status { color: #8cdeb9; display: flex; align-items: center; gap: 6px; }
.status i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #6cdaaa; box-shadow: 0 0 9px #6cdaaa; }
.architecture-body { min-height: 330px; padding: 48px 26px; display: grid; grid-template-columns: 1fr 48px 1.25fr 48px 1fr; align-items: center; }
.flow-source, .flow-target { padding: 15px 10px; border: 1px solid var(--line); text-align: center; }
.flow-source span, .flow-target span { display: block; margin-bottom: 4px; color: var(--subtle); font-size: 10px; }
.flow-source b, .flow-target b { font-size: 12px; font-weight: 550; }
.flow-lines { display: flex; flex-direction: column; gap: 9px; }
.flow-lines i { height: 1px; background: linear-gradient(90deg, var(--line), var(--accent)); position: relative; }
.flow-lines i:nth-child(2) { transform: scaleX(.75); }
.flow-lines.reverse i { background: linear-gradient(90deg, var(--accent), var(--line)); }
.engine { text-align: center; }
.engine-label { color: #c8cfe0; font-size: 11px; }
.engine-core { width: 112px; height: 112px; margin: 15px auto 12px; display: grid; place-items: center; position: relative; border: 1px solid var(--line-strong); transform: rotate(45deg); }
.engine-core::before, .engine-core::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(86, 200, 245, .16); }
.engine-core::after { inset: 17px; border-color: rgba(139, 115, 255, .18); }
.engine-core svg { width: 55px; transform: rotate(-45deg); fill: none; stroke: var(--accent); stroke-width: 1.2; }
.engine-tags { display: flex; justify-content: center; gap: 5px; }
.engine-tags span { padding: 3px 7px; border: 1px solid var(--line); color: var(--subtle); font-size: 9px; }

.capability-strip { position: relative; margin-top: 76px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.capability-strip div { padding: 23px 20px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); }
.capability-strip div:last-child { border-right: 0; }
.capability-strip span { color: var(--subtle); font: 500 10px ui-monospace, monospace; }
.capability-strip strong { font-size: 14px; font-weight: 550; }

.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section-muted { background: var(--bg-soft); }
.section-heading { margin-bottom: 62px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: end; }
.section-heading h2, .tech-copy h2, .about h2, .contact h2 { margin-bottom: 0; font-size: clamp(34px, 4.1vw, 54px); line-height: 1.24; letter-spacing: -.035em; font-weight: 620; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); font-size: 16px; }
.capability-list { border-top: 1px solid var(--line); }
.capability-item { display: grid; grid-template-columns: 54px 70px 1fr; gap: 20px; align-items: center; min-height: 154px; padding: 24px 12px; border-bottom: 1px solid var(--line); }
.item-number { align-self: start; color: var(--subtle); font: 500 10px ui-monospace, monospace; }
.item-icon { width: 55px; height: 55px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--accent); }
.item-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.capability-item > div:last-child { display: grid; grid-template-columns: minmax(160px, .6fr) 1.4fr; gap: 60px; align-items: center; }
.capability-item h3 { margin: 0; font-size: 23px; font-weight: 560; }
.capability-item p { max-width: 620px; margin: 0; color: var(--muted); }

.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.solution-card { min-height: 325px; padding: 39px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background-color .25s ease; }
.solution-card:hover { background: rgba(139, 115, 255, .035); }
.solution-tag { display: inline-block; margin-bottom: 66px; color: var(--accent); font: 600 10px ui-monospace, monospace; letter-spacing: .16em; }
.solution-card h3 { margin-bottom: 13px; font-size: 25px; font-weight: 570; }
.solution-card p { max-width: 480px; margin-bottom: 23px; color: var(--muted); }
.solution-card ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; color: #c0c8d8; font-size: 12px; }
.solution-card li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border: 1px solid var(--accent); transform: rotate(45deg); }

.tech-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 100px; align-items: center; }
.tech-intro { max-width: 590px; margin: 26px 0 42px; color: var(--muted); font-size: 16px; }
.tech-points { border-top: 1px solid var(--line); }
.tech-points > div { display: grid; grid-template-columns: 42px 1fr; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tech-points span { color: var(--subtle); font: 500 10px ui-monospace, monospace; }
.tech-points h3 { margin-bottom: 3px; font-size: 16px; font-weight: 560; }
.tech-points p { margin: 0; color: var(--muted); font-size: 14px; }
.system-map { min-height: 540px; position: relative; border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 42px 42px; }
.map-label { position: absolute; top: 18px; left: 18px; color: var(--subtle); font: 600 9px ui-monospace, monospace; letter-spacing: .16em; }
.map-node { position: absolute; min-width: 140px; padding: 16px 18px; border: 1px solid var(--line); background: var(--bg); }
.map-node small { display: block; margin-bottom: 3px; color: var(--accent); font: 600 8px ui-monospace, monospace; letter-spacing: .13em; }
.map-node strong { font-size: 13px; font-weight: 540; }
.node-a { left: 9%; top: 17%; }.node-b { right: 9%; top: 34%; }.node-c { left: 9%; top: 55%; }.node-d { right: 9%; top: 74%; }
.map-rail { position: absolute; border: solid var(--line-strong); border-width: 1px 1px 0 0; }
.rail-a { left: 38%; top: 24%; width: 25%; height: 17%; }.rail-b { left: 36%; top: 42%; width: 28%; height: 20%; transform: scaleX(-1); }.rail-c { left: 38%; top: 62%; width: 25%; height: 19%; }
.map-axis { position: absolute; inset: auto 18px 16px; display: flex; justify-content: space-between; color: var(--subtle); font: 500 9px ui-monospace, monospace; }

.about { background: #0a0d16; }
.about-layout { display: grid; grid-template-columns: .35fr 1fr; gap: 60px; }
.about-content { max-width: 850px; }
.about-content p { margin: 31px 0 0; color: var(--muted); font-size: 18px; line-height: 2; }
.contact { padding-top: 0; border-top: 0; background: #0a0d16; }
.contact-panel { padding: 58px 62px; border: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; background: linear-gradient(120deg, rgba(139, 115, 255, .06), transparent 44%); }
.contact-panel > div:first-child > p:last-child { max-width: 590px; margin: 24px 0 0; color: var(--muted); }
.contact-action { min-width: 210px; text-align: center; }
.contact-note { margin: 11px 0 0; color: var(--subtle); font-size: 12px; }
.contact-note.is-active { color: #d4ccff; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; color: var(--subtle); font-size: 12px; }
.footer-inner span:last-child { font: 500 9px ui-monospace, monospace; letter-spacing: .16em; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
  .hero-layout { grid-template-columns: 1fr; gap: 62px; }
  .architecture { max-width: 680px; }
  .tech-layout { grid-template-columns: 1fr; }
  .system-map { max-width: 700px; width: 100%; }
}

@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 32px), var(--max-width)); }
  .menu-toggle { width: 42px; height: 42px; display: grid; place-content: center; gap: 6px; border: 0; background: transparent; color: var(--text); position: relative; z-index: 2; }
  .menu-toggle span { display: block; width: 21px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-height) 0 0; padding: 36px 24px; display: flex; flex-direction: column; align-items: stretch; gap: 0; background: rgba(8, 11, 20, .98); visibility: hidden; pointer-events: none; transform: translateX(100%); transition: transform .25s ease, visibility 0s linear .25s; }
  .site-nav.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
  .site-nav a { padding: 17px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav .nav-cta { margin-top: 22px; padding: 14px; text-align: center; }
  .hero { min-height: auto; padding: 126px 0 44px; }
  .hero::before { width: 92vw; height: 92vw; right: -45vw; top: 11vh; }
  h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero-lead { font-size: 16px; line-height: 1.8; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .architecture-body { min-height: 290px; padding: 40px 14px; grid-template-columns: 1fr 26px 1.25fr 26px 1fr; }
  .flow-source, .flow-target { padding: 11px 5px; }
  .flow-source b, .flow-target b { font-size: 11px; }
  .engine-core { width: 86px; height: 86px; }
  .engine-core svg { width: 42px; }
  .architecture-foot { padding-inline: 6px; font-size: 7px; }
  .capability-strip { margin-top: 48px; grid-template-columns: repeat(2, 1fr); }
  .capability-strip div { min-height: 67px; padding: 16px 12px; }
  .capability-strip div:nth-child(2) { border-right: 0; }
  .capability-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 88px 0; }
  .section-heading { margin-bottom: 42px; grid-template-columns: 1fr; gap: 24px; }
  .section-heading h2, .tech-copy h2, .about h2, .contact h2 { font-size: 36px; }
  .capability-item { grid-template-columns: 38px 52px 1fr; gap: 12px; padding: 23px 0; }
  .item-icon { width: 45px; height: 45px; }
  .capability-item > div:last-child { display: block; }
  .capability-item h3 { margin-bottom: 7px; font-size: 18px; }
  .capability-item p { font-size: 13px; line-height: 1.7; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 280px; padding: 30px 26px; }
  .solution-tag { margin-bottom: 46px; }
  .tech-layout { gap: 56px; }
  .system-map { min-height: 470px; }
  .map-node { min-width: 124px; padding: 13px; }
  .about-layout { grid-template-columns: 1fr; gap: 16px; }
  .about-content p { font-size: 16px; }
  .contact-panel { padding: 38px 26px; grid-template-columns: 1fr; align-items: start; }
  .contact-action { min-width: 0; text-align: left; }
  .contact-action .button { width: 100%; }
  .footer-inner { padding: 24px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
}

@media (max-width: 390px) {
  .brand-copy strong { font-size: 13px; }
  .architecture-body { padding-inline: 8px; grid-template-columns: 1fr 18px 1.15fr 18px 1fr; }
  .engine-core { width: 74px; height: 74px; }
  .engine-tags span { padding-inline: 4px; }
  .capability-item { grid-template-columns: 30px 44px 1fr; }
  .item-icon { width: 40px; height: 40px; }
}

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