:root {
  color-scheme: dark;
  --bg: #07100f;
  --surface: #0b1715;
  --surface-2: #10211e;
  --line: rgba(142, 190, 177, 0.18);
  --text: #effbf7;
  --muted: #93aaa3;
  --green: #75f0be;
  --green-dark: #123f32;
  --amber: #e8ba68;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--green); color: #06100d; }
.skip-link:focus { top: 16px; }
.site-header { width: min(calc(100% - 40px), var(--max)); height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--green); color: var(--green); font: 700 11px/1 ui-monospace, monospace; transform: rotate(-4deg); }
nav { display: flex; align-items: center; gap: 30px; color: #b7cbc5; font-size: 14px; }
nav a:hover, nav a:focus-visible { color: var(--green); }
.nav-cta { padding: 8px 14px; border: 1px solid var(--line); }
.nav-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 7px 12px; }
.hero { width: min(calc(100% - 40px), var(--max)); min-height: 680px; margin: 0 auto; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 70px; padding: 92px 0; }
.eyebrow { margin: 0 0 18px; color: var(--green); font: 700 12px/1.4 ui-monospace, "Cascadia Code", monospace; letter-spacing: .17em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
h1 { max-width: 730px; margin: 0; font-size: clamp(46px, 6.3vw, 82px); line-height: 1.05; letter-spacing: -.055em; }
h1 span { color: var(--green); }
.hero-lead { max-width: 640px; margin: 30px 0 0; color: #a9bdb7; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: transform .18s, border-color .18s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); border-color: var(--green); }
.button.primary { background: var(--green); color: #07100f; border-color: var(--green); font-weight: 750; }
.button.secondary { background: transparent; color: var(--text); }
.api-line { display: flex; gap: 13px; align-items: center; margin-top: 30px; color: var(--muted); font-size: 12px; }
.api-line span { font: 700 10px ui-monospace, monospace; color: #6f8780; }
.api-line code { color: #b9d3cb; word-break: break-all; }
.system-map { position: relative; min-height: 510px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20, 56, 46, .55), rgba(5, 12, 11, .2)); overflow: hidden; }
.map-grid { position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 38px 38px; }
.map-node { position: absolute; width: 170px; padding: 16px; border: 1px solid rgba(117, 240, 190, .34); background: rgba(8, 21, 18, .94); }
.map-node span { display: block; color: var(--green); font: 700 10px ui-monospace, monospace; }
.map-node strong { display: block; margin-top: 6px; font-size: 15px; }
.map-node small { color: var(--muted); }
.map-node.client { top: 72px; left: 40px; }
.map-node.control { top: 205px; left: 50%; transform: translateX(-50%); border-color: var(--green); box-shadow: 0 0 42px rgba(117, 240, 190, .09); }
.map-node.edge { right: 38px; bottom: 65px; }
.map-link { position: absolute; color: #738b84; font: 10px ui-monospace, monospace; }
.map-link i { display: block; width: 110px; height: 1px; background: linear-gradient(90deg, var(--green), transparent); transform: rotate(36deg); transform-origin: left; }
.map-link em { font-style: normal; }
.map-link.first { top: 171px; left: 155px; }
.map-link.second { top: 320px; left: 57%; }
.map-link.second i { transform: rotate(29deg); }
.map-note { position: absolute; left: 22px; bottom: 14px; color: #607871; font: 10px ui-monospace, monospace; letter-spacing: .12em; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); width: min(calc(100% - 40px), var(--max)); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles article { padding: 34px; border-right: 1px solid var(--line); }
.principles article:last-child { border: 0; }
.principles span, .card-number { color: var(--green); font: 700 10px ui-monospace, monospace; letter-spacing: .14em; }
.principles h2 { margin: 10px 0 4px; font-size: 18px; }
.principles p { margin: 0; color: var(--muted); font-size: 14px; }
.section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 130px 0; }
.section-heading { max-width: 640px; margin-bottom: 52px; }
.section-heading.narrow { max-width: 470px; }
.section-heading h2, .access h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; }
.architecture-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-card { min-height: 280px; padding: 34px; background: var(--surface); }
.feature-card.active-card { background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.feature-card h3 { margin: 44px 0 8px; font-size: 24px; }
.feature-card > p:not(.card-number) { max-width: 480px; color: var(--muted); }
.capability { display: inline-block; margin-top: 16px; padding: 3px 9px; border: 1px solid rgba(117, 240, 190, .3); color: var(--green); font-size: 11px; }
.capability.preview { border-color: rgba(232, 186, 104, .4); color: var(--amber); }
.flow { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; border-top: 1px solid var(--line); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 0 0 36px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: 33px; bottom: 0; left: 18px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li > span { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--green); color: var(--green); font: 700 10px ui-monospace, monospace; background: var(--bg); z-index: 1; }
.timeline h3 { margin: 3px 0; }
.timeline p { margin: 0; color: var(--muted); }
.notice { grid-column: 2; padding: 22px; border-left: 2px solid var(--amber); background: rgba(232, 186, 104, .055); color: var(--muted); }
.notice strong { color: var(--amber); }
.notice p { margin: 5px 0 0; }
.safety { border-top: 1px solid var(--line); }
.safety-list { border-top: 1px solid var(--line); }
.safety-list article { display: grid; grid-template-columns: 80px 1fr; padding: 30px 0; border-bottom: 1px solid var(--line); }
.safety-list > article > span { color: var(--green); font: 700 11px ui-monospace, monospace; }
.safety-list h3 { margin: 0 0 5px; }
.safety-list p { margin: 0; color: var(--muted); }
.access { margin-bottom: 90px; padding: 70px; border: 1px solid rgba(117, 240, 190, .28); background: radial-gradient(circle at 100% 0, rgba(117, 240, 190, .11), transparent 45%), var(--surface); }
.access > p:not(.eyebrow) { max-width: 670px; color: var(--muted); }
.access-row { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.pending { color: var(--amber); font: 700 12px ui-monospace, monospace; letter-spacing: .12em; }
footer { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 36px 0 50px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #728780; font-size: 13px; }
.brand.compact { color: var(--text); }
.brand.compact .brand-mark { width: 27px; height: 27px; font-size: 9px; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 11px 16px; background: var(--green); color: #07100f; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; z-index: 10; top: 68px; left: 20px; right: 20px; padding: 20px; flex-direction: column; align-items: stretch; gap: 12px; background: #0a1513; border: 1px solid var(--line); }
  nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding: 70px 0; }
  .system-map { min-height: 450px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { border-right: 0; border-bottom: 1px solid var(--line); }
  .architecture-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 15px; }
  .notice { grid-column: 1; }
  footer { flex-wrap: wrap; gap: 15px 28px; }
}

@media (max-width: 540px) {
  .site-header, .hero, .principles, .section, footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { height: 68px; }
  h1 { font-size: 43px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .api-line { align-items: flex-start; flex-direction: column; }
  .system-map { min-height: 520px; }
  .map-node { width: 155px; }
  .map-node.client { left: 22px; top: 50px; }
  .map-node.control { top: 205px; }
  .map-node.edge { right: 22px; bottom: 55px; }
  .map-link.first { left: 100px; top: 157px; }
  .map-link.second { left: 50%; top: 320px; }
  .section { padding: 90px 0; }
  .feature-card { min-height: 250px; padding: 25px; }
  .safety-list article { grid-template-columns: 50px 1fr; }
  .access { padding: 38px 26px; }
  .access-row { align-items: stretch; flex-direction: column; }
  footer p { width: 100%; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
