/* ============================================================
   CYCLOPS SPACE — design system
   Dark cinematic · red laser · engineering-grade mono
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #050609;
  --bg-2:      #080b11;
  --panel:     #0c1017;
  --panel-2:   #11161f;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  /* ink */
  --ink:       #f1f4f8;
  --ink-2:     #aab4c2;
  --muted:     #6b7585;
  --faint:     #444e5c;

  /* laser red accent */
  --laser:     #ff3b3b;
  --laser-2:   #ff6a4d;
  --laser-dim: #b62b2b;
  --glow:      rgba(255,59,59,.55);
  --glow-soft: rgba(255,59,59,.18);

  /* radio / "old way" — desaturated cold */
  --radio:     #5d6b7e;
  --radio-dim: #313a47;

  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

::selection { background: var(--laser); color: #fff; }

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

/* ---------- shared layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { position: relative; padding-block: clamp(80px, 12vh, 150px); }
.section--tight { padding-block: clamp(56px, 8vh, 96px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--laser);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--laser);
  display: inline-block;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--muted); }

h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -.02em; margin: 0; text-wrap: balance; }

.h-display {
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .98;
}
.h-section { font-size: clamp(32px, 4.8vw, 60px); }
.lead {
  font-size: clamp(18px, 2.1vw, 23px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.laser-text { color: var(--laser); }

.mono { font-family: var(--mono); }
.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--laser);
  border-color: var(--laser);
  color: #fff;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--primary:hover { box-shadow: 0 8px 34px -8px var(--glow); background: var(--laser-2); border-color: var(--laser-2); }
.btn--ghost:hover { border-color: var(--laser); color: var(--laser); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  backdrop-filter: blur(0px);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5,6,9,.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--mono); letter-spacing: .12em; font-size: 14px; text-transform: uppercase; }
.brand .eye {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  position: relative;
}
.brand .eye::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--laser); box-shadow: 0 0 10px var(--glow);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-family: var(--mono); font-size: 13px; color: var(--ink-2); letter-spacing: .03em; transition: color .2s; }
.nav-links a:hover { color: var(--laser); }
@media (max-width: 760px){ .nav-links .nav-hide { display: none; } }

/* ---------- panels / cards ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* corner ticks decoration */
.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: ""; position: absolute; width: 10px; height: 10px;
  border-color: var(--laser); border-style: solid; opacity: .7;
}
.ticked::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.ticked::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ---------- big stat ---------- */
.statline { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- grid divider lines bg ---------- */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .5;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); 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; } }

/* utility */
.center { text-align: center; }
.col { display: flex; flex-direction: column; }
.row { display: flex; }
.gap-s { gap: 12px; } .gap-m { gap: 24px; } .gap-l { gap: 48px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
