/* ==========================================================================
   Clivilius Storiverse — Central Stylesheet
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
  --neon-pink: #ff2d7b;
  --neon-purple: #6b5b9a;
  --neon-cyan: #00d4ff;
  --cyan-bright: #4de8ff;
  --cyan-dim: rgba(0, 212, 255, 0.08);
  --chrome: #c0c8d8;
  --chrome-bright: #e2e8f0;
  --purple-edge: #5a4d8a;
  --blue-accent: #3a9fd4;
  --dark-bg: #060610;
  --dark-surface: #0c0c1a;
  --dark-card: #101020;
  --dark-card-hover: #14142a;
  --text-primary: #e2e8f0;
  --text-muted: #9aaac8;
  --text-dim: #6878a0;
  --border-subtle: rgba(0, 212, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.2);
  --success: #00d4ff;
  --error: #ff2d7b;
  
  /* Modern Design System */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 212, 255, 0.1);
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* --- GRAIN OVERLAY (static, full page) --- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
}

/* --- ANIMATED MESH GRADIENT (shared) --- */
.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(90, 77, 138, 0.12) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
              var(--dark-bg);
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: meshFloat 20s ease-in-out infinite;
}

.mesh-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107, 91, 154, 0.5) 0%, transparent 70%);
  top: 10%;
  left: 15%;
}

.mesh-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
  top: 30%;
  right: 15%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.mesh-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(58, 159, 212, 0.4) 0%, transparent 70%);
  bottom: 10%;
  left: 35%;
  animation-delay: -10s;
  animation-duration: 22s;
}

/* --- SHARED ANIMATIONS --- */
@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- SPINNER (shared) --- */
.spinner {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  .mesh-orb,
  .particle,
  .glitch-text,
  .fade-in,
  .spinner,
  .status-icon,
  .status-glyph,
  .status-heading,
  .status-text,
  .status-btn {
    animation: none;
    opacity: 0.7;
  }

  .hero-content > * {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .fade-in {
    transform: none;
  }

  .hero-bg::after {
    animation: none;
    top: 0; left: 0;
    width: 100%; height: 100%;
  }

  .hero-bg-image {
    animation: none;
    transition: opacity 0.5s;
  }

  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   NAV (Modern Glass Design)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 6, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 1.3rem;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.2));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--neon-cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}


/* ==========================================================================
   HERO SECTION (shared base)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Animated grain — hero only, fades out at bottom */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
  animation: grainShift 0.8s steps(4) infinite;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, -3%); }
  50%  { transform: translate(3%, 1%); }
  75%  { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* Cycling quest background images — two layers for crossfade */
.hero-bg-image {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  z-index: 0;
  /* Radial vignette: visible in center, fades to page bg at edges */
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, transparent 75%);
  animation: heroBgDrift 12s ease-in-out infinite alternate;
}

.hero-bg-image.active {
  opacity: 1;
}

@keyframes heroBgDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.04) translate(-0.5%, -0.3%); }
}

/* Mesh gradient sits above the background images */
.mesh-gradient {
  z-index: 1;
}


/* ==========================================================================
   INDEX PAGE — Coming Soon Overlay
   ========================================================================== */
.coming-soon-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeIn 1s ease forwards;
}

.coming-soon-overlay.hidden {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hide-overlay-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10002;
  padding: 0.6rem 1rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.hide-overlay-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.12);
}

.hide-overlay-btn:focus {
  outline: 1px solid var(--neon-cyan);
  outline-offset: 2px;
}

.coming-soon-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background: rgba(6, 6, 10, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.coming-soon-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 480px;
  width: 100%;
}

.coming-soon-glyph {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  color: var(--neon-cyan);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease 0.3s forwards;
}

.coming-soon-logo {
  max-width: min(85vw, 380px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.2)) drop-shadow(0 0 80px rgba(90, 77, 138, 0.15));
  opacity: 0;
  animation: fadeIn 1.5s ease 0.5s forwards;
}

.coming-soon-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  margin: 1.5rem auto;
  opacity: 0;
  animation: fadeIn 1.5s ease 0.8s forwards;
}

.coming-soon-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease 1s forwards;
}

.coming-soon-form {
  display: flex;
  gap: 0;
  max-width: 380px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeIn 1.5s ease 1.3s forwards;
}

.coming-soon-input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-right: none;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.coming-soon-input::placeholder {
  color: var(--text-dim);
}

.coming-soon-input:focus {
  border-color: rgba(0, 212, 255, 0.4);
}

.coming-soon-submit {
  padding: 0.85rem 1.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.coming-soon-submit:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.1);
}

.coming-soon-hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeIn 1.5s ease 1.8s forwards;
}

.coming-soon-peek {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1.2rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 1.5s ease 2s forwards;
}

.coming-soon-peek:hover {
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
}

.coming-soon-overlay.peeking {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.coming-soon-overlay.peeking .coming-soon-peek-back {
  pointer-events: all;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ==========================================================================
   INDEX PAGE — Hero
   ========================================================================== */
.page-index .mesh-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(90, 77, 138, 0.14) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0, 212, 255, 0.10) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 70% 30%, rgba(58, 159, 212, 0.08) 0%, transparent 50%),
              rgba(6, 6, 16, 0.75);
}

.page-index .mesh-orb {
  opacity: 0.6;
}

.page-index .mesh-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 91, 154, 0.6) 0%, transparent 70%);
  top: 5%;
  left: 10%;
  animation-delay: 0s;
}

.page-index .mesh-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.5) 0%, transparent 70%);
  top: 30%;
  right: 10%;
}

.page-index .mesh-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(58, 159, 212, 0.5) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
}

body.page-index {
  cursor: default;
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--neon-purple);
  border-radius: 50%;
  opacity: 0;
  animation: drift 8s infinite ease-in-out;
}

.particle:nth-child(2) { left: 15%; animation-delay: 1.2s; background: var(--neon-cyan); animation-duration: 10s; }
.particle:nth-child(3) { left: 35%; animation-delay: 2.8s; background: var(--blue-accent); animation-duration: 7s; }
.particle:nth-child(4) { left: 55%; animation-delay: 0.5s; background: var(--chrome); animation-duration: 9s; }
.particle:nth-child(5) { left: 75%; animation-delay: 3.5s; background: var(--purple-edge); animation-duration: 11s; }
.particle:nth-child(6) { left: 90%; animation-delay: 1.8s; background: var(--neon-cyan); animation-duration: 8s; }
.particle:nth-child(7) { left: 25%; animation-delay: 4.2s; background: var(--blue-accent); animation-duration: 12s; }
.particle:nth-child(8) { left: 65%; animation-delay: 2.1s; background: var(--chrome); animation-duration: 6s; }
.particle:nth-child(1) { left: 45%; animation-delay: 0s; }

@keyframes drift {
  0% { transform: translateY(100vh) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.glyph {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--text-dim);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 2s ease 0.5s forwards;
}

.title-wrapper {
  margin-bottom: 1rem;
  opacity: 0;
  animation: revealUp 1.5s ease 1s forwards;
}

.title-logo {
  max-width: min(90vw, 550px);
  height: auto;
  filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.2)) drop-shadow(0 0 100px rgba(90, 77, 138, 0.15));
}

.title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 0.08em;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--chrome) 0%, var(--cyan-bright) 40%, var(--chrome-bright) 60%, var(--neon-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.2));
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.subtitle {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  letter-spacing: 0.35em;
  color: var(--text-muted);
  margin-top: 1rem;
  opacity: 0;
  animation: fadeIn 2s ease 1.8s forwards;
}

.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  margin: 3rem auto;
  opacity: 0;
  animation: fadeIn 2s ease 2.2s forwards;
}

.hook {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 3rem;
  opacity: 0;
  animation: fadeIn 2s ease 2.6s forwards;
}

.hook em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 2s ease 3.5s forwards;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
  margin: 0 auto;
  animation: pulse-down 2s ease-in-out infinite;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.3); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   INDEX PAGE — Sections
   ========================================================================== */
.section {
  padding: 8rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SECTION LABELS (Modern) --- */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan));
}

.section-label::after {
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

/* --- SECTION DIVIDERS --- */
.section-divider {
  position: relative;
  height: 1px;
  max-width: 720px;
  margin: 0 auto;
}

.section-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.25) 20%,
    rgba(90, 77, 138, 0.4) 50%,
    rgba(0, 212, 255, 0.25) 80%,
    transparent 100%
  );
}

/* Soft glow bleed above and below the line */
.section-divider::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: -12px;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}


/* --- The Signal --- */
.signal-section {
  text-align: center;
}

.signal-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.6em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.signal-text {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
}

.signal-text .accent {
  color: var(--cyan-bright);
}

/* --- Stats Section (Modern Cards) --- */
.fragments-section {
  padding: 8rem 2rem;
  position: relative;
}

.fragments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.fragment {
  background: var(--dark-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.fragment::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fragment:hover {
  background: var(--dark-card-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.fragment:hover::before {
  opacity: 1;
}

.fragment-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.fragment-stat {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--chrome) 0%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.fragment-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* --- The World (Modern Cards) --- */
.world-section {
  text-align: center;
  padding: 8rem 2rem;
}

.world-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.world-feature {
  position: relative;
  text-align: left;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-card);
}

.world-feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.world-feature-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  transition: transform 0.8s ease, opacity 0.6s ease;
  opacity: 0;
}

.world-feature-img.loaded {
  opacity: 1;
}

.world-feature:hover .world-feature-img {
  transform: scale(1.05);
}

.world-feature-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    var(--dark-bg) 0%,
    rgba(6, 6, 16, 0.85) 40%,
    rgba(6, 6, 16, 0.4) 70%,
    rgba(6, 6, 16, 0.2) 100%
  );
  z-index: 1;
  transition: background 0.5s ease;
}

.world-feature:hover .world-feature-overlay {
  background: linear-gradient(
    to top,
    var(--dark-bg) 0%,
    rgba(6, 6, 16, 0.75) 40%,
    rgba(6, 6, 16, 0.3) 70%,
    rgba(6, 6, 16, 0.15) 100%
  );
}

.world-feature-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.world-feature-icon {
  width: 32px;
  height: 32px;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.world-feature:hover .world-feature-icon {
  opacity: 1;
}

.world-feature-icon svg {
  width: 100%;
  height: 100%;
}

.world-feature-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.world-feature-desc {
  font-weight: 300;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.world-feature-stat {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  margin-top: 1rem;
  text-transform: uppercase;
  opacity: 0.7;
  min-height: 1.2em;
}

.stat-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: stat-spin 0.8s linear infinite;
}

@keyframes stat-spin {
  to { transform: rotate(360deg); }
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 8rem 2rem 10rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, rgba(90, 77, 138, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section .section-cta-buttons {
  gap: 1rem;
}

.cta-section .hero-cta-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  letter-spacing: 0.14em;
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.cta-section .hero-cta-btn svg {
  width: 22px;
  height: 22px;
}

.cta-section .hero-cta-btn:hover {
  background: rgba(0, 212, 255, 0.22);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.2), 0 0 80px rgba(0, 212, 255, 0.05);
  transform: translateY(-2px);
}

.cta-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.cta-sub {
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}


/* --- Waitlist Fallback --- */
.waitlist {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.waitlist-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.web-link {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.web-link:hover {
  color: var(--cyan-bright);
  border-bottom-color: var(--neon-cyan);
}

.waitlist-form {
  display: flex;
  gap: 0;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--dark-surface);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-right: none;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.waitlist-input::placeholder {
  color: var(--text-dim);
}

.waitlist-input:focus {
  border-color: rgba(0, 212, 255, 0.3);
}

.waitlist-submit {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.waitlist-submit:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--neon-cyan);
}

/* --- Video Teaser --- */
.video-section {
  text-align: center;
  padding: 6rem 2rem 8rem;
}

.video-container {
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.video-frame {
  position: relative;
  border: 1px solid rgba(0, 212, 255, 0.12);
  background: var(--dark-surface);
  overflow: hidden;
}

.video-scanline {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 3;
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-placeholder video,
.video-placeholder iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: none;
}

.video-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(90, 77, 138, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    var(--dark-surface);
  z-index: 2;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  z-index: 4;
  color: var(--neon-cyan);
}

.video-play-btn::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px;
  right: -4px; bottom: -4px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  animation: play-pulse 3s ease-in-out infinite;
}

@keyframes play-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}

.video-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-play-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.15);
  transform: scale(1.05);
}

.video-text-overlay {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  z-index: 4;
}

.video-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

/* Animated background grid lines */
.video-bg-anim {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
}

.video-grid-line {
  position: absolute;
  background: rgba(0, 212, 255, 0.03);
}

.vgl-1 { width: 1px; height: 100%; left: 20%; animation: grid-pulse 6s ease-in-out infinite; }
.vgl-2 { width: 1px; height: 100%; left: 50%; animation: grid-pulse 6s ease-in-out 1s infinite; }
.vgl-3 { width: 1px; height: 100%; left: 80%; animation: grid-pulse 6s ease-in-out 2s infinite; }
.vgl-4 { width: 100%; height: 1px; top: 33%; animation: grid-pulse 6s ease-in-out 0.5s infinite; }
.vgl-5 { width: 100%; height: 1px; top: 66%; animation: grid-pulse 6s ease-in-out 1.5s infinite; }

@keyframes grid-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* Corner brackets */
.video-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 4;
}

.vc-tl { top: 10px; left: 10px; border-top: 1px solid rgba(0, 212, 255, 0.3); border-left: 1px solid rgba(0, 212, 255, 0.3); }
.vc-tr { top: 10px; right: 10px; border-top: 1px solid rgba(0, 212, 255, 0.3); border-right: 1px solid rgba(0, 212, 255, 0.3); }
.vc-bl { bottom: 10px; left: 10px; border-bottom: 1px solid rgba(0, 212, 255, 0.3); border-left: 1px solid rgba(0, 212, 255, 0.3); }
.vc-br { bottom: 10px; right: 10px; border-bottom: 1px solid rgba(0, 212, 255, 0.3); border-right: 1px solid rgba(0, 212, 255, 0.3); }

.video-sound-hint {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-top: 1.4rem;
  padding: 0.45rem 1.2rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 2px;
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.08), inset 0 0 12px rgba(0, 212, 255, 0.04);
  animation: soundHintPulse 2.5s ease-in-out infinite;
}

.video-sound-hint::before {
  content: '\1F50A';
  margin-right: 0.6rem;
  font-size: 0.8rem;
}

@keyframes soundHintPulse {
  0%, 100% { opacity: 0.6; border-color: rgba(0, 212, 255, 0.2); }
  50% { opacity: 1; border-color: rgba(0, 212, 255, 0.45); }
}

.video-caption {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-top: 1.2rem;
  text-transform: uppercase;
}

/* --- Glitch Text Effect --- */
.section-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.section-cta-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
}

.section-cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  color: var(--neon-cyan);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-cta-btn:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.hero-cta-btn:active {
  transform: translateY(0);
}

.hero-all-platforms {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.hero-all-platforms:hover {
  color: var(--neon-cyan);
}

.glitch-container {
  position: relative;
  display: inline-block;
  margin-top: 2.5rem;
}

.glitch-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--neon-cyan);
  opacity: 0.6;
  animation: glitch-flicker 4s infinite;
}

@keyframes glitch-flicker {
  0%, 92%, 94%, 96%, 100% { opacity: 0.6; transform: none; }
  93% { opacity: 0.2; transform: translateX(2px); }
  95% { opacity: 0.8; transform: translateX(-1px); color: var(--purple-edge); }
}


/* ==========================================================================
   STATS PAGE
   ========================================================================== */
.page-stats .hero {
  min-height: 40vh;
  padding: 8rem 2rem 4rem;
}

.page-stats .mesh-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(90, 77, 138, 0.12) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
              var(--dark-bg);
}

.page-stats .section {
  padding: 4rem 2rem;
  max-width: 1100px;
}

.page-stats .dark-card {
  --dark-card: #0e0e1e;
}

.hero-glyph {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  color: var(--neon-cyan);
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-logo {
  max-width: min(80vw, 480px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.15));
  animation: fadeIn 1s ease 0.5s both;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  letter-spacing: 0.2em;
  color: var(--text-muted);
  animation: fadeIn 1s ease 0.7s both;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  margin: 2rem auto 0;
  animation: fadeIn 1s ease 0.9s both;
}

/* Loading */
#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  gap: 1.5rem;
}

.loading-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
}

/* Stats Content */
#stats-content {
  display: none;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Primary Stats */
.primary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 4rem;
}

.primary-stat {
  background: var(--dark-bg);
  padding: 3rem 1.5rem;
  text-align: center;
  transition: background 0.4s;
}

.primary-stat:hover {
  background: var(--dark-surface);
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 300;
}

.stat-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-weight: 300;
}

/* Secondary Stats */
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 4rem;
}

.secondary-stat {
  border: 1px solid rgba(0, 212, 255, 0.07);
  background: var(--dark-card);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}

.secondary-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.secondary-stat:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--dark-surface);
}

.secondary-stat:hover::before {
  opacity: 1;
}

.secondary-value {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.secondary-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Users Section */
.users-strip {
  border: 1px solid rgba(0, 212, 255, 0.07);
  background: var(--dark-card);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

.user-stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 0.3rem;
}

.user-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Progress Bars */
.progress-section {
  margin-bottom: 4rem;
}

.progress-item {
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.progress-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.progress-counts {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

.progress-bar {
  height: 4px;
  background: rgba(0, 212, 255, 0.06);
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.progress-pipeline {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 212, 255, 0.1);
  animation: pipelinePulse 3s ease-in-out infinite;
}

.progress-fill {
  height: 4px;
  background: linear-gradient(90deg, var(--purple-edge), var(--neon-cyan));
  position: absolute;
  top: 0; left: 0;
  border-radius: 2px;
  z-index: 1;
}

@keyframes pipelinePulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  line-height: 2;
}

.footer-text a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-text a:hover {
  color: var(--neon-cyan);
}

/* Word Count Comparison Chart */
.comparison-subheading {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1.5rem;
}

.comparison-chart {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

.comparison-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.comparison-label-wrap {
  width: 200px;
  text-align: right;
  flex-shrink: 0;
}

.comparison-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  line-height: 1.2;
}

.comparison-sublabel {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-dim);
  display: block;
  line-height: 1.3;
}

.comparison-row-highlight .comparison-label {
  color: var(--text-primary);
  font-weight: 700;
}

.comparison-bar-wrap {
  flex: 1;
  height: 34px;
  position: relative;
}

.comparison-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0;
}

.comparison-bar-other {
  background: var(--text-dim);
  opacity: 0.4;
}

.comparison-bar-storiverse {
  background: linear-gradient(90deg, var(--neon-cyan), var(--cyan-bright));
  opacity: 0.85;
}

.comparison-bar-franchise {
  background: var(--text-dim);
  opacity: 0.35;
}

.comparison-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 85px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.comparison-row-highlight .comparison-value {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.comparison-footnote {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.comparison-footnote em {
  font-style: italic;
  color: var(--text-muted);
}

.comparison-sources {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.comparison-sources a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  transition: color 0.3s, border-color 0.3s;
}

.comparison-sources a:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
}

.updated-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 3rem;
}

/* Fade-in (stats) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   VERIFY PAGE
   ========================================================================== */
body.page-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

body.page-verify::before {
  z-index: 1000;
}

.bg-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-verify .mesh-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(90, 77, 138, 0.15) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
              var(--dark-bg);
}

.verify-card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 3rem;
  max-width: 480px;
  width: 90%;
}

.verify-logo {
  max-width: min(80vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.2)) drop-shadow(0 0 80px rgba(90, 77, 138, 0.15));
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
}

.page-verify .divider {
  width: 40px;
  margin: 0 auto 2.5rem;
  animation: fadeIn 1s ease 0.6s forwards;
}

.page-verify .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
}

/* Status states */
.status-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.status-glyph {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease 0.8s forwards;
}

.status-heading {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}

.status-heading.success { color: var(--cyan-bright); }
.status-heading.error { color: var(--error); }
.status-heading.loading { color: var(--chrome); }

.status-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.status-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.08);
  color: var(--neon-cyan);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 1s ease 1.4s forwards;
}

.status-btn:hover {
  background: rgba(0, 212, 255, 0.18);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.12);
}


/* ==========================================================================
   FOOTER (shared component)
   ========================================================================== */
.footer {
  text-align: center;
  padding: 4rem 2rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo-img {
  width: 220px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.1));
}

.footer-contact {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  line-height: 2.2;
  margin-bottom: 1.5rem;
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--neon-cyan);
}

.footer-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: transparent;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.footer-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.06), transparent);
  transition: left 0.6s ease;
}

.footer-btn:hover::before {
  left: 100%;
}

.footer-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.footer-btn svg {
  width: 14px;
  height: 14px;
  fill: var(--text-primary);
}

.footer-newsletter {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.footer-newsletter-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chrome-bright, rgba(255,255,255,0.9));
  margin-bottom: 0.5rem;
}

.footer-newsletter-desc {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.footer-newsletter-input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(16, 16, 32, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.1);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
}

.footer-newsletter-input::placeholder {
  color: var(--text-dim);
}

.footer-newsletter-input:focus {
  border-color: rgba(0, 212, 255, 0.3);
}

.footer-newsletter-submit {
  padding: 0.7rem 1.2rem;
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-left: none;
  color: var(--neon-cyan);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.footer-newsletter-submit:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--neon-cyan);
}

.footer-newsletter-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 1.5rem auto;
}

.footer-byline {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-byline a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-byline a:hover {
  color: var(--neon-cyan);
}

.footer-powered {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  background: rgba(0, 212, 255, 0.03);
}

.footer-copyright {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}


/* --- Quest Slider --- */
.quest-slider-section {
  text-align: center;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.quest-slider-section .signal-label,
.quest-slider-section .signal-text {
  padding: 0 2rem;
}

.quest-slider {
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 2rem 1rem;
}

.quest-slider::-webkit-scrollbar {
  display: none;
}

.quest-slider.grabbing {
  cursor: grabbing;
}

.quest-slider-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  width: max-content;
}

.quest-card {
  width: 300px;
  min-width: 300px;
  background: var(--dark-card);
  border: 1px solid rgba(0, 212, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.quest-card:hover {
  transform: translateY(-4px);
}

.quest-card-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.quest-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--dark-card), transparent);
}

.quest-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quest-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.quest-card-summary {
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 0.75rem;
}

.quest-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.quest-card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.04);
}

/* Quest card timeline bar + year label */
.quest-card-timeline {
  padding: 0 0 1.6rem;
  position: relative;
}

.quest-card-timeline-track {
  height: 3px;
  width: 100%;
  background: linear-gradient(to right,
    rgba(212, 160, 38, 0.3),
    rgba(155, 89, 182, 0.3),
    rgba(26, 188, 156, 0.3),
    rgba(0, 212, 255, 0.3)
  );
  position: relative;
  border-radius: 2px;
}

.quest-card-timeline-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.3s ease;
  z-index: 1;
}

.quest-card-timeline-year {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid;
  border-radius: 2px;
  background: var(--dark-card);
}

.quest-card:hover .quest-card-timeline-dot {
  box-shadow: 0 0 12px currentColor, 0 0 30px currentColor !important;
}

/* Quest card era badge */
.quest-card-era {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.quest-card-era-earth {
  color: var(--text-dim);
}

.quest-card-era-divider {
  color: rgba(0, 212, 255, 0.2);
}

.quest-card-era-cliv {
  color: var(--neon-cyan);
  opacity: 0.8;
}

.quest-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}


/* ---------- Book Slider ---------- */
.book-slider-section {
  text-align: center;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.book-slider-section .signal-label,
.book-slider-section .signal-text {
  padding: 0 2rem;
}

.book-slider {
  overflow-x: auto;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 2rem 1rem;
}

.book-slider::-webkit-scrollbar {
  display: none;
}

.book-slider.grabbing {
  cursor: grabbing;
}

.book-slider-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  width: max-content;
}

.book-card {
  width: 240px;
  min-width: 240px;
  background: var(--dark-card);
  border: 1px solid rgba(0, 212, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.3s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateY(-4px);
}

.book-card-cover {
  width: 100%;
  aspect-ratio: 5 / 8;
  background-size: cover;
  background-position: center;
  position: relative;
}

.book-card-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--dark-card), transparent);
}

.book-card-body {
  padding: 1rem 1.25rem 1.25rem;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.book-card-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.book-card-summary {
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-chapters {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.04);
  display: inline-block;
  margin-top: 0.6rem;
  align-self: flex-start;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .fragments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-logo-img {
    height: 1.1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  /* Index */
  .coming-soon-form {
    flex-direction: column;
  }

  .coming-soon-input {
    border-right: 1px solid rgba(0, 212, 255, 0.15);
    border-bottom: none;
  }

  .fragments-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .fragment {
    padding: 2rem 1.5rem;
  }

  .world-features {
    grid-template-columns: 1fr;
  }

  .world-feature {
    min-height: 280px;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .section-label::before,
  .section-label::after {
    width: 30px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-input {
    border-right: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: none;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-submit {
    border-left: 1px solid rgba(0, 212, 255, 0.15);
    border-top: none;
  }

  .quest-card {
    width: 260px;
    min-width: 260px;
  }

  .quest-card-img {
    height: 150px;
  }

  .book-card {
    width: 200px;
    min-width: 200px;
  }

  /* Stats */
  .primary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .secondary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .users-strip {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison-label-wrap {
    width: 140px;
  }

  .comparison-label {
    font-size: 0.95rem;
  }

  .comparison-sublabel {
    font-size: 0.75rem;
  }

  .comparison-bar-wrap {
    height: 26px;
  }

  .comparison-value {
    font-size: 0.7rem;
    width: 70px;
  }
}

@media (max-width: 480px) {
  .fragments-grid {
    grid-template-columns: 1fr;
  }

  .fragment-stat {
    font-size: 2rem;
  }

  .primary-grid {
    grid-template-columns: 1fr;
  }

  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .comparison-label-wrap {
    width: 110px;
  }

  .comparison-label {
    font-size: 0.85rem;
  }

  .comparison-sublabel {
    font-size: 0.7rem;
  }

  .comparison-value {
    width: 65px;
    font-size: 0.65rem;
  }
}


/* ==========================================================================
   LINKS PAGE (Linktree-style)
   ========================================================================== */
body.page-links {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-links::before {
  z-index: 1000;
}

.page-links .mesh-gradient {
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(90, 77, 138, 0.15) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
              var(--dark-bg);
}

.page-links .mesh-orb {
  opacity: 0.35;
}

/* Container */
.links-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 3rem 1.5rem 2rem;
  margin: 0 auto;
}

/* Header */
.links-header {
  text-align: center;
  margin-bottom: 2rem;
}

.links-logo {
  width: 340px;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 24px rgba(0, 212, 255, 0.15));
  transition: filter 0.4s ease;
}

.links-logo:hover {
  filter: drop-shadow(0 0 32px rgba(0, 212, 255, 0.3));
}

.links-tagline {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.75rem;
}

.links-bio {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* Live Stats Bar */
.links-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 212, 255, 0.1);
  background: rgba(0, 212, 255, 0.02);
}

.links-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.links-stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
}

.links-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Section Labels */
.links-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin: 1.75rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.links-section-label::before,
.links-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

/* Link List */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Link Button */
.link-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.link-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.06), transparent);
  transition: left 0.6s ease;
}

.link-btn:hover::before {
  left: 100%;
}

.link-btn:hover {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(20, 20, 42, 0.8);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.06);
  transform: translateY(-1px);
}

.link-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  flex-shrink: 0;
  transition: fill 0.35s ease;
}

.link-btn:hover svg {
  fill: var(--neon-cyan);
}

.link-btn-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: 0.04em;
  flex: 1;
}

.link-btn-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Primary link variant */
.link-btn-primary {
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.04);
}

.link-btn-primary:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
}

.link-btn-primary svg {
  fill: var(--neon-cyan);
}

/* Disabled link variant */
.link-btn-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* Footer */
.links-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.links-footer-powered {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.links-footer-copy {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* Featured Cards */
.links-featured {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.featured-card {
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.featured-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.featured-card:hover .featured-card-glow {
  opacity: 1;
}

.featured-card:hover {
  transform: translateY(-2px);
}

.featured-card-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}

.featured-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.featured-card-icon svg {
  width: 20px;
  height: 20px;
  transition: fill 0.4s ease;
}

.featured-card-body {
  flex: 1;
  min-width: 0;
}

.featured-card-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.featured-card-title {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.featured-card-desc {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.featured-card-arrow {
  flex-shrink: 0;
  opacity: 0.3;
  transition: all 0.4s ease;
}

.featured-card-arrow svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
}

.featured-card:hover .featured-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Gold variant — The Protector Blog */
.featured-card-gold {
  border-color: rgba(212, 168, 67, 0.15);
  background: rgba(16, 16, 32, 0.7);
}

.featured-card-gold .featured-card-glow {
  background: radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
}

.featured-card-gold:hover {
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.08), 0 0 60px rgba(212, 168, 67, 0.03);
}

.featured-card-gold .featured-card-icon {
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.2);
}

.featured-card-gold .featured-card-icon svg {
  fill: #d4a843;
}

.featured-card-gold:hover .featured-card-icon {
  background: rgba(212, 168, 67, 0.15);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: 0 0 16px rgba(212, 168, 67, 0.15);
}

.featured-card-gold .featured-card-label {
  color: #d4a843;
}

.featured-card-gold:hover .featured-card-arrow svg {
  fill: #d4a843;
}

/* Purple variant — Clivilius Podcast */
.featured-card-purple {
  border-color: rgba(168, 85, 247, 0.15);
  background: rgba(16, 16, 32, 0.7);
}

.featured-card-purple .featured-card-glow {
  background: radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
}

.featured-card-purple:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.08), 0 0 60px rgba(168, 85, 247, 0.03);
}

.featured-card-purple .featured-card-icon {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.featured-card-purple .featured-card-icon svg {
  fill: #a855f7;
}

.featured-card-purple:hover .featured-card-icon {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.15);
}

.featured-card-purple .featured-card-label {
  color: #a855f7;
}

.featured-card-purple:hover .featured-card-arrow svg {
  fill: #a855f7;
}

/* Brother Cards */
.links-brothers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brother-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 16, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
}

.brother-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.04), transparent);
  transition: left 0.6s ease;
}

.brother-card:hover::before {
  left: 100%;
}

.brother-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(16, 16, 32, 0.85);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.05);
  transform: translateY(-1px);
}

.brother-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 212, 255, 0.15);
  flex-shrink: 0;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.brother-card:hover .brother-img {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.1);
}

.brother-body {
  flex: 1;
  min-width: 0;
}

.brother-role {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.15rem;
}

.brother-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.brother-desc {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Links page responsive */
@media (max-width: 480px) {
  .links-container {
    padding: 2rem 1rem 1.5rem;
  }

  .links-logo {
    width: 280px;
  }

  .links-stats {
    gap: 1rem;
    padding: 0.6rem 0.75rem;
  }

  .links-stat-value {
    font-size: 0.85rem;
  }

  .links-bio {
    font-size: 0.9rem;
  }

}

/* ==========================================================================
   PLATFORMS PAGE
   ========================================================================== */

.platforms-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 3rem;
  min-height: 100vh;
}

/* Hero */
.platforms-hero {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out;
}

.platforms-title {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.platforms-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Gradient text helper */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Platform Cards Grid */
.platforms-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Card */
.platform-card {
  background: rgba(20, 20, 42, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  animation: fadeIn 1s ease-out 0.2s both;
}

.platform-card-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark-surface);
}

.platform-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.platform-card-qr {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 72px;
  height: 72px;
  background: rgba(6, 6, 16, 0.85);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.platform-card-body {
  padding: 1.5rem;
}

.platform-card-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.platform-card-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Platform List (rows inside card) */
.platform-list {
  display: flex;
  flex-direction: column;
}

.platform-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
  text-decoration: none;
  transition: background 0.2s ease;
}

.platform-row:hover {
  background: rgba(0, 212, 255, 0.03);
}

.platform-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.platform-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.platform-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.platform-action {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--neon-cyan);
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.platform-row:hover .platform-action {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

.platform-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-dim);
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(104, 120, 160, 0.2);
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.platform-row-disabled {
  pointer-events: none;
  opacity: 0.5;
}

.platform-row-disabled .platform-icon {
  fill: var(--text-dim);
}

.platform-row-disabled .platform-name {
  color: var(--text-dim);
}

/* Platform row as button */
button.platform-row {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
  cursor: pointer;
  font-family: inherit;
}

button.platform-row:hover {
  background: rgba(0, 212, 255, 0.03);
}

.platform-row-active {
  background: rgba(0, 212, 255, 0.04) !important;
}

.platform-row-active .platform-action {
  border-color: rgba(0, 212, 255, 0.5);
  color: var(--cyan-bright);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

/* Install Guide (expandable) */
.install-guide {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.install-guide-open {
  max-height: 400px;
  opacity: 1;
}

.install-guide-inner {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
}

.install-guide-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.install-step-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.install-step-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.install-step-text a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.install-step-text a:hover {
  text-decoration: underline;
}

.install-step-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.install-icon-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--neon-cyan);
  vertical-align: middle;
  line-height: 1;
}

/* Store option row (App Store / Play Store / etc) */
.install-option {
  margin-bottom: 0.5rem;
}

.install-option-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.install-option-header:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.install-option-icon {
  width: 18px;
  height: 18px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.install-option-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

/* "or install via browser" divider */
.install-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.install-divider::before,
.install-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(104, 120, 160, 0.12);
}

.install-divider-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  white-space: nowrap;
}

.install-note {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.5;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(104, 120, 160, 0.08);
}

/* QR Section */
.platforms-qr-section {
  margin-bottom: 2rem;
}

.platforms-qr-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(20, 20, 42, 0.4);
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: 16px;
  padding: 2rem;
}

.platforms-qr-box {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.1);
  background: rgba(6, 6, 16, 0.8);
  padding: 8px;
}

.platforms-qr-info {
  flex: 1;
}

.platforms-qr-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.platforms-qr-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.platforms-qr-how {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qr-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qr-step-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.qr-step-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Platforms video section */
.platforms-video-section {
  margin-bottom: 3rem;
}

/* Platforms responsive */
@media (max-width: 600px) {
  .platforms-page {
    padding: 5rem 1rem 2rem;
  }

  .platforms-title {
    font-size: 1.8rem;
  }

  .platforms-qr-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .platforms-qr-box {
    width: 140px;
    height: 140px;
  }

  .platforms-qr-how {
    align-items: center;
  }

  .platform-card-qr {
    width: 56px;
    height: 56px;
  }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neon-cyan);
  border-radius: 50%;
  background: rgba(6, 6, 16, 0.85);
  color: var(--neon-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
  z-index: 9000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
  }
}
