:root {
  --bg: #05060a;
  --bg-2: #0a0d18;
  --panel: rgba(18, 22, 38, 0.55);
  --panel-border: rgba(0, 240, 255, 0.18);
  --text: #e8f6ff;
  --text-dim: #8ea7c7;
  --cyan: #00f0ff;
  --magenta: #ff2bd6;
  --purple: #8a2be2;
  --blue: #2d6cff;
  --good: #6dffb0;
  --bad: #ff5577;
  --radius: 18px;
  --radius-sm: 12px;
  --glow-cyan: 0 0 8px var(--cyan), 0 0 24px rgba(0, 240, 255, 0.55);
  --glow-magenta: 0 0 8px var(--magenta), 0 0 24px rgba(255, 43, 214, 0.55);
  --shadow-panel: 0 10px 40px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  --font-display: 'Orbitron', system-ui, sans-serif;
  --font-ui: 'Rajdhani', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 800px at 50% -10%, #14163a 0%, #06070d 55%, #000 100%);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

#bg {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Shared header */
.site-header {
  position: sticky; top: 0;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.85), rgba(5, 6, 10, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand {
  font-family: var(--font-display); font-weight: 900;
  letter-spacing: 0.18em; font-size: 16px;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  text-decoration: none;
}
.brand-mini {
  font-family: var(--font-display); font-weight: 900;
  letter-spacing: 0.25em; color: var(--cyan);
  text-shadow: var(--glow-cyan); font-size: 14px; opacity: 0.85;
}
.site-nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.site-nav a:hover { color: var(--text); border-color: var(--panel-border); }
.site-nav a.is-active { color: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.site-nav a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer; font-size: 18px;
  display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--glow-cyan); border-color: var(--cyan); }
.icon-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.page {
  position: relative; z-index: 1;
  padding: 24px 20px 80px;
  max-width: 1080px; margin: 0 auto;
}

.glass {
  background: var(--panel);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
}
.hidden { display: none !important; }

/* Buttons */
.btn {
  font-family: var(--font-display); letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 700; font-size: 14px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel); color: var(--text);
  cursor: pointer; backdrop-filter: blur(10px);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  text-decoration: none; display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  color: #04060c; font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45), 0 0 36px rgba(255, 43, 214, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(0, 240, 255, 0.7), 0 0 48px rgba(255, 43, 214, 0.55); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

.logo {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 8vw, 82px);
  letter-spacing: 0.12em; margin: 8px 0 6px; line-height: 1;
}
.logo-text {
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 70%, var(--purple));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.45)) drop-shadow(0 0 22px rgba(255, 43, 214, 0.35));
}
.logo-accent { margin-left: .35em; }

body.cb { --magenta: #ffb800; --purple: #ff8a00; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
}
