/* xto.li — landing styles. No external assets. */

:root {
  --bg: #04060a;
  --bg-2: #070b12;
  --panel: #0a0f14;
  --panel-edge: #15202b;
  --panel-edge-hot: #1e3340;
  --ink: #d6e6ee;
  --ink-dim: #6a8290;
  --ink-mute: #3a4a55;
  --cyan: #00e0ff;
  --cyan-soft: #5cf0ff;
  --green: #39ff88;
  --magenta: #ff2bd6;
  --amber: #ffb454;
  --red: #ff4d6a;
  --mono: ui-monospace, "JetBrains Mono", "Fira Code", "SFMono-Regular", "Menlo", "Consolas", monospace;
  --r: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 32px; /* HUD */
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Background layers ============ */
.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #0a121b 0%, var(--bg) 70%);
}
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(0,224,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,224,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  animation: drift 60s linear infinite;
}
@keyframes drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}
.bg-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.7) 100%);
}
.bg-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.9 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.035;
  mix-blend-mode: overlay;
}
.bg-glow {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(80px); opacity: 0.35; mix-blend-mode: screen;
}
.bg-glow-a {
  background: radial-gradient(circle, rgba(0,224,255,0.5), transparent 60%);
  top: -10vmax; left: -10vmax;
  animation: floatA 24s ease-in-out infinite alternate;
}
.bg-glow-b {
  background: radial-gradient(circle, rgba(255,43,214,0.35), transparent 60%);
  bottom: -15vmax; right: -10vmax;
  animation: floatB 28s ease-in-out infinite alternate;
}
@keyframes floatA { from { transform: translate(0,0); } to { transform: translate(8vmax, 6vmax); } }
@keyframes floatB { from { transform: translate(0,0); } to { transform: translate(-6vmax,-8vmax); } }
.bg-packets { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============ HUD ============ */
.hud {
  position: fixed; top: 0; left: 0; right: 0; height: 32px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: linear-gradient(to bottom, rgba(7,11,18,0.92), rgba(7,11,18,0.6));
  border-bottom: 1px solid var(--panel-edge);
  backdrop-filter: blur(6px);
  z-index: 20;
  white-space: nowrap; overflow: hidden;
}
.hud-cell { display: inline-flex; align-items: center; gap: 6px; }
.hud-key { color: var(--ink-mute); text-transform: uppercase; }
.hud-val { color: var(--cyan); }
.hud-sep { color: var(--ink-mute); }
.hud-push { margin-left: auto; }
.hud-secure { color: var(--green); }
.hud-dot {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.hud-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.hud-bars i {
  display: block; width: 3px; background: var(--cyan); opacity: 0.4;
  animation: bars 1.6s ease-in-out infinite;
}
.hud-bars i:nth-child(1) { height: 30%; animation-delay: 0s; }
.hud-bars i:nth-child(2) { height: 60%; animation-delay: .15s; }
.hud-bars i:nth-child(3) { height: 90%; animation-delay: .3s; }
.hud-bars i:nth-child(4) { height: 50%; animation-delay: .45s; }
.hud-bars i:nth-child(5) { height: 20%; animation-delay: .6s; }
@keyframes bars { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* ============ Stage ============ */
.stage {
  position: relative; z-index: 5;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  padding: 56px 24px 40px;
  flex: 1;
  display: flex; flex-direction: column; gap: 56px; align-items: center;
}

/* ============ Hero ============ */
.hero { text-align: center; }
.wordmark {
  position: relative; display: inline-block;
  margin: 0; padding: 0;
  font-size: clamp(80px, 16vw, 220px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(0,224,255,0.25);
  isolation: isolate;
}
.wordmark .wm-layer {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.wordmark .wm-c { color: var(--cyan); transform: translate(-2px, 0); opacity: 0.85; }
.wordmark .wm-m { color: var(--magenta); transform: translate(2px, 0); opacity: 0.6; }
.wordmark .wm-core { position: relative; z-index: 2; animation: glitch 7s steps(1) infinite; }
@keyframes glitch {
  0%,97%,100% { transform: translate(0,0); }
  97.5% { transform: translate(2px,-1px); }
  98%   { transform: translate(-3px,1px); }
  98.5% { transform: translate(1px,2px); }
  99%   { transform: translate(0,-1px); }
}
.wordmark::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 0; height: 14%;
  background: linear-gradient(to bottom, transparent, rgba(0,224,255,0.18), transparent);
  pointer-events: none; mix-blend-mode: screen;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  0%   { transform: translateY(-20%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(820%); opacity: 0; }
}

.subline {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.comment { color: var(--ink-mute); }
.caret {
  display: inline-block; margin-left: 4px;
  color: var(--cyan);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* ============ Panels ============ */
.panels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  width: 100%;
}
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(180deg, rgba(10,15,20,0.92), rgba(7,11,16,0.92));
  border: 1px solid var(--panel-edge);
  border-radius: var(--r);
  box-shadow:
    0 0 0 1px rgba(0,224,255,0.04) inset,
    0 20px 60px -20px rgba(0,0,0,0.8),
    0 0 80px -40px rgba(0,224,255,0.4);
  overflow: hidden;
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.02) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--panel-edge);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim);
}
.leds { display: inline-flex; gap: 5px; }
.led { width: 9px; height: 9px; border-radius: 50%; display: inline-block; opacity: 0.7; }
.led-r { background: var(--red); box-shadow: 0 0 6px var(--red); }
.led-y { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.led-g { background: var(--green); box-shadow: 0 0 6px var(--green); }
.panel-title { color: var(--ink); font-weight: 600; }
.panel-tag { margin-left: auto; color: var(--cyan); font-weight: 700; }

.panel-body {
  margin: 0; padding: 14px 16px;
  font-family: var(--mono); font-size: 13px;
  color: var(--ink);
  white-space: pre-wrap; word-break: break-all;
  min-height: 160px;
}
.panel-body .ln { display: block; }
.panel-body .pr { color: var(--green); font-weight: 700; }
.panel-body .gt { color: var(--ink-dim); }
.panel-body .lt { color: var(--cyan); }
.panel-body .hl { color: var(--cyan); text-shadow: 0 0 8px rgba(0,224,255,0.6); }
.panel-body .ok { color: var(--green); font-weight: 700; }
.panel-body .ms { color: var(--amber); }
.panel-body .dim { color: var(--ink-dim); }
.panel-body .status { margin-top: 8px; }

.panel-foot {
  display: flex; gap: 14px; align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--panel-edge);
  background: rgba(0,0,0,0.3);
  font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.foot-k { color: var(--ink-mute); text-transform: uppercase; }
.foot-v { color: var(--cyan); }

/* ============ Chips ============ */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  font-size: 12px; color: var(--ink-dim);
  background: rgba(10,15,20,0.6);
  letter-spacing: 0.04em;
}
.chip-on { color: var(--ink); border-color: var(--panel-edge-hot); }
.chip .ellip { color: var(--ink-mute); letter-spacing: 0.2em; }
.cdot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.c-cyan  { background: var(--cyan);  box-shadow: 0 0 8px var(--cyan); }
.c-amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: pulse 2s ease-in-out infinite; }
.c-green { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 3s ease-in-out infinite; }

/* ============ Footer ============ */
.foot {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--panel-edge);
  font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.06em;
  background: rgba(4,6,10,0.6);
  backdrop-filter: blur(4px);
}
.foot-mark { color: var(--ink-dim); }
.foot-sep { color: var(--ink-mute); }
.foot-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border: 1px solid var(--panel-edge); border-radius: 999px;
  color: var(--ink);
}
.foot-link { color: var(--cyan); }

/* ============ Privacy page ============ */
.page-privacy { padding-top: 32px; }
.doc {
  position: relative; z-index: 5;
  max-width: 720px; width: 100%;
  margin: 0 auto;
  padding: 48px 24px 32px;
  flex: 1;
}
.doc-title {
  font-size: 28px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.doc-lede { color: var(--ink-dim); margin: 0 0 28px; }
.doc section { margin: 22px 0; }
.doc h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cyan); margin: 0 0 6px; font-weight: 700;
}
.doc p { margin: 0 0 8px; color: var(--ink); }
.doc code {
  background: rgba(0,224,255,0.08);
  border: 1px solid var(--panel-edge);
  padding: 1px 6px; border-radius: 4px;
  color: var(--cyan);
}
.doc strong { color: var(--cyan); font-weight: 700; }
.doc-back { margin-top: 32px; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .bg-packets { display: none; }
}
