/* site.css — "coming soon" theme. Self-contained: no web fonts, no external images. */

:root {
  --bg: #05060f;
  --ink: #e8f1ff;
  --ink-soft: #b6c4de;
  --muted: #8193b2;
  --cyan: #22d3ee;
  --violet: #818cf8;
  --magenta: #e879f9;
  --lime: #a3e635;
  --amber: #fbbf24;
  --line: rgba(148, 197, 255, 0.14);
  --sans: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --px: 0; /* pointer position, -1 … 1 (set by site.js) */
  --py: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

/* ------------------------------------------------------------ background --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% -10%, #111a44 0%, #080b1e 45%, var(--bg) 75%);
}
.bg::after { /* vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
.bg__aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(32% 28% at 28% 32%, rgba(34, 211, 238, 0.2), transparent 70%),
    radial-gradient(30% 26% at 72% 28%, rgba(232, 121, 249, 0.17), transparent 70%),
    radial-gradient(40% 32% at 50% 78%, rgba(129, 140, 248, 0.16), transparent 70%);
  translate: calc(var(--px) * -24px) calc(var(--py) * -24px);
  animation: aurora 26s ease-in-out infinite alternate;
}
.bg__field { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40vh;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(34, 211, 238, 0.75) 35%, rgba(232, 121, 249, 0.75) 65%, transparent 96%);
  box-shadow: 0 0 22px 3px rgba(129, 140, 248, 0.4);
  opacity: 0.55;
}
.bg__floor { /* synthwave floor: a flat grid tilted away from the viewer */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40vh;
  overflow: hidden;
  perspective: 320px;
  perspective-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 65%);
          mask-image: linear-gradient(to bottom, transparent, #000 65%);
}
.bg__grid {
  position: absolute;
  left: -60%;
  right: -60%;
  top: -40px;
  height: 360px;
  transform-origin: 50% 40px;
  transform: rotateX(72deg);
  background-image:
    linear-gradient(to right, rgba(56, 189, 248, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(192, 132, 252, 0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-run 1.8s linear infinite;
}
.bg__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 3px);
}
.bg__scanlines::after { /* slow sweeping beam */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.06) 70%, rgba(34, 211, 238, 0.12) 98%, transparent);
  transform: translateY(-30vh);
  animation: sweep 10s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* HUD corner brackets */
.frame { position: fixed; inset: 14px; z-index: 5; pointer-events: none; }
.frame i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(34, 211, 238, 0.55); }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* --------------------------------------------------------- header/footer --- */
.hud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: clamp(20px, 3.2vw, 34px) clamp(24px, 4.5vw, 52px);
  font: 500 0.72rem/1.4 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hud p { margin: 0; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.55)); }
.status { display: inline-flex; align-items: center; gap: 0.65rem; }
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2.2s ease-out infinite;
}
.status--warn .status__dot { background: var(--amber); animation-name: pulse-warn; }
.clock { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ hero --- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.25rem, 6vh, 3.75rem);
  padding: 1rem clamp(20px, 5vw, 48px) clamp(3rem, 9vh, 5.5rem);
  text-align: center;
}
.headline {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}
.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: clamp(380px, 84vmin, 860px);
  height: auto;
  aspect-ratio: 1;
  translate: calc(-50% + var(--px) * 18px) calc(-50% + var(--py) * 18px);
  opacity: 0.6;
  overflow: visible;
}
.orbit circle { fill: none; stroke: url(#orbit-g); stroke-width: 1; }
.orbit .ring {
  transform-box: view-box;
  transform-origin: 300px 300px;
  animation: spin 60s linear infinite;
}
.orbit .ring--1 { opacity: 0.6; }
.orbit .ring--2 { opacity: 0.55; animation-duration: 44s; animation-direction: reverse; }
.orbit .ring--2 circle { stroke-width: 2; }
.orbit .ring--3 { opacity: 0.25; animation-duration: 90s; }
.orbit .ring--3 circle { stroke-width: 9; }
.orbit .ring--4 { opacity: 0.45; animation-duration: 26s; }
.orbit .ring--5 { opacity: 0.65; animation-duration: 18s; animation-direction: reverse; }
.orbit .sat { fill: var(--cyan); stroke: none; filter: drop-shadow(0 0 6px var(--cyan)); }
.orbit .sat--alt { fill: var(--magenta); filter: drop-shadow(0 0 6px var(--magenta)); }

.eyebrow {
  margin: 0 0 1.2rem;
  padding-left: 0.38em; /* balances the trailing letter-spacing */
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.65);
}

.title {
  position: relative;
  max-width: 100%;
  margin: 0;
  font: 800 clamp(2.4rem, 10.5vw, 8rem)/1.04 var(--sans);
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  background: linear-gradient(100deg, #f4fbff 5%, #a5f3fc 25%, var(--cyan) 42%, var(--violet) 62%, var(--magenta) 82%, #fae8ff 98%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.28));
  animation: shimmer 9s ease-in-out infinite alternate, jolt 7s steps(1, end) infinite;
}
.title::before,
.title::after { /* glitch copies: hidden except for a short burst every few seconds */
  content: attr(data-text);
  content: attr(data-text) / "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.title::before { color: var(--cyan); animation: glitch-a 7s steps(1, end) infinite; }
.title::after { color: var(--magenta); animation: glitch-b 7s steps(1, end) infinite; }

.lead {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.2rem);
  color: var(--ink-soft);
  text-wrap: balance;
}

/* --------------------------------------------------------------- console --- */
.console {
  width: min(100%, 34rem);
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 23, 52, 0.72), rgba(7, 10, 26, 0.8));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 50px -18px rgba(34, 211, 238, 0.35);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  overflow: hidden;
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.console__bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(148, 197, 255, 0.35);
}
.console__bar > span:first-child { background: rgba(34, 211, 238, 0.65); border-color: transparent; }
.console__title {
  margin-left: auto;
  font: 500 0.68rem/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--muted);
}
.console__log {
  list-style: none;
  margin: 0;
  padding: 1rem 1.15rem 0.35rem;
  min-height: calc(5 * 1.95em + 1.35rem); /* room for all lines: no layout shift while typing */
  font: 400 0.84rem/1.95 var(--mono);
  color: #cfe0ff;
}
.console__log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console__log.is-typing li:not(.is-shown) { visibility: hidden; }
.tag { display: inline-block; width: 7.5ch; }
.tag--cmd { color: var(--magenta); }
.tag--ok { color: var(--lime); }
.tag--wait { color: var(--amber); }
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -0.18em;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: blink 1.05s steps(1, end) infinite;
}
.console__progress {
  position: relative;
  height: 2px;
  margin: 0.6rem 1.15rem 1.15rem;
  border-radius: 2px;
  background: rgba(148, 197, 255, 0.12);
  overflow: hidden;
}
.console__progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--cyan) 60%, var(--magenta));
  box-shadow: 0 0 12px var(--cyan);
  animation: progress 2.6s cubic-bezier(0.65, 0.05, 0.35, 0.95) infinite;
}

/* ---------------------------------------------------------------- button --- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(34, 211, 238, 0.5);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.6), inset 0 0 12px rgba(34, 211, 238, 0.15);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.button:hover,
.button:focus-visible {
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 0 34px -4px rgba(34, 211, 238, 0.8), inset 0 0 16px rgba(34, 211, 238, 0.25);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------ animations --- */
@keyframes aurora { from { transform: rotate(0deg) scale(1); } to { transform: rotate(10deg) scale(1.15); } }
@keyframes grid-run { from { transform: rotateX(72deg) translateY(0); } to { transform: rotateX(72deg) translateY(40px); } }
@keyframes sweep { 0% { transform: translateY(-30vh); } 60%, 100% { transform: translateY(110vh); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(265%); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.6); }
  75%, 100% { box-shadow: 0 0 0 9px rgba(163, 230, 53, 0); }
}
@keyframes pulse-warn {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); }
  75%, 100% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
}
@keyframes jolt {
  0%, 91%, 100% { transform: none; }
  92% { transform: skewX(-8deg) translateX(-0.02em); }
  93% { transform: none; }
  96% { transform: skewX(5deg) translateX(0.015em); }
  97% { transform: none; }
}
@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: none; }
  92% { opacity: 0.85; transform: translate(-0.04em, 0.01em); clip-path: inset(12% 0 58% 0); }
  94% { opacity: 0.85; transform: translate(0.03em, -0.01em); clip-path: inset(62% 0 14% 0); }
  96% { opacity: 0.85; transform: translate(-0.02em, 0); clip-path: inset(36% 0 40% 0); }
  98% { opacity: 0.85; transform: translate(0.035em, 0.01em); clip-path: inset(78% 0 4% 0); }
}
@keyframes glitch-b {
  0%, 91.5%, 100% { opacity: 0; transform: none; clip-path: none; }
  92.5% { opacity: 0.8; transform: translate(0.04em, -0.01em); clip-path: inset(48% 0 30% 0); }
  94.5% { opacity: 0.8; transform: translate(-0.03em, 0.01em); clip-path: inset(8% 0 72% 0); }
  96.5% { opacity: 0.8; transform: translate(0.025em, 0); clip-path: inset(66% 0 10% 0); }
  98.5% { opacity: 0.8; transform: translate(-0.04em, 0); clip-path: inset(24% 0 52% 0); }
}

/* ------------------------------------------------------------ responsive --- */
@media (max-width: 640px) {
  .hud { font-size: 0.66rem; letter-spacing: 0.14em; }
  .hud--bottom { justify-content: center; text-align: center; }
  .frame { inset: 8px; }
  .eyebrow { font-size: 0.7rem; letter-spacing: 0.3em; padding-left: 0.3em; }
  .console__log { font-size: 0.76rem; padding-inline: 0.95rem; }
  .console__progress { margin-inline: 0.95rem; }
}
@media (max-height: 640px) and (min-width: 641px) {
  .hero { gap: 1.75rem; }
  .title { font-size: clamp(2.4rem, 8vw, 5.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .title::before, .title::after, .bg__scanlines::after { display: none; }
}
