:root {
  color-scheme: dark;
  --ink: #07111f;
  --ink-soft: #0b1728;
  --panel: #0f2036;
  --panel-strong: #132842;
  --line: rgba(180, 209, 236, 0.16);
  --text: #f4f8fc;
  --muted: #9fb0c2;
  --accent: #6fffd2;
  --accent-blue: #52a7ff;
  --warm: #ffcb6b;
  --shell: min(1160px, calc(100vw - 48px));
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 76% 8%, rgba(82, 167, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 18% 32%, rgba(111, 255, 210, 0.08), transparent 24rem),
    var(--ink);
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { display: block; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 17px; letter-spacing: 0.08em; }
.brand small { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: 0.16em; }

nav { display: flex; gap: clamp(18px, 3vw, 38px); }
nav a { color: #c6d2de; font-size: 14px; transition: color 160ms ease; }
nav a:hover, nav a:focus-visible { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(48px, 7vw, 108px);
  align-items: center;
  min-height: 720px;
  padding-block: 92px;
}

.eyebrow, .kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 28px;
  font-size: clamp(46px, 5.35vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero h1 em {
  display: block;
  white-space: nowrap;
  color: transparent;
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), #85c9ff 62%, var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead { max-width: 660px; color: #b9c8d6; font-size: 17px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { border-color: transparent; background: var(--accent); color: #052016; }
.button.secondary { background: rgba(255, 255, 255, 0.035); color: #dae5ef; }
.button.secondary:hover { border-color: rgba(111, 255, 210, 0.45); }

.loop-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(155deg, rgba(19, 40, 66, 0.9), rgba(8, 22, 38, 0.74));
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.28);
}

.loop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
  opacity: .38;
}

.loop-card > * { position: relative; }

.loop-orbit {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  margin: 0 auto 30px;
  border: 1px solid rgba(111, 255, 210, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(82, 167, 255, 0.08);
}

.loop-orbit::before { content: ""; position: absolute; inset: 22px; border: 1px dashed rgba(159, 176, 194, .25); border-radius: 50%; }
.orbit-core { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-blue)); color: #07111f; font-size: 24px; font-weight: 900; box-shadow: 0 16px 48px rgba(82, 167, 255, .25); }
.orbit-dot { position: absolute; top: 21px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 22px var(--warm); }

.loop-card ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.loop-card li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 15px; background: #0c1c30; }
.loop-card li span { grid-row: 1 / 3; color: var(--accent); font-family: ui-monospace, monospace; font-size: 11px; }
.loop-card li strong { font-size: 14px; }
.loop-card li small { color: var(--muted); font-size: 11px; }
.loop-card > p { margin: 24px 0 0; text-align: center; color: #6f8296; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .13em; }

.signal-strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid p { margin: 0; padding: 22px 20px; border-right: 1px solid var(--line); color: #becbd8; font-size: 13px; }
.signal-grid p:first-child { border-left: 1px solid var(--line); }
.signal-grid span { margin-right: 10px; color: #5f7489; font-family: ui-monospace, monospace; }

.section { padding-block: 120px; }
.section-heading { max-width: 700px; margin-bottom: 54px; }
.section-heading h2, .method-copy h2, .status-panel h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -0.035em; }
.section-heading > p:last-child, .method-copy > p:last-child { color: var(--muted); }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability-card { position: relative; min-height: 430px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 28, 48, 0.7); }
.capability-card.featured { background: linear-gradient(155deg, rgba(21, 54, 72, .92), rgba(13, 28, 48, .8)); }
.card-index { position: absolute; top: 28px; right: 30px; color: #64798e; font-family: ui-monospace, monospace; font-size: 11px; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 66px; border: 1px solid rgba(111,255,210,.28); border-radius: 15px; background: rgba(111,255,210,.06); color: var(--accent); font-weight: 800; }
.capability-card h3 { margin-bottom: 12px; font-size: 22px; }
.capability-card > p { min-height: 84px; color: var(--muted); font-size: 14px; }
.capability-card ul { margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.capability-card li { position: relative; margin-top: 9px; padding-left: 16px; color: #c8d4df; font-size: 13px; }
.capability-card li::before { content: ""; position: absolute; top: .75em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.method-section { border-block: 1px solid var(--line); background: #081525; }
.method-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.method-copy { position: sticky; top: 40px; }
.principle-list { border-top: 1px solid var(--line); }
.principle-list article { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.principle-list span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 12px; }
.principle-list h3 { margin-bottom: 8px; font-size: 18px; }
.principle-list p { margin: 0; color: var(--muted); font-size: 14px; }

.status-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 42px; align-items: center; padding: 42px; border: 1px solid rgba(111,255,210,.22); border-radius: var(--radius); background: linear-gradient(125deg, rgba(111,255,210,.07), rgba(82,167,255,.06)); }
.status-panel h2 { margin: 0; }
.status-panel > p { margin: 0; color: #b8c7d5; }
.status-chip { grid-column: 1 / -1; display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: #b8c7d5; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; }
.status-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(111,255,210,.8); }

.site-footer { padding-top: 58px; border-top: 1px solid var(--line); background: #050d17; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding-bottom: 44px; }
.footer-top > p { max-width: 520px; margin: 0; color: var(--muted); text-align: right; font-size: 14px; }
.footer-bottom { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #72869a; font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: var(--accent); }

.legal-page { max-width: 920px; padding-block: 100px 130px; }
.legal-page h1 { margin-bottom: 16px; font-size: clamp(44px, 7vw, 72px); letter-spacing: -.05em; }
.legal-intro { max-width: 680px; margin-bottom: 46px; color: var(--muted); }
.legal-card { padding: 16px 42px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 28, 48, .72); }
.legal-card section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.legal-card section:last-child { border-bottom: 0; }
.legal-card h2 { margin-bottom: 10px; font-size: 18px; }
.legal-card p { margin: 0; color: #b8c7d5; font-size: 14px; }
.legal-footer { padding-top: 0; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-page main { max-width: 620px; }
.error-page img { margin: 0 auto 30px; }
.error-page h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.12; letter-spacing: -.045em; }
.error-page p:not(.kicker) { margin-bottom: 30px; color: var(--muted); }

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 76px; }
  .loop-card { max-width: 620px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: auto; }
  .card-icon { margin-bottom: 42px; }
  .capability-card > p { min-height: 0; }
  .method-layout { grid-template-columns: 1fr; }
  .method-copy { position: static; }
  .status-panel { grid-template-columns: 1fr; }
  .status-chip { grid-column: auto; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 32px, 1160px); }
  .header-inner { min-height: 72px; }
  .brand small { display: none; }
  nav { gap: 16px; }
  nav a { display: none; }
  nav a:last-child { display: block; }
  .hero { gap: 48px; padding-block: 62px; }
  .hero h1 { font-size: clamp(34px, 10.8vw, 46px); }
  .hero h1 em { white-space: nowrap; }
  .hero-lead { font-size: 15px; }
  .loop-card { min-height: auto; padding: 24px; border-radius: 24px; }
  .loop-orbit { width: 140px; height: 140px; }
  .loop-card ol { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal-grid p { border-bottom: 1px solid var(--line); }
  .section { padding-block: 84px; }
  .capability-card, .status-panel { padding: 26px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-top > p { text-align: left; }
  .footer-bottom { padding-block: 22px; }
  .legal-page { padding-block: 72px 90px; }
  .legal-card { padding-inline: 24px; }
}

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