/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  --primary-blue: #64c8ff;
  --secondary-purple: #9d50ff;
  --accent-green: #A1E1D6;
  --success-green: #4CAF50;
  --success-green-dark: #45a049;
  
  --bg-dark: #0a0a0a;
  --bg-card: rgba(30, 30, 30, 0.4);
  --bg-card-hover: rgba(30, 30, 30, 0.6);
  --bg-header: rgba(30, 30, 30, 0.9);
  --bg-gradient: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  
  --text-primary: #f0f0f0;
  --text-secondary: #e0e0e0;
  --text-muted: #b0b0b0;
  --text-dark: #121212;
  --text-gray: #888;
  
  --border-primary: rgba(100, 200, 255, 0.2);
  --border-hover: rgba(100, 200, 255, 0.6);
  --border-muted: #444;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-blue) 50%, var(--secondary-purple) 100%);
  --gradient-button: linear-gradient(135deg, var(--primary-blue) 0%, #5ab3e8 100%);
  
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 25px;
  
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  
  --shadow-sm: 0 4px 15px rgba(100, 200, 255, 0.3);
  --shadow-md: 0 8px 25px rgba(100, 200, 255, 0.2);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(100, 200, 255, 0.3);
  
  --transition-fast: 0.2s ease;
  --transition-standard: 0.3s ease;
  --transition-slow: 0.4s ease;
}

/* ========== FONT OVERRIDES ========== */
.hero-title,
.hero-subtitle,
.section-title,
.phase-title,
.about-subtitle,
.highlight-text,
.info-label,
.popup-content h3 {
  font-family: 'Orbitron', Arial, sans-serif;
}
.hero-title,
.section-title { 
  font-weight: 700; 
}
.hero-subtitle,
.about-subtitle,
.highlight-text,
.info-label,
.popup-content h3 { 
  font-weight: 400; 
}

/* ========== BASE STYLES ========== */
* {
  box-sizing: border-box;
}

html, body { 
  min-height: 100%; 
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-secondary);
  text-align: center;
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(100, 200, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(161, 225, 214, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(157, 80, 255, 0.08) 0%, transparent 50%);
  animation: backgroundShift 25s ease-in-out infinite;
  z-index: -1;
  will-change: transform;
}

@keyframes backgroundShift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-15px, -15px) scale(1.02); }
  66% { transform: translate(15px, -8px) scale(0.98); }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========== HEADER ========== */
header {
  background: var(--bg-header);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-primary);
}

.logo-container {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--transition-standard);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container:hover { 
  transform: scale(1.1) rotate(5deg); 
}

.logo-container:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 4px;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 15px rgba(100, 200, 255, 0.4));
}

.button-group { 
  display: flex; 
  gap: var(--spacing-sm); 
  align-items: center; 
}

.info-nav-btn { 
  display: none; 
}

@media (min-width: 769px) { 
  .info-nav-btn { 
    display: block; 
  } 
}

.rive-btn {
  width: 80px;
  height: 44px;
  cursor: pointer;
  transition: all var(--transition-standard);
  overflow: visible;
  position: relative;
  border-radius: var(--radius-xs);
}

.rive-btn:hover {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 6px 12px rgba(100, 200, 255, 0.4));
}

.rive-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.rive-btn canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
}

/* Mobile Rive button scaling and info button styling */
@media (max-width: 768px) {
  .rive-btn {
    width: 60px;
    height: 36px;
  }

  .info-nav-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: var(--radius-xs);
    background: transparent;
    width: 32px !important;
    height: 32px !important;
    position: relative;
  }

  .info-nav-btn canvas {
    display: none;
  }

  .info-nav-btn::before {
    content: 'i';
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  margin: 0 auto;
  max-width: 1200px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0 0 var(--spacing-md) 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(100, 200, 255, 0.3);
  animation: titleGlow 4s ease-in-out infinite alternate;
  line-height: 1.1;
}

@keyframes titleGlow {
  from { 
    filter: brightness(1) drop-shadow(0 0 20px rgba(100, 200, 255, 0.3)); 
  }
  to { 
    filter: brightness(1.1) drop-shadow(0 0 35px rgba(100, 200, 255, 0.5)); 
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  margin: 0 0 var(--spacing-lg) 0;
  letter-spacing: 0.5px;
}

/* ========== VIDEO WRAPPER ========== */
.video-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-primary);
  margin: 0 auto;
  transform: translateZ(0);
  transition: all var(--transition-standard);
  border: 1px solid var(--border-primary);
}

.video-wrapper:hover {
  transform: translateZ(0) scale(1.02);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-hover),
    0 0 30px rgba(100, 200, 255, 0.25);
}

.video-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: transparent;
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity var(--transition-standard);
}

.video-wrapper:hover::before { 
  opacity: 0.9; 
}

.video-wrapper iframe {
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 17px;
  z-index: 2;
  border: none;
}

/* ========== SCANNER SECTION ========== */
.scanner-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: var(--spacing-md) 30px;
  margin: 0;
}

#rive-canvas {
  width: 100%;
  max-width: 450px;
  height: auto;
  aspect-ratio: 1.9 / 1;
  display: block;
  pointer-events: none;
  filter: drop-shadow(var(--shadow-glow));
}

@media (min-width: 769px) {
  .scanner-section { 
    min-height: 180px; 
  }
  #rive-canvas { 
    max-width: 550px; 
  }
}

/* ========== INFO ITEMS ========== */
.info-item {
  margin: 25px 0;
  padding: 30px 25px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-slow);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

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

.info-item:hover::before { 
  left: 100%; 
}

.info-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.info-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.info-label .emoji {
  font-size: 24px;
  animation: bounce 2.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { 
    transform: translateY(0); 
  }
  40% { 
    transform: translateY(-8px); 
  }
  60% { 
    transform: translateY(-4px); 
  }
}

.info-value {
  font-size: 20px;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  word-break: break-all;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.info-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ========== CA CONTAINER ========== */
.ca-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.ca-value {
  font-size: 18px;
  color: var(--primary-blue);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  padding: var(--spacing-sm) 24px;
  background: rgba(100, 200, 255, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-standard);
  font-weight: 500;
}

.ca-value:hover {
  background: rgba(100, 200, 255, 0.15);
  border-color: var(--border-hover);
}

/* ========== SPLIT ALLOCATION SECTION ========== */
.allocation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 25px 0;
}

.allocation-item {
  padding: 30px 25px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-slow);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

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

.allocation-item:hover::before { 
  left: 100%; 
}

.allocation-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.allocation-percentage {
  font-size: 36px;
  color: var(--text-primary);
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.allocation-label {
  font-size: 16px;
  color: var(--primary-blue);
  font-family: 'Orbitron', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .allocation-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* ========== FLYWHEEL SECTION ========== */
.flywheel-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg) auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.flywheel-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  position: relative;
}

.flywheel-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(100, 200, 255, 0.2) 25%,
    rgba(100, 200, 255, 0.3) 50%,
    rgba(100, 200, 255, 0.2) 75%,
    transparent 100%
  );
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0.4;
}

.flywheel-step {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: clamp(25px, 4vw, 35px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-standard);
  z-index: 1;
}

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

.flywheel-step:hover::before {
  left: 100%;
}

.flywheel-step:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.flywheel-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--text-dark);
  margin: 0 auto var(--spacing-sm) auto;
  box-shadow: 0 4px 15px rgba(100, 200, 255, 0.4);
  position: relative;
  z-index: 2;
}

.flywheel-title {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--primary-blue);
  margin: 0 0 var(--spacing-sm) 0;
  text-align: center;
}

.flywheel-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
}

.flywheel-split {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.flywheel-split-item {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
  border: 1px solid rgba(100, 200, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-standard);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.flywheel-split-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  opacity: 0.7;
  transition: all var(--transition-standard);
}

.flywheel-split-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(100, 200, 255, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-standard);
  border-radius: var(--radius-md);
  overflow: hidden;
  pointer-events: none;
}

.flywheel-split-item:hover {
  border-color: rgba(100, 200, 255, 0.6);
  background: linear-gradient(135deg, rgba(35, 35, 35, 0.9) 0%, rgba(25, 25, 25, 1) 100%);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(100, 200, 255, 0.25);
}

.flywheel-split-item:hover::before {
  opacity: 1;
  width: 4px;
}

.flywheel-split-item:hover::after {
  opacity: 1;
}

.flywheel-split-percent {
  font-size: 24px;
  font-weight: 600;
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1;
  min-width: 60px;
  opacity: 0.9;
}

.flywheel-split-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flywheel-split-label {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Orbitron', Arial, sans-serif;
  color: var(--primary-blue);
  letter-spacing: 0.5px;
  text-shadow: 0 0 15px rgba(100, 200, 255, 0.3);
}

.flywheel-split-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .flywheel-split-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .flywheel-split-percent {
    font-size: 40px;
    min-width: auto;
  }
}

.flywheel-arrow {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: var(--primary-blue);
  z-index: 3;
  opacity: 0.6;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { 
    opacity: 0.6;
    transform: translateY(-50%) translateX(0);
  }
  50% { 
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
  }
}

@media (max-width: 1024px) {
  .flywheel-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .flywheel-container::before {
    display: none;
  }

  .flywheel-arrow {
    display: none;
  }

  .flywheel-step {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .flywheel-split {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .flywheel-split-percent {
    font-size: 28px;
  }
}

/* ========== COPY BUTTON ========== */
.copy-btn {
  padding: var(--spacing-sm) 24px;
  background: var(--gradient-button);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition-standard);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

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

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

.copy-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(100, 200, 255, 0.5);
  background: linear-gradient(135deg, #5ab3e8 0%, var(--primary-blue) 100%);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.copy-btn:active { 
  transform: translateY(-1px) scale(1.02); 
}

/* ========== TREASURY BUTTONS ========== */
.treasury-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  margin-top: 16px;
}

.treasury-btn {
  padding: var(--spacing-sm) 20px;
  background: var(--gradient-button);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-standard);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  flex: 1;
  justify-content: center;
}

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

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

.treasury-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(100, 200, 255, 0.5);
  background: linear-gradient(135deg, #5ab3e8 0%, var(--primary-blue) 100%);
}

.treasury-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.treasury-btn:active { 
  transform: translateY(-1px) scale(1.02); 
}

@media (max-width: 768px) {
  .treasury-buttons {
    flex-direction: column;
  }
  
  .treasury-btn {
    width: 100%;
  }
}

/* ========== LOADING STATES ========== */
.loading {
  color: var(--text-gray);
  font-style: italic;
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 200, 255, 0.2),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== POPUPS ========== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
  padding: var(--spacing-md);
}

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

.popup-overlay.show { 
  display: flex; 
}

.popup-content {
  background: var(--bg-gradient);
  padding: 50px var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(100, 200, 255, 0.4);
  text-align: center;
  position: relative;
  max-width: 90%;
  max-width: min(90%, 500px);
  animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.popup-content h3 {
  margin: 0 0 15px 0;
  font-size: 28px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.popup-content p {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 35px;
  height: 35px;
  background: rgba(100, 200, 255, 0.2);
  border: 1px solid var(--primary-blue);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary-blue);
  transition: all var(--transition-standard);
  line-height: 1;
}

.close-btn:hover {
  background: rgba(100, 200, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(100, 200, 255, 0.5);
}

.close-btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* ========== NOTIFICATION ========== */
.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient-button);
  color: var(--text-dark);
  padding: 25px 50px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-slow);
  z-index: 1001;
  box-shadow: 0 8px 30px rgba(100, 200, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg-header);
  color: var(--text-secondary);
  padding: var(--spacing-md);
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

footer p {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.disclaimer-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--transition-fast);
  display: inline-block;
  margin-top: 5px;
}

.disclaimer-link:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

.disclaimer-link:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  max-width: 1200px;
  margin: clamp(60px, 10vw, 80px) auto;
  padding: 0 25px;
}

@media (min-width: 1250px) {
  .content-section {
    max-width: 100%;
    padding: 0 var(--spacing-lg);
  }
}

.section-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 50px) clamp(30px, 5vw, 40px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(100, 200, 255, 0.1);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-slow);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.section-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(161, 225, 214, 0.03) 0%, rgba(100, 200, 255, 0.03) 50%, rgba(157, 80, 255, 0.03) 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.section-container:hover::before { 
  opacity: 1; 
}

.section-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-hover), var(--shadow-glow);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin: 0 0 var(--spacing-lg) 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ========== ABOUT SECTION ========== */
.about-content { 
  max-width: 900px; 
  margin: 0 auto; 
  position: relative; 
  z-index: 1; 
}

.about-text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--text-primary);
  text-align: left;
}

.about-text strong {
  color: var(--primary-blue);
  text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
  font-weight: 600;
}

.about-subtitle {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--primary-blue);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  text-align: center;
  position: relative;
  font-weight: 500;
}

.about-subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.about-divider {
  width: 120px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 50px auto;
  border-radius: 2px;
  position: relative;
}

.about-divider::before,
.about-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

.about-divider::before { 
  left: -20px; 
}

.about-divider::after { 
  right: -20px; 
}

.about-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px var(--spacing-md);
  background: rgba(100, 200, 255, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

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

.highlight-item:hover::before { 
  left: 100%; 
}

.highlight-item:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--border-hover);
  background: rgba(100, 200, 255, 0.1);
  box-shadow: 0 12px 30px rgba(100, 200, 255, 0.3), var(--shadow-glow);
}

.highlight-icon {
  font-size: 50px;
  margin-bottom: 15px;
  animation: float 4s ease-in-out infinite;
}

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

.highlight-text {
  font-size: 18px;
  color: var(--primary-blue);
  text-align: center;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* ========== ROADMAP ========== */
.roadmap-container { 
  max-width: 900px; 
  margin: 0 auto; 
  position: relative; 
}

.roadmap-phase {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: 50px;
  position: relative;
}

.roadmap-phase:last-child { 
  margin-bottom: 0; 
}

.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.phase-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 4px solid var(--border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #666;
  z-index: 2;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.phase-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.roadmap-phase:hover .phase-number::before { 
  transform: translateX(100%); 
}

.roadmap-phase.completed .phase-number {
  background: linear-gradient(135deg, var(--success-green) 0%, var(--success-green-dark) 100%);
  border-color: var(--success-green);
  color: #fff;
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
}

.roadmap-phase.active .phase-number {
  background: var(--gradient-button);
  border-color: var(--primary-blue);
  color: var(--text-dark);
  box-shadow: 0 0 30px rgba(100, 200, 255, 0.6);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
}

.phase-line {
  width: 4px;
  flex-grow: 1;
  background: var(--border-muted);
  margin-top: 15px;
  border-radius: 2px;
  transition: all var(--transition-slow);
}

.roadmap-phase.completed .phase-line {
  background: linear-gradient(180deg, var(--success-green) 0%, var(--border-muted) 100%);
}

.roadmap-phase.active .phase-line {
  background: linear-gradient(180deg, var(--primary-blue) 0%, var(--border-muted) 100%);
}

.roadmap-phase:last-child .phase-line { 
  display: none; 
}

.phase-content {
  flex-grow: 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-primary);
  transition: all var(--transition-slow);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

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

.roadmap-phase:hover .phase-content::before { 
  left: 100%; 
}

.phase-content:hover {
  border-color: var(--border-hover);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(100, 200, 255, 0.3);
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.phase-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0;
  color: var(--primary-blue);
  font-weight: 500;
}

.phase-status {
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition-standard);
}

.phase-status.completed {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-green);
  border: 2px solid var(--success-green);
}

.phase-status.active {
  background: rgba(100, 200, 255, 0.2);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  animation: glow 2.5s infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(100, 200, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 20px rgba(100, 200, 255, 0.6);
    transform: scale(1.02);
  }
}

.phase-status.upcoming {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-gray);
  border: 2px solid var(--border-muted);
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.phase-list li {
  padding: var(--spacing-sm) 0;
  padding-left: 35px;
  position: relative;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  transition: all var(--transition-standard);
}

.phase-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 24px;
  transition: all var(--transition-standard);
}

.phase-list li:hover {
  color: #fff;
  transform: translateX(5px);
}

.phase-list li:hover::before {
  color: var(--accent-green);
  transform: scale(1.2);
}

.roadmap-phase.completed .phase-list li { 
  opacity: 0.9; 
}

.roadmap-phase.completed .phase-list li::before {
  content: '✓';
  color: var(--success-green);
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  header { 
    padding: var(--spacing-sm) var(--spacing-md); 
  }
  
  .hero-section { 
    padding: var(--spacing-lg) 15px 30px; 
  }
  
  .video-wrapper { 
    padding-bottom: 56.25%; 
  }
  
  .popup-content { 
    padding: var(--spacing-lg) 30px; 
    margin: var(--spacing-md); 
  }
  
  .content-section { 
    margin: var(--spacing-xl) auto; 
    padding: 0 var(--spacing-md); 
  }
  
  .section-container { 
    padding: 30px 25px; 
  }
  
  .section-title { 
    font-size: 2rem; 
    margin-bottom: 30px; 
  }
  
  .about-text { 
    font-size: 1rem; 
  }
  
  .about-highlight { 
    grid-template-columns: 1fr; 
    gap: var(--spacing-md); 
  }
  
  .roadmap-phase { 
    gap: var(--spacing-md); 
  }
  
  .phase-number { 
    width: 60px; 
    height: 60px; 
    font-size: 24px; 
  }
  
  .phase-content { 
    padding: 25px var(--spacing-md); 
  }
  
  .phase-title { 
    font-size: 1.3rem; 
  }
  
  .phase-list li { 
    font-size: 15px; 
    padding-left: 30px; 
  }
  
  .ca-container { 
    flex-direction: column; 
    gap: 15px; 
  }
  
  .rive-btn { 
    width: 70px; 
    height: 40px; 
  }

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

  .info-item {
    padding: 25px var(--spacing-md);
  }

  .copy-btn, .ca-value {
    width: 100%;
    justify-content: center;
  }

  .allocation-item {
    padding: 25px var(--spacing-md);
  }

  .allocation-percentage {
    font-size: 32px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll { 
  animation: slideInUp 0.8s ease-out; 
}

/* ========== PRINT STYLES ========== */
@media print {
  body::before,
  .video-wrapper,
  .scanner-section,
  .rive-btn,
  .copy-btn,
  header {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section-container {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
