:root {
  --bg: #0A0D12;
  --bg-alt: #0F1620;
  --surface: #161F2B;
  --line: #2A3646;
  --cyan: #00F0FF;
  --red: #FF3366;
  --text: #EEF3F8;
  --muted: #A9B8C9;
  --dim: #6F8196;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--cyan); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; }
.muted { color: var(--dim); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  background: var(--cyan); color: var(--bg);
  font-family: var(--f-display); font-weight: 700; font-size: 16px;
  text-decoration: none; border-radius: 2px;
  border: 1px solid var(--cyan);
  transition: background .15s, color .15s;
}
.btn:hover { background: #7FF7FF; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 28px; font-size: 20px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--nav-h);
  background: rgba(10, 13, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 54, 70, 0.6);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.wordmark {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.mark { width: 28px; height: 28px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 64px;
  overflow: hidden;
}
#scan { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10,13,18,0.92) 34%, rgba(10,13,18,0) 62%);
}
.hero-content { position: relative; width: 100%; }
.hero-content > * { max-width: 620px; }
.hero h1 { margin-bottom: 24px; }
.lede { font-size: 19px; color: var(--muted); margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.legend { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 10px; height: 10px; border-radius: 50%; }
.swatch.cyan { background: var(--cyan); }
.swatch.red { background: var(--red); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { margin-bottom: 48px; }
.sub { color: var(--muted); font-size: 18px; max-width: 60ch; margin: -24px 0 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  padding: 32px;
  border-top: 3px solid var(--cyan);
  border-radius: 2px;
}
.card-red { border-top-color: var(--red); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }

/* Purpose / Mission / Vision */
.blueprint .sub em { color: var(--text); font-style: italic; }
.pmv { margin: 0; border-top: 1px solid var(--line); }
.pmv > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.pmv dt {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); padding-top: 8px;
}
.pmv > div:nth-child(2) dt { color: var(--text); }
.pmv > div.red dt { color: var(--red); }
.pmv dd {
  margin: 0; max-width: 34ch;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.01em;
}

/* Pipeline */
.pipeline {
  list-style: none; margin: 0 0 56px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.pipeline li {
  position: relative;
  background: var(--surface);
  padding: 28px;
  border-radius: 2px;
}
.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute; top: 50%; right: -16px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan);
  transform: translateY(-50%) rotate(45deg);
}
.step { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.step.red { color: var(--red); }
.pipeline h3 { margin-bottom: 8px; }
.pipeline p { color: var(--muted); font-size: 15px; }
.pull { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; max-width: 30ch; }
.hl { color: var(--cyan); }

/* Products */
.product {
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 2px;
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(180deg, rgba(0,240,255,0.05), transparent 40%);
}
.product-red { background: linear-gradient(180deg, rgba(255,51,102,0.06), transparent 40%); }
.product-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.product-red .product-tag, .product-red .product-line { color: var(--red); }
.product h3 { font-size: 30px; }
.product-line { font-family: var(--f-display); font-size: 20px; color: var(--cyan); }
.product > p:not(.product-tag):not(.product-line) { color: var(--muted); }
.specs { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.specs li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 14px;
}
.specs span { color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--surface); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
thead th.us { color: var(--cyan); }
tbody th { font-weight: 600; font-family: var(--f-display); }
tbody td { color: var(--muted); }
tbody td:last-child { color: var(--text); }

/* Industries */
.industries article { padding: 28px; border-left: 3px solid var(--cyan); background: var(--surface); }
.industries article.red { border-left-color: var(--red); }
.industries h3 { margin-bottom: 8px; }
.industries p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 80% 100%, rgba(255,51,102,0.12), transparent 50%), radial-gradient(ellipse at 20% 0%, rgba(0,240,255,0.08), transparent 50%), var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.contact h2 { margin-bottom: 40px; }
.contact .sub { margin: 0; }
.contact-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.fine { color: var(--dim); font-size: 14px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound h1 { margin: 12px 0 24px; }

.film h2 { max-width: 32ch; }
.film-frame { border: 1px solid var(--line); border-radius: 2px; background: #000; overflow: hidden; }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Responsive */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .grid-3, .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipeline li::after { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 80px 0; }
  .grid-3, .grid-2, .pipeline { grid-template-columns: 1fr; }
  .hero { align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,13,18,0.94) 48%, rgba(10,13,18,0.2) 80%); }
  .product { padding: 28px; }
  .pmv > div { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .pmv dt { padding-top: 0; }
  .wordmark span { display: none; }
  .btn-lg { font-size: 17px; padding: 0 20px; }
}
