/* ARCOVEX — engineering / telemetry aesthetic */
:root {
  --bg: #05070a;
  --bg-2: #0b1014;
  --panel: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #e6ecf3;
  --muted: #7a8694;
  --dim: #4a5563;
  --accent: #2BA7E8;
  --accent-rgb: 43, 167, 232;
  --grid-alpha: 0.035;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  font-feature-settings: "ss01", "cv02";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.mono {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,var(--grid-alpha)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,var(--grid-alpha)) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 30%, transparent 90%);
}
.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(var(--accent-rgb), 0.10), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,0,0,0.7), transparent 70%);
}

.with-scanlines::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255,255,255,0.012) 2px,
    rgba(255,255,255,0.012) 3px
  );
  mix-blend-mode: overlay;
}

/* ---------- Corner frame ---------- */
.corner-frame {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.005));
  backdrop-filter: blur(6px);
}
.cf {
  position: absolute;
  width: 10px; height: 10px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0.85;
}
.cf-tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.cf-tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.cf-bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.cf-br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px var(--pad);
  border-bottom: 1px solid var(--border);
  background: rgba(5,7,10,0.7);
  backdrop-filter: blur(10px);
}
.nav-left { display: flex; align-items: center; gap: 18px; }
.wordmark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.32em;
}
.nav-sub { display: none; }
@media (min-width: 880px) { .nav-sub { display: inline; } }

.nav-links {
  display: none;
  gap: 28px;
}
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .15s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--fg); }
@media (min-width: 880px) { .nav-links { display: flex; } }

.nav-right { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.nav-coord { display: none; }
@media (min-width: 700px) { .nav-coord { display: inline; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) var(--pad) clamp(60px, 8vw, 100px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.waveform-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.hero-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(40px, 5vw, 60px);
  padding: 0 4px;
}
.logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.logo {
  position: relative;
  z-index: 2;
  width: clamp(260px, 36vw, 420px);
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 30px rgba(var(--accent-rgb), 0.25));
}
.logo-glow {
  position: absolute;
  inset: -20%;
  z-index: 1;
  filter: blur(20px);
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.headline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #b8c4d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subhead {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto clamp(32px, 4vw, 44px);
  text-wrap: pretty;
}
.subhead em { color: var(--fg); font-style: normal; }

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: all .18s ease;
  position: relative;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #03161f;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5), 0 8px 30px -8px rgba(var(--accent-rgb), 0.6);
}
.btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18), 0 10px 40px -8px rgba(var(--accent-rgb), 0.8);
  transform: translateY(-1px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--accent);
  color: var(--fg);
}
.btn-shortcut { padding: 2px 6px; border: 1px solid var(--border); }

/* ---------- Status ticker ---------- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 12px 0;
  margin: 0 auto;
  max-width: 980px;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-group { display: flex; flex-shrink: 0; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 18px; }
.ticker-key { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.ticker-val { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--fg); }
.ticker-sep { color: var(--dim); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero readouts ---------- */
.hero-readout {
  position: absolute;
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(5,7,10,0.6);
  backdrop-filter: blur(8px);
  min-width: 180px;
}
.hero-readout-tl { top: 40px; left: var(--pad); }
.hero-readout-br { bottom: 40px; right: var(--pad); }
@media (min-width: 1100px) { .hero-readout { display: flex; } }

.readout-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.readout-fill {
  height: 100%;
  box-shadow: 0 0 8px currentColor;
}
.readout-channels { display: flex; gap: 3px; }
.readout-ch { flex: 1; height: 16px; }

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 140px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(48px, 6vw, 72px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 880px) {
  .section-head {
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 40px;
  }
}
.section-head-left { display: flex; flex-direction: column; gap: 4px; }
.section-index { font-size: 12px; }
.section-eyebrow { font-size: 11px; }
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section-note { text-align: right; max-width: 280px; line-height: 1.5; }
@media (max-width: 879px) {
  .section-note { text-align: left; }
}

/* ---------- Capability cards ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cap-card {
  background: var(--bg);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .2s;
  border: none !important;
}
.cap-card:hover { background: rgba(255,255,255,0.015); }
.cap-card .cf { opacity: 0; transition: opacity .2s; }
.cap-card:hover .cf { opacity: 1; }

.cap-head { display: flex; justify-content: space-between; align-items: center; }
.cap-code { color: var(--muted); }
.cap-status { font-size: 10px; }
.cap-icon-wrap {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.04);
}
.cap-svg { width: 32px; height: 32px; }
.cap-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
}
.cap-blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.cap-spec {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}
.cap-spec li { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 11px; }
.cap-spec-dot { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 4px currentColor; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 980px) {
  .about-grid { grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
}
.about-lead {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.35;
  margin: 0 0 24px;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.about-lead em { font-style: normal; color: var(--accent); }
.about-body { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 32px; max-width: 56ch; text-wrap: pretty; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 600px) { .about-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 18px 16px; }
.stat-n {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat-label { font-size: 10px; }

.about-panel { padding: 22px; }
.panel-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 18px;
}
.proc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.proc-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.proc-k { font-size: 14px; padding-top: 2px; }
.proc-t { font-size: 16px; font-weight: 500; margin-bottom: 3px; }
.proc-d { display: block; line-height: 1.4; }

/* ---------- Tech grid ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
.tech-cell {
  padding: 22px 18px 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.012);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s;
  cursor: default;
}
.tech-id { color: var(--dim); font-size: 10px; }
.tech-name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.tech-bar { height: 2px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 6px; }
.tech-bar-fill { height: 100%; transition: width .4s; box-shadow: 0 0 6px currentColor; }
.tech-cell.is-hover .tech-bar-fill { width: 100% !important; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.04));
  padding: clamp(60px, 8vw, 100px) var(--pad) 24px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 880px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 60px; } }
.foot-block { display: flex; flex-direction: column; gap: 14px; }
.foot-headline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.foot-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--accent);
  padding: 8px 0;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
  width: fit-content;
  transition: gap .2s;
}
.foot-mail:hover { gap: 16px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: padding-left .15s, color .15s;
}
.foot-links a:hover { padding-left: 8px; color: var(--accent); }
.foot-loc { font-size: 15px; line-height: 1.5; }
.foot-bar {
  max-width: var(--max);
  margin: clamp(50px, 6vw, 70px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Static deploy refinements ---------- */
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }

.wordmark span,
.subhead span,
.foot-headline span {
  color: var(--accent);
}

.nav-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.logo-glow {
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.35), transparent 70%);
}

.btn:focus-visible,
.nav a:focus-visible,
.foot-links a:focus-visible,
.foot-mail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.cap-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cap-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.cap-svg,
.cap-svg * {
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap-svg .svg-fill {
  fill: var(--accent);
}

.cap-spec-dot {
  background: var(--accent);
}

.readout-fill {
  width: 78%;
  background: var(--accent);
}

.readout-ch {
  background: rgba(255,255,255,0.1);
}

.readout-ch.is-active {
  background: var(--accent);
  opacity: 0.85;
}

.tech-bar-fill {
  background: var(--accent);
}

.tech-cell:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 0 30px rgba(var(--accent-rgb), 0.18);
}

.tech-cell:hover .tech-bar-fill {
  width: 100% !important;
}

.foot-loc .mono {
  display: block;
  margin-top: 8px;
}

.noscript {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(5,7,10,0.92);
  color: var(--muted);
  font: 12px/1.4 ui-monospace, Menlo, monospace;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .ticker-track {
    transform: none !important;
  }
}

@media (max-width: 520px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-right {
    display: none;
  }

  .wordmark {
    font-size: 15px;
    letter-spacing: 0.24em;
  }

  .hero-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-meta-row .mono {
    max-width: 100%;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .logo {
    width: min(260px, 82vw);
  }

  .subhead {
    max-width: 30ch;
    overflow-wrap: break-word;
  }

  .cta-row {
    align-items: center;
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: min(100%, 280px);
  }

  .cap-grid {
    grid-template-columns: 1fr;
  }

  .cap-spec {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }
}
