:root {
  --bg: #060b14;
  --bg-soft: #0a1220;
  --ink: #e8f1ff;
  --muted: #8ea4bf;
  --dim: #637b99;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --line: rgba(148, 190, 230, 0.14);
  --glass: linear-gradient(155deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(120, 180, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 230, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.glow { position: fixed; border-radius: 50%; filter: blur(110px); z-index: -2; pointer-events: none; }
.glow-a { width: 620px; height: 620px; top: -220px; right: -180px; background: rgba(34, 211, 238, 0.17); }
.glow-b { width: 560px; height: 560px; top: 480px; left: -260px; background: rgba(167, 139, 250, 0.13); }

.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  width: min(1160px, calc(100% - 48px));
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 15, 27, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 12px;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; color: var(--cyan); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-size: 1.02rem; }
.brand-accent, .footer-brand span { color: var(--cyan); }

.nav { display: flex; gap: 26px; font-size: 0.9rem; color: var(--muted); }
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--ink); }

.header-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.82rem; font-weight: 600; color: #baf6ea;
  white-space: nowrap;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.14); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.12); } 50% { box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.02); } }

.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; padding: 96px 0 72px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.eyebrow-line { width: 34px; height: 1px; background: var(--cyan); opacity: 0.7; }
h1 { margin: 0; font-size: clamp(2.6rem, 5.2vw, 4.25rem); line-height: 1.06; letter-spacing: -0.045em; font-weight: 780; }
.grad { background: linear-gradient(100deg, #67e8f9 0%, #5eead4 45%, #a78bfa 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 1.045rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; font-weight: 650; font-size: 0.92rem; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(120deg, #22d3ee, #2dd4bf); color: #04131b; box-shadow: 0 12px 28px rgba(34, 211, 238, 0.2); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin: 46px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); font-family: var(--mono); }
.hero-stats dd { margin: 6px 0 0; font-size: 1.36rem; font-weight: 720; letter-spacing: -0.02em; }
.hero-stats small { font-size: 0.76rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(103, 232, 249, 0.13); border-radius: 50%; }
.orbit-1 { width: 390px; height: 390px; animation: spin 34s linear infinite; }
.orbit-2 { width: 275px; height: 275px; border-color: rgba(167, 139, 250, 0.16); animation: spin 24s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.core-card { position: relative; width: min(320px, 100%); padding: 26px; z-index: 2; background: linear-gradient(155deg, rgba(34, 211, 238, 0.12), rgba(10, 18, 32, 0.86)); }
.core-top { display: flex; align-items: center; justify-content: space-between; }
.tag { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cyan); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.core-name { margin-top: 26px; font-size: 1.65rem; font-weight: 740; letter-spacing: -0.03em; }
.core-name span { color: var(--dim); font-weight: 500; }
.core-meta { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 26px; }
.bars i { flex: 1; height: 30%; border-radius: 3px; background: linear-gradient(to top, rgba(34, 211, 238, 0.25), rgba(45, 212, 191, 0.85)); animation: bar 1.8s ease-in-out infinite alternate; }
.bars i:nth-child(2n) { animation-delay: 0.25s; }
.bars i:nth-child(3n) { animation-delay: 0.5s; }
.bars i:nth-child(4n) { animation-delay: 0.75s; }
@keyframes bar { from { height: 18%; } to { height: 88%; } }

.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 0.8rem; color: #cfe5fa; border-radius: 12px; }
.chip-icon { color: var(--cyan); font-family: var(--mono); font-size: 0.95rem; }
.chip-a { top: 38px; right: 0; }
.chip-b { bottom: 70px; left: 0; }
.chip-c { bottom: 16px; right: 18px; }

.section { padding: 64px 0 8px; scroll-margin-top: 100px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.kicker { margin: 0 0 8px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.18; letter-spacing: -0.035em; }
.section-note { max-width: 470px; margin: 0; color: var(--muted); font-size: 0.92rem; }

.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.status-card { padding: 22px; transition: border-color 0.25s ease, transform 0.25s ease; }
.status-card:hover { transform: translateY(-3px); border-color: rgba(103, 232, 249, 0.32); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(34, 211, 238, 0.1); color: var(--cyan); font-family: var(--mono); font-size: 1rem; }
.state { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.state-ok { color: #9df3d9; border-color: rgba(45, 212, 191, 0.35); background: rgba(45, 212, 191, 0.08); }
.state-warn { color: #fcd34d; border-color: rgba(252, 211, 77, 0.32); background: rgba(252, 211, 77, 0.07); }
.state-bad { color: #fca5a5; border-color: rgba(248, 113, 113, 0.32); background: rgba(248, 113, 113, 0.07); }
.status-card h3 { margin: 18px 0 4px; font-size: 1.02rem; }
.status-card p.mono { margin: 0; font-size: 0.76rem; color: var(--cyan); }
.detail { margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); min-height: 2.6em; }
.status-foot { margin: 14px 0 0; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
.flow-node { padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 176px; }
.flow-num { font-family: var(--mono); font-size: 0.68rem; color: var(--dim); letter-spacing: 0.12em; }
.flow-node strong { font-size: 1.04rem; }
.flow-node span { font-size: 0.84rem; color: var(--muted); }
.flow-node code { margin-top: auto; font-size: 0.74rem; color: var(--cyan); }
.flow-arrow { align-self: center; color: var(--dim); font-size: 1.3rem; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; font-size: 0.78rem; color: var(--dim); }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; }
.legend-teal { background: var(--teal); }
.legend-blue { background: var(--cyan); }
.legend-violet { background: var(--violet); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature { padding: 28px; }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(167, 139, 250, 0.12); color: var(--violet); font-size: 1.15rem; }
.feature h3 { margin: 18px 0 8px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.feature ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.feature li { font-family: var(--mono); font-size: 0.72rem; color: #b9d4ef; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: rgba(255, 255, 255, 0.025); }
.feature code { font-size: 0.85em; color: var(--cyan); }

.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.link-card { display: flex; align-items: center; gap: 14px; padding: 18px; transition: transform 0.2s ease, border-color 0.2s ease; }
.link-card:hover { transform: translateY(-3px); border-color: rgba(103, 232, 249, 0.35); }
.link-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(34, 211, 238, 0.1); color: var(--cyan); flex: none; font-family: var(--mono); }
.link-card strong { display: block; font-size: 0.94rem; }
.link-card small { display: block; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.link-arrow { margin-left: auto; color: var(--dim); }

.capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.cap { padding: 20px; }
.cap h3 { margin: 0 0 8px; font-size: 0.94rem; }
.cap p { margin: 0; font-size: 0.82rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: rgba(255, 255, 255, 0.02); }

.roadmap { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; padding: 28px; }
.road-step { position: relative; }
.road-num { font-family: var(--mono); font-size: 0.7rem; color: var(--cyan); }
.road-step strong { display: block; margin-top: 8px; font-size: 0.98rem; }
.road-step p { margin: 8px 0 0; font-size: 0.82rem; color: var(--muted); }
.road-arrow { color: var(--dim); }

.site-footer { margin-top: 90px; border-top: 1px solid var(--line); background: rgba(4, 9, 17, 0.6); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding: 38px 0 46px; }
.footer-brand { font-weight: 750; letter-spacing: -0.02em; }
.footer-inner p { margin: 8px 0 0; color: var(--dim); font-size: 0.82rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 0.82rem; color: var(--muted); }
.footer-links a:hover { color: var(--cyan); }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { min-height: 380px; }
  .nav { display: none; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .link-grid, .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-arrow { display: none; }
  .roadmap { grid-template-columns: 1fr; }
  .road-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 640px) {
  .shell, .site-header { width: min(100% - 30px, 1160px); }
  .site-header { top: 8px; padding: 10px 12px; }
  .header-cta { display: none; }
  .hero { padding: 52px 0 40px; }
  .hero-stats { gap: 20px; }
  .hero-visual { min-height: 330px; }
  .orbit-1 { width: 300px; height: 300px; }
  .orbit-2 { width: 220px; height: 220px; }
  .chip-a { right: -6px; }
  .chip-b { left: -6px; }
  .section { padding-top: 48px; }
  .section-head { flex-direction: column; align-items: start; gap: 14px; }
  .status-grid, .card-grid, .flow, .link-grid, .capabilities { grid-template-columns: 1fr; }
  .flow-node { min-height: auto; }
  .footer-inner { flex-direction: column; }
}

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