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

/* --- CSS VARIABLES --- */
:root {
  --neon-pink: #ff2d7b;
  --neon-purple: #6b5b9a;
  --neon-cyan: #00d4ff;
  --cyan-bright: #4de8ff;
  --chrome: #c0c8d8;
  --chrome-bright: #e2e8f0;
  --purple-edge: #5a4d8a;
  --blue-accent: #3a9fd4;
  --dark-bg: #060610;
  --dark-surface: #0c0c1a;
  --dark-card: #14142a;
  --text-primary: #e2e8f0;
  --text-muted: #9aaac8;
  --text-dim: #6878a0;
  --success: #00d4ff;
  --error: #ff2d7b;
}

/* --- 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 --- */
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;
  }

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


/* ==========================================================================
   NAV (stats page)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 6, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.07);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--chrome), var(--cyan-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

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

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


/* ==========================================================================
   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;
}


/* ==========================================================================
   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.6rem;
  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.6rem;
  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.55rem;
  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.6rem;
  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.12) 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 30% 60%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 70% 30%, rgba(58, 159, 212, 0.06) 0%, transparent 50%),
              var(--dark-bg);
}

.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);
}

/* --- The Signal --- */
.signal-section {
  text-align: center;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
}

.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);
}

/* --- Fragments Grid --- */
.fragments-section {
  padding: 6rem 2rem 8rem;
}

.fragments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0, 212, 255, 0.06);
  max-width: 900px;
  margin: 0 auto;
}

.fragment {
  background: var(--dark-bg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: background 0.6s ease;
}

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

.fragment-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.fragment-stat {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 0.5rem;
}

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

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

.world-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
}

.world-feature {
  position: relative;
  text-align: left;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.08);
  transition: border-color 0.5s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.world-feature:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}

.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.6rem;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  margin-top: 1rem;
  text-transform: uppercase;
  opacity: 0.7;
}

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

.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-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;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

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

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

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

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

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

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

/* --- 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-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.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);
}

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

.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.6rem;
  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-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 --- */
.glitch-container {
  position: relative;
  display: inline-block;
}

.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: 1000px;
}

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

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

.hero-logo {
  max-width: min(70vw, 320px);
  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.6rem;
  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(3, 1fr);
  gap: 1px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 4rem;
}

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

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

.stat-strand {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.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: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 300;
}

.stat-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* Secondary Stats */
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(4, 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.5rem;
  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.55rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.secondary-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* 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.55rem;
  letter-spacing: 0.3em;
  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: 0.9rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

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

.progress-bar {
  height: 1px;
  background: rgba(0, 212, 255, 0.08);
  position: relative;
}

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

.progress-coming {
  height: 1px;
  background: rgba(0, 212, 255, 0.15);
  position: absolute;
  top: 0;
}

.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  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);
}

.updated-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  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.6rem;
  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.6rem;
  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-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.6rem;
  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.55rem;
  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.55rem;
  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: 200px;
  min-width: 200px;
  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.85rem;
  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.55rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.book-card-summary {
  font-weight: 300;
  font-size: 0.75rem;
  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.55rem;
  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: 768px) {
  /* 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: 1fr;
  }

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

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

  .fragment {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 5rem 1.5rem;
  }

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

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

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

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

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

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

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

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