/* XUBU stealth page. Brand colours from the logo files, pushed darker. */
:root {
  --void: #05070a;
  --ink: #0e1116;        /* logo background */
  --cell: #1b222c;       /* logo grid cells */
  --line: #232b36;       /* logo borders */
  --text: #f7f8fa;       /* logo off-white */
  --muted: #8c96a5;
  --dim: #5b6573;
  --cyan: #00c2ff;       /* logo accent */
  --blue: #0a84c7;       /* logo secondary accent */
  --action: #ff3ea5;     /* call to action only: magenta */
  --action-2: #a855f7;   /* call to action only: violet */

  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 66% 45%, rgba(10, 132, 199, 0.10), transparent 70%),
    var(--void);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--void); }

/* ---------- Fabric canvas ---------- */
#fabric {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.veil {
  /* keeps the copy legible over the fabric */
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.92) 0%, rgba(5, 7, 10, 0.55) 38%, transparent 62%),
    linear-gradient(0deg, rgba(5, 7, 10, 0.9) 0%, transparent 30%);
}
.scan {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
}
@media (max-width: 899px) {
  .veil {
    background: linear-gradient(0deg, rgba(5, 7, 10, 0.96) 0%, rgba(5, 7, 10, 0.75) 45%, rgba(5, 7, 10, 0.2) 75%);
  }
}

/* ---------- HUD frame ---------- */
.hud { position: fixed; inset: 12px; z-index: 3; pointer-events: none; }
.hud i {
  position: absolute; width: 18px; height: 18px;
  border-color: rgba(0, 194, 255, 0.45); border-style: solid; border-width: 0;
}
.hud i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hud i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hud i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hud i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 12px rgba(0, 194, 255, 0.45)); }
.wordmark { font-weight: 800; font-size: 21px; letter-spacing: 3px; }
.wordmark b { color: var(--cyan); font-weight: 800; }
.status {
  display: flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(14, 17, 22, 0.6); backdrop-filter: blur(8px);
}
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--action); box-shadow: 0 0 10px var(--action);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Layout ---------- */
main { position: relative; z-index: 4; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font: 500 12px/1.6 var(--mono); letter-spacing: 4px; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--cyan); }

h1, h2 { margin: 0; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(46px, 8.4vw, 104px); font-weight: 800; }
h2 { font-size: clamp(34px, 5.6vw, 68px); font-weight: 800; }
.glow {
  background: linear-gradient(92deg, var(--cyan) 0%, #7fe0ff 45%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 28px rgba(0, 194, 255, 0.35));
}
p { margin: 0; }
.lede { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 34em; text-wrap: pretty; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 140px;
}
.hero h1 { font-size: clamp(56px, 10.5vw, 136px); }
.hero h1 .sub {
  display: block; margin-top: 0.2em;
  font-size: 0.4em; letter-spacing: -0.02em; line-height: 1.1;
}
.hero .tagline {
  margin: 22px 0 0;
  font: 500 clamp(15px, 1.5vw, 19px)/1.4 var(--mono); letter-spacing: 0.06em;
  color: var(--cyan);
}
.hero .lede { margin-top: 28px; }
@media (max-width: 899px) {
  .hero { justify-content: flex-end; padding-bottom: 120px; }
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 44px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 10px;
  font: 650 16px/1 var(--font); letter-spacing: 0.2px;
  color: var(--void); background: linear-gradient(120deg, var(--action) 0%, var(--action-2) 100%);
  box-shadow: 0 0 0 1px rgba(255, 62, 165, 0.45), 0 10px 40px -8px rgba(255, 62, 165, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 4.5s ease-in-out infinite 1.5s;
}
@keyframes sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--action), 0 16px 50px -8px rgba(255, 62, 165, 0.9); }
.btn svg { width: 18px; height: 18px; }
.mail { font: 500 14px/1 var(--mono); color: var(--muted); letter-spacing: 1px; }
.mail:hover { color: var(--text); }

.term {
  margin-top: 40px; min-height: 1.6em;
  font: 400 13px/1.6 var(--mono); color: var(--dim); letter-spacing: 0.5px;
}
.term .p { color: var(--cyan); }
.term .cur { display: inline-block; width: 8px; height: 14px; background: var(--cyan); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }

/* Telemetry strip */
.telemetry {
  position: absolute; left: 0; right: 0; bottom: 36px;
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  font: 500 11px/1 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--dim);
}
.telemetry div { display: flex; align-items: center; gap: 12px; }
@media (max-width: 899px) { .telemetry { bottom: 28px; gap: 10px 24px; } .telemetry div:nth-child(n+3) { display: none; } }

/* Redaction bars */
.redact {
  display: inline-block; height: 0.95em; vertical-align: -0.12em; border-radius: 2px;
  background: linear-gradient(90deg, var(--cell) 0%, #2a3442 50%, var(--cell) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Below the fold ---------- */
section.block { padding: 140px 0; }
.intel {
  display: grid; gap: 1px; margin-top: 64px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.intel > div {
  background: rgba(8, 11, 15, 0.88); backdrop-filter: blur(6px);
  padding: 40px 32px 44px; position: relative;
}
.intel .k { font: 500 12px/1 var(--mono); color: var(--cyan); letter-spacing: 2px; }
.intel h3 { font-size: 24px; line-height: 1.2; margin: 28px 0 12px; font-weight: 700; letter-spacing: -0.01em; }
.intel p { color: var(--muted); font-size: 16px; }

.dossier {
  margin-top: 64px; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(8, 11, 15, 0.88); backdrop-filter: blur(6px);
  font-family: var(--mono);
}
.dossier-head {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 28px; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim);
}
.dossier-head span:last-child { color: #ff5c7a; }
.dossier dl { margin: 0; padding: 12px 28px 20px; display: grid; grid-template-columns: minmax(140px, 240px) 1fr; }
.dossier dt, .dossier dd { margin: 0; padding: 16px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.dossier dt { color: var(--muted); letter-spacing: 1px; }
.dossier dd { color: var(--text); }
.dossier dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) {
  .dossier dl { grid-template-columns: 1fr; }
  .dossier dt { padding-bottom: 4px; border-bottom: 0; }
  .dossier dd { padding-top: 4px; }
}

.final { text-align: center; padding: 160px 0 120px; }
.final .lede { margin: 28px auto 0; }
.final .lede.soon { margin-top: 16px; color: var(--text); font-weight: 600; }
.final .cta-row { justify-content: center; }

footer {
  position: relative; z-index: 4;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font: 400 12px/1.6 var(--mono); letter-spacing: 1px; color: var(--dim);
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
