/* ==========================================================================
   Prismfall website — shared design system (landing, legal pages, 404).
   Art direction: "Neon Sky Citadel" (docs/CLIENT.md §2). No build step.
   CSP-friendly: no inline styles are required by any page.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #060914;
  --bg-2: #0e1430;
  --bg-3: #1a1046;

  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);

  --cyan: #3cf2ff;
  --cyan-rgb: 60, 242, 255;
  --flux-1: #ffb547;
  --flux-2: #ff7a2f;
  --aether-1: #b66bff;
  --aether-2: #ff4fd8;
  --prism-1: #4ff3ff;
  --prism-2: #3a8bff;
  --success: #3dffb4;
  --danger: #ff4d6d;
  --warning: #ffd25e;

  --text: #eaf2ff;
  --text-2: #b9c4de;
  --muted: #8a97b8;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --font-head: "Chakra Petch", "Chakra Petch Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Metric-matched local fallbacks keep text from reflowing when web fonts swap in. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Chakra Petch Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 103%;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  background: var(--bg);
}

body {
  isolation: isolate; /* keeps z-index:-1 decor (star texture, glows) above body's own background */
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1100px 700px at 100% 0%, rgba(58, 139, 255, 0.1), transparent 60%),
    radial-gradient(900px 800px at 0% 38%, rgba(182, 107, 255, 0.08), transparent 60%),
    radial-gradient(900px 700px at 100% 72%, rgba(60, 242, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #060914 0%, #0a0f26 40%, #0f0c30 78%, #060914 100%);
}

/* A faint, fixed star texture behind everything (cheap: one composited layer). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 23px 41px, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 141px 97px, rgba(160, 250, 255, 0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 211px 19px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 77px 173px, rgba(214, 180, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 183px 211px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 11px 237px, rgba(255, 255, 255, 0.5), transparent 60%);
  background-size: 260px 260px;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
a:hover {
  color: #a8fbff;
}

ul,
ol {
  padding-left: 1.25em;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(60, 242, 255, 0.35);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--cyan);
  color: #03131c;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 12px;
  color: #03131c;
}

.grad-text {
  background: linear-gradient(100deg, #7df9ff 0%, var(--cyan) 30%, var(--aether-1) 68%, var(--aether-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(60, 242, 255, 0.28));
}

/* ---------- Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(6, 9, 20, 0.74);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.site-header.nav-open {
  background: #070a17;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.18em;
  text-decoration: none;
}
.brand:hover {
  color: #fff;
}
.brand-mark {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(60, 242, 255, 0.5));
  transition: transform 0.5s var(--ease-spring);
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.site-nav .btn {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bars {
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before {
  top: -6px;
}
.nav-toggle-bars::after {
  top: 6px;
}
.nav-open .nav-toggle-bars {
  background: transparent;
}
.nav-open .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-open .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 22px;
    background: #070a17;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-open .site-nav {
    display: flex;
    animation: navIn 0.28s var(--ease-out);
  }
  .site-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 1.05rem;
  }
  .site-nav .btn {
    margin: 8px 0 0;
  }
}
@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: 700 0.95rem/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn:active {
  transform: scale(0.95);
  transition-duration: 0.1s;
}
.btn .icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  color: #03131c;
  background: linear-gradient(135deg, #8dfaff 0%, var(--cyan) 38%, #3aa6ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 28px -10px rgba(60, 242, 255, 0.75),
    0 0 44px -14px rgba(58, 139, 255, 0.9);
}
.btn-primary:hover {
  color: #03131c;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 34px -10px rgba(60, 242, 255, 0.9),
    0 0 60px -10px rgba(58, 139, 255, 1);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}
.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(60, 242, 255, 0.55);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.82rem;
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1rem;
  border-radius: 16px;
}

/* Non-interactive "coming soon" store badge (generic glyph, not the store's logo). */
.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), #05070f;
  color: var(--text);
  cursor: default;
  user-select: none;
}
.store-badge svg {
  width: 26px;
  height: 26px;
}
.store-badge-text {
  display: grid;
  line-height: 1.05;
}
.store-badge-text small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.store-badge-text strong {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.store-badge-soon {
  position: absolute;
  top: -9px;
  right: -8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aether-1), var(--aether-2));
  color: #14051f;
  font: 700 0.62rem/1 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -4px rgba(255, 79, 216, 0.8);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}
.cta-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-dot {
  position: relative;
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  opacity: 0;
  animation: ping 2s var(--ease-out) infinite;
}
.live-dot--red {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}
.live-dot--red::after {
  border-color: var(--danger);
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(182, 107, 255, 0.18);
  color: #dcc0ff;
  font: 700 0.7rem/1.4 var(--font-head);
  letter-spacing: 0.1em;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(700px, 100svh);
  padding: calc(var(--header-h) + 40px) 0 56px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 46%, rgba(58, 139, 255, 0.16), transparent 70%),
    radial-gradient(40% 40% at 88% 82%, rgba(255, 79, 216, 0.1), transparent 70%),
    radial-gradient(45% 45% at 12% 18%, rgba(182, 107, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #060914 0%, #0b1130 52%, #170f40 100%);
}
.hero::before {
  /* slow nebula drift — transform-only, composited */
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -3;
  background:
    radial-gradient(30% 26% at 30% 70%, rgba(60, 242, 255, 0.08), transparent 70%),
    radial-gradient(28% 30% at 70% 20%, rgba(182, 107, 255, 0.12), transparent 70%);
  animation: nebula 28s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
@keyframes nebula {
  to {
    transform: translate3d(3%, -4%, 0) scale(1.08);
  }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 24px;
}

.hero-copy {
  position: relative;
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 16, 40, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-2);
  font: 600 0.78rem/1 var(--font-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-kicker b {
  color: var(--cyan);
  font-weight: 700;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 1.35rem + 4.3vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 40px rgba(6, 9, 20, 0.8);
}
.hero h1 .grad-text {
  display: inline-block;
  padding-bottom: 0.06em;
}

.hero-lead {
  max-width: 34em;
  margin-bottom: 30px;
  color: var(--text-2);
  font-size: clamp(1.04rem, 0.96rem + 0.38vw, 1.22rem);
  line-height: 1.6;
  text-shadow: 0 2px 18px rgba(6, 9, 20, 0.9);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin: 22px 0 0;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(61, 255, 180, 0.28);
  border-radius: 999px;
  background: rgba(61, 255, 180, 0.07);
  color: #c9ffe9;
  font-size: 0.86rem;
  font-weight: 500;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.live-pill.is-ready {
  visibility: visible;
  opacity: 1;
}
.live-pill strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.98rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.9;
}

.hero-hud {
  position: absolute;
  top: 4%;
  right: 4%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 14, 34, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  font: 600 0.74rem/1 var(--font-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}
.hero-hud .hud-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffc2cd;
}
.hero-hud .hud-sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}
.hero-hud .hud-timer {
  min-width: 3.2ch;
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.hero-hud .hud-stars {
  display: inline-flex;
  gap: 2px;
}
.hero-hud .hud-stars svg {
  width: 13px;
  height: 13px;
  fill: rgba(255, 255, 255, 0.3);
}
.hero-hud .hud-stars .on {
  fill: var(--warning);
  filter: drop-shadow(0 0 5px rgba(255, 210, 94, 0.8));
}

@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 36px);
    padding-bottom: 24px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .hero-copy {
    margin-inline: auto;
    text-align: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero .cta-row {
    justify-content: center;
  }
  .hero-stage {
    max-width: 640px;
    margin-inline: auto;
    aspect-ratio: 1 / 1.06;
  }
  .hero-hud {
    top: 0;
    right: 50%;
    transform: translateX(50%);
  }
}
@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }
  .hero-kicker {
    margin-bottom: 18px;
  }
  .hero-lead {
    margin-bottom: 24px;
  }
  .live-pill {
    margin-top: 16px;
  }
  .hero .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .cta-row > * {
    justify-content: center;
  }
}

/* ---------- Live stats strip ---------- */
.stats-strip {
  position: relative;
  margin-top: -8px;
  padding-bottom: 8px;
  animation: fadeUp 0.7s var(--ease-out) both;
}
.stats-strip[hidden] {
  display: none;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 28px;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 30px 60px -40px rgba(60, 242, 255, 0.35);
}
.strip-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.strip-stats div {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}
.strip-stats dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip-stats dd {
  margin: 2px 0 0;
  color: #fff;
  font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.1rem)/1.1 var(--font-head);
  font-variant-numeric: tabular-nums;
}
.strip-top {
  min-width: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line-soft);
}
.strip-top[hidden] {
  display: none;
}
.strip-top h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font: 600 0.74rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pilots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pilots li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  font-size: 0.86rem;
}
.pilots .rank {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: 700 0.72rem/1 var(--font-head);
}
.pilots li:nth-child(1) .rank {
  background: linear-gradient(135deg, #ffe08a, #ffb547);
  color: #2a1700;
}
.pilots li:nth-child(2) .rank {
  background: linear-gradient(135deg, #f1f5ff, #9fb0d4);
  color: #141a2b;
}
.pilots li:nth-child(3) .rank {
  background: linear-gradient(135deg, #ffc49a, #d07a43);
  color: #2a1200;
}
.pilots .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}
.pilots .trophies {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--warning);
  font-family: var(--font-head);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pilots .trophies svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
  }
  .strip-top {
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
}
@media (max-width: 520px) {
  .strip-stats {
    gap: 10px;
  }
  .strip-stats div {
    padding-left: 10px;
  }
  .strip-stats dt {
    font-size: 0.64rem;
    white-space: normal;
  }
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 112px);
}
.section-head {
  max-width: 780px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 1.25rem + 2.7vw, 3.4rem);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--cyan);
  font: 600 0.8rem/1 var(--font-head);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.eyebrow::after {
  transform: scaleX(-1);
}
.lead {
  color: var(--text-2);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem);
  line-height: 1.65;
}
.section-head .lead {
  max-width: 640px;
  margin-inline: auto;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  transition: border-color 0.35s, transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, -30%), rgba(var(--cyan-rgb), 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px -40px rgba(60, 242, 255, 0.4);
}
.card:hover::before {
  opacity: 1;
}
.card h3 {
  font-size: clamp(1.32rem, 1.15rem + 0.6vw, 1.62rem);
  margin-bottom: 10px;
}
.card p {
  color: var(--text-2);
}
.card > :last-child {
  margin-bottom: 0;
}

.chip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font: 600 0.72rem/1 var(--font-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.chip-label svg {
  width: 16px;
  height: 16px;
  fill: var(--cyan);
}

/* ---------- Features bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.f-build {
  grid-column: span 4;
}
.f-raid,
.f-live,
.f-squad,
.f-fair {
  grid-column: span 2;
}
.f-p2w {
  grid-column: span 6;
}

.f-build {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px;
}
.ticks {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 0.95rem;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ticks svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  fill: var(--success);
}

.visual {
  position: relative;
  border-radius: var(--radius-sm);
}

/* Radial action ring illustration */
.ring-art {
  width: 100%;
  height: auto;
  overflow: visible;
}
.ring-art .ring-track {
  fill: none;
  stroke: rgba(60, 242, 255, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 3 7;
  animation: spinDash 18s linear infinite;
}
.ring-art .ring-btn circle {
  fill: rgba(12, 20, 44, 0.92);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}
.ring-art .ring-btn path,
.ring-art .ring-btn .glyph {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ring-art .ring-btn path.amber {
  stroke: var(--flux-1);
}
.ring-art .ring-btn path.prism {
  stroke: var(--prism-1);
}
.ring-art .ring-btn text {
  fill: var(--text-2);
  font: 600 10px var(--font-head);
  letter-spacing: 0.12em;
  text-anchor: middle;
  text-transform: uppercase;
}
.ring-art .ring-btn.is-hot circle {
  fill: rgba(60, 242, 255, 0.16);
  stroke: var(--cyan);
  stroke-width: 1.5;
}
.ring-art .ring-btn.is-hot path {
  stroke: var(--cyan);
}
.ring-art .ring-btn.is-hot text {
  fill: var(--cyan);
}
.ring-art .ring-btn.is-hot .pulse {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: ringPulse 2.4s var(--ease-out) infinite;
}
.ring-art .core-gem {
  animation: gemFloat 4s ease-in-out infinite;
}
@keyframes spinDash {
  to {
    stroke-dashoffset: -200;
  }
}
@keyframes ringPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
@keyframes gemFloat {
  50% {
    transform: translateY(-5px);
  }
}

/* Beam-in illustration */
.beam-demo {
  position: relative;
  height: 210px;
  margin: -6px 0 14px;
}
.beam-demo .beam-tile {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 240px;
  height: 120px;
  translate: -50% 0;
}
.beam-col {
  position: absolute;
  bottom: 60px;
  left: 50%;
  width: 34px;
  height: 200px;
  translate: -50% 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 79, 216, 0) 0%, rgba(255, 79, 216, 0.5) 50%, rgba(255, 160, 120, 0.95) 92%, #fff 100%);
  transform-origin: 50% 100%;
  mix-blend-mode: screen;
  animation: beamCol 3.4s var(--ease-out) infinite;
}
.beam-col::after {
  content: "";
  position: absolute;
  inset: 0 13px;
  border-radius: 6px;
  background: linear-gradient(180deg, transparent, #fff);
}
.beam-ring {
  position: absolute;
  bottom: 46px;
  left: 50%;
  width: 130px;
  height: 44px;
  margin-left: -65px;
  border: 2px solid rgba(255, 140, 90, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.6), inset 0 0 12px rgba(255, 79, 216, 0.5);
  animation: beamRing 3.4s ease-out infinite;
}
.beam-unit {
  position: absolute;
  bottom: 52px;
  left: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  color: var(--aether-2);
  transform-origin: 50% 100%;
  animation: beamUnit 3.4s infinite;
}
.beam-unit svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(255, 79, 216, 0.75));
}
@keyframes beamCol {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  18% {
    transform: scaleY(1);
    opacity: 1;
  }
  42%,
  100% {
    transform: scaleY(1) scaleX(0.15);
    opacity: 0;
  }
}
@keyframes beamRing {
  0%,
  16% {
    transform: scale(0.2);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  52%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
@keyframes beamUnit {
  0%,
  17% {
    opacity: 0;
    transform: scaleY(0.2);
  }
  21% {
    opacity: 1;
    transform: scaleY(1.08);
  }
  24% {
    opacity: 0.35;
  }
  28% {
    opacity: 1;
    transform: none;
  }
  86% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Mock visuals share one height so the three mid-row card headings line up. */
.live-mock,
.chat-mock,
.verify-mock {
  min-height: 152px;
}

/* Live raid alert mock */
.live-mock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.12), rgba(255, 77, 109, 0.03));
  box-shadow: 0 18px 40px -26px rgba(255, 77, 109, 0.9);
}
.lm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #ffc2cd;
  font: 700 0.74rem/1 var(--font-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lm-head .lm-time {
  margin-left: auto;
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.lm-who {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.95rem;
}
.card .lm-who {
  color: var(--text);
}
.lm-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.lm-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--flux-1), var(--danger));
  transform-origin: 0 50%;
  animation: lmBar 6s var(--ease-out) infinite;
}
@keyframes lmBar {
  0% {
    transform: scaleX(0.04);
  }
  80%,
  100% {
    transform: scaleX(0.67);
  }
}
.lm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.84rem;
}
.lm-stars {
  display: inline-flex;
  gap: 3px;
}
.lm-stars svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.18);
}
.lm-stars .on {
  fill: var(--warning);
  filter: drop-shadow(0 0 5px rgba(255, 210, 94, 0.8));
}
.lm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--danger);
  color: #1d0208;
  font: 700 0.72rem/1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lm-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Squad chat mock */
.chat-mock {
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}
.chat-mock li {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  color: var(--text);
}
.chat-mock .who {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  color: var(--cyan);
  font: 600 0.74rem/1.3 var(--font-head);
  letter-spacing: 0.06em;
}
.chat-mock .me {
  justify-self: end;
  border-radius: 14px 14px 4px 14px;
  background: linear-gradient(135deg, rgba(60, 242, 255, 0.22), rgba(58, 139, 255, 0.2));
  border-color: rgba(60, 242, 255, 0.3);
}
.chat-mock .sys {
  justify-self: center;
  max-width: none;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(61, 255, 180, 0.08);
  color: #b9ffe4;
  font-size: 0.76rem;
}

/* Verified battle mock */
.verify-mock {
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid rgba(61, 255, 180, 0.22);
  border-radius: 18px;
  background: rgba(61, 255, 180, 0.04);
  list-style: none;
  font: 500 0.86rem/1.35 var(--font-body);
  color: var(--text);
}
.verify-mock li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.verify-mock svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: var(--success);
  filter: drop-shadow(0 0 6px rgba(61, 255, 180, 0.6));
}
.verify-mock .mono {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
}

/* No pay-to-win banner */
.f-p2w {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 32px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(60, 242, 255, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.res-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.res {
  --res-a: var(--flux-1);
  --res-b: var(--flux-2);
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(6, 9, 20, 0.45);
}
.res::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--res-a), var(--res-b));
}
.res--aether {
  --res-a: var(--aether-1);
  --res-b: var(--aether-2);
}
.res--prism {
  --res-a: var(--prism-1);
  --res-b: var(--prism-2);
}
.res svg {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}
.res h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.res p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}
.res .never {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(79, 243, 255, 0.12);
  color: var(--prism-1);
  font: 700 0.68rem/1.4 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .f-build,
  .f-p2w {
    grid-column: span 2;
  }
  .f-raid,
  .f-live,
  .f-squad,
  .f-fair {
    grid-column: span 1;
  }
}
@media (max-width: 720px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento > .card {
    grid-column: auto;
  }
  .f-build,
  .f-p2w {
    grid-template-columns: minmax(0, 1fr);
  }
  .f-build .visual {
    order: -1;
    max-width: 380px;
    width: 100%;
    margin-inline: auto;
  }
  .res-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .res {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }
  .res svg {
    grid-row: span 3;
    margin: 2px 0 0;
  }
  .res .never {
    justify-self: start;
  }
}

/* ---------- How a raid works ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: "";
  position: absolute;
  top: calc(clamp(22px, 2.4vw, 32px) + 43px);
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(60, 242, 255, 0.5), rgba(255, 79, 216, 0.5), rgba(255, 210, 94, 0.5), transparent);
}
.step {
  text-align: center;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(var(--step-rgb, 60, 242, 255), 0.25), rgba(6, 9, 20, 0.9) 70%);
  box-shadow: 0 0 40px -10px rgba(var(--step-rgb, 60, 242, 255), 0.7);
  color: rgb(var(--step-rgb, 60, 242, 255));
}
.step-icon svg {
  width: 40px;
  height: 40px;
}
.step-num {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(255, 255, 255, 0.07);
  font: 700 3.6rem/1 var(--font-head);
  pointer-events: none;
}
.step:nth-child(2) {
  --step-rgb: 255, 79, 216;
}
.step:nth-child(3) {
  --step-rgb: 255, 210, 94;
}
.step p {
  max-width: 34ch;
  margin-inline: auto;
}

.star-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.star-rules li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 210, 94, 0.25);
  border-radius: 999px;
  background: rgba(255, 210, 94, 0.06);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}
.star-rules svg {
  width: 18px;
  height: 18px;
  fill: var(--warning);
  filter: drop-shadow(0 0 6px rgba(255, 210, 94, 0.7));
}
.star-rules .timer {
  border-color: rgba(60, 242, 255, 0.25);
  background: rgba(60, 242, 255, 0.06);
}
.star-rules .timer svg {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(60, 242, 255, 0.7));
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps::before {
    display: none;
  }
}

/* ---------- Arsenal ---------- */
.arsenal-group + .arsenal-group {
  margin-top: clamp(48px, 6vw, 80px);
}
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.group-head h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.unit {
  --acc: #ff4fd8;
  --acc-rgb: 255, 79, 216;
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.unit::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(var(--acc-rgb), 0.12), transparent 45%);
}
.unit:hover {
  border-color: rgba(var(--acc-rgb), 0.4);
  box-shadow: 0 30px 60px -40px rgba(var(--acc-rgb), 0.6);
}
.unit[data-acc="orange"] { --acc: #ff8a3d; --acc-rgb: 255, 138, 61; }
.unit[data-acc="red"] { --acc: #ff5a6e; --acc-rgb: 255, 90, 110; }
.unit[data-acc="yellow"] { --acc: #ffd25e; --acc-rgb: 255, 210, 94; }
.unit[data-acc="violet"] { --acc: #c084ff; --acc-rgb: 192, 132, 255; }
.unit[data-acc="cyan"] { --acc: #3cf2ff; --acc-rgb: 60, 242, 255; }
.unit[data-acc="blue"] { --acc: #5aa8ff; --acc-rgb: 90, 168, 255; }
.unit[data-acc="green"] { --acc: #3dffb4; --acc-rgb: 61, 255, 180; }
.unit[data-acc="white"] { --acc: #dff6ff; --acc-rgb: 223, 246, 255; }

.unit-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.unit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(var(--acc-rgb), 0.35);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 35%, rgba(var(--acc-rgb), 0.24), rgba(6, 9, 20, 0.92) 72%);
  color: var(--acc);
  transition: transform 0.5s var(--ease-spring);
}
.unit:hover .unit-icon {
  transform: translateY(-3px) rotate(-3deg);
}
.unit-icon svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 7px rgba(var(--acc-rgb), 0.6));
}
.unit h4 {
  margin: 0 0 4px;
  font-size: 1.28rem;
}
.unit-role {
  margin: 0;
  color: var(--acc);
  font: 600 0.72rem/1.2 var(--font-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.unit-desc {
  flex: 1;
  margin: 0 0 16px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.card .unit-desc {
  color: var(--text-2);
}

.meters {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}
.meters div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.meters dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.meters dd {
  margin: 0;
}
.meter {
  display: inline-flex;
  gap: 4px;
}
.meter i {
  width: 16px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transform: skewX(-20deg);
}
.meter[data-v="1"] i:nth-child(-n + 1),
.meter[data-v="2"] i:nth-child(-n + 2),
.meter[data-v="3"] i:nth-child(-n + 3),
.meter[data-v="4"] i:nth-child(-n + 4),
.meter[data-v="5"] i:nth-child(-n + 5) {
  background: var(--acc);
  box-shadow: 0 0 8px rgba(var(--acc-rgb), 0.65);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}
.tags li {
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 500;
}
.tags .hi {
  background: rgba(var(--acc-rgb), 0.14);
  color: var(--acc);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .unit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .unit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .meters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .meters div {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .meter {
    gap: 3px;
  }
  .meter i {
    width: 13px;
  }
}

/* ---------- Download panel ---------- */
.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(182, 107, 255, 0.22), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(60, 242, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 100px -50px rgba(60, 242, 255, 0.5);
}
.download-panel h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem);
}
.download-panel .lead {
  max-width: 34em;
  margin-bottom: 28px;
}
.app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.app-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #0b1026;
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px -10px rgba(60, 242, 255, 0.6);
  object-fit: cover;
}
.app-name {
  margin: 0;
  font: 700 1.3rem/1.2 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.app-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.install-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: inst;
}
.install-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(6, 9, 20, 0.5);
  color: var(--text-2);
  font-size: 0.93rem;
  counter-increment: inst;
}
.install-steps li::before {
  content: counter(inst);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(60, 242, 255, 0.12);
  color: var(--cyan);
  font: 700 1.05rem/1 var(--font-head);
}
.install-steps strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 860px) {
  .download-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .download-panel .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  transition: border-color 0.3s, background-color 0.3s;
}
.faq-item[open] {
  border-color: rgba(60, 242, 255, 0.35);
  background: linear-gradient(180deg, rgba(60, 242, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 16px 64px 16px 22px;
  border-radius: 18px;
  color: var(--text);
  font: 600 1.08rem/1.35 var(--font-head);
  letter-spacing: 0.01em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 12px no-repeat;
  transition: transform 0.35s var(--ease-spring), background-color 0.3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: rgba(60, 242, 255, 0.1);
}
.faq-item summary:hover {
  color: #fff;
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--text-2);
}
.faq-item[open] .faq-body {
  animation: fadeUp 0.35s var(--ease-out);
}
.faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(10, 14, 34, 0.4), rgba(6, 9, 20, 0.95));
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(520px, 80%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p {
  max-width: 30ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-col h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-col ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--text-2);
  font-size: 0.93rem;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--cyan);
}
.footer-col svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer-grid + .footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.footer-bottom p {
  margin: 0;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Legal pages ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 90% at 85% 0%, rgba(182, 107, 255, 0.16), transparent 70%),
    radial-gradient(40% 80% at 10% 10%, rgba(60, 242, 255, 0.1), transparent 70%);
}
.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
}
.page-hero .lead {
  max-width: 46em;
  margin-bottom: 18px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.86rem;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.25);
}
.breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--cyan);
}
.updated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.86rem;
}
.updated::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(48px, 7vw, 96px);
}

.toc-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  padding: 20px 14px 20px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  scrollbar-width: thin;
}
.toc-title {
  margin: 0 0 12px 8px;
  color: var(--muted);
  font: 600 0.74rem/1 var(--font-head);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.toc-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-list a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.toc-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.toc-list a[aria-current="true"] {
  border-left-color: var(--cyan);
  background: rgba(60, 242, 255, 0.08);
  color: #fff;
}

.toc-mobile {
  display: none;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.toc-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  color: var(--text);
  font: 600 0.92rem/1 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.toc-mobile summary::-webkit-details-marker {
  display: none;
}
.toc-mobile summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.toc-mobile[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.toc-mobile .toc-list {
  padding: 0 10px 14px;
}

@media (max-width: 1023px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .toc-side {
    display: none;
  }
  .toc-mobile {
    display: block;
  }
}

.prose {
  max-width: 76ch;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.75;
}
.prose > section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose > section + section {
  margin-top: 2.6em;
  padding-top: 2.4em;
  border-top: 1px solid var(--line-soft);
}
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 0.7em;
  color: var(--text);
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.8rem);
  line-height: 1.2;
}
.prose h2 .num {
  flex: none;
  min-width: 2ch;
  color: var(--cyan);
  font-size: 0.8em;
  font-variant-numeric: tabular-nums;
}
.prose h3 {
  margin: 1.8em 0 0.6em;
  color: var(--text);
  font-size: 1.14rem;
  letter-spacing: 0.01em;
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.45em;
}
.prose li::marker {
  color: var(--cyan);
}
.prose a {
  font-weight: 500;
}
.prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.9em;
}

.summary-box {
  margin: 0 0 2.6em;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(60, 242, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(60, 242, 255, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.03);
}
.summary-box h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.summary-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.summary-box li {
  position: relative;
  margin: 0;
  padding-left: 30px;
  color: var(--text);
}
.summary-box li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(61, 255, 180, 0.15);
  box-shadow: inset 0 0 0 1px rgba(61, 255, 180, 0.5);
}
.summary-box li::after {
  content: "";
  position: absolute;
  top: calc(0.42em + 4px);
  left: 8px;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(45deg);
}

.callout {
  margin: 1.4em 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 210, 94, 0.3);
  border-left: 3px solid var(--warning);
  border-radius: 14px;
  background: rgba(255, 210, 94, 0.06);
  color: var(--text);
}
.callout p:last-child {
  margin: 0;
}
.callout--info {
  border-color: rgba(60, 242, 255, 0.3);
  border-left-color: var(--cyan);
  background: rgba(60, 242, 255, 0.06);
}

.data-table {
  width: 100%;
  margin: 1.2em 0 1.6em;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: 600 0.76rem/1.3 var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.data-table tbody tr + tr td,
.data-table tbody tr + tr th {
  border-top: 1px solid var(--line-soft);
}
.data-table tbody th {
  color: var(--text);
  font-weight: 600;
}
.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 680px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .data-table tr {
    padding: 12px 16px;
  }
  .data-table tbody tr + tr {
    border-top: 1px solid var(--line-soft);
  }
  .data-table tbody tr + tr td,
  .data-table tbody tr + tr th {
    border-top: 0;
  }
  .data-table th,
  .data-table td {
    padding: 4px 0;
  }
  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font: 600 0.7rem/1.6 var(--font-head);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}

.prose .steps-list {
  display: grid;
  gap: 12px;
  margin: 1em 0 1.6em;
  padding: 0;
  list-style: none;
  counter-reset: sl;
}
.prose .steps-list li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 62px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  counter-increment: sl;
}
.steps-list li::before {
  content: counter(sl);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(60, 242, 255, 0.12);
  color: var(--cyan);
  font: 700 1rem/1 var(--font-head);
}
.steps-list span {
  display: block;
  color: var(--text-2);
  font-size: 0.92rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 2.4em;
}
.option {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.option .chip-label {
  color: var(--cyan);
}
.option h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}
.option p {
  margin: 0;
  font-size: 0.95rem;
}
@media (max-width: 680px) {
  .option-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mail-btn {
  margin: 0.4em 0 1.2em;
}

/* ---------- 404 ---------- */
.lost {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 48px;
  overflow: hidden;
  text-align: center;
}
.lost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 50% 45%, rgba(58, 139, 255, 0.2), transparent 70%),
    radial-gradient(30% 30% at 30% 70%, rgba(255, 79, 216, 0.12), transparent 70%);
}
.lost-code {
  position: relative;
  margin: 0 0 8px;
  font: 700 clamp(6rem, 3rem + 14vw, 13rem)/0.9 var(--font-head);
  letter-spacing: 0.02em;
}
.lost-code .grad-text {
  display: inline-block;
  animation: glitch 5s steps(1) infinite;
}
.lost h1 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
}
.lost .lead {
  max-width: 34em;
  margin: 0 auto 30px;
}
.lost .cta-row {
  justify-content: center;
}
.shard {
  position: absolute;
  z-index: -1;
  width: 22px;
  height: 60px;
  clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%);
  background: linear-gradient(180deg, #a6fcff, var(--prism-2));
  opacity: 0.55;
  filter: drop-shadow(0 0 12px rgba(60, 242, 255, 0.8));
  animation: shardFloat 7s ease-in-out infinite;
}
.shard--a {
  top: 22%;
  left: 14%;
}
.shard--b {
  top: 64%;
  right: 12%;
  width: 16px;
  height: 44px;
  background: linear-gradient(180deg, #e3c4ff, var(--aether-2));
  animation-delay: -2.5s;
}
.shard--c {
  bottom: 14%;
  left: 26%;
  width: 12px;
  height: 32px;
  animation-delay: -4s;
}
@keyframes shardFloat {
  50% {
    transform: translateY(-18px) rotate(8deg);
  }
}
@keyframes glitch {
  0%,
  92%,
  100% {
    transform: none;
    filter: drop-shadow(0 0 22px rgba(60, 242, 255, 0.3));
  }
  93% {
    transform: translate(-4px, 2px) skewX(-8deg);
    filter: drop-shadow(4px 0 0 rgba(255, 79, 216, 0.8)) drop-shadow(-4px 0 0 rgba(60, 242, 255, 0.8));
  }
  95% {
    transform: translate(3px, -1px);
  }
  97% {
    transform: translate(-1px, 0) skewX(4deg);
  }
}

/* ---------- Scroll reveal (pure CSS, progressive) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .beam-col,
  .beam-ring,
  .beam-unit,
  .lm-bar span,
  .live-dot::after,
  .ring-art .ring-btn.is-hot .pulse {
    animation: none !important;
  }
  .beam-col {
    opacity: 0.55;
    transform: scaleX(0.5);
  }
  .beam-ring {
    opacity: 0.7;
  }
  .lm-bar span {
    transform: scaleX(0.67);
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc-side,
  .toc-mobile,
  .hero-canvas {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  body::before {
    display: none;
  }
  .prose,
  .prose h2,
  .prose h3,
  .prose strong {
    color: #000;
  }
}
