@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --void:      #08090b;
  --surface:   #14171d;
  --raised:    #1a1e26;

  --line:        rgba(255,255,255,0.075);
  --line-strong: rgba(255,255,255,0.14);
  --grid:        rgba(255,255,255,0.026);

  --ink-hi:  #eef0f3;
  --ink:     #b3b9c4;
  --ink-mid: #767d8a;
  --ink-lo:  #4d535e;

  --ok:   #46c46a;
  --accent:    #4fd6cf;
  --accent-hi: #74f2ea;
  --accent-dim: rgba(79,214,207,0.14);

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r: 8px;
  --maxw: 1080px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
}

::selection { background: rgba(79,214,207,0.28); color: var(--ink-hi); }

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

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); }
*::-webkit-scrollbar-track { background: transparent; }

.reticle { flex: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--accent);
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 26px;
  border-bottom: 1px solid transparent;
  transition: background 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}
.site-header.scrolled {
  background: rgba(8,9,11,0.72);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink-hi); }
.brand .reticle { color: var(--ink-hi); }
.brand .txt { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
.brand .sub { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.24em; color: var(--ink-mid); text-transform: uppercase; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  height: 40px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid transparent; transition: all 150ms ease; cursor: pointer;
  white-space: nowrap;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink-hi); border-color: var(--accent); background: var(--accent-dim); }
.btn-primary { background: var(--accent); color: #04120f; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 8px 26px rgba(79,214,207,0.22); }
.header-cta { height: 34px; padding: 0 15px; font-size: 11.5px; }
.header-nav { display: flex; align-items: center; gap: 20px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; }
.header-nav a { color: var(--ink); transition: color 140ms ease; white-space: nowrap; }
.header-nav a:hover { color: var(--ink-hi); }
@media (max-width: 560px) {
  .site-header { padding: 0 18px; }
  .header-nav { gap: 8px; font-size: 9px; letter-spacing: 0.02em; }
  .brand .name { font-size: 12px; }
  .brand .sub { display: none; }
}

.hero-track { position: relative; height: 185vh; z-index: 1; }
.hero {
  --p: 0;
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.viz-wrap {
  position: absolute; inset: 0; z-index: 0;
  transform: scale(calc(1 + var(--p) * 0.55)) rotate(calc(var(--p) * 14deg));
  opacity: calc(1 - var(--p) * 1.15);
  will-change: transform, opacity;
}
#viz { display: block; width: 100%; height: 100%; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 30%, rgba(8,9,11,0.55) 78%, var(--void) 100%);
  opacity: calc(1 - var(--p) * 0.7);
}

.hero-content {
  position: relative; z-index: 3; text-align: center;
  padding: 0 24px; max-width: 760px;
  transform: translateY(calc(var(--p) * -70px));
  opacity: calc(1 - var(--p) * 1.5);
  will-change: transform, opacity;
}
.hero-content .lockup-reticle { color: var(--accent); margin-bottom: 22px; filter: drop-shadow(0 0 18px rgba(79,214,207,0.45)); }
.hero-content .eyebrow { display: block; margin-bottom: 18px; }
.hero-content > * {
  animation: hero-rise 880ms cubic-bezier(.2,.75,.22,1) both;
}
.hero-content > *:nth-child(2) { animation-delay: 80ms; }
.hero-content > *:nth-child(3) { animation-delay: 150ms; }
.hero-content > *:nth-child(4) { animation-delay: 220ms; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content > * { animation: none; }
}
.wordmark {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(38px, 8vw, 84px); letter-spacing: 0.02em;
  color: var(--ink-hi); margin: 0; line-height: 1;
  text-shadow: 0 0 40px rgba(8,9,11,0.9);
}
.wordmark .dot { color: var(--accent); }
.hero-track::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18vh;
  z-index: 2;
  width: min(620px, calc(100vw - 52px));
  height: 1px;
  transform: translateX(-50%) scaleX(calc(var(--p, 0) * 1));
  transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(79,214,207,0.68), transparent);
  opacity: calc(var(--p, 0) * 0.9);
  pointer-events: none;
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-mid);
  opacity: calc(1 - var(--p) * 2.4);
}
.scroll-cue .tick { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue .tick::after {
  content: ""; position: absolute; top: -34px; left: 0; width: 1px; height: 34px;
  background: linear-gradient(transparent, var(--accent-hi));
  animation: cue 1.9s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes cue { to { transform: translateY(68px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .tick::after { animation: none; } }

.hud {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-mid);
  opacity: calc(1 - var(--p) * 1.9);
}
.hud > div { position: absolute; display: flex; align-items: center; gap: 8px; }
.hud .tl { top: 78px; left: 26px; }
.hud .tr { top: 78px; right: 26px; }
.hud .bl { bottom: 28px; left: 26px; }
.hud .br { bottom: 28px; right: 26px; }
.hud .dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hud .val { color: var(--ink); }
.hud .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.hud .bars i { width: 3px; background: var(--accent); display: inline-block; }
@media (max-width: 680px) { .hud { display: none; } }

.content {
  position: relative; z-index: 5;
  background: var(--void);
  border-top: 1px solid var(--line);
  margin-top: -32vh;
  box-shadow: 0 -40px 80px rgba(8,9,11,0.85);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.section { padding: 108px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em;
  color: var(--ink-hi); margin: 0; line-height: 1.08; text-wrap: balance;
}
.section-head p { font-size: 16px; color: var(--ink-mid); margin: 18px 0 0; line-height: 1.65; max-width: 54ch; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

.request-card {
  margin-top: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 6px; position: relative; overflow: hidden;
  max-width: 620px;
}
.request-card .bar {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mid);
}
.request-card .bar .dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.email-form { display: flex; gap: 10px; padding: 6px 10px 12px; }
.email-form .btn-primary { height: 52px; padding: 0 24px; font-size: 13px; width: 100%; }
@media (max-width: 560px) {
  .email-form { flex-direction: column; }
}

.site-footer {
  position: relative; z-index: 5; background: var(--void);
  padding: 44px 0 60px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-mid); }
.footer-left .reticle { color: var(--ink-mid); }
.footer-status { display: inline-flex; align-items: center; gap: 7px; }
.footer-status .dot-ok { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.footer-links { display: flex; align-items: center; gap: 26px; font-family: var(--mono); font-size: 12.5px; }
.footer-links a { color: var(--ink); position: relative; padding-bottom: 3px; transition: color 140ms; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--accent); transition: right 200ms ease; }
.footer-links a:hover { color: var(--ink-hi); }
.footer-links a:hover::after { right: 0; }
.footer-links a .ext { color: var(--ink-lo); margin-left: 5px; font-size: 11px; }
@media (max-width: 560px) { .footer-inner { flex-direction: column; align-items: flex-start; } }
