/* ═══════════════════════════════════════════
   WISP / LOCAL-LINK — Design System
   Neon-Dark, AAA Gaming, Gen Z Aesthetics
   ═══════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ─── CSS Custom Properties (Design Tokens) ─── */
:root {
  /* Core Palette */
  --bg-primary: #06060e;
  --bg-secondary: #0d0d1a;
  --bg-card: rgba(14, 14, 28, 0.65);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Neon Accents */
  --neon-cyan: #04D9FF;
  --neon-lime: #C1DF1F;
  --neon-magenta: #FC0FC0;
  --neon-violet: #8B5CF6;
  --neon-amber: #FFD700;

  /* Gradients */
  --grad-aurora: linear-gradient(135deg, #04D9FF 0%, #8B5CF6 40%, #FC0FC0 100%);
  --grad-hero: linear-gradient(180deg, transparent 0%, #06060e 100%);
  --grad-card: linear-gradient(135deg, rgba(4, 217, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  --grad-cta: linear-gradient(135deg, #04D9FF 0%, #8B5CF6 50%, #FC0FC0 100%);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.6);
  --text-muted: rgba(240, 240, 245, 0.35);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  /* Borders */
  --border-glass: 1px solid rgba(255, 255, 255, 0.06);
  --border-glow: 1px solid rgba(4, 217, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --glow-cyan: 0 0 40px rgba(4, 217, 255, 0.15), 0 0 80px rgba(4, 217, 255, 0.05);
  --glow-magenta: 0 0 40px rgba(252, 15, 192, 0.15);
  --glow-violet: 0 0 40px rgba(139, 92, 246, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-smooth: 400ms var(--ease-out-expo);
  --transition-slow: 800ms var(--ease-out-expo);
}

/* ─── Language Switcher ─── */
.lang-switcher {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  gap: 2px;
  background: rgba(14, 14, 28, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: 20px;
  padding: 3px;
  transition: all 0.4s var(--ease-out-expo);
}

@media (max-width: 480px) {
  .lang-switcher {
    top: 1rem;
    right: 1rem;
  }
}

.lang-opt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-opt:hover {
  color: var(--text-secondary);
}

.lang-opt.active {
  color: var(--neon-cyan);
  background: rgba(4, 217, 255, 0.1);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--neon-magenta);
}

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

/* ─── Typography ─── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow {
  text-shadow: 0 0 30px rgba(4, 217, 255, 0.4), 0 0 60px rgba(4, 217, 255, 0.1);
}

.text-mono {
  font-family: var(--font-mono);
}

/* ─── Custom Cursor ─── */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(4, 217, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--neon-magenta);
}

@media (hover: none) {

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   PAGE TAB NAVIGATION
   ═══════════════════════════════════════════ */
.page-tabs {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page-tabs.visible {
  opacity: 1;
}

.page-tabs-inner {
  display: flex;
  gap: 4px;
  background: rgba(6, 6, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 4px;
}

.page-tab {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1.4em;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: all var(--transition-smooth);
  white-space: nowrap;
}

.page-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.page-tab.active {
  color: #000;
  background: var(--grad-cta);
  box-shadow: 0 0 20px rgba(4, 217, 255, 0.2);
}

.page-tab-icon {
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .page-tabs {
    top: var(--space-sm);
  }

  .page-tab {
    padding: 0.5em 1em;
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  opacity: 0;
  animation: logoReveal 1.5s var(--ease-out-expo) forwards;
  filter: drop-shadow(0 0 20px rgba(4, 217, 255, 0.4));
}

.preloader-bar-container {
  width: clamp(200px, 40vw, 320px);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--grad-aurora);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.preloader-percent {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

/* ═══════════════════════════════════════════
   SECTION : HERO
   ═══════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  /* Let clicks pass through the center gap */
}

.hero-top {
  position: absolute;
  top: clamp(60px, 8vh, 100px);
  /* Pushed far up */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  pointer-events: auto;
  /* Re-enable for buttons and text selection */
  padding: 0 var(--space-md);
}

.hero-bottom {
  position: absolute;
  bottom: clamp(40px, 6vh, 80px);
  /* Pushed far down */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  pointer-events: auto;
  padding: 0 var(--space-md);
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  border: 1px solid rgba(4, 217, 255, 0.3);
  padding: 0.4em 1.2em;
  border-radius: 100px;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
  background: rgba(4, 217, 255, 0.05);
}

.hero-title {
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  /* Slightly smaller to fit the sphere */
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 0;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto var(--space-lg);
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon-cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Hero gradient overlay at bottom */
.hero-gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-cta);
  color: #000;
  box-shadow: 0 0 30px rgba(4, 217, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 50px rgba(4, 217, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: var(--border-glow);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(4, 217, 255, 0.08);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   SECTION: FEATURES / GAMEPLAY
   ═══════════════════════════════════════════ */
#features {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-lime);
  margin-bottom: var(--space-sm);
}

/* ═══════════════════════════════════════════
   SECTION: MOMENTS / LIVE FEED
   ═══════════════════════════════════════════ */
#moments {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  background: linear-gradient(to bottom, transparent, rgba(4, 217, 255, 0.03), transparent);
}

.moments-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.moment-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

.moment-group.right {
  align-self: flex-end;
}

.moment-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: 1rem;
}

.chat-bubble {
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: fit-content;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bubble-q {
  background: rgba(4, 217, 255, 0.05);
  border-left: 3px solid var(--neon-cyan);
  border-bottom-left-radius: 0.25rem;
  align-self: flex-start;
}

.bubble-a {
  background: rgba(255, 0, 255, 0.05);
  border-left: 3px solid var(--neon-magenta);
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
  margin-left: 2rem;
}

.bubble-a.sub {
  margin-top: -0.75rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .moment-group {
    max-width: 100%;
  }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-sm);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 280px;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.bento-card:hover::after {
  opacity: 1;
}

/* Individual Card Glows */
#card-rooms:hover { box-shadow: 0 20px 40px rgba(4, 217, 255, 0.15); border-color: var(--neon-cyan); }
#card-karma:hover { box-shadow: 0 20px 40px rgba(188, 255, 0, 0.15); border-color: var(--neon-lime); }
#card-ghost:hover { box-shadow: 0 20px 40px rgba(176, 38, 255, 0.15); border-color: var(--neon-violet); }
#card-map:hover { box-shadow: 0 20px 40px rgba(255, 0, 255, 0.15); border-color: var(--neon-magenta); }
#card-wallet:hover { box-shadow: 0 20px 40px rgba(255, 191, 0, 0.15); border-color: var(--neon-amber); }

/* Span variations */
.bento-card.span-2 {
  grid-column: span 2;
}

.bento-card.span-3,
.bento-card.span-full {
  grid-column: 1 / -1;
}

.bento-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  display: block;
}

.floating-flame {
  animation: floatFlame 3s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(4, 217, 255, 0.5));
}

@keyframes floatFlame {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
  position: relative;
  z-index: 1;
}

.bento-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.bento-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.bento-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  border-radius: 100px;
  margin-top: var(--space-sm);
  position: relative;
  z-index: 1;
}

.badge-cyan {
  background: rgba(4, 217, 255, 0.12);
  color: var(--neon-cyan);
}

.badge-lime {
  background: rgba(193, 223, 31, 0.12);
  color: var(--neon-lime);
}

.badge-magenta {
  background: rgba(252, 15, 192, 0.12);
  color: var(--neon-magenta);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.12);
  color: var(--neon-violet);
}

.badge-amber {
  background: rgba(255, 215, 0, 0.12);
  color: var(--neon-amber);
}

/* ═══════════════════════════════════════════
   SECTION: L'ERA DEI PIONIERI
   ═══════════════════════════════════════════ */
#pioneers {
  padding: var(--space-2xl) var(--space-md) var(--space-xl);
  padding-top: calc(var(--space-2xl) + 2rem);
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 60% 50%, rgba(4, 217, 255, 0.04) 0%, transparent 60%),
    var(--bg-primary);
}

.pioneer-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.pioneer-copy {
  flex: 1;
  min-width: 0;
}

/* #pioneers .reveal-up is handled dynamically via GSAP */


.pioneer-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-weight: 300;
}

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

/* Stats */
.pioneer-stats {
  margin-bottom: var(--space-md);
}

.pioneer-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pioneer-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.pioneer-stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Urgency Badge */
.pioneer-urgency {
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
}

.pioneer-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-amber);
  margin-bottom: 0.4rem;
  animation: pulseAmber 2s ease-in-out infinite;
}

@keyframes pulseAmber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pioneer-urgency-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Visual / Canvas */
.pioneer-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

/* ─── 3D SCENE ─── */
.pioneer-3d-scene {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 480px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
  z-index: 5;
}

.pioneer-building-css {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(35deg);
  transition: transform 0.1s linear;
}

/* ─── BUILDING TIERS ─── */
.building-tier {
  position: absolute;
  transform-style: preserve-3d;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.building-tier .face {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform-origin: center bottom;
  border: 1px solid rgba(4, 217, 255, 0.35);
  box-shadow: inset 0 0 20px rgba(4, 217, 255, 0.06);
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  pointer-events: none;
  overflow: hidden;
}

/* Face backgrounds per tier for depth */
.tier-base .face { background: linear-gradient(180deg, rgba(4, 217, 255, 0.12) 0%, rgba(6, 6, 14, 0.85) 100%); }
.tier-tower .face { background: linear-gradient(180deg, rgba(4, 217, 255, 0.10) 0%, rgba(6, 6, 14, 0.80) 100%); }
.tier-top .face { background: linear-gradient(180deg, rgba(4, 217, 255, 0.14) 0%, rgba(6, 6, 14, 0.75) 100%); }
.tier-base .face.top, .tier-tower .face.top, .tier-top .face.top {
  background: rgba(4, 217, 255, 0.18);
  border-color: rgba(4, 217, 255, 0.4);
}

/* Right faces: brighter (light side) */
.building-tier .face.right {
  background: linear-gradient(180deg, rgba(4, 217, 255, 0.18) 0%, rgba(6, 6, 14, 0.7) 100%);
  border-color: rgba(4, 217, 255, 0.45);
}

/* Left faces: darker (shadow side) */
.building-tier .face.left {
  background: linear-gradient(180deg, rgba(4, 217, 255, 0.06) 0%, rgba(6, 6, 14, 0.9) 100%);
  border-color: rgba(4, 217, 255, 0.2);
}

/* Tier dimensions */
.tier-base  { --w: 160px; --h: 40px;  --d: 80px; --hw: 80px; --hd: 40px; }
.tier-tower { --w: 120px; --h: 160px; --d: 60px; --hw: 60px; --hd: 30px; }
.tier-top   { --w: 80px;  --h: 60px;  --d: 40px; --hw: 40px; --hd: 20px; }

/* Tier positions — stacked from ground up */
.tier-base  { bottom: 0; }
.tier-tower { bottom: 40px; }
.tier-top   { bottom: 200px; }

/* ─── FACE TRANSFORMS ─── */
/* Each face forms a proper closed box around the tier's center */
.building-tier .face.front {
  width: var(--w); height: var(--h);
  transform: translateX(-50%) translateZ(var(--hd));
}
.building-tier .face.back {
  width: var(--w); height: var(--h);
  transform: translateX(-50%) translateZ(calc(var(--hd) * -1)) rotateY(180deg);
}
.building-tier .face.left {
  width: var(--d); height: var(--h);
  left: 0;
  transform: translateX(-100%) rotateY(-90deg);
  transform-origin: right bottom;
}
.building-tier .face.right {
  width: var(--d); height: var(--h);
  left: auto;
  right: -50%;
  transform: rotateY(90deg);
  transform-origin: left bottom;
}
.building-tier .face.top {
  width: var(--w); height: var(--d);
  bottom: auto;
  top: 0;
  transform: translateX(-50%) rotateX(90deg);
  transform-origin: center top;
}

/* ─── WINDOW GRIDS ─── */
.window-grid {
  position: absolute;
  inset: 4px;
  pointer-events: none;
  opacity: 0.6;
}

/* Window patterns for each face size */
.grid-base-front {
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 14px, rgba(4, 217, 255, 0.15) 14px, rgba(4, 217, 255, 0.15) 16px),
              repeating-linear-gradient(0deg, transparent 0px, transparent 10px, rgba(4, 217, 255, 0.1) 10px, rgba(4, 217, 255, 0.1) 12px);
}

.grid-base-side {
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 16px, rgba(4, 217, 255, 0.12) 16px, rgba(4, 217, 255, 0.12) 18px),
              repeating-linear-gradient(0deg, transparent 0px, transparent 10px, rgba(4, 217, 255, 0.08) 10px, rgba(4, 217, 255, 0.08) 12px);
}

.grid-tower-front {
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 18px, rgba(4, 217, 255, 0.18) 18px, rgba(4, 217, 255, 0.18) 20px),
              repeating-linear-gradient(0deg, transparent 0px, transparent 12px, rgba(4, 217, 255, 0.12) 12px, rgba(4, 217, 255, 0.12) 14px);
}

.grid-tower-side {
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 20px, rgba(4, 217, 255, 0.15) 20px, rgba(4, 217, 255, 0.15) 22px),
              repeating-linear-gradient(0deg, transparent 0px, transparent 12px, rgba(4, 217, 255, 0.1) 12px, rgba(4, 217, 255, 0.1) 14px);
}

.grid-top-front {
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 14px, rgba(4, 217, 255, 0.2) 14px, rgba(4, 217, 255, 0.2) 16px),
              repeating-linear-gradient(0deg, transparent 0px, transparent 10px, rgba(4, 217, 255, 0.14) 10px, rgba(4, 217, 255, 0.14) 12px);
}

.grid-top-side {
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 16px, rgba(4, 217, 255, 0.18) 16px, rgba(4, 217, 255, 0.18) 18px),
              repeating-linear-gradient(0deg, transparent 0px, transparent 10px, rgba(4, 217, 255, 0.12) 10px, rgba(4, 217, 255, 0.12) 12px);
}

/* ─── NEON ACCENT STRIPS ─── */
.neon-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan), 0 0 20px rgba(4, 217, 255, 0.3);
}

.neon-strip.strip-v {
  width: 2px;
  height: 100%;
  bottom: auto;
  top: 0;
  right: 0;
  left: auto;
  background: var(--neon-magenta);
  box-shadow: 0 0 8px var(--neon-magenta), 0 0 20px rgba(252, 15, 192, 0.3);
}

/* ─── SPIRE & BEACON ─── */
.building-spire {
  position: absolute;
  bottom: 260px;
  left: 50%;
  width: 3px;
  height: 50px;
  background: linear-gradient(to top, var(--neon-cyan), var(--neon-magenta));
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(4, 217, 255, 0.5);
}

.spire-beacon {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--neon-magenta);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--neon-magenta), 0 0 30px rgba(252, 15, 192, 0.5);
  animation: beaconPulse 2s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--neon-magenta), 0 0 30px rgba(252, 15, 192, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 6px var(--neon-magenta), 0 0 15px rgba(252, 15, 192, 0.3); }
}

/* ─── BILLBOARD ─── */
.pioneer-billboard-css {
  position: absolute;
  bottom: 310px;
  left: 50%;
  transform: translateX(-50%) translateZ(65px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.billboard-stem {
  width: 2px;
  height: 18px;
  background: rgba(4, 217, 255, 0.4);
}

.billboard-content {
  background: rgba(6, 6, 14, 0.92);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(4, 217, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  box-shadow: 0 0 20px rgba(4, 217, 255, 0.2), 0 8px 24px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  backdrop-filter: blur(12px);
  animation: billboardGlow 3s ease-in-out infinite alternate;
}

@keyframes billboardGlow {
  0% { box-shadow: 0 0 15px rgba(4, 217, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.6); border-color: rgba(4, 217, 255, 0.4); }
  100% { box-shadow: 0 0 25px rgba(4, 217, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.6); border-color: rgba(4, 217, 255, 0.65); }
}

.bb-tag {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bb-name {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ─── GROUND GLOW ─── */
.pioneer-ground-glow {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translateX(-50%) rotateX(90deg);
  background: radial-gradient(circle, rgba(4, 217, 255, 0.15) 0%, rgba(4, 217, 255, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: groundPulse 4s ease-in-out infinite alternate;
}

@keyframes groundPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ─── GRID FLOOR ─── */
.pioneer-grid-css {
  position: absolute;
  width: 350px;
  height: 350px;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%) rotateX(90deg) translateZ(-5px);
  background-image:
    linear-gradient(rgba(4, 217, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 217, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 20%, transparent 70%);
  pointer-events: none;
}

.pioneer-data-credit {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Responsive Pioneer */
@media (max-width: 900px) {
  .pioneer-layout { flex-direction: column; gap: var(--space-lg); }
  .pioneer-visual { order: -1; min-height: 480px; }
  .pioneer-3d-scene { transform: scale(0.85); }
}

@media (max-width: 480px) {
  .pioneer-3d-scene { transform: scale(0.65); height: 380px; }
  .pioneer-visual { min-height: 380px; }
}

/* ═══════════════════════════════════════════
   SECTION: BUSINESS
   ═══════════════════════════════════════════ */
#business {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.business-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.business-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-amber), var(--neon-cyan));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.business-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.1), var(--shadow-card);
}

.business-card:hover::after {
  opacity: 1;
}

.business-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.business-card-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
}

.business-card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.business-card-text strong {
  color: var(--neon-amber);
}

.business-card-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-sm);
}

.business-card-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35em 0;
  padding-left: 1.4em;
  position: relative;
}

.business-card-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--neon-amber);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Business CTA Bar */
.business-cta {
  max-width: 1200px;
  margin: 0 auto;
}

.business-cta-inner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06) 0%, rgba(4, 217, 255, 0.06) 100%);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  backdrop-filter: blur(20px);
}

.business-cta-text h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.business-cta-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

  .business-grid .business-card:last-child {
    grid-column: span 2;
  }
}

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

  .business-grid .business-card:last-child {
    grid-column: span 1;
  }

  .business-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════
   BUSINESS PAGE — Hero, Steps, Pricing
   ═══════════════════════════════════════════ */

/* Business Hero */
.biz-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 215, 0, 0.06) 0%, transparent 60%),
    var(--bg-primary);
}

/* Steps Flow */
#biz-flow {
  padding: var(--space-2xl) var(--space-md);
}

.biz-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.biz-step {
  flex: 1;
  max-width: 320px;
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  text-align: center;
}

.biz-step-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-amber), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.biz-step-title {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.biz-step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.biz-step-arrow {
  font-size: 1.8rem;
  color: var(--neon-amber);
  opacity: 0.3;
  padding-top: var(--space-xl);
  user-select: none;
}

/* Billboard Hologram Mockup */
.billboard-mockup {
  position: relative;
  height: 400px;
  background: radial-gradient(circle at center, rgba(4, 217, 255, 0.08), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  perspective: 1200px;
}

/* 3D Container (MapLibre Style Extrusion) */
.bm-cube {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 80px;
  /* Base Width */
  height: 120px;
  /* Base Depth */
  transform-style: preserve-3d;
  /* Typical Map vector pitch/bearing */
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-30deg);
  z-index: 2;
  box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.8);
}

.bm-face {
  position: absolute;
}

/* Asphalt Map Base */
.bm-street {
  width: 280px;
  height: 320px;
  background: #11131c;
  /* Dark asphalt */
  border-radius: var(--radius-md);
  border: 1px solid #1e2130;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 20px 20px 60px rgba(0, 0, 0, 0.9);
  /* Center the 280x320 base exactly underneath the 80x120 building */
  transform: translate(-100px, -100px) translateZ(-1px);
}

/* Skyscraper Roof */
.bm-top {
  width: 80px;
  height: 120px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateZ(160px);
  /* Extrusion Height */
}

/* Skyscraper Walls */
.bm-front {
  width: 80px;
  /* Width (X dimension) */
  height: 160px;
  /* Height (Z dimension) */
  background: linear-gradient(to bottom, var(--neon-magenta), rgba(252, 15, 192, 0.05));
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transform-origin: top;
  transform: translateY(120px) translateZ(160px) rotateX(-90deg);
}

.bm-left {
  width: 160px;
  /* Height (Z dimension) */
  height: 120px;
  /* Depth (Y dimension) */
  background: linear-gradient(to right, var(--neon-cyan), rgba(4, 217, 255, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transform-origin: left;
  transform: translateZ(160px) rotateY(90deg);
}

.bm-back {
  width: 80px;
  height: 160px;
  background: linear-gradient(to bottom, var(--neon-cyan), rgba(4, 217, 255, 0.05));
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  transform-origin: top;
  transform: translateZ(160px) rotateX(-90deg);
}

.bm-right {
  width: 160px;
  height: 120px;
  background: linear-gradient(to right, var(--neon-magenta), rgba(252, 15, 192, 0.05));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transform-origin: left;
  transform: translateX(80px) translateZ(160px) rotateY(90deg);
}

.bm-hologram {
  position: absolute;
  top: 60px;
  /* Center of the Y axis (120/2) */
  left: 40px;
  /* Center of the X axis (80/2) */
  transform-style: preserve-3d;
  border: 1.5px solid var(--neon-cyan);
  background: rgba(4, 217, 255, 0.08);
  /* slightly more visible */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 40px rgba(4, 217, 255, 0.4), inset 0 0 20px rgba(4, 217, 255, 0.2);
  text-align: center;
  z-index: 3;
  animation: floatSolid 4s ease-in-out infinite;
}

.bm-hologram::after {
  display: none;
  /* No floating beam */
}

.bm-text {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--neon-cyan);
  white-space: nowrap;
}

.bm-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: var(--neon-cyan);
  filter: blur(90px);
  opacity: 0.25;
  animation: pulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatSolid {

  0%,
  100% {
    transform: translateZ(190px) translate(-50%, -100%) rotateX(-90deg) rotateY(-30deg);
  }

  50% {
    transform: translateZ(210px) translate(-50%, -100%) rotateX(-90deg) rotateY(-30deg);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Features Section */
#biz-features {
  padding: var(--space-2xl) var(--space-md);
}

/* Pricing Grid */
#biz-pricing {
  padding: var(--space-2xl) var(--space-md);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  position: relative;
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: rgba(4, 217, 255, 0.25);
  box-shadow: var(--glow-cyan);
  background: linear-gradient(135deg, rgba(4, 217, 255, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%),
    var(--bg-card);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-cta);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.3em 1em;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card-header {
  text-align: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-glass);
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin-top: var(--space-xs);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.5em 0;
  padding-left: 1.5em;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--neon-lime);
  font-weight: 700;
}

.pricing-card.featured .pricing-price {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Business Responsive */
@media (max-width: 768px) {
  .biz-steps {
    flex-direction: column;
    align-items: center;
  }

  .biz-step {
    max-width: 100%;
  }

  .biz-step-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

═══════════════════════════════════════════ */ #social-proof {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto var(--space-xl);
}

.stat-item {
  text-align: center;
  will-change: transform, opacity;
}

.stat-item.stat-highlight {
  flex: 1;
  max-width: 400px;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 10vw, 6rem); /* Increased size precisely for highlighting */
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
  filter: drop-shadow(0 0 20px rgba(4, 217, 255, 0.3));
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
}


/* ═══════════════════════════════════════════
   SECTION: CTA / BOSS FIGHT
   ═══════════════════════════════════════════ */
#cta {
  padding: var(--space-2xl) var(--space-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.cta-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-console {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(30px);
  box-shadow: var(--glow-cyan), var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cta-console::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(4, 217, 255, 0.05), transparent, rgba(252, 15, 192, 0.05), transparent);
  animation: consoleSpin 8s linear infinite;
}

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

.cta-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.cta-form {
  display: flex;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta-input {
  flex: 1;
  padding: 0.9em 1.4em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-smooth);
}

.cta-input::placeholder {
  color: var(--text-muted);
}

.cta-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(4, 217, 255, 0.15);
  background: rgba(4, 217, 255, 0.04);
}

.cta-queue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.cta-queue strong {
  color: var(--neon-cyan);
  font-weight: 500;
}

/* Success State */
.cta-success {
  display: none;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-success.active {
  display: block;
  animation: successPop 0.6s var(--ease-out-back) forwards;
}

@keyframes successPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.cta-success-icon {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
}

.cta-success-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.cta-success-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.cta-share-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-lime);
  padding: var(--space-sm);
  background: rgba(193, 223, 31, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(193, 223, 31, 0.15);
}

/* ═══════════════════════════════════════════
   SECTION: FOOTER
   ═══════════════════════════════════════════ */
#footer {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  margin-bottom: var(--space-sm);
}

.footer-logo-img {
  height: 50px; /* Bigger for better visibility */
  width: auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.5));
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: var(--border-glass);
  font-size: 1.3rem;
  transition: all var(--transition-smooth);
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(4, 217, 255, 0.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-easter-egg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: none;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
}

.footer-easter-egg:hover {
  background: var(--neon-magenta);
  box-shadow: 0 0 20px var(--neon-magenta);
  transform: scale(2);
}

/* ═══════════════════════════════════════════
   AMBIENT PARTICLES (Background)
   ═══════════════════════════════════════════ */
.ambient-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-particles .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(-10vh) translateX(50px);
  }
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

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

  .bento-card.span-2 {
    grid-column: span 2;
  }
}

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

  .bento-card.span-2 {
    grid-column: span 1;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

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

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-links {
    gap: var(--space-lg);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-desc {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-console {
    padding: var(--space-lg) var(--space-md);
  }
}

/* ═══════════════════════════════════════════
   UTILITY ANIMATIONS (GSAP placeholders)
   ═══════════════════════════════════════════ */
/* .reveal-up, .reveal-scale, etc. are handled dynamically by GSAP */


/* ─── Section Separator Glow Lines ─── */
.section-divider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(4, 217, 255, 0.2), rgba(139, 92, 246, 0.2), rgba(252, 15, 192, 0.2), transparent);
}

/* ─── Breathing / Pulse subtle animation ─── */
@keyframes breathe {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

/* ─── Easter Egg Theme Flip ─── */
body.theme-flip {
  --bg-primary: #f0f0f5;
  --bg-secondary: #e0e0e8;
  --bg-card: rgba(255, 255, 255, 0.8);
  --text-primary: #06060e;
  --text-secondary: rgba(6, 6, 14, 0.6);
  --text-muted: rgba(6, 6, 14, 0.35);
  --border-glass: 1px solid rgba(0, 0, 0, 0.08);
}

/* ─── Top-Left Branding ─── */
.top-branding {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.top-branding:hover {
  background: rgba(4, 217, 255, 0.08);
  border-color: rgba(4, 217, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.top-branding-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(4, 217, 255, 0.5));
}

.top-branding-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

@media (max-width: 480px) {
  .top-branding {
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
  }
  .top-branding-name {
    display: none;
  }
}

/* ═══════════════════════════════════════════
   SECRET CHAT EASTER EGG (Terminal)
   ═══════════════════════════════════════════ */
.secret-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(6, 6, 14, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s var(--ease-out-expo);
}

.secret-chat-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.terminal-window {
  width: 90%;
  max-width: 600px;
  background: #000;
  border: 1px solid rgba(4, 217, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(4, 217, 255, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.close-chat {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.terminal-body {
  height: 350px;
  padding: 1.5rem;
  overflow-y: auto;
  color: var(--neon-cyan);
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-line { margin-bottom: 0.8rem; }
.chat-line .time { color: var(--text-muted); margin-right: 0.8rem; opacity: 0.6; }
.chat-line .sender { color: var(--neon-magenta); margin-right: 0.5rem; font-weight: 700; }

.cursor-block {
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: var(--neon-cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 5px;
}

@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 480px) {
  .terminal-body { height: 400px; padding: 1rem; font-size: 0.8rem; }
}
