:root {
  --bg: #050505;
  --surface: #0a0a0a;
  --surface-2: #0e0e0e;
  --text: #f4f4f0;
  --muted: #94948d;
  --line: #242422;
  --line-strong: #3a3a36;
  --accent: #d7ff3f;
  --accent-text: #050505;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --shell: min(1380px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code, .mono { font-family: var(--mono); }
.shell { width: var(--shell); margin-inline: auto; }
.muted { color: var(--muted); }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .022;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  width: var(--shell);
  height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 25px; height: 25px; object-fit: contain; display: block; }
.desktop-nav { display: flex; gap: 30px; color: #c9c9c3; font-size: 13px; }
.desktop-nav a, .footer-links a, .text-link { transition: color .2s ease; }
.desktop-nav a:hover, .footer-links a:hover, .text-link:hover { color: var(--accent); }
.header-cta { justify-self: end; border: 1px solid var(--line-strong); padding: 10px 15px; font-size: 12px; font-family: var(--mono); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.header-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.hero { min-height: 770px; padding: 70px 0 68px; display: flex; flex-direction: column; justify-content: space-between; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #b8b8b2; font: 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 0 4px rgba(215,255,63,.08); }
.hero h1 { font-size: clamp(72px, 10.8vw, 164px); line-height: .84; letter-spacing: -.077em; margin: 72px 0 54px; font-weight: 600; max-width: 1250px; }
.hero h1 span { color: #595955; }
.hero-title-line { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; width: 100%; max-width: 100%; }
.hero-tagline { white-space: nowrap; }
.hero-logo { width: min(100%, 220px); height: auto; object-fit: contain; justify-self: start; }
.hero-bottom { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 80px; }
.hero-bottom p { max-width: 700px; margin: 0; color: #b7b7b1; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.48; letter-spacing: -.025em; }
.hero-actions { justify-self: end; display: flex; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 48px; padding: 0 19px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); font: 12px var(--mono); text-transform: uppercase; letter-spacing: .03em; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.button-solid:hover { background: var(--accent); border-color: var(--accent); }
.button-outline:hover { background: #111; border-color: #686862; }
.button.large { min-height: 58px; padding: 0 25px; }

.command-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #080808; }
.command-strip-inner { min-height: 84px; display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 30px; }
.command-strip-inner > span { font-size: 10px; letter-spacing: .09em; }
.copy-command { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-width: 0; gap: 20px; }
.copy-command code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d8d8d2; font-size: 12px; }
.copy-label { color: var(--accent); font: 10px var(--mono); letter-spacing: .1em; }

.section-index { color: #6c6c67; font-size: 10px; letter-spacing: .1em; }
.intro { padding: 140px 0 86px; }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; margin-top: 55px; }
.intro h2, .workflow-heading h2, .architecture h2, .manifest-copy h2, .install h2 { margin: 0; font-size: clamp(48px, 6.4vw, 94px); line-height: .94; letter-spacing: -.06em; font-weight: 600; }
.intro-copy { padding-top: 10px; }
.intro-copy p { margin: 0 0 38px; color: #a6a6a0; font-size: 20px; line-height: 1.6; max-width: 610px; }
.text-link { display: inline-flex; gap: 18px; border-bottom: 1px solid var(--line-strong); padding-bottom: 8px; color: #d7d7d1; font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: 1.35fr .825fr .825fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 150px; }
.feature-card { min-height: 550px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; color: #85857f; font-size: 10px; letter-spacing: .08em; }
.card-num { font: 10px var(--mono); }
.feature-card h3 { font-size: 25px; letter-spacing: -.035em; line-height: 1.15; margin: auto 0 16px; max-width: 390px; }
.feature-card p { margin: 0; color: #85857f; font-size: 14px; line-height: 1.65; max-width: 410px; }
.namespace-viz { flex: 1; min-height: 260px; display: flex; align-items: center; justify-content: center; position: relative; }
.namespace-box { width: 64%; height: 120px; border: 1px solid #454540; display: grid; grid-template-columns: repeat(5,1fr); position: relative; z-index: 2; background: #080808; }
.namespace-box span { display: flex; align-items: center; justify-content: center; border-right: 1px solid #2b2b28; color: #c1c1bb; font: 10px var(--mono); }
.namespace-box span:last-child { border-right: 0; }
.host-label { position: absolute; top: 40px; left: 18%; color: #5c5c58; font-size: 9px; }
.process-lines { position: absolute; inset: 38% 10% auto; display: flex; justify-content: space-between; }
.process-lines i { height: 74px; width: 1px; background: #32322f; }
.meter-stack { margin: 76px 0 70px; display: grid; gap: 24px; }
.meter-stack div { display: grid; grid-template-columns: 38px 1fr 58px; gap: 10px; align-items: center; color: #75756f; font: 9px var(--mono); }
.meter-stack i { height: 4px; background: #1c1c1a; position: relative; overflow: hidden; }
.meter-stack i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--text); }
.meter-stack b { color: #bdbdb6; font-weight: 400; text-align: right; }
.binary-viz { margin: 66px auto 50px; width: 142px; height: 142px; border: 1px solid #3d3d39; display: grid; place-items: center; position: relative; }
.binary-viz::before, .binary-viz::after { content: ""; position: absolute; background: #3d3d39; }
.binary-viz::before { width: 180px; height: 1px; }
.binary-viz::after { height: 180px; width: 1px; }
.binary-viz span { font-size: 65px; font-weight: 600; letter-spacing: -.08em; }
.binary-viz small { position: absolute; bottom: -28px; font: 9px var(--mono); color: #777772; }

.workflow { background: var(--text); color: var(--bg); padding: 125px 0 130px; }
.workflow .section-index { color: #676761; }
.workflow-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 80px; align-items: end; margin: 55px 0 90px; }
.workflow-heading p { margin: 0; max-width: 500px; color: #555550; font-size: 18px; line-height: 1.6; }
.terminal { border: 1px solid #1e1e1c; background: #070707; color: var(--text); }
.terminal-bar { height: 52px; border-bottom: 1px solid #232320; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; color: #85857f; font-size: 10px; }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 6px; height: 6px; border: 1px solid #55554f; }
.terminal-body { min-height: 360px; padding: 34px; font-size: clamp(12px, 1.2vw, 16px); line-height: 1.85; overflow-x: auto; }
.terminal-body p { margin: 0; white-space: nowrap; }
.prompt, .success { color: var(--accent); }
.output { color: #777771; }
.hidden { opacity: 0; }
.terminal-line { transition: opacity .18s ease; }
.terminal-line.show { opacity: 1; }
.caret { color: var(--accent); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.command-cards { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid #b9b9b2; border-top: 1px solid #b9b9b2; }
.command-cards div { min-height: 122px; border-right: 1px solid #b9b9b2; border-bottom: 1px solid #b9b9b2; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; }
.command-cards code { font-size: 13px; font-weight: 500; }
.command-cards span { color: #666660; font-size: 12px; }

.architecture { padding: 155px 0; }
.architecture-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; margin-top: 60px; }
.architecture-title p { margin: 45px 0 0; color: #8f8f89; max-width: 520px; line-height: 1.6; font-size: 17px; }
.arch-diagram { border: 1px solid var(--line-strong); padding: 30px; min-height: 570px; display: flex; flex-direction: column; justify-content: center; }
.arch-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.arch-row span { min-height: 78px; border: 1px solid #333330; display: grid; place-items: center; font: 10px var(--mono); color: #c0c0ba; }
.arch-connector { height: 75px; display: grid; grid-template-columns: repeat(3,1fr); }
.arch-connector i { width: 1px; height: 100%; background: #343430; justify-self: center; }
.arch-core { min-height: 130px; background: var(--text); color: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.arch-core strong { font: 600 20px var(--sans); letter-spacing: -.03em; }
.arch-core small { margin-top: 12px; color: #5c5c56; font: 10px var(--mono); }
.arch-footer { border-top: 1px solid #292926; margin-top: 28px; padding-top: 18px; color: #5c5c57; text-align: center; font-size: 9px; letter-spacing: .14em; }

.manifest-section { border-top: 1px solid var(--line); padding: 125px 0 140px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 110px; align-items: center; }
.manifest-copy h2 { margin-top: 34px; font-size: clamp(50px, 5vw, 76px); }
.manifest-copy p { color: #92928c; font-size: 17px; line-height: 1.65; max-width: 520px; margin-top: 30px; }
.manifest-copy p code { color: var(--text); font-size: .9em; }
.manifest { margin: 0; padding: 35px; border: 1px solid var(--line-strong); background: #080808; overflow: auto; color: #b7b7b1; font: 13px/1.8 var(--mono); }
.manifest .dim { color: #777771; }
.manifest .key { color: var(--text); }
.manifest .string { color: var(--accent); }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stats-grid > div { min-height: 230px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 28px 28px 30px 0; }
.stats-grid > div:not(:first-child) { padding-left: 28px; }
.stats-grid > div:last-child { border-right: 0; }
.stat-value { font-size: 78px; line-height: .9; letter-spacing: -.06em; font-weight: 600; }
.stat-label { color: #71716c; font-size: 9px; letter-spacing: .08em; }

.install { padding: 145px 0 100px; }
.install-rule { width: 48px; height: 1px; background: var(--accent); margin-bottom: 35px; }
.install h2 { margin-top: 45px; font-size: clamp(62px, 8.4vw, 124px); max-width: 1200px; }
.install h2 span { color: #565652; }
.install-actions { margin-top: 65px; display: flex; gap: 10px; flex-wrap: wrap; }
.install-note { margin-top: 35px; color: #666661; font-size: 9px; letter-spacing: .09em; }

.footer { border-top: 1px solid var(--line); min-height: 160px; display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 40px; }
.footer p { color: #777771; font-size: 12px; line-height: 1.6; max-width: 420px; }
.footer-links { justify-self: end; display: flex; gap: 24px; color: #a3a39d; font-size: 12px; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 1380px); }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { min-height: 680px; }
  .hero-bottom, .intro-grid, .workflow-heading, .architecture-grid, .manifest-section { grid-template-columns: 1fr; gap: 45px; }
  .hero-actions { justify-self: start; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card-wide { grid-column: span 2; }
  .workflow-heading p { max-width: 620px; }
  .command-cards, .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr; padding: 45px 0; }
  .footer-links { justify-self: start; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1380px); }
  .site-header { height: 72px; }
  .header-cta { display: none; }
  .hero { min-height: auto; padding: 52px 0 58px; }
  .hero h1 { margin: 72px 0 50px; font-size: clamp(66px, 21vw, 96px); }
  .hero-title-line { gap: 12px; }
  .hero-logo { width: min(100%, 120px); }
  .hero-bottom p { font-size: 17px; }
  .hero-actions { margin-top: 8px; width: 100%; }
  .button { width: 100%; }
  .command-strip-inner { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; }
  .copy-command code { font-size: 10px; }
  .intro { padding: 100px 0 60px; }
  .intro-grid { margin-top: 38px; }
  .feature-grid { grid-template-columns: 1fr; margin-bottom: 100px; }
  .feature-card-wide { grid-column: auto; }
  .feature-card { min-height: 480px; }
  .namespace-box { width: 92%; }
  .workflow { padding: 95px 0 100px; }
  .workflow-heading { margin: 42px 0 60px; }
  .terminal-body { min-height: 320px; padding: 22px 16px; font-size: 10px; }
  .command-cards, .stats-grid { grid-template-columns: 1fr; }
  .architecture { padding: 110px 0; }
  .arch-diagram { padding: 15px; min-height: 490px; }
  .arch-row span { min-height: 62px; font-size: 8px; }
  .manifest-section { padding: 95px 0 110px; }
  .manifest { padding: 20px; font-size: 10px; }
  .stats-grid > div, .stats-grid > div:not(:first-child) { min-height: 160px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-grid > div:last-child { border-bottom: 0; }
  .install { padding: 110px 0 80px; }
  .install h2 { font-size: clamp(58px, 17vw, 88px); }
}

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