/* ============================================================
   GET WEB SPACE — mission-control aesthetic
   obsidian / acid-lime / bone — Unbounded + Sora + IBM Plex Mono
   ============================================================ */

:root {
  --bg: #06080a;
  --bg-alt: #0a0d10;
  --surface: #0d1114;
  --line: rgba(232, 236, 223, 0.09);
  --line-strong: rgba(232, 236, 223, 0.18);
  --text: #e8ecdf;
  --muted: #8b948a;
  --accent: #c8ff3e;
  --accent-dim: rgba(200, 255, 62, 0.12);
  --accent-glow: rgba(200, 255, 62, 0.35);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #06080a; }

.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #000; padding: 0.5rem 1rem;
  font-family: var(--font-mono);
}
.skip-link:focus { left: 0; }

/* faint blueprint grid over everything */
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 90%);
}

/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1240px; margin: 0 auto;
  padding: 0.9rem var(--pad);
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand-thin { font-weight: 400; color: var(--accent); }
.brand-mark {
  width: 14px; height: 14px; flex-shrink: 0;
  border: 1.5px solid var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  position: relative;
  animation: orbit 8s linear infinite;
}
.brand-mark::after {
  content: ""; position: absolute; top: -3px; left: 50%;
  width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent);
}
@keyframes orbit { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.85rem 1.5rem; text-decoration: none;
  border: 1px solid var(--accent); cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn-solid {
  background: var(--accent); color: #06080a;
  box-shadow: 0 0 0 rgba(200, 255, 62, 0);
}
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.nav-cta { padding: 0.6rem 1.1rem; font-size: 0.75rem; }

/* ============ hero ============ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
#swarm {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 6rem var(--pad) 7rem;
}
.kicker {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.18em;
  color: var(--accent); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 9px rgba(200, 255, 62, 0); }
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
h1 em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}
.h1-sub {
  display: block; font-weight: 400;
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  color: var(--muted); margin-top: 0.75rem;
  text-transform: none; letter-spacing: 0.01em;
}
.lede {
  max-width: 34rem; font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted); margin-bottom: 2.5rem;
}
.lede strong, .section-lede strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  max-width: 46rem;
}
.hero-stats > div { background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 1.1rem 1.25rem; }
.hero-stats dt {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.3rem;
}
.hero-stats dd {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.6rem; color: var(--text);
}
.stat-x { color: var(--accent); }

.hero-coords {
  position: absolute; bottom: 1.1rem; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0 var(--pad);
  font-size: 0.62rem; letter-spacing: 0.15em; color: var(--muted);
  opacity: 0.7;
}

/* ============ marquee ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 0.9rem 0;
  background: var(--bg-alt);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 2.25rem; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.2em; color: var(--muted); white-space: nowrap;
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ sections ============ */
.section {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
}
.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 46rem; }
h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.12; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.section-lede { color: var(--muted); font-size: 1.05rem; }

/* ============ platform cards ============ */
.cards {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  background: var(--line); border: 1px solid var(--line);
}
.card {
  background: var(--bg); padding: 2rem 1.75rem 1.75rem;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.card:hover { background: var(--surface); }
.card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::after { transform: scaleX(1); }
.card-index { color: var(--accent); font-size: 0.7rem; letter-spacing: 0.15em; }
.card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  margin: 0.9rem 0 0.75rem; text-transform: uppercase;
}
.card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.25rem; }
.card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; list-style: none; }
.card-tags li {
  font-size: 0.6rem; letter-spacing: 0.12em; color: var(--muted);
  border: 1px solid var(--line-strong); padding: 0.25rem 0.5rem;
}

/* ============ roles ============ */
.roles-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.role {
  border: 1px solid var(--line); padding: 1.75rem;
  background: var(--bg);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.role:hover { border-color: var(--accent); transform: translateY(-4px); }
.role h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1rem; text-transform: uppercase; margin-bottom: 0.75rem;
}
.role p { color: var(--muted); font-size: 0.92rem; }
.role-stat {
  margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.68rem; letter-spacing: 0.14em; color: var(--accent);
}

/* ============ timeline ============ */
.timeline { list-style: none; max-width: 52rem; }
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.timeline li:first-child { border-top: 1px solid var(--line); }
.step {
  color: var(--accent); font-size: 0.8rem; letter-spacing: 0.12em;
  padding-top: 0.35rem;
}
.timeline h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.step-time { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.12em; }
.timeline p { color: var(--muted); font-size: 0.95rem; max-width: 38rem; }

/* ============ faq ============ */
.faq-list { max-width: 52rem; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-body); font-weight: 500; font-size: 1.05rem;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-icon {
  font-family: var(--font-mono); color: var(--accent);
  font-size: 1.2rem; transition: transform 0.25s; flex-shrink: 0;
}
.faq-list details[open] .faq-icon { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 1.5rem; max-width: 44rem; }

/* ============ contact ============ */
.contact-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}
.contact-points { list-style: none; margin-top: 2rem; }
.contact-points li {
  font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted);
  padding: 0.5rem 0;
}

.lead-form {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}
.lead-form::before {
  content: "LEAD-INTAKE // SECURE";
  position: absolute; top: -0.6rem; left: 1.5rem;
  background: var(--bg); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em;
  padding: 0.15rem 0.6rem; border: 1px solid var(--line-strong);
}
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label {
  display: block; font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 300;
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c8ff3e'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(139, 148, 138, 0.5); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.btn-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }
.form-status {
  min-height: 1.4rem; margin-top: 0.9rem;
  font-size: 0.72rem; letter-spacing: 0.1em;
}
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff6b5e; }
.form-fineprint { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; }

/* ============ footer ============ */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 3rem var(--pad) 2rem;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-tag { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }
.footer-links { display: grid; gap: 0.5rem; text-align: right; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-legal {
  max-width: 1240px; margin: 2.5rem auto 0;
  font-size: 0.62rem; letter-spacing: 0.15em; color: var(--muted); opacity: 0.6;
}

/* ============ reveal animation ============ */
/* hidden state only applies when JS is running (html.js set inline in <head>),
   so crawlers and no-JS users always see full content */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .pulse-dot { animation: none; }
  .brand-mark { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============ responsive ============ */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav { gap: 1rem; }
  .nav-cta { margin-left: auto; padding: 0.55rem 0.9rem; font-size: 0.68rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 4.5rem; padding-bottom: 5.5rem; }
  .hero-coords { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }
  .footer-links { text-align: left; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
