@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jbmono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --bg-2: #0b0f15;
  --panel: #0f141c;
  --panel-2: #131a24;
  --line: #1d2633;
  --line-2: #273242;
  --text: #e8edf3;
  --text-2: #a3aebd;
  --text-3: #6b7788;
  --accent: #4db6d1;
  --accent-2: #3d8fd9;
  --accent-dim: rgba(77, 182, 209, 0.10);
  --warm: #f2b45a;
  --radius: 8px;
  --max: 1200px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #04121a; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -0.03em; font-weight: 600; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; }
h3 { font-size: 20px; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 640px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 6px;
  font-weight: 550; font-size: 15px;
  border: 1px solid var(--line-2);
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn-primary { background: var(--accent); color: #04121a; border-color: var(--accent); }
.btn-primary:hover { background: #6cc4da; border-color: #6cc4da; }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--text-3); background: rgba(255,255,255,0.05); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(7, 9, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.logo svg { width: 30px; height: 30px; }
.logo span em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; color: var(--text-2); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { padding: 9px 16px; font-size: 14px; color: var(--text); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px;
  width: 40px; height: 40px; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  opacity: .3;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 0 0 24px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.scope {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.scope-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; white-space: nowrap;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3); letter-spacing: .04em;
}
.scope-bar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
#beam { width: 100%; aspect-ratio: 1.45 / 1; }
.scope-foot {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
}
.scope-foot div { padding: 10px 14px; border-right: 1px solid var(--line); color: var(--text-3); }
.scope-foot div:last-child { border-right: 0; }
.scope-foot b { display: block; color: var(--text); font-weight: 500; font-size: 13px; margin-top: 2px; }

/* ---------- Spec strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 30px 24px; border-right: 1px solid var(--line); }
.strip-item:first-child { padding-left: 0; }
.strip-item:last-child { border-right: 0; }
.strip-item .v { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; }
.strip-item .v .pre { font-size: .45em; color: var(--text-3); font-weight: 500; margin-right: 7px; letter-spacing: 0; }
.strip-item .v small { font-size: .55em; color: var(--text-2); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.strip-item .k { font-size: 13.5px; color: var(--text-3); margin-top: 4px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 56px; }
.section-head.stack { grid-template-columns: 1fr; gap: 18px; max-width: 760px; }

/* Platform cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .25s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-2); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.card-icon {
  width: 44px; height: 44px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(77,182,209,.22);
}
.card-icon svg { width: 24px; height: 24px; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--text-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 8px;
}
.card h3 { margin-bottom: 10px; }
.card > p { color: var(--text-2); font-size: 15px; }
.specs { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px dashed var(--line-2); }
.specs li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.specs li span:first-child { color: var(--text-3); }
.specs li span:last-child { font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; }
.note { margin-top: 22px; font-size: 13px; color: var(--text-3); }

/* Technology */
.tech { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chain {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 28px 24px 18px; margin-bottom: 48px; overflow-x: auto;
}
.chain svg { min-width: 860px; width: 100%; height: auto; }
.chain-cap { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); margin-top: 10px; letter-spacing: .03em; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feat { background: var(--bg-2); padding: 30px 28px; }
.feat .n { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 14px; display: block; }
.feat h3 { font-size: 17px; margin-bottom: 10px; }
.feat p { color: var(--text-2); font-size: 14.5px; }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--panel);
  display: flex; flex-direction: column; gap: 12px;
}
.app .band { font-family: var(--mono); font-size: 11.5px; color: var(--warm); letter-spacing: .04em; }
.app h3 { font-size: 18px; }
.app p { color: var(--text-2); font-size: 14.5px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.step { padding: 0 28px 0 0; position: relative; }
.step .rail { height: 2px; background: var(--line-2); margin-bottom: 26px; position: relative; }
.step .rail::before {
  content: ""; position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.step:first-child .rail { background: linear-gradient(90deg, var(--accent), var(--line-2)); }
.step .ph { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.step h3 { font-size: 19px; margin: 8px 0 10px; }
.step p { color: var(--text-2); font-size: 14.5px; }

.volume {
  margin-top: 64px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 40px;
  background: var(--panel);
}
.volume h3 { font-size: 24px; margin-bottom: 12px; }
.vol-scale { font-family: var(--mono); font-size: 12px; }
.vol-bar { position: relative; height: 44px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.vol-bar .fill {
  position: absolute; top: 0; bottom: 0; left: 20%; right: 30.5%;
  background: rgba(77,182,209,.18);
  border-left: 2px solid var(--accent); border-right: 2px solid var(--accent);
  display: grid; place-items: center; color: var(--text); font-size: 12px; letter-spacing: .04em;
}
.vol-labels { position: relative; height: 16px; color: var(--text-3); margin-top: 10px; }
.vol-labels span { position: absolute; transform: translateX(-50%); }
.vol-labels span:first-child { transform: none; }
.vol-labels span:last-child { transform: translateX(-100%); }
.vol-ends { display: flex; justify-content: space-between; color: var(--text-3); margin-bottom: 10px; font-size: 11.5px; }

/* Quality */
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.q {
  display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
}
.q svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.q h4 { font-size: 15.5px; margin-bottom: 6px; }
.q p { color: var(--text-2); font-size: 14px; }

/* Company */
.company { background: var(--bg-2); border-top: 1px solid var(--line); }
.co-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.co-grid .lead + .lead { margin-top: 18px; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.facts div:last-child { border-bottom: 0; }
.facts span:first-child { color: var(--text-3); }
.facts span:last-child { text-align: right; }

/* Contact */
.contact { padding: 120px 0; }
.contact-box {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 56px;
  background: var(--panel);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
}
.contact-box h2 { margin: 0 0 18px; }
.c-list { display: grid; gap: 14px; align-content: start; }
.c-item {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 6px;
  background: rgba(7,9,13,.5); transition: border-color .2s, background .2s;
}
a.c-item:hover { border-color: var(--accent); }
.c-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.c-item small { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
.c-item b { font-weight: 500; }
.rfq { margin-top: 26px; padding: 0; list-style: none; display: grid; gap: 8px; }
.rfq li { font-size: 14.5px; color: var(--text-2); display: flex; gap: 10px; }
.rfq li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--text-3); margin-top: 10px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-3); font-size: 13.5px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; }
.foot a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 150px 0 100px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 40px; }
.legal h2 { font-size: 21px; margin: 44px 0 14px; letter-spacing: -0.01em; }
.legal h3 { font-size: 16.5px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .box { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 24px 28px; }
.legal .box p { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .section-head, .co-grid, .contact-box, .volume { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .apps, .feat-grid, .q-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .strip-item:nth-child(3) { padding-left: 0; }
  .contact-box { padding: 40px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(7,9,13,.97); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .section, .contact { padding: 84px 0; }
  .section-head { gap: 20px; margin-bottom: 40px; }
  .scope-bar .hide-sm { display: none; }
  .cards, .apps, .feat-grid, .q-grid, .process { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .strip-item { padding: 22px 16px; }
  .strip-item:nth-child(odd) { padding-left: 0; }
  .scope-foot { grid-template-columns: repeat(2, 1fr); }
  .scope-foot div:nth-child(2) { border-right: 0; }
  .scope-foot div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-box { padding: 28px 20px; }
  .volume { padding: 26px 20px; }
  .specs li { flex-direction: column; gap: 2px; }
  .specs li span:last-child { text-align: left; }
  .facts div { padding: 14px 18px; }
}
