/* ============================================================
   RACEHUNT LANDING PAGE — STYLES
   Cyberpunk | Dark | Neon
============================================================ */

/* ─────────────────────────────────────────────
   0. RESET & ROOT VARIABLES
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #000000;
  --bg-card:    #1E293B;
  --bg-card2:   #111111;
  --cyan:       #00F0FF;
  --cyan-dim:   rgba(0, 240, 255, 0.15);
  --cyan-glow:  0 0 8px #00F0FF, 0 0 24px rgba(0,240,255,0.5);
  --purple:     #B026FF;
  --purple-dim: rgba(176, 38, 255, 0.15);
  --red:        #FF007F;
  --white:      #F8FAFC;
  --muted:      #94A3B8;
  --border:     #333333;
  
  --rarity-common:    #A0A0A0;
  --rarity-uncommon:  #39FF14;
  --rarity-rare:      #00FFFF;
  --rarity-epic:      #B026FF;
  --rarity-legendary: #FF4500;
  --rarity-mythic:    #FFEA00;

  --font-mono:  'Share Tech Mono', monospace;
  --font-head:  'Rajdhani', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-mono);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ─────────────────────────────────────────────
   1. ANIMATED GRID BACKGROUND
───────────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg);
  transform-origin: center top;
}

/* Scanline overlay */
.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

/* All real content sits above the grid */
nav, section, footer {
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────
   2. LAYOUT HELPERS
───────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--cyan);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: var(--cyan-glow);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 1.5px;
  margin-bottom: 60px;
}

.cyan {
  color: var(--cyan);
}

/* ─────────────────────────────────────────────
   3. NAV
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

/* ─────────────────────────────────────────────
   3b. CYBERPUNK WEB PORTAL CTA (US-38-02)
───────────────────────────────────────────── */
.btn-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #000000 !important;
  background: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.55);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-portal:hover {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.9), 0 0 12px #ffffff;
  transform: translateY(-1px);
}

.btn-portal--mobile {
  width: 100%;
  padding: 12px 20px;
  font-size: 0.95rem;
  margin-top: 10px;
  border-radius: 2px;
  text-align: center;
}

.hero-portal-teaser {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px auto 12px;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.hero-portal-teaser:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  transform: scale(1.02);
}

.hero-portal-teaser .teaser-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: portal-pulse 1.6s infinite ease-in-out;
}

@keyframes portal-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-bar {
  width: 100%;
  height: 2px;
  background-color: var(--cyan);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

.nav-toggle.active .nav-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .nav-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.nav-toggle.active .nav-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.nav-mobile-menu.active {
  display: flex;
}

.nav-mobile-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s, padding-left 0.2s;
}

.nav-mobile-link:hover,
.nav-mobile-link:focus {
  color: var(--cyan);
  padding-left: 8px;
}

.nav-mobile-link.highlight {
  color: #00ffcc;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

/* ─────────────────────────────────────────────
   4. BUTTONS
───────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
  box-shadow: 0 0 12px rgba(176, 38, 255, 0.25);
}

.btn-secondary:hover {
  background: var(--purple-dim);
  box-shadow: 0 0 30px rgba(176, 38, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  font-size: 0.8rem;
  padding: 10px 24px;
  margin-top: 20px;
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: var(--cyan-glow);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   5. GLITCH TITLE ANIMATION
───────────────────────────────────────────── */
.glitch-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: 10px;
  color: var(--white);
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  animation: glitch 3s infinite;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-title::before {
  color: var(--cyan);
  animation: glitchBefore 3s infinite;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
}

.glitch-title::after {
  color: var(--red);
  animation: glitchAfter 3s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); }
  92%            { transform: translate(-3px, 1px); }
  94%            { transform: translate(3px, -1px); }
  96%            { transform: translate(-2px, 2px); }
  98%            { transform: translate(2px, -2px); }
}

@keyframes glitchBefore {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92%            { transform: translate(-6px, 0); opacity: 0.8; }
  94%            { transform: translate(4px, 0); opacity: 0.8; }
  96%            { transform: translate(-4px, 0); opacity: 0.6; }
  98%            { transform: translate(0); opacity: 0; }
}

@keyframes glitchAfter {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  93%            { transform: translate(6px, 1px); opacity: 0.8; }
  95%            { transform: translate(-4px, -1px); opacity: 0.8; }
  97%            { transform: translate(4px, 0); opacity: 0.6; }
  99%            { transform: translate(0); opacity: 0; }
}

/* ─────────────────────────────────────────────
   6. HERO SECTION
───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-inner {
  max-width: 900px;
}

.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 28px;
  opacity: 0.8;
  animation: blink 2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 0.3; }
}

.hero-slogan {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 20px 0 16px;
  text-shadow: var(--cyan-glow);
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 40px;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-app-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  border: 1px solid var(--border);
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  gap: 8px;
}

.qr-code {
  width: 100px;
  height: 100px;
  border-radius: 4px;
}

.qr-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-arrow {
  font-size: 1.2rem;
  color: var(--cyan);
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ─────────────────────────────────────────────
   7. STATS BAR
───────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: relative;
  z-index: 2;
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 48px;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  text-shadow: var(--cyan-glow);
  animation: statPulse 3s ease-in-out infinite;
}

.stat-item:nth-child(3) .stat-number { animation-delay: 0.4s; }
.stat-item:nth-child(5) .stat-number { animation-delay: 0.8s; }
.stat-item:nth-child(7) .stat-number { animation-delay: 1.2s; }

@keyframes statPulse {
  0%, 100% { text-shadow: 0 0 8px #00F0FF, 0 0 24px rgba(0,240,255,0.5); }
  50%       { text-shadow: 0 0 16px #00F0FF, 0 0 48px rgba(0,240,255,0.8), 0 0 80px rgba(0,240,255,0.3); }
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   8. HOW IT WORKS
───────────────────────────────────────────── */
.how-it-works-section {
  background: var(--bg);
}

.steps {
  display: flex;
  align-items: stretch;
  gap: 24px;
  position: relative;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 240, 255, 0.3);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0 16px;
}

/* Horizontal connector line between steps */
.step-connector {
  position: absolute;
  top: 28px; /* vertically center with the number */
  left: 50%;
  width: calc(100% + 24px);
  height: 1px;
  background: linear-gradient(90deg, rgba(0,240,255,0.4), rgba(0,240,255,0.1));
  z-index: 0;
}

.step-connector--last {
  display: none;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-desc {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   9. FEATURES GRID
───────────────────────────────────────────── */
.features-section {
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.06);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   10. RARITY SPOTLIGHT
───────────────────────────────────────────── */
.rarity-section {
  background: var(--bg);
}

.rarity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rarity-card {
  background: var(--bg-card2);
  border-radius: 4px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.rarity-card:hover {
  transform: translateY(-6px);
}

/* Rarity Badges */
.rarity-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  align-self: flex-start;
}

.rarity-badge--common {
  background: rgba(160, 160, 160, 0.15);
  color: var(--rarity-common);
  border: 1px solid var(--rarity-common);
}

.rarity-badge--uncommon {
  background: rgba(57, 255, 20, 0.15);
  color: var(--rarity-uncommon);
  border: 1px solid var(--rarity-uncommon);
  box-shadow: 0 0 6px rgba(57,255,20,0.3);
}

.rarity-badge--rare {
  background: rgba(0, 255, 255, 0.15);
  color: var(--rarity-rare);
  border: 1px solid var(--rarity-rare);
  box-shadow: 0 0 8px rgba(0,255,255,0.3);
}

.rarity-badge--epic {
  background: rgba(176, 38, 255, 0.15);
  color: var(--rarity-epic);
  border: 1px solid var(--rarity-epic);
  box-shadow: 0 0 12px rgba(176,38,255,0.4);
  animation: epicPulse 2.5s ease-in-out infinite;
}

@keyframes epicPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(176,38,255,0.3); }
  50%       { box-shadow: 0 0 20px rgba(176,38,255,0.7); }
}

.rarity-badge--legendary {
  background: rgba(255, 69, 0, 0.15);
  color: var(--rarity-legendary);
  border: 1px solid var(--rarity-legendary);
  box-shadow: 0 0 14px rgba(255,69,0,0.45);
  animation: legendaryPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,69,0,0.4); }
  50%       { box-shadow: 0 0 28px rgba(255,69,0,0.8), 0 0 50px rgba(255,69,0,0.3); }
}

.rarity-badge--mythic {
  background: rgba(255, 234, 0, 0.1);
  color: var(--rarity-mythic);
  border: 1px solid var(--rarity-mythic);
  text-shadow: 0 0 8px var(--rarity-mythic), 0 0 20px var(--rarity-mythic);
  box-shadow: 0 0 16px rgba(255,234,0,0.5);
  animation: mythicPulse 1.5s ease-in-out infinite;
}

@keyframes mythicPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255,234,0,0.5), 0 0 30px rgba(255,234,0,0.2);
    text-shadow: 0 0 8px var(--rarity-mythic), 0 0 20px var(--rarity-mythic);
  }
  50% {
    box-shadow: 0 0 30px rgba(255,234,0,0.9), 0 0 60px rgba(255,234,0,0.5), 0 0 100px rgba(255,234,0,0.2);
    text-shadow: 0 0 16px var(--rarity-mythic), 0 0 40px var(--rarity-mythic), 0 0 80px rgba(255,234,0,0.5);
  }
}

.rarity-name {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--white);
  text-transform: uppercase;
}

.rarity-desc {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.rarity-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.rarity-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.rarity-fill--common    { background: var(--rarity-common); }
.rarity-fill--uncommon  { background: var(--rarity-uncommon); box-shadow: 0 0 6px rgba(57,255,20,0.5); }
.rarity-fill--rare      { background: var(--rarity-rare); box-shadow: 0 0 6px rgba(0,255,255,0.6); }
.rarity-fill--epic      { background: var(--rarity-epic); box-shadow: 0 0 6px rgba(176,38,255,0.7); }
.rarity-fill--legendary { background: var(--rarity-legendary); box-shadow: 0 0 8px rgba(255,69,0,0.7); }
.rarity-fill--mythic    { background: var(--rarity-mythic); box-shadow: 0 0 10px var(--rarity-mythic); }

.rarity-drop-rate {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Card glow accents per rarity */
.rarity-common:hover    { box-shadow: 0 8px 40px rgba(156,163,175,0.08); }
.rarity-rare:hover      { box-shadow: 0 8px 40px rgba(59,130,246,0.12); }
.rarity-epic:hover      { box-shadow: 0 8px 40px rgba(168,85,247,0.15); }
.rarity-legendary:hover { box-shadow: 0 8px 40px rgba(245,158,11,0.15); }
.rarity-mythic:hover    { box-shadow: 0 8px 40px rgba(0,240,255,0.2); }

/* ─────────────────────────────────────────────
   11. CREATOR SECTION
───────────────────────────────────────────── */
.creator-section {
}

.creator-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0 40px;
  align-items: start;
}

.creator-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  align-self: stretch;
  opacity: 0.3;
  margin-top: 20px;
}

.creator-block {
  padding: 20px 0;
}

.creator-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 12px;
  opacity: 0.7;
}

.creator-heading {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.creator-body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.creator-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.creator-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}

.creator-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.creator-list code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 1px 6px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────
   12. CTA BANNER
───────────────────────────────────────────── */
.cta-banner {
  position: relative;
  z-index: 2;
  background: transparent;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,240,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.cta-glitch-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--cyan);
  margin-bottom: 24px;
  opacity: 0.7;
}

.cta-headline {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
}

.cta-body {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   13. FOOTER
───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.footer-links a {
  color: var(--muted);
  letter-spacing: 1px;
  transition: color 0.2s;
}

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

.footer-sep {
  color: rgba(255,255,255,0.15);
}

.footer-signal {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: rgba(0, 240, 255, 0.25);
  margin-top: 4px;
}

.footer-disclaimer {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}

/* ─────────────────────────────────────────────
   14. RESPONSIVE — MOBILE (max-width: 768px)
───────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* QR Codes — hide on mobile screens */
  .qr-box {
    display: none !important;
  }

  /* Hero & CTA buttons on mobile */
  .hero-cta,
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
  }

  .cta-wrapper {
    width: 100%;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary,
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding: 100px 20px 60px;
  }

  .glitch-title {
    letter-spacing: 4px;
  }

  /* Stats */
  .stats-inner {
    flex-direction: column;
    gap: 0;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .stat-item {
    padding: 24px 20px;
  }

  /* Steps — vertical on mobile */
  .steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector {
    display: none;
  }

  .step {
    width: 100%;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Rarity */
  .rarity-grid {
    grid-template-columns: 1fr;
  }

  /* Creator */
  .creator-split {
    grid-template-columns: 1fr;
    gap: 40px 0;
  }

  .creator-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    margin: 0 auto;
    align-self: auto;
  }

  /* CTA */
  .cta-banner {
    padding: 60px 20px;
  }

  /* Section padding */
  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }
}

/* ─────────────────────────────────────────────
   15. UTILITY — FADE-IN ON SCROLL (optional)
   Uses IntersectionObserver-friendly class
───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .step-card,
  .rarity-card,
  .creator-block {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .feature-card:nth-child(1)  { animation-delay: 0.05s; }
  .feature-card:nth-child(2)  { animation-delay: 0.10s; }
  .feature-card:nth-child(3)  { animation-delay: 0.15s; }
  .feature-card:nth-child(4)  { animation-delay: 0.20s; }
  .feature-card:nth-child(5)  { animation-delay: 0.25s; }
  .feature-card:nth-child(6)  { animation-delay: 0.30s; }
  .feature-card:nth-child(7)  { animation-delay: 0.35s; }
  .feature-card:nth-child(8)  { animation-delay: 0.40s; }
  .feature-card:nth-child(9)  { animation-delay: 0.45s; }
  .feature-card:nth-child(10) { animation-delay: 0.50s; }

  .step-card  { animation-delay: 0.1s; }
  .rarity-card:nth-child(1) { animation-delay: 0.05s; }
  .rarity-card:nth-child(2) { animation-delay: 0.12s; }
  .rarity-card:nth-child(3) { animation-delay: 0.20s; }
  .rarity-card:nth-child(4) { animation-delay: 0.28s; }
  .rarity-card:nth-child(5) { animation-delay: 0.36s; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ─────────────────────────────────────────────
   LORE / TERMINAL SECTION
───────────────────────────────────────────── */
.lore-section {
  padding: 80px 24px;
  background: var(--bg);
}

.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.1);
}

.terminal-header {
  background: rgba(30, 41, 59, 0.9);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
  margin-right: 16px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 2px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.6;
}

.term-line {
  color: var(--green);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid transparent;
}

.term-text {
  color: var(--muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.term-text strong {
  color: var(--white);
}

.mt-4 {
  margin-top: 16px;
}

/* Animations */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--green); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.type-1 {
  display: inline-block;
  animation: typing 2s steps(40, end), blink-caret .75s step-end infinite;
}
.type-2 {
  display: inline-block;
  width: 0;
  animation: typing 1.5s steps(40, end) 2s forwards, blink-caret .75s step-end infinite;
}
.type-3 {
  display: inline-block;
  width: 0;
  animation: typing 2s steps(40, end) 3.5s forwards, blink-caret .75s step-end infinite;
}

.fade-in-1 {
  opacity: 0;
  animation: fadeIn 1.5s ease-out 6s forwards;
}
.fade-in-2 {
  opacity: 0;
  animation: fadeIn 1.5s ease-out 7.5s forwards;
}

/* ============================================================
   EVENTS SECTION STYLES
============================================================ */
.events-section {
  position: relative;
  padding: 80px 0;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}

.event-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.event-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  opacity: 0.8;
  transition: width 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.2);
  background: rgba(30, 41, 59, 0.75);
}

.event-card:hover::before {
  width: 6px;
}

.event-card-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.event-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: bold;
}

.event-status-badge.upcoming {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.event-status-badge.live {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--rarity-uncommon);
  color: var(--rarity-uncommon);
}

.event-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  animation: pulse-dot 1.5s infinite;
}

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

.event-scope-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.event-card-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.event-card-desc {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 900px;
}

.event-conditions-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cond-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e8f0;
}

.event-loot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px dashed rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  margin-bottom: 22px;
}

.loot-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffd700;
  font-weight: bold;
}

.loot-xp-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  font-weight: bold;
  letter-spacing: 1px;
}

.event-card-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-timeline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.btn-event-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1.5px;
  color: var(--cyan);
  padding: 8px 18px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--cyan);
  transition: all 0.2s ease;
}

.event-card:hover .btn-event-action {
  background: var(--cyan);
  color: #030712;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

/* ─────────────────────────────────────────────
   HERO COMMUNITY MILESTONES HUD (SPRINT 43)
───────────────────────────────────────────── */
.hero-milestones-hud {
  margin: 28px auto 20px;
  max-width: 680px;
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.1), inset 0 0 15px rgba(0, 240, 255, 0.05);
  position: relative;
}

.hero-milestones-hud::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hud-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39FF14;
  box-shadow: 0 0 8px #39FF14;
  animation: hud-pulse 1.8s infinite ease-in-out;
}

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

.hud-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
}

.hud-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.hud-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3px;
}

.hud-svg {
  width: 18px;
  height: 18px;
}

.hud-svg-cyan {
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

.hud-svg-gold {
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

.cond-icon svg,
.loot-icon svg,
.inline-svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
}

.step-icon svg,
.step-svg {
  width: 36px;
  height: 36px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
  margin-bottom: 16px;
  display: block;
}

.feature-icon svg,
.feature-svg {
  width: 30px;
  height: 30px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
  margin-bottom: 14px;
  display: block;
}

.hud-val {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.hud-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.hud-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 600px) {
  .hud-grid {
    flex-direction: column;
    gap: 14px;
  }
  .hud-divider {
    width: 60%;
    height: 1px;
  }
  .hero-milestones-hud {
    padding: 14px 16px;
    margin: 20px auto 16px;
  }
}

