/* ====================
   SECTION: BASE STYLES & THEME VARIABLES
   Purpose: Root variables, resets, typography, theme colors
   Lines: 1-90
   ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Backgrounds */
  --bg-primary: #FAFAF9;
  --bg-secondary: #F5F3F7;
  --bg-tertiary: #EBE8F0;
  --bg-card: #FFFFFF;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #52525B;
  --text-tertiary: #71717A;

  /* Borders */
  --border-primary: #E4E4E7;
  --border-secondary: #D4D4D8;

  /* Brand */
  --purple-600: #9333EA;
  --purple-700: #7C3AED;
  --blue-600: #3B82F6;
  --blue-700: #2563EB;
  --green-500: #10B981;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06);
  --shadow-purple: 0 4px 12px rgba(147, 51, 234, 0.15), 0 2px 6px rgba(147, 51, 234, 0.1);
}

.dark {
  --bg-primary: #0A0A0A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #0B1020;
  --bg-card: #1E293B;

  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-tertiary: #9CA3AF;

  --border-primary: rgba(255, 255, 255, 0.1);
  --border-secondary: rgba(255, 255, 255, 0.05);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-purple: 0 4px 12px rgba(147, 51, 234, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ====================
   SECTION: TYPOGRAPHY
   Purpose: Headings, text styles, and font formatting
   ==================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* ====================
   SECTION: GLASSMORPHISM
   Purpose: Glass effect utilities (.glass, .glass-light, .glass-heavy)
   ==================== */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(147, 51, 234, 0.12);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.1),
              0 2px 8px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .glass-light {
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-heavy {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.dark .glass-heavy {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====================
   SECTION: GRADIENT TEXT
   Purpose: Gradient text utilities for titles and headings
   ==================== */

.gradient-text {
  background: linear-gradient(to right, #C084FC, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(to right, #4ADE80, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====================
   SECTION: BUTTONS
   Purpose: Primary, secondary, and utility button styles
   ==================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #9333EA 0%, #3B82F6 100%);
  color: white;
  padding: 12px 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-purple);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.4), 0 6px 16px rgba(147, 51, 234, 0.25);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3), 0 2px 8px rgba(147, 51, 234, 0.2);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(147, 51, 234, 0.3);
  color: var(--text-primary);
  padding: 12px 32px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(59, 130, 246, 0.15));
  border-color: rgba(147, 51, 234, 0.6);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.25);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

.btn-large {
  padding: 16px 40px;
  font-size: 18px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-white {
  background: white;
  color: var(--purple-600);
  border: none;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.btn-white:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.btn-outline-white:active {
  transform: translateY(0) scale(0.98);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-nav {
  padding: 8px 20px;
  font-size: 14px;
}

/* ====================
   SECTION: BACKGROUND ORBS
   Purpose: Animated floating gradient orbs for visual interest
   ==================== */

.orbs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb-purple-large,
.orb-blue-medium,
.orb-cyan-small,
.orb-pink-tiny,
.orb-gradient-giant {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.orb-purple-large {
  width: 384px;
  height: 384px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, transparent 70%);
  filter: blur(48px);
  top: 10%;
  left: 5%;
  animation: float-rotate 20s ease-in-out infinite;
}

.orb-blue-medium {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  filter: blur(48px);
  bottom: 15%;
  right: 10%;
  animation: float-counter-rotate 18s ease-in-out infinite;
}

.orb-cyan-small {
  width: 256px;
  height: 256px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  top: 40%;
  right: 25%;
  animation: float 15s ease-in-out infinite;
}

.orb-pink-tiny {
  width: 192px;
  height: 192px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  filter: blur(36px);
  top: 60%;
  left: 15%;
  animation: float-slow 22s ease-in-out infinite;
}

.orb-gradient-giant {
  width: 480px;
  height: 480px;
  background: linear-gradient(135deg,
    rgba(147, 51, 234, 0.15) 0%,
    rgba(59, 130, 246, 0.12) 100%
  );
  filter: blur(60px);
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  animation: float-scale 25s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -20px); }
  50% { transform: translate(-15px, -30px); }
  75% { transform: translate(-25px, 15px); }
}

@keyframes float-rotate {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float-counter-rotate {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-25px, 25px) rotate(-120deg); }
  66% { transform: translate(20px, -15px) rotate(-240deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

@keyframes float-scale {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.2); }
}

/* Mobile orbs */
@media (max-width: 768px) {
  .orb-purple-large { width: 200px; height: 200px; }
  .orb-blue-medium { width: 180px; height: 180px; }
  .orb-gradient-giant { width: 240px; height: 240px; }
  .orb-cyan-small, .orb-pink-tiny { display: none; }
}

/* ====================
   SECTION: NAVIGATION
   Purpose: Fixed navbar with mobile menu, language switcher, theme toggle
   Dependencies: main.js (initNavigation)
   ==================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.dark .navbar {
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(to right, #9333EA, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(147, 51, 234, 0.05);
}

.nav-link.active {
  color: var(--purple-600);
  background: rgba(147, 51, 234, 0.1);
  font-weight: 600;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Language Switcher */
.language-switcher {
  position: relative;
  margin: 0 8px;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(147, 51, 234, 0.15);
}

.current-lang-flag {
  font-size: 18px;
}

.current-lang-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-icon {
  transition: transform 0.3s ease;
  color: var(--text-primary);
}

.lang-dropdown-btn.open .dropdown-icon {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.lang-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-option:hover {
  background: rgba(147, 51, 234, 0.05);
}

.lang-option.active {
  background: rgba(147, 51, 234, 0.1);
}

.lang-flag {
  font-size: 20px;
}

.lang-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Theme Toggle */
.theme-toggle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: rgba(147, 51, 234, 0.2);
  transform: rotate(15deg) scale(1.1);
}

.theme-toggle svg {
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dark .sun-icon {
  display: none;
}

.dark .moon-icon {
  display: block !important;
}

/* Nav Controls Group - Right section with Download, Language, Theme */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-download {
  white-space: nowrap;
  font-size: 14px;
  padding: 10px 20px;
}

/* Hide mobile-only Download on desktop */
.nav-menu .mobile-only {
  display: none;
}

/* ====================
   SECTION: SCROLL ANIMATIONS
   Purpose: Fade-in, scale, and stagger animations triggered on scroll
   Dependencies: main.js (initScrollAnimations)
   ==================== */

.animate-on-scroll {
  opacity: 1;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 0s;
}

.stagger-children.animate-in > *:nth-child(1) {
  transition-delay: 0s;
  animation-delay: 0s;
}

.stagger-children.animate-in > *:nth-child(2) {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}

.stagger-children.animate-in > *:nth-child(3) {
  transition-delay: 0.2s;
  animation-delay: 0.2s;
}

.stagger-children.animate-in > *:nth-child(4) {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}

.stagger-children.animate-in > *:nth-child(5) {
  transition-delay: 0.4s;
  animation-delay: 0.4s;
}

.stagger-children.animate-in > *:nth-child(6) {
  transition-delay: 0.5s;
  animation-delay: 0.5s;
}

.stagger-children.animate-in > * {
  opacity: 1;
  transform: translateY(0);
}

/* ====================
   SECTION: HERO SECTION
   Purpose: Main hero with title, subtitle, CTAs, and wallet mockup
   Dependencies: index.html (lines 105-189)
   ==================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
  animation: badgePulse 2.5s ease-in-out infinite;
  position: relative;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
  opacity: 0;
  animation: badgeGlow 2.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes badgeGlow {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Desktop: Side-by-side layout */
@media (min-width: 769px) {
  .hero-cta a {
    min-width: 220px;
  }

  .hero-cta .btn-secondary {
    min-width: 200px;
  }
}

/* Tablet: Stack vertically */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile: Stack with reduced padding */
@media (max-width: 480px) {
  .hero-cta {
    gap: 10px;
  }

  .hero-cta .btn-large {
    padding: 14px 32px;
    font-size: 16px;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wallet-mockup {
  padding: 24px;
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  animation: walletFloat 6s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  border: 2px solid rgba(147, 51, 234, 0.15);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .wallet-mockup {
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes walletFloat {
  0%, 100% {
    transform: translateY(0px) translateZ(0);
  }
  25% {
    transform: translateY(-10px) translateZ(0);
  }
  50% {
    transform: translateY(-20px) translateZ(0);
  }
  75% {
    transform: translateY(-10px) translateZ(0);
  }
}

.mockup-header {
  margin-bottom: 20px;
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-primary);
}

.balance-display {
  text-align: center;
  padding: 32px 24px;
  border-bottom: 1px solid var(--border-primary);
}

.balance-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 48px;
  font-weight: 700;
}

.gas-info {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.gas-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.gas-item span {
  color: var(--text-secondary);
}

.gas-item strong {
  font-size: 18px;
  color: var(--text-primary);
}

.gas-item.highlight strong {
  font-size: 24px;
}

/* ====================
   SUBSECTION: BALANCE DISPLAY (REDESIGNED)
   Purpose: Wallet mockup balance display in hero section (redesigned variant)
   ==================== */

.balance-display-redesigned {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 24px;
  text-align: center;
}

.value-prop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 24px;
  background: rgba(147, 51, 234, 0.08);
  border: 2px solid rgba(147, 51, 234, 0.2);
  animation: badgePulseSubtle 3s ease-in-out infinite;
}

.dark .value-prop-badge {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.3);
}

@keyframes badgePulseSubtle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0);
  }
}

.badge-sparkle {
  font-size: 16px;
  animation: sparkleRotate 4s linear infinite;
}

@keyframes sparkleRotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.badge-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dark .badge-text {
  color: var(--text-primary);
}

/* ETH Balance Zero (Crossed Out) */
.eth-balance-zero {
  opacity: 0.5;
}

.balance-label-small {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.eth-amount-crossed {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.eth-zero {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
}

.strikethrough {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text-secondary);
  transform: translateY(-50%) rotate(-5deg);
}

/* Balance Divider */
.balance-divider {
  color: var(--text-tertiary);
  animation: arrowBounce 2s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Stablecoin Balance Highlight */
.stablecoin-balance-highlight {
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(52, 211, 153, 0.05));
  border: 2px solid rgba(16, 185, 129, 0.2);
  width: 100%;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.dark .stablecoin-balance-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(52, 211, 153, 0.08));
  border-color: rgba(16, 185, 129, 0.3);
}

.stablecoin-amount {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 12px 0;
}

.stablecoin-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stablecoin-icons svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stablecoin-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Transaction Preview */
.transaction-preview {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.dark .transaction-preview {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.tx-preview-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.tx-preview-fee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fee-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.fee-value {
  font-size: 18px;
  font-weight: 700;
  color: #10B981;
}

.fee-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments for hero balance */
@media (max-width: 480px) {
  .stablecoin-amount {
    font-size: 48px;
  }

  .balance-display-redesigned {
    padding: 24px 16px;
    gap: 16px;
  }

  .stablecoin-balance-highlight {
    padding: 12px 16px;
  }
}

/* ====================
   SUBSECTION: BALANCE DISPLAY (SIMPLE)
   Purpose: Simplified wallet mockup balance display (active variant)
   ==================== */

.balance-display-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px 20px;
  text-align: center;
}

.balance-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.balance-label-simple {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-amount-simple {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.balance-tokens {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.balance-tokens svg {
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.balance-tokens svg:hover {
  transform: scale(1.1);
}

.token-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 2px;
}

.simple-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(147, 51, 234, 0.2) 50%,
    transparent 100%
  );
  margin: 8px 0;
}

.dark .simple-divider {
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
}

.gas-info-simple {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.gas-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.gas-info-item.success {
  color: #10B981;
  background: rgba(16, 185, 129, 0.05);
}

.gas-info-item.muted {
  color: var(--text-tertiary);
  background: rgba(0, 0, 0, 0.02);
}

.dark .gas-info-item.success {
  background: rgba(16, 185, 129, 0.1);
}

.dark .gas-info-item.muted {
  background: rgba(255, 255, 255, 0.02);
}

.check-icon {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.gas-info-item.success .check-icon {
  color: #10B981;
}

.gas-info-item.muted .check-icon {
  color: var(--text-tertiary);
  opacity: 0.5;
}

/* Token List Styles */
.token-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.token-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
}

.token-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.token-item:hover .token-icon {
  transform: scale(1.1);
}

.token-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 55px;
  margin-left: 12px;
  display: inline-block;
}

.token-label {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 8px;
}

.token-item.active {
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.dark .token-item.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}

.token-item.inactive {
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.dark .token-item.inactive {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.token-item.inactive .token-label {
  opacity: 0.5;
}

.token-item.inactive .token-value {
  opacity: 0.6;
}

.token-amount {
  opacity: 0.7;
}

/* Not Needed Badge - inside ETH block */
.not-needed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  margin-left: 12px;
  white-space: nowrap;
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: all 0.2s ease;
}

.not-needed:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.dark .not-needed {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.dark .not-needed:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

.not-needed svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.gas-paid-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(147, 51, 234, 0.05);
  border: 1px solid rgba(147, 51, 234, 0.12);
}

.dark .gas-paid-message {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.15);
}

.gas-paid-message .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Responsive adjustments for simple balance */
@media (max-width: 480px) {
  .balance-amount-simple {
    font-size: 42px;
  }

  .balance-display-simple {
    padding: 20px 16px;
    gap: 18px;
  }

  .gas-info-simple {
    gap: 8px;
  }

  .gas-info-item {
    padding: 6px 10px;
    font-size: 13px;
  }

  .token-list {
    gap: 10px;
    margin-top: 12px;
  }

  .token-item {
    padding: 8px 12px;
    gap: 8px;
  }

  .token-icon {
    width: 28px;
    height: 28px;
  }

  .token-label {
    font-size: 13px;
  }

  .token-value {
    font-size: 20px;
    min-width: 50px;
    margin-left: 8px;
    display: inline-block;
  }

  .not-needed {
    font-size: 9px;
    padding: 3px 8px;
    gap: 3px;
    margin-left: 8px;
  }

  .not-needed svg {
    width: 10px;
    height: 10px;
  }

  .gas-paid-message {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* ====================
   SUBSECTION: STATS BAR
   Purpose: Animated stats ticker/bar with tooltips (alternative to metrics section)
   Dependencies: main.js (initStatsCounter, initStatsTooltips)
   ==================== */

.stats-bar {
  padding: 48px 0;
  margin: 64px 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-top: 2px solid rgba(147, 51, 234, 0.12);
  border-bottom: 2px solid rgba(147, 51, 234, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
              0 4px 16px rgba(147, 51, 234, 0.05);
}

.dark .stats-bar {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 4px 16px rgba(0, 0, 0, 0.2);
}

.stats-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

.stat-item {
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-item:hover {
  transform: scale(1.1);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(to right, #9333EA, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.stat-number.green {
  background: linear-gradient(to right, #4ADE80, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 24px;
  margin-top: 12px;
}

/* Stat Tooltip */
.stat-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 41, 59, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  transition-delay: 1s;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.dark .stat-item::after {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: -54px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(30, 41, 59, 0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  transition-delay: 1s;
  z-index: 99;
}

.dark .stat-item::before {
  background: rgba(15, 23, 42, 0.95);
}

.stat-item:hover::after,
.stat-item:hover::before {
  opacity: 1;
}

.stat-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.stat-item:focus-visible::after,
.stat-item:focus-visible::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .stat-item::after {
    font-size: 12px;
    padding: 6px 12px;
    bottom: -50px;
  }

  .stat-item::before {
    bottom: -44px;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-icon {
    font-size: 20px;
  }
}

/* ====================
   SECTION: METRICS SECTION
   Purpose: Stats showcase with animated counters
   Dependencies: main.js (loadMetrics), config/metrics.json
   ==================== */

.metrics-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.dark .metrics-section {
  background: var(--bg-tertiary);
}

.section-header {
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.stats-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat-card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: 20px;
  border: 2px solid rgba(147, 51, 234, 0.12);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.08),
              0 2px 8px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.dark .stat-card {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.15),
              0 6px 16px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(147, 51, 234, 0.3);
}

.dark .stat-card:hover {
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.25),
              0 6px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: iconFloat 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.stat-value {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.gradient-text-green {
  background: linear-gradient(to right, #10B981, #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(to right, #9333EA, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(to right, #3B82F6, #2563EB);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.stat-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 8px;
}

/* Responsive metrics grid */
@media (max-width: 1024px) {
  .stats-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .stats-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-value {
    font-size: 40px;
  }

  .stat-card {
    padding: 24px 20px;
    min-height: 200px;
  }

  .stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
  }
}

/* ====================
   SECTION: VIDEO SECTION
   Purpose: Video placeholder with shimmer effect and CTA
   Dependencies: main.js (initVideoCTA)
   ==================== */

.video-section {
  padding: 60px 0;
  text-align: center;
}

.section-title {
  font-size: 48px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.video-placeholder {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  margin: 0 auto 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(147, 51, 234, 0.12);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.1),
              0 2px 8px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .video-placeholder {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(147, 51, 234, 0.15) 25%,
    rgba(59, 130, 246, 0.15) 50%,
    rgba(147, 51, 234, 0.15) 75%,
    transparent 100%
  );
  animation: shimmer 2s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.video-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 1;
}

.play-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.coming-soon {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.video-details {
  font-size: 16px;
  color: var(--text-secondary);
}

.video-footer {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 1;
  margin-bottom: 24px;
  line-height: 1.6;
}

.video-cta {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.25);
}

.video-cta:active {
  transform: translateY(0);
}

/* ====================
   SECTION: FEATURES SECTION
   Purpose: Feature grid with glassmorphism cards and hover effects
   ==================== */

.features-section {
  padding: 60px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px;
  border-radius: 20px;
  border: 2px solid rgba(147, 51, 234, 0.12);
  box-shadow: var(--shadow-sm),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
  outline: none;
}

.dark .feature-card {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Hover state with lift effect and purple border */
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.15),
              0 6px 16px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(147, 51, 234, 0.5);
}

.dark .feature-card:hover {
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.25),
              0 6px 16px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Focus state for keyboard navigation */
.feature-card:focus {
  outline: 3px solid var(--purple-600);
  outline-offset: 3px;
  border-color: rgba(147, 51, 234, 0.5);
}

.feature-card:focus:not(:focus-visible) {
  outline: none;
}

.feature-card:focus-visible {
  outline: 3px solid var(--purple-600);
  outline-offset: 3px;
}

/* Icon rotation on card hover */
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(59, 130, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.feature-card:hover .feature-icon {
  transform: rotate(5deg);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stagger animation for feature cards */
.feature-grid.stagger-children > .feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-grid.stagger-children.animate-in > .feature-card:nth-child(1) {
  transition-delay: 0.1s;
}

.feature-grid.stagger-children.animate-in > .feature-card:nth-child(2) {
  transition-delay: 0.2s;
}

.feature-grid.stagger-children.animate-in > .feature-card:nth-child(3) {
  transition-delay: 0.3s;
}

.feature-grid.stagger-children.animate-in > .feature-card:nth-child(4) {
  transition-delay: 0.4s;
}

.feature-grid.stagger-children.animate-in > .feature-card:nth-child(5) {
  transition-delay: 0.5s;
}

.feature-grid.stagger-children.animate-in > .feature-card:nth-child(6) {
  transition-delay: 0.6s;
}

.feature-grid.stagger-children.animate-in > .feature-card {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================
   SECTION: FEATURE REQUEST FORM
   Purpose: User feedback form with validation and submission
   Dependencies: main.js (initFeatureRequestForm)
   ==================== */

.feature-request-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.section-subtitle .hint {
  font-size: 14px;
  opacity: 0.7;
}

.form-container {
  max-width: 600px;
  margin: 48px auto 0;
  padding: 40px;
  border-radius: 24px;
}

.feature-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.required {
  color: #EF4444;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon svg {
  display: block;
}

/* Icon positioning for textarea - align to top */
.input-wrapper:has(textarea) .input-icon {
  top: 16px;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.input-wrapper input.error,
.input-wrapper textarea.error {
  border-color: #EF4444;
}

.input-wrapper input.error:focus,
.input-wrapper textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Form validation error message */
.form-group .error-message,
.input-wrapper + .error-message {
  color: #EF4444;
  font-size: 11px;
  margin-top: 4px;
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  animation: errorSlideIn 0.3s ease;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-tertiary);
}

.char-count.warning {
  color: #F59E0B;
  font-weight: 600;
}

.char-count.error {
  color: #EF4444;
  font-weight: 700;
}

.optional-badge {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: 6px;
  font-style: italic;
}

.helper-text {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
}

.form-success {
  text-align: center;
  padding: 40px;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

/* ====================
   SECTION: HOW IT WORKS
   Purpose: UX setup steps and collapsible technical architecture
   Dependencies: index.html (lines 438-594)
   ==================== */

.how-it-works-section {
  padding: 60px 0;
}

.how-it-works-diagram {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 48px 0;
  padding: 48px;
  border-radius: 24px;
  background: rgba(147, 51, 234, 0.05);
}

.diagram-step {
  flex: 1;
  text-align: center;
}

.step-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.diagram-step h4 {
  font-size: 18px;
  margin-bottom: 8px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-step p {
  font-size: 14px;
  color: var(--text-secondary);
}

.diagram-arrow {
  font-size: 32px;
  color: var(--purple-600);
  margin: 0 16px;
  flex-shrink: 0;
  align-self: center;
}

.info-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.info-block {
  padding: 32px;
  border-radius: 20px;
  border: 2px solid var(--roadmap-glass-border);
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.info-block.glass-light {
  background: rgba(147, 51, 234, 0.05);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.info-block h4 {
  font-size: 18px;
  margin-bottom: 16px;
}

.info-block ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.info-block li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

@supports not (backdrop-filter: blur(10px)) {
  .info-block.glass-light {
    background: rgba(147, 51, 234, 0.15);
  }
  .dark .info-block.glass-light {
    background: rgba(147, 51, 234, 0.2);
  }
}

.dark .info-block {
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark .info-block.glass-light {
  background: rgba(147, 51, 234, 0.15);
}

@media (max-width: 1024px) {
  .how-it-works-diagram {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .diagram-arrow {
    transform: rotate(90deg);
    font-size: 24px;
    margin: 8px 0;
  }

  .diagram-arrow.animated {
    transform: rotate(90deg) scale(1);
  }

  .info-blocks {
    grid-template-columns: 1fr;
  }
}

/* Additional diagram animations */
.diagram-step {
  transition: all 0.3s ease;
}

.diagram-step:hover {
  transform: translateY(-4px);
}

.diagram-step:hover .step-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(59, 130, 246, 0.2));
}

.diagram-arrow {
  transition: all 0.3s ease;
}

/* Animated state for diagram arrows (used by JavaScript) */
.diagram-arrow.animated {
  opacity: 1;
  transform: scale(1);
}

/* UX Highlight Banner */
.ux-highlight-banner {
  margin: 48px 0;
  padding: 40px 32px;
  background: linear-gradient(135deg,
    rgba(147, 51, 234, 0.08) 0%,
    rgba(59, 130, 246, 0.05) 100%);
  border: 2px solid rgba(147, 51, 234, 0.2);
  border-radius: 24px;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.setup-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.setup-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.setup-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(147, 51, 234, 0.15);
  flex: 1;
  min-width: 180px;
  transition: all 0.3s ease;
  position: relative;
}

.dark .setup-step {
  background: rgba(30, 41, 59, 0.6);
  border: 2px solid rgba(147, 51, 234, 0.3);
}

.setup-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.4);
}

.setup-step.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(147, 51, 234, 0.1) 100%);
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.dark .setup-step.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  border-color: rgba(16, 185, 129, 0.5);
}

.step-number {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--blue-600));
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 60px;
  line-height: 1;
}

.step-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.step-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.free-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 4px;
  animation: pulse-free 2s ease-in-out infinite;
}

.dark .free-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
  border-color: rgba(16, 185, 129, 0.5);
  color: #10B981;
}

@keyframes pulse-free {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0);
  }
}

.step-text span {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 200px;
}

.setup-arrow {
  font-size: 28px;
  color: var(--purple-600);
  font-weight: bold;
  flex-shrink: 0;
  align-self: center;
}

.banner-description {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 8px;
}

.technical-details {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
}

.tech-summary {
  padding: 20px 24px;
  background: rgba(107, 114, 128, 0.05);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-summary:hover {
  background: rgba(147, 51, 234, 0.05);
}

.tech-summary .chevron {
  transition: transform 0.3s ease;
}

.technical-details[open] .tech-summary .chevron {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .setup-grid {
    flex-direction: column;
  }
  .setup-arrow {
    transform: rotate(90deg);
  }
  .diagram-arrow {
    transform: rotate(90deg);
  }
  .diagram-arrow.animated {
    transform: rotate(90deg) scale(1);
  }
  .ux-highlight-banner {
    padding: 24px 20px;
  }
  .setup-title {
    font-size: 20px;
  }
  .setup-step {
    min-width: 100%;
  }
}

/* ====================
   SECTION: ROADMAP
   Purpose: Interactive roadmap with status board layout
   Dependencies: main.js (loadRoadmap), config/roadmap.json
   ==================== */

.roadmap-section {
  padding: 60px 0;
  background: var(--bg-secondary);
}

/* Roadmap Progress Summary */
.roadmap-progress-summary {
  margin: 48px 0 64px;
}

.progress-card {
  padding: 40px;
  border-radius: 24px;
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid rgba(147, 51, 234, 0.12);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.08),
              0 2px 8px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .progress-card {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.progress-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-percentage {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-bar-modern {
  height: 16px;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #9333EA, #3B82F6);
  border-radius: 8px;
  position: relative;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-glow {
  position: absolute;
  top: 0;
  right: -20px;
  bottom: 0;
  width: 40px;
  background: radial-gradient(ellipse,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 70%);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  gap: 24px;
}

.stat-mini {
  text-align: center;
}

.stat-mini-label {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-mini-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .progress-card {
    padding: 24px;
  }
  .progress-stats {
    flex-direction: column;
    gap: 16px;
  }
}

.roadmap-timeline {
  max-width: 900px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

/* Connecting line between timeline items */
/* REMOVED: Duplicate timeline line - using .timeline-line instead */
/* .roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 40px;
  bottom: 40px;
  width: 3px;
  background: linear-gradient(to bottom, #10B981, #6B7280, #D1D5DB);
  z-index: 0;
} */

.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.timeline-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
  position: absolute;
  left: 16.5px;
  z-index: 2;
  border: 3px solid white;
}

.dark .timeline-badge {
  border-color: var(--bg-primary);
}

.timeline-badge.in-progress {
  background: #10B981;
  position: relative;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-badge.in-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(147, 51, 234, 0.5);
  border-radius: 50%;
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-badge .pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #10B981;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.timeline-badge.upcoming {
  background: #9333EA;
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.2);
}

.timeline-badge.planned {
  background: #D1D5DB;
  box-shadow: 0 0 0 4px rgba(209, 213, 219, 0.2);
}

.timeline-content {
  flex: 1;
  padding: 24px;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 2px solid rgba(147, 51, 234, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-left: 64px;
}

.dark .timeline-content {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .timeline-content:hover {
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline-header h3 {
  font-size: 24px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge.in-progress {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.status-badge.upcoming {
  background: rgba(147, 51, 234, 0.1);
  color: #9333EA;
}

.status-badge.planned {
  background: rgba(209, 213, 219, 0.1);
  color: #9CA3AF;
}

.timeline-tasks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.timeline-tasks li {
  padding: 8px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Timeline action buttons */
.timeline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.timeline-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-action-btn:hover {
  background: rgba(147, 51, 234, 0.05);
  border-color: rgba(147, 51, 234, 0.3);
  transform: translateY(-2px);
}

.timeline-action-btn svg {
  flex-shrink: 0;
}

.timeline-action-btn.vote-btn {
  border-color: rgba(147, 51, 234, 0.3);
  background: rgba(147, 51, 234, 0.05);
}

.timeline-action-btn.vote-btn:hover {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.5);
}

/* Timeline commits section */
.timeline-commits {
  margin: 20px 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.03);
  border: 1px solid var(--border-primary);
}

.commits-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.commit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  flex-wrap: wrap;
}

.commit-hash {
  font-family: 'Courier New', monospace;
  color: var(--purple-600);
  font-weight: 600;
  font-size: 13px;
}

.commit-message {
  flex: 1;
  color: var(--text-primary);
  min-width: 200px;
}

.commit-time {
  color: var(--text-tertiary);
  font-size: 12px;
  white-space: nowrap;
}

/* Timeline voting section */
.timeline-voting {
  margin: 20px 0;
  padding: 16px;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.03);
  border: 1px solid var(--border-primary);
}

.voting-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vote-bar {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.vote-bar:last-child {
  margin-bottom: 0;
}

.vote-label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.vote-progress {
  height: 8px;
  background: var(--border-primary);
  border-radius: 4px;
  overflow: hidden;
}

.vote-fill {
  height: 100%;
  background: linear-gradient(to right, #9333EA, #3B82F6);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.vote-percent {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* REMOVED: Duplicate timeline line - using .timeline-line instead */
  /* .roadmap-timeline::before {
    left: 20px;
    width: 2px;
  } */

  .timeline-badge {
    width: 20px;
    height: 20px;
    left: 10px;
    border-width: 2px;
  }

  .timeline-content {
    margin-left: 50px;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-header h3 {
    font-size: 20px;
  }

  .timeline-actions {
    flex-direction: column;
    width: 100%;
  }

  .timeline-action-btn {
    width: 100%;
    justify-content: center;
  }

  .commit-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .commit-time {
    margin-left: auto;
  }

  .vote-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .vote-progress {
    order: 2;
  }

  .vote-percent {
    order: 3;
    text-align: left;
  }
}

/* ====================
   Quarterly Roadmap Styles
   ==================== */

.roadmap-quarter {
  margin-bottom: 64px;
  position: relative;
}

.roadmap-quarter:last-child {
  margin-bottom: 0;
}

/* Quarter Header */
.quarter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(147, 51, 234, 0.05);
  border: 2px solid rgba(147, 51, 234, 0.15);
  border-radius: 16px;
}

.dark .quarter-header {
  background: rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.25);
}

.quarter-info {
  flex: 1;
}

.quarter-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quarter-emoji {
  font-size: 32px;
}

.quarter-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Quarter Progress */
.quarter-progress {
  min-width: 200px;
  text-align: right;
}

.progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-600);
  margin-bottom: 8px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(147, 51, 234, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9333EA 0%, #3B82F6 100%);
  border-radius: 4px;
  transition: width 1s ease-out;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Feature Item */
.feature-item {
  background: var(--bg-card);
  border: 2px solid var(--border-primary);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.dark .feature-item {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-item:hover {
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.12);
  transform: translateY(-2px);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
  flex-shrink: 0;
}

.status-badge.status-in-progress,
.status-badge.status-in_progress {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-upcoming {
  background: rgba(147, 51, 234, 0.15);
  color: #9333EA;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.status-badge.status-planned {
  background: rgba(156, 163, 175, 0.15);
  color: #6B7280;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.status-badge.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.status-exploration {
  background: rgba(168, 85, 247, 0.15);
  color: #A855F7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-badge.status-future {
  background: rgba(156, 163, 175, 0.15);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

/* Feature Content */
.feature-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Feature Title Container with Inline Icons */
.feature-title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
  flex: 0 1 auto;
}

/* Inline Icons Next to Title */
.feature-inline-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.inline-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(147, 51, 234, 0.1);
  border: 1.5px solid rgba(147, 51, 234, 0.25);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.inline-icon-link:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(147, 51, 234, 0.2);
}

.inline-icon-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.inline-icon-link:hover svg {
  transform: scale(1.1);
}

/* GitHub Icon - Black/White */
.inline-icon-link.inline-icon-github {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.inline-icon-link.inline-icon-github:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dark .inline-icon-link.inline-icon-github {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.dark .inline-icon-link.inline-icon-github:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
}

/* Twitter/X Icon - Black */
.inline-icon-link.inline-icon-twitter {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.inline-icon-link.inline-icon-twitter:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dark .inline-icon-link.inline-icon-twitter {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.dark .inline-icon-link.inline-icon-twitter:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.15);
}

.feature-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Feature Progress Bar */
.feature-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.feature-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(147, 51, 234, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.feature-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  border-radius: 3px;
  transition: width 0.8s ease-out;
}

.feature-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

/* Social Links */
.feature-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(147, 51, 234, 0.08);
  border: 1.5px solid rgba(147, 51, 234, 0.2);
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-600);
  transition: all 0.2s ease;
}

.feature-link:hover {
  background: rgba(147, 51, 234, 0.15);
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-1px);
}

.link-icon {
  font-size: 16px;
}

.link-label {
  font-size: 13px;
}

/* Technical Details */
.feature-technical {
  margin-top: 12px;
}

.technical-toggle {
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.technical-toggle:hover {
  background: rgba(147, 51, 234, 0.15);
}

.technical-list {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  list-style: none;
  padding: 0;
  margin: 0;
}

.technical-list.expanded {
  max-height: 500px;
  opacity: 1;
  margin-top: 12px;
  padding-left: 20px;
}

.technical-list li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-left: 12px;
  position: relative;
}

.technical-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--purple-600);
}

/* Loading State */
.roadmap-loading {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Error State */
.error-message {
  text-align: center;
  padding: 40px;
  font-size: 16px;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .quarter-header {
    flex-direction: column;
    gap: 16px;
  }

  .quarter-progress {
    width: 100%;
    text-align: left;
  }

  .quarter-title {
    font-size: 24px;
  }

  .feature-item {
    padding: 20px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-links {
    gap: 8px;
  }

  .feature-link {
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* ====================
   SECTION: FAQ
   Purpose: Accordion-style frequently asked questions
   Dependencies: main.js (initFAQAccordion)
   ==================== */

.faq-section {
  padding: 60px 0;
}

.faq-container {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 16px;
  border: 2px solid rgba(147, 51, 234, 0.12);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .faq-item {
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .faq-item:hover {
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.faq-question {
  width: 100%;
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  background: rgba(147, 51, 234, 0.03);
}

.faq-question:focus {
  outline: 3px solid rgba(147, 51, 234, 0.5);
  outline-offset: 3px;
}

.faq-question:focus:not(:focus-visible) {
  outline: none;
}

.faq-question-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  padding-right: 16px;
  flex: 1;
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--purple-600);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
  padding: 0 24px 24px;
  opacity: 1;
}

.faq-answer-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-line; /* Preserve line breaks from content */
  letter-spacing: 0.01em;
}

/* Enhanced typography for FAQ answers */
.faq-answer-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.faq-answer-text em {
  font-style: italic;
  color: var(--purple-600);
}

/* List styling within FAQ answers */
.faq-answer-text ul,
.faq-answer-text ol {
  margin: 12px 0;
  padding-left: 24px;
}

.faq-answer-text li {
  margin: 8px 0;
  line-height: 1.7;
}

/* Paragraphs within FAQ answers */
.faq-answer-text p {
  margin: 12px 0;
}

.faq-answer-text p:first-child {
  margin-top: 0;
}

.faq-answer-text p:last-child {
  margin-bottom: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
  }

  .faq-question-text {
    font-size: 16px;
  }

  .faq-item.open .faq-answer {
    padding: 0 20px 20px;
  }

  .faq-answer-text {
    font-size: 15px;
  }
}

/* ==========================================
   FAQ FORMATTING SYSTEM
   Purpose: Visual formatting components for FAQ content
   Components: Layout, Text, Badges, Steps, Highlights, Lists, Tables
   ========================================== */

/* === 1. LAYOUT & STRUCTURE (3 classes) === */

/* Section Title - Purple border, 18px bold */
.faq-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 16px;
  border-left: 4px solid var(--purple-600);
  margin: 24px 0 16px;
  line-height: 1.4;
}

/* Full Divider - Major section separator */
.faq-divider {
  border: none;
  border-top: 2px solid rgba(147, 51, 234, 0.15);
  margin: 32px 0;
}

.dark .faq-divider {
  border-top-color: rgba(147, 51, 234, 0.25);
}

/* Light Divider - Minor section separator */
.faq-divider-light {
  border: none;
  border-top: 1px dashed rgba(147, 51, 234, 0.2);
  margin: 24px 0;
}

.dark .faq-divider-light {
  border-top-color: rgba(147, 51, 234, 0.3);
}

/* === 2. TEXT FORMATTING (3 classes) === */

/* Number highlighting - Purple gradient */
.faq-stat {
  font-weight: 700;
  font-size: 1.1em;
  background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Savings highlighting - Green gradient */
.faq-savings {
  font-weight: 700;
  font-size: 1.15em;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Technical terms - Monospace */
.faq-answer-text code {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--text-primary);
  border: 1px solid rgba(147, 51, 234, 0.15);
}

/* === 3. BADGE CLASSES (3 classes) === */

/* FREE Badge - Green gradient */
.faq-badge-free {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

/* NEW Badge - Purple gradient */
.faq-badge-new {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

/* COMING SOON Badge - Orange border */
.faq-badge-soon {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid #F59E0B;
  color: #F59E0B;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

/* === 4. STEP CARDS (5 classes) === */

/* Step List Container */
.faq-step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

/* Individual Step Card */
.faq-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(147, 51, 234, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(147, 51, 234, 0.12);
  transition: all 0.3s ease;
}

.dark .faq-step {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.2);
}

.faq-step:hover {
  border-color: rgba(147, 51, 234, 0.3);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.12);
}

/* Step Number Circle */
.faq-step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

/* Step Content Wrapper */
.faq-step-content {
  flex: 1;
}

/* Step Title */
.faq-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-step-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === 5. HIGHLIGHT BOXES (4 classes) === */

/* Base Highlight Box */
.faq-highlight {
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--purple-600);
  background: rgba(147, 51, 234, 0.06);
  margin: 20px 0;
}

.dark .faq-highlight {
  background: rgba(147, 51, 234, 0.12);
}

/* Success Highlight - Green */
.faq-highlight-success {
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid #10B981;
  background: rgba(16, 185, 129, 0.08);
  margin: 20px 0;
}

.dark .faq-highlight-success {
  background: rgba(16, 185, 129, 0.15);
}

/* Warning Highlight - Orange */
.faq-highlight-warning {
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid #F59E0B;
  background: rgba(245, 158, 11, 0.08);
  margin: 20px 0;
}

.dark .faq-highlight-warning {
  background: rgba(245, 158, 11, 0.15);
}

/* Highlight Title */
.faq-highlight-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Highlight paragraph spacing */
.faq-highlight p,
.faq-highlight-success p,
.faq-highlight-warning p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-highlight p + p,
.faq-highlight-success p + p,
.faq-highlight-warning p + p {
  margin-top: 12px;
}

/* === 6. FEATURE LISTS (5 classes) === */

/* Simple Bullet List with Arrows */
.faq-bullet-list {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.faq-bullet-list li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-bullet-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-600);
  font-weight: 600;
}

/* Feature List with Checkmarks */
.faq-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.faq-feature-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(147, 51, 234, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(147, 51, 234, 0.1);
}

.dark .faq-feature-item {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.15);
}

.faq-feature-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #10B981;
}

.faq-feature-text {
  flex: 1;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-feature-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* === 7. COMPARISON TABLES (6 classes) === */

/* Comparison Table Container */
.faq-comparison-table {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(147, 51, 234, 0.15);
}

.dark .faq-comparison-table {
  border-color: rgba(147, 51, 234, 0.25);
}

/* Table Header Row */
.faq-comparison-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 1px;
  background: var(--purple-600);
}

.faq-comparison-header > div {
  padding: 14px 16px;
  background: var(--bg-card);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: var(--text-primary);
}

.faq-comparison-header .faq-comparison-label {
  text-align: left;
}

/* Table Data Row */
.faq-comparison-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 1px;
  background: rgba(147, 51, 234, 0.1);
}

.faq-comparison-row > div {
  padding: 14px 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

/* Row Label (left column) */
.faq-comparison-label {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
}

/* Highlighted Column (Gasless) */
.faq-comparison-col-highlight {
  background: rgba(147, 51, 234, 0.08) !important;
  font-weight: 600;
  color: var(--text-primary);
}

.dark .faq-comparison-col-highlight {
  background: rgba(147, 51, 234, 0.15) !important;
}

/* === MOBILE RESPONSIVE === */

@media (max-width: 768px) {
  /* Step Cards */
  .faq-step {
    padding: 16px;
  }

  .faq-step-number {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  /* Comparison Tables */
  .faq-comparison-header,
  .faq-comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr;
    font-size: 13px;
  }

  .faq-comparison-header > div,
  .faq-comparison-row > div {
    padding: 10px 12px;
  }
}

/* ====================
   SECTION: FINAL CTA
   Purpose: Download section with browser cards
   ==================== */

.final-cta-section {
  padding: 80px 0;
  background: rgba(147, 51, 234, 0.08);
  backdrop-filter: blur(40px);
  color: var(--text-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(147, 51, 234, 0.15);
  border-bottom: 1px solid rgba(147, 51, 234, 0.15);
}

.dark .final-cta-section {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(147, 51, 234, 0.2);
}

/* Subtle animated background pattern */
.final-cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  animation: subtleMove 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes subtleMove {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Browser Cards Grid */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 48px 0;
  position: relative;
  z-index: 1;
}

.browser-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(147, 51, 234, 0.15);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .browser-card {
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(147, 51, 234, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.browser-card:hover {
  transform: translateY(-8px);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark .browser-card:hover {
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


.browser-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.browser-icon svg,
.browser-icon img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
}

.browser-card:hover .browser-icon svg,
.browser-card:hover .browser-icon img {
  transform: scale(1.1);
}

.browser-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.browser-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.browser-stats .stars {
  color: #FBBF24;
  font-size: 16px;
}

.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(147, 51, 234, 0.1);
  border: 2px solid rgba(147, 51, 234, 0.3);
  border-radius: 12px;
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-btn:hover {
  background: linear-gradient(135deg, #9333EA, #3B82F6);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.download-btn.primary-btn {
  background: linear-gradient(135deg, #9333EA, #3B82F6);
  color: white;
  border-color: transparent;
}

.download-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(147, 51, 234, 0.05);
  border-color: rgba(147, 51, 234, 0.2);
  color: var(--text-secondary);
  pointer-events: none;
}

.download-btn.disabled:hover {
  background: rgba(147, 51, 234, 0.05);
  border-color: rgba(147, 51, 234, 0.2);
  color: var(--text-secondary);
  transform: none;
}

@media (max-width: 1200px) {
  .browser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .browser-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .browser-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(to right, #9333EA, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.cta-buttons a {
  min-width: 240px;
}

.cta-note {
  font-size: 14px;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .final-cta-section {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 36px;
  }

  .cta-subtitle {
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons a {
    width: 100%;
    max-width: 320px;
  }
}

/* ====================
   SECTION: FOOTER
   Purpose: Site footer with links, social media, copyright
   ==================== */

.footer {
  background: #0A0A0A;
  padding: 80px 0 32px;
  color: #FFFFFF;
  position: relative;
}

/* Dark footer even in light mode */
.footer * {
  color: inherit;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-column-about {
  max-width: 360px;
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
  display: inline-block;
}

.footer-column a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-logo {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(to right, #C084FC, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 24px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.5);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-column-about {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 64px 0 28px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-column-about {
    text-align: center;
    margin: 0 auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column a:hover {
    transform: translateX(0) scale(1.05);
  }

  .copyright {
    font-size: 13px;
    padding: 0 20px;
  }
}

/* ====================
   Performance Optimizations
   ==================== */

.orb-purple-large,
.orb-blue-medium,
.orb-cyan-small,
.orb-pink-tiny,
.orb-gradient-giant,
.feature-card,
.btn-primary,
.nav-link {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orb-purple-large,
  .orb-blue-medium,
  .orb-cyan-small,
  .orb-pink-tiny,
  .orb-gradient-giant {
    animation: none;
  }
}

/* ====================
   Mobile Responsive
   ==================== */

@media (max-width: 768px) {
  /* Mobile Navigation */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-left: 1px solid rgba(147, 51, 234, 0.2);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    overflow-y: auto;
    flex: none;
    justify-content: flex-start;
  }

  .dark .nav-menu {
    background: rgba(10, 10, 10, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: left;
    font-size: 18px;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
    padding: 16px;
  }

  /* Nav controls on mobile - show in a compact row before mobile menu button */
  .nav-controls {
    display: flex;
    gap: 6px;
    margin-left: auto;
  }

  /* Show mobile-only Download in hamburger menu, hide desktop Download */
  .nav-menu .mobile-only {
    display: block;
  }

  .btn-download {
    display: none;
  }

  .language-switcher,
  .theme-toggle {
    order: -1;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-cta {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-badge {
    margin: 0 auto;
  }

  /* Wallet Mockup */
  .wallet-mockup {
    max-width: 320px;
  }

  /* Sections */
  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .cta-title {
    font-size: 32px;
  }

  .cta-subtitle {
    font-size: 18px;
  }
}

/* iPhone X/11/12/13 and similar devices (375px) - Comprehensive fixes */
@media (max-width: 375px) {
  /* Reduce container padding to fit 375px viewport */
  .container,
  .nav-container {
    padding: 0 14px;
  }

  /* Hero badge - reduce padding and ensure wrapping */
  .hero-badge {
    padding: 7px 14px;
    font-size: 13px;
    max-width: 100%;
    word-wrap: break-word;
  }

  /* Hero title - reduce font size to prevent overflow */
  .hero-title {
    font-size: 32px;
    line-height: 1.2;
    word-wrap: break-word;
  }

  /* Hero subtitle - ensure it wraps properly */
  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Hero CTA buttons - reduce padding */
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    padding: 13px 24px;
    font-size: 15px;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 16px;
  }

  /* Wallet mockup - ensure it fits within viewport */
  .wallet-mockup {
    max-width: 100%;
    width: 100%;
    padding: 14px;
  }

  /* Balance display - adjust font size */
  .balance-amount {
    font-size: 36px;
  }

  .balance-label {
    font-size: 13px;
  }

  /* Gas info - make more compact */
  .gas-info {
    padding: 18px;
    gap: 14px;
    flex-direction: column;
    align-items: center;
  }

  .gas-item strong {
    font-size: 18px;
  }

  .gas-item.highlight strong {
    font-size: 22px;
  }

  /* Section titles - reduce size */
  .section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 15px;
  }

  /* CTA section titles */
  .cta-title {
    font-size: 30px;
  }

  .cta-subtitle {
    font-size: 17px;
  }

  /* Feature cards - reduce padding */
  .feature-card {
    padding: 24px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
    margin-bottom: 16px;
  }

  .feature-title {
    font-size: 19px;
  }

  .feature-description {
    font-size: 15px;
  }

  /* Stats container - ensure proper fit */
  .stats-container {
    padding: 0 14px;
    gap: 28px;
  }

  .stat-number {
    font-size: 38px;
  }

  .stat-label {
    font-size: 13px;
  }

  /* Navigation - reduce padding */
  .nav-container {
    gap: 18px;
  }

  .logo {
    font-size: 22px;
  }

  /* Mobile menu - ensure it doesn't exceed viewport */
  .nav-menu {
    width: 280px;
  }

  /* FAQ items - reduce padding */
  .faq-question {
    padding: 18px;
  }

  .faq-question-text {
    font-size: 16px;
    padding-right: 10px;
  }

  .faq-item.open .faq-answer {
    padding: 0 18px 18px;
  }

  /* Form container - reduce padding */
  .form-container {
    padding: 28px;
  }

  /* Timeline content - reduce padding and prevent overflow */
  .timeline-content {
    padding: 12px;              /* Reduce from 18px to 12px */
    max-width: 100%;            /* KEY FIX: Prevent exceeding container */
    width: 100%;                /* Force full-width within container */
    box-sizing: border-box;     /* Include padding in width calculation */
    overflow-wrap: break-word;  /* Break long words */
    word-break: break-word;     /* Additional word breaking */
  }

  .timeline-header h3 {
    font-size: 20px;
  }

  /* Footer - reduce padding */
  .footer {
    padding: 64px 0 28px;
  }

  .footer-logo {
    font-size: 26px;
  }

  /* How it works diagram - ensure proper fit */
  .how-it-works-diagram {
    padding: 28px 18px;
  }

  .step-icon {
    width: 80px;
    height: 80px;
    font-size: 48px;
  }

  .diagram-step h4 {
    font-size: 17px;
  }

  .diagram-step p {
    font-size: 14px;
  }

  /* Info blocks - reduce padding */
  .info-block {
    padding: 22px;
  }

  .info-block h4 {
    font-size: 17px;
  }

  .info-block li {
    font-size: 15px;
  }

  /* Video placeholder - ensure proper fit */
  .video-placeholder {
    border-radius: 18px;
  }

  .play-icon {
    font-size: 52px;
  }

  .coming-soon {
    font-size: 22px;
  }

  /* Language switcher - reduce size */
  .lang-dropdown-btn {
    padding: 7px 11px;
  }

  .current-lang-code {
    font-size: 14px;
  }

  /* Theme toggle - reduce size */
  .theme-toggle {
    width: 42px;
    height: 42px;
  }

  .theme-toggle svg {
    width: 21px;
    height: 21px;
  }

  /* Modal content - ensure proper fit */
  .modal-content {
    max-width: 320px;
    padding: 28px;
    margin: 18px;
  }

  .modal-content h2 {
    font-size: 26px;
  }

  /* Input fields - ensure proper width */
  .input-wrapper input,
  .input-wrapper textarea {
    font-size: 15px;
    padding: 11px 14px 11px 46px;
  }

  /* CTA buttons - stack vertically on small screens */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta-buttons a {
    width: 100%;
    justify-content: center;
  }

  /* Ensure all text wraps properly */
  h1, h2, h3, h4, h5, h6,
  p, span, a, button, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Critical 390px fixes to prevent horizontal scroll */
@media (max-width: 390px) {
  /* Timeline content - prevent overflow on 390px viewport */
  .timeline-content {
    padding: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* Critical 320px fixes to prevent horizontal scroll */
@media (max-width: 320px) {
  /* Reduce container padding to fit 320px viewport and prevent horizontal scroll */
  .container,
  .nav-container {
    padding: 0 4px;
  }

  /* Hero badge - reduce padding and font size */
  .hero-badge {
    padding: 6px 12px;
    font-size: 13px;
    max-width: 100%;
    word-wrap: break-word;
  }

  /* Hero title - reduce font size to prevent overflow */
  .hero-title {
    font-size: 28px;
    line-height: 1.15;
    word-wrap: break-word;
  }

  /* Hero subtitle - ensure it wraps properly */
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Hero CTA buttons - reduce padding */
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    padding: 12px 20px;
    font-size: 15px;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Wallet mockup - ensure it fits within viewport */
  .wallet-mockup {
    max-width: 100%;
    width: 100%;
    padding: 12px;
  }

  /* Balance display - reduce font size */
  .balance-amount {
    font-size: 32px;
  }

  .balance-label {
    font-size: 13px;
  }

  /* Gas info - make more compact */
  .gas-info {
    padding: 16px;
    gap: 12px;
  }

  .gas-item strong {
    font-size: 16px;
  }

  .gas-item.highlight strong {
    font-size: 20px;
  }

  /* Section titles - reduce size */
  .section-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 14px;
  }

  /* CTA section titles */
  .cta-title {
    font-size: 28px;
  }

  .cta-subtitle {
    font-size: 16px;
  }

  /* Feature cards - reduce padding */
  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    margin-bottom: 16px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-description {
    font-size: 14px;
  }

  /* Stats container - ensure proper fit */
  .stats-container {
    padding: 0 12px;
    gap: 24px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }

  /* Navigation - reduce padding */
  .nav-container {
    gap: 16px;
  }

  .logo {
    font-size: 20px;
  }

  /* Mobile menu - ensure it doesn't exceed viewport */
  .nav-menu {
    width: 260px;
  }

  /* FAQ items - reduce padding */
  .faq-question {
    padding: 16px;
  }

  .faq-question-text {
    font-size: 16px;
    padding-right: 8px;
  }

  .faq-item.open .faq-answer {
    padding: 0 16px 16px;
  }

  /* Form container - reduce padding */
  .form-container {
    padding: 24px;
  }

  /* Timeline content - reduce padding */
  .timeline-content {
    padding: 16px;
  }

  .timeline-header h3 {
    font-size: 20px;
  }

  /* Footer - reduce padding */
  .footer {
    padding: 60px 0 24px;
  }

  .footer-logo {
    font-size: 24px;
  }

  /* How it works diagram - ensure proper fit */
  .how-it-works-diagram {
    padding: 24px 16px;
  }

  .step-icon {
    width: 75px;
    height: 75px;
    font-size: 45px;
  }

  .diagram-step h4 {
    font-size: 16px;
  }

  .diagram-step p {
    font-size: 13px;
  }

  /* Info blocks - reduce padding */
  .info-block {
    padding: 20px;
  }

  .info-block h4 {
    font-size: 16px;
  }

  .info-block li {
    font-size: 14px;
  }

  /* Video placeholder - ensure proper fit */
  .video-placeholder {
    border-radius: 16px;
  }

  .play-icon {
    font-size: 48px;
  }

  .coming-soon {
    font-size: 20px;
  }

  /* Language switcher - reduce size */
  .lang-dropdown-btn {
    padding: 6px 10px;
  }

  .current-lang-code {
    font-size: 13px;
  }

  /* Theme toggle - reduce size */
  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .theme-toggle svg {
    width: 20px;
    height: 20px;
  }

  /* Modal content - ensure proper fit */
  .modal-content {
    max-width: 280px;
    padding: 24px;
    margin: 16px;
  }

  .modal-content h2 {
    font-size: 24px;
  }

  /* Input fields - ensure proper width */
  .input-wrapper input,
  .input-wrapper textarea {
    font-size: 15px;
    padding: 10px 12px 10px 44px;
  }

  /* Buttons full width at 320px */
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons a {
    width: 100%;
    justify-content: center;
  }

  /* Ensure all text wraps properly */
  h1, h2, h3, h4, h5, h6,
  p, span, a, button, li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* ====================
   ROADMAP V2: VARIANT 5 INTERACTIVE STATUS BOARD
   ==================== */

/* Design Tokens */
:root {
  --roadmap-space-1: 4px;
  --roadmap-space-2: 8px;
  --roadmap-space-3: 12px;
  --roadmap-space-4: 16px;
  --roadmap-space-6: 24px;
  --roadmap-space-8: 32px;
  --roadmap-space-12: 48px;
  --roadmap-space-16: 64px;

  --roadmap-header-size: 48px;
  --roadmap-header-size-mobile: 36px;
  --roadmap-section-title-size: 20px;
  --roadmap-section-title-size-mobile: 16px;
  --roadmap-item-title-size: 18px;
  --roadmap-item-title-size-mobile: 16px;
  --roadmap-text-size: 14px;
  --roadmap-small-size: 12px;

  --roadmap-duration: 300ms;
  --roadmap-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --roadmap-radius-lg: 12px;
  --roadmap-radius-md: 8px;

  --roadmap-glass-bg: rgba(255, 255, 255, 0.7);
  --roadmap-glass-border: rgba(147, 51, 234, 0.12);
  --roadmap-glass-shadow: 0 8px 32px rgba(147, 51, 234, 0.1);
  --roadmap-glass-bg-hover: rgba(255, 255, 255, 0.85);
  --roadmap-glass-border-hover: rgba(147, 51, 234, 0.25);
  --roadmap-glass-shadow-hover: 0 12px 48px rgba(147, 51, 234, 0.18);
  --roadmap-glass-bg-expanded: rgba(255, 255, 255, 0.9);
  --roadmap-glass-border-expanded: rgba(147, 51, 234, 0.35);
  --roadmap-glass-shadow-expanded: 0 16px 64px rgba(147, 51, 234, 0.2);

  --roadmap-progress-early: #6B7280;
  --roadmap-progress-active: #10B981;
  --roadmap-progress-almost: #3B82F6;
  --roadmap-progress-done: #10B981;
}

.dark {
  --roadmap-glass-bg: rgba(30, 41, 59, 0.5);
  --roadmap-glass-border: rgba(255, 255, 255, 0.15);
  --roadmap-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --roadmap-glass-bg-hover: rgba(30, 41, 59, 0.7);
  --roadmap-glass-border-hover: rgba(147, 51, 234, 0.4);
  --roadmap-glass-shadow-hover: 0 12px 48px rgba(147, 51, 234, 0.25);
  --roadmap-glass-bg-expanded: rgba(30, 41, 59, 0.8);
  --roadmap-glass-border-expanded: rgba(147, 51, 234, 0.5);
  --roadmap-glass-shadow-expanded: 0 16px 64px rgba(147, 51, 234, 0.3);
}

/* ====================
   SUBSECTION: STATUS BOARD VARIANT
   Purpose: Board-style roadmap layout with feature items
   ==================== */

/* Status Board Container */
.status-board {
  max-width: 900px;
  margin: var(--roadmap-space-12) auto 0;
}

/* Board Section */
.board-section {
  margin-bottom: var(--roadmap-space-12);
}

.board-section:last-child {
  margin-bottom: 0;
}

.board-section-title {
  font-size: var(--roadmap-section-title-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: var(--roadmap-space-4);
  padding-bottom: var(--roadmap-space-2);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, rgba(147, 51, 234, 0.5) 0%, rgba(147, 51, 234, 0.1) 100%) 1;
  display: flex;
  align-items: center;
  gap: var(--roadmap-space-3);
}

.section-emoji {
  font-size: 24px;
  line-height: 1;
}

/* Board Items Container */
.board-items {
  display: flex;
  flex-direction: column;
  gap: var(--roadmap-space-3);
}

/* Board Item Card */
.board-item {
  background: var(--roadmap-glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid var(--roadmap-glass-border);
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--roadmap-radius-lg);
  padding: var(--roadmap-space-4) var(--roadmap-space-6);
  cursor: pointer;
  user-select: none;
  transition: all var(--roadmap-duration) var(--roadmap-easing);
  will-change: transform, box-shadow, border-color;
  transform: translateY(0) translateZ(0);
  backface-visibility: hidden;
}

@supports not (backdrop-filter: blur(10px)) {
  .board-item {
    background: rgba(255, 255, 255, 0.95);
  }
  .dark .board-item {
    background: rgba(30, 41, 59, 0.95);
  }
}

.board-item:hover {
  background: var(--roadmap-glass-bg-hover);
  border-color: var(--roadmap-glass-border-hover);
  box-shadow: var(--roadmap-glass-shadow-hover), 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-2px) translateZ(0);
}

.board-item:active {
  transform: translateY(0) scale(0.99) translateZ(0);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.12);
}

.board-item.expanded {
  background: var(--roadmap-glass-bg-expanded);
  border-color: var(--roadmap-glass-border-expanded);
  box-shadow: var(--roadmap-glass-shadow-expanded), 0 6px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.board-item:focus-visible {
  outline: 3px solid rgba(147, 51, 234, 0.5);
  outline-offset: 2px;
}

.dark .board-item {
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark .board-item:hover {
  box-shadow: var(--roadmap-glass-shadow-hover), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dark .board-item.expanded {
  box-shadow: var(--roadmap-glass-shadow-expanded), 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Item Row */
.item-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--roadmap-space-3);
  flex-wrap: wrap;
  min-height: 44px;
  position: relative;
}

.item-emoji {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.item-title {
  font-size: var(--roadmap-item-title-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  flex: 1 1 auto;
  min-width: min(200px, 60%);
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.item-progress {
  font-size: var(--roadmap-text-size);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-tertiary);
  background: rgba(147, 51, 234, 0.1);
  padding: 4px var(--roadmap-space-3);
  border-radius: var(--roadmap-radius-md);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  flex-shrink: 0;
}

.item-progress[data-progress^="0"],
.item-progress[data-progress^="1"],
.item-progress[data-progress^="2"],
.item-progress[data-progress^="3"] {
  background: rgba(107, 116, 128, 0.1);
  color: var(--roadmap-progress-early);
}

.item-progress[data-progress^="7"],
.item-progress[data-progress^="8"],
.item-progress[data-progress^="9"] {
  background: rgba(59, 130, 246, 0.1);
  color: var(--roadmap-progress-almost);
}

.item-progress[data-progress="100"] {
  background: rgba(16, 185, 129, 0.1);
  color: var(--roadmap-progress-done);
}

/* Social Icon Links */
.item-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: var(--roadmap-radius-md);
  background: rgba(147, 51, 234, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 200ms var(--roadmap-easing);
  flex-shrink: 0;
  z-index: 1;
}

.item-icon-link:hover {
  background: rgba(147, 51, 234, 0.2);
  color: var(--purple-600);
  transform: scale(1.1);
}

.item-icon-link:active {
  transform: scale(0.95);
}

.item-icon-link:focus-visible {
  outline: 2px solid rgba(147, 51, 234, 0.5);
  outline-offset: 2px;
}

.item-icon-link.github:hover {
  color: #333;
}

.dark .item-icon-link.github:hover {
  color: #fff;
}

.item-icon-link.twitter:hover {
  color: #1DA1F2;
}

.item-icon-link svg {
  width: 20px;
  height: 20px;
}

/* Disabled/Inactive Icon Styles */
.item-icon-link.disabled {
  background: rgba(100, 100, 100, 0.08);
  color: rgba(100, 100, 100, 0.4);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.dark .item-icon-link.disabled {
  background: rgba(150, 150, 150, 0.05);
  color: rgba(150, 150, 150, 0.3);
}

.item-icon-link.disabled svg {
  opacity: 0.5;
}

.item-icon-link.disabled:hover {
  transform: none;
  background: rgba(100, 100, 100, 0.08);
  color: rgba(100, 100, 100, 0.4);
}

.dark .item-icon-link.disabled:hover {
  background: rgba(150, 150, 150, 0.05);
  color: rgba(150, 150, 150, 0.3);
}

/* Item Details */
.item-details {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
  border-top: 0 solid var(--border-primary);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--roadmap-duration) var(--roadmap-easing);
}

.board-item.expanded .item-details {
  max-height: 600px;
  padding-top: var(--roadmap-space-4);
  margin-top: var(--roadmap-space-4);
  border-top-width: 1px;
  opacity: 1;
  transform: translateY(0);
}

.item-description {
  font-size: var(--roadmap-text-size);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--roadmap-space-4);
}

/* Technical Details */
.item-technical {
  margin-bottom: var(--roadmap-space-4);
}

.item-technical h4 {
  font-size: var(--roadmap-text-size);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--roadmap-space-2);
}

.item-technical ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.item-technical li {
  font-size: var(--roadmap-text-size);
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: var(--roadmap-space-6);
  position: relative;
}

.item-technical li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-600);
  font-weight: 700;
}

/* Social Links Full Buttons */
.item-links {
  display: flex;
  gap: var(--roadmap-space-3);
  flex-wrap: wrap;
  margin-top: var(--roadmap-space-4);
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--roadmap-space-2) var(--roadmap-space-4);
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: var(--roadmap-radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--roadmap-text-size);
  font-weight: 500;
  transition: all 200ms var(--roadmap-easing);
}

.link-button:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: rgba(147, 51, 234, 0.4);
  transform: translateY(-2px);
}

.link-button:active {
  transform: translateY(0);
}

/* ETA */
.item-eta {
  font-size: var(--roadmap-small-size);
  font-style: italic;
  color: var(--text-tertiary);
  margin-top: var(--roadmap-space-3);
}

/* Roadmap Footer */
.roadmap-footer {
  margin-top: var(--roadmap-space-12);
  padding-top: var(--roadmap-space-8);
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

.transparency-note {
  font-size: var(--roadmap-text-size);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--roadmap-space-6);
}

/* Loading State */
.roadmap-loading {
  text-align: center;
  padding: 60px var(--roadmap-space-6);
  color: var(--text-secondary);
}

.roadmap-loading::before {
  content: '⏳';
  font-size: 48px;
  display: block;
  margin-bottom: var(--roadmap-space-4);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Error State */
.error-message {
  text-align: center;
  padding: var(--roadmap-space-8);
  color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--roadmap-radius-lg);
}

/* ====================
   ROADMAP V3: QUARTERLY TIMELINE
   ==================== */

/* Timeline Color Tokens */
:root {
  --timeline-color-in-progress: #10B981;
  --timeline-color-upcoming: #9333EA;
  --timeline-color-planned: #6B7280;
  --timeline-color-exploration: #6B7280;

  --timeline-line-width: 3px;
  --timeline-dot-size: 24px;
  --timeline-spacing: 64px;
}

/* Timeline Container */
.roadmap-timeline {
  max-width: 900px;
  margin: var(--roadmap-space-12) auto 0;
  padding-left: 48px;
  position: relative;
}

/* Vertical Timeline Line */
.timeline-line {
  position: absolute;
  left: 11px;
  top: -30px;
  bottom: 0;
  width: var(--timeline-line-width);
  background: linear-gradient(180deg,
    rgba(147, 51, 234, 0.8) 0%,
    rgba(59, 130, 246, 0.6) 50%,
    rgba(147, 51, 234, 0.3) 100%);
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: all 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.roadmap-timeline.animated .timeline-line {
  opacity: 1;
  transform: scaleY(1);
}

/* Quarter Card Container */
.quarter-card {
  position: relative;
  margin-bottom: var(--timeline-spacing);
  padding-left: 32px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.quarter-card.animate-in {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation delays */
.quarter-card:nth-child(1) { transition-delay: 200ms; }
.quarter-card:nth-child(2) { transition-delay: 400ms; }
.quarter-card:nth-child(3) { transition-delay: 600ms; }
.quarter-card:nth-child(4) { transition-delay: 800ms; }

/* Timeline Dot */
.timeline-dot {
  position: absolute;
  left: -46.5px;
  top: 30px;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 300ms var(--roadmap-easing);
}

/* Status-based dot colors */
.timeline-dot.status-in_progress {
  background: var(--timeline-color-in-progress);
  animation: pulse-dot 2s ease-in-out infinite;
}

.timeline-dot.status-upcoming {
  background: var(--timeline-color-upcoming);
}

.timeline-dot.status-planned {
  background: var(--timeline-color-planned);
}

.timeline-dot.status-exploration {
  background: var(--timeline-color-exploration);
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 var(--timeline-color-in-progress);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

/* Quarter Header */
.quarter-header {
  background: var(--roadmap-glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid var(--roadmap-glass-border);
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--roadmap-radius-lg);
  padding: var(--roadmap-space-6);
  margin-bottom: var(--roadmap-space-4);
  transition: all 300ms var(--roadmap-easing);
}

@supports not (backdrop-filter: blur(10px)) {
  .quarter-header {
    background: rgba(255, 255, 255, 0.95);
  }
  .dark .quarter-header {
    background: rgba(30, 41, 59, 0.95);
  }
}

.dark .quarter-header {
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quarter-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--roadmap-space-4);
  flex-wrap: nowrap;
  width: 100%;
}

.quarter-title-group {
  display: flex;
  align-items: center;
  gap: var(--roadmap-space-3);
  flex: 0 0 auto;
}

.quarter-number {
  font-size: var(--roadmap-section-title-size);
  font-weight: 700;
  color: var(--purple-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quarter-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  flex-shrink: 1;
}

.quarter-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--roadmap-radius-md);
  font-size: var(--roadmap-text-size);
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.quarter-status.status-in_progress {
  background: rgba(16, 185, 129, 0.1);
  color: var(--timeline-color-in-progress);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.quarter-status.status-upcoming {
  background: rgba(59, 130, 246, 0.1);
  color: var(--timeline-color-upcoming);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.quarter-status.status-planned {
  background: rgba(107, 116, 128, 0.1);
  color: var(--timeline-color-planned);
  border: 1px solid rgba(107, 116, 128, 0.3);
}

.quarter-status.status-exploration {
  background: rgba(147, 197, 253, 0.1);
  color: var(--timeline-color-exploration);
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.quarter-status-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.quarter-status.status-in_progress .quarter-status-icon {
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Quarter Progress Bar */
.quarter-progress {
  margin-top: var(--roadmap-space-4);
}

.quarter-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(147, 51, 234, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.quarter-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-600), var(--blue-600));
  border-radius: 4px;
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.quarter-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.quarter-progress-label {
  margin-top: 4px;
  font-size: var(--roadmap-small-size);
  color: var(--text-tertiary);
  text-align: right;
}

/* Quarter Features Container */
.quarter-features {
  display: flex;
  flex-direction: column;
  gap: var(--roadmap-space-3);
}

/* Feature Card (reuse board-item styles with adjustments) */
.feature-card {
  background: var(--roadmap-glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid var(--roadmap-glass-border);
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--roadmap-radius-lg);
  padding: var(--roadmap-space-4) var(--roadmap-space-6);
  cursor: pointer;
  user-select: none;
  transition: all var(--roadmap-duration) var(--roadmap-easing);
  will-change: transform, box-shadow, border-color;
  transform: translateY(0) translateZ(0);
  backface-visibility: hidden;
}

@supports not (backdrop-filter: blur(10px)) {
  .feature-card {
    background: rgba(255, 255, 255, 0.95);
  }
  .dark .feature-card {
    background: rgba(30, 41, 59, 0.95);
  }
}

.feature-card:hover {
  background: var(--roadmap-glass-bg-hover);
  border-color: var(--roadmap-glass-border-hover);
  box-shadow: var(--roadmap-glass-shadow-hover), 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-2px) translateZ(0);
}

.feature-card:active {
  transform: translateY(0) scale(0.99) translateZ(0);
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.12);
}

.feature-card.expanded {
  background: var(--roadmap-glass-bg-expanded);
  border-color: var(--roadmap-glass-border-expanded);
  box-shadow: var(--roadmap-glass-shadow-expanded), 0 6px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dark .feature-card {
  box-shadow: var(--roadmap-glass-shadow), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark .feature-card:hover {
  box-shadow: var(--roadmap-glass-shadow-hover), 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dark .feature-card.expanded {
  box-shadow: var(--roadmap-glass-shadow-expanded), 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Feature Row - same as item-row */
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--roadmap-space-3);
  flex-wrap: nowrap;
  min-height: 44px;
}

.feature-title {
  font-size: var(--roadmap-item-title-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-status {
  font-size: var(--roadmap-text-size);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-tertiary);
  background: rgba(147, 51, 234, 0.1);
  padding: 4px var(--roadmap-space-3);
  border-radius: var(--roadmap-radius-md);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
  flex-shrink: 0;
}

/* Status-based styling for feature cards */
.feature-status.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--timeline-color-in-progress);
}

.feature-status.status-in_progress {
  background: rgba(16, 185, 129, 0.1);
  color: var(--roadmap-progress-active);
}

.feature-status.status-upcoming {
  background: rgba(147, 51, 234, 0.1);
  color: var(--timeline-color-upcoming);
}

.feature-status.status-planned,
.feature-status.status-exploration {
  background: rgba(107, 116, 128, 0.1);
  color: var(--roadmap-progress-early);
}

/* Feature Details (collapsible) */
.feature-details {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
  border-top: 0 solid var(--border-primary);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--roadmap-duration) var(--roadmap-easing);
}

.feature-card.expanded .feature-details {
  max-height: 600px;
  padding-top: var(--roadmap-space-4);
  margin-top: var(--roadmap-space-4);
  border-top-width: 1px;
  opacity: 1;
  transform: translateY(0);
}

.feature-description {
  font-size: var(--roadmap-text-size);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--roadmap-space-4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  :root {
    --timeline-line-width: 2px;
    --timeline-dot-size: 16px;
    --timeline-spacing: 48px;
  }

  .roadmap-timeline {
    padding-left: 32px;
  }

  .timeline-line {
    left: 15px;
  }

  .timeline-dot {
    left: -24px;
    top: 45px;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }

  .quarter-card {
    padding-left: 16px;
  }

  .quarter-header {
    padding: var(--roadmap-space-4);
  }

  .quarter-header-row {
    align-items: flex-start;
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .quarter-title-group {
    display: contents;
  }

  .quarter-number {
    font-size: var(--roadmap-section-title-size-mobile);
    order: 1;
    flex: 0 0 auto;
    align-self: center;
  }

  .quarter-status {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
  }

  .quarter-title {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .feature-card {
    padding: var(--roadmap-space-3) var(--roadmap-space-4);
  }

  .feature-row {
    /* flex-direction: column removed - conflicts with mobile horizontal layout */
    align-items: flex-start;
    gap: var(--roadmap-space-2);
  }

  .feature-title {
    font-size: var(--roadmap-item-title-size-mobile);
    min-width: auto;
  }

  .feature-status {
    align-self: flex-end;
  }

  .item-icon-link {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .item-icon-link svg {
    width: 16px;
    height: 16px;
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .board-section {
    margin-bottom: var(--roadmap-space-8);
  }
  .board-section-title {
    font-size: var(--roadmap-section-title-size-mobile);
  }
  .section-emoji {
    font-size: 20px;
  }

  /* MOBILE FIX: Better spacing and layout for roadmap cards */
  .board-item {
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .item-row {
    gap: 8px;
    row-gap: 12px;
    align-items: flex-start;
  }

  .item-emoji {
    font-size: 20px;
    margin-top: 2px;
  }

  .item-title {
    font-size: var(--roadmap-item-title-size-mobile);
    font-weight: 600;
    line-height: 1.4;
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    order: 1;
  }

  .item-progress {
    font-size: var(--roadmap-small-size);
    padding: 4px var(--roadmap-space-3);
    align-self: flex-start;
    flex-shrink: 0;
    margin-left: 0;
    order: 10;
  }

  /* MOBILE FIX: Icon links - make them clearly visible and tappable */
  .item-icon-link {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(147, 51, 234, 0.08);
    border-radius: 6px;
    flex-shrink: 0;
    flex: 0 0 auto;
    align-self: center;
    order: 3;
    margin-right: 6px;
  }

  .item-icon-link svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    flex-shrink: 0;
    fill: currentColor;
  }

  /* Improve touch targets for icon links */
  .item-icon-link::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
  }

  .item-links {
    flex-direction: column;
    gap: 12px; /* Increase spacing between icons for easier tapping */
  }
  .link-button {
    width: 100%;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 10px;
  }

  /* CRITICAL FIX: Add styles for actual HTML classes (.feature-*) used by JavaScript */
  .feature-card {
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .feature-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    row-gap: 10px;
    flex-wrap: wrap;
    min-height: 44px;
  }

  .feature-title {
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.4;
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    order: 1;
    color: var(--text-color);
  }

  .feature-status {
    font-size: 12px;
    padding: 4px 8px;
    align-self: center;
    flex-shrink: 0;
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: auto;
    order: 2;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .status-board {
    max-width: 720px;
  }

  /* Ensure proper touch targets on tablet (WCAG 2.1 AAA) */
  .item-icon-link,
  .link-button {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  /* Keep SVG icon size reasonable */
  .item-icon-link svg,
  .link-button svg {
    width: 20px;
    height: 20px;
  }

  .item-links {
    gap: 12px; /* Increase spacing between icons for easier tapping */
  }
}

@media (min-width: 1280px) {
  .status-board {
    max-width: 960px;
  }
}

/* Phase 2: Small phone optimizations (320px - 480px) */
@media (max-width: 480px) {
  /* Fix quarter header horizontal overflow */
  .quarter-header-row {
    gap: var(--roadmap-space-2);
    flex-wrap: wrap;
    align-items: flex-start;
    max-width: 100%;
    row-gap: 6px;
  }

  .quarter-title-group {
    display: contents;
  }

  .quarter-number {
    order: 1;
    flex: 0 0 auto;
    align-self: center;
  }

  .quarter-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    white-space: nowrap;
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
  }

  .quarter-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* Roadmap item optimizations */
  .item-row {
    gap: var(--roadmap-space-2);
    row-gap: var(--roadmap-space-2);
  }

  .item-title {
    font-size: 15px;
    line-height: 1.3;
    word-break: break-word;
  }

  .item-emoji {
    font-size: 18px;
    flex-shrink: 0;
  }

  .item-progress {
    font-size: 12px;
    padding: 2px 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .board-item {
    padding: 12px 16px;
  }
}

/* Enhanced mobile optimizations for very small screens (320px - 375px) */
@media (max-width: 375px) {
  /* Quarter header - keep horizontal with status on top-right */
  .quarter-header-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
    row-gap: 6px;
  }

  .quarter-title-group {
    display: contents;
  }

  .quarter-number {
    order: 1;
    flex: 0 0 auto;
    align-self: center;
  }

  .quarter-status {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
  }

  .quarter-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* Further reduce roadmap item spacing */
  .board-item {
    padding: 10px 12px;
  }

  .item-row {
    gap: 6px;
  }

  .item-title {
    font-size: 14px;
  }

  .item-emoji {
    font-size: 16px;
  }

  .item-progress {
    font-size: 11px;
    padding: 2px 4px;
  }

  .item-icon-link {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 12px;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-self: center;
    order: 3;
    margin-right: 4px;
  }

  .item-icon-link svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* CRITICAL FIX: Add .feature-* styles for 375px breakpoint */
  .feature-card {
    padding: 12px 14px;
  }

  .feature-row {
    gap: 6px;
    row-gap: 10px;
  }

  .feature-title {
    font-size: 15px !important;
    line-height: 1.3;
  }

  .feature-status {
    font-size: 11px;
    padding: 3px 6px;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-self: center;
    order: 2;
    margin-right: auto;
  }
}

/* Fix horizontal scroll on smallest devices (320px) - iPhone SE */
@media (max-width: 320px) {
  .container {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* Reduce roadmap section padding */
  .roadmap-section {
    padding: 40px 0;
  }

  /* Reduce quarter card padding */
  .quarter-card {
    padding: 16px 12px;
  }

  /* Reduce feature card padding */
  .feature-card {
    padding: 12px;
  }

  /* Ensure touch targets still meet standards */
  .item-icon-link,
  .link-button {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Fix hero section overflow - constrain to viewport */
  .container {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .hero-section {
    overflow-x: hidden !important;
  }

  .hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .hero-title,
  .hero-subtitle,
  .hero-cta {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .btn-large,
  .btn-primary,
  .btn-secondary,
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all sections don't overflow */
  body,
  html {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .board-item,
  .item-details,
  .item-icon-link,
  .link-button {
    animation: none;
    transition-duration: 0.01ms;
  }
}

/* Print Styles */
@media print {
  .board-item {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .item-details {
    max-height: none !important;
    opacity: 1 !important;
  }
  .item-icon-link {
    display: none;
  }
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */

/* Cookie Consent Banner Container */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.cookie-consent-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Banner Content (Glassmorphism) */
.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(147, 51, 234, 0.2);
  box-shadow: 0 8px 32px rgba(147, 51, 234, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.1);
  animation: slideUpFade 0.4s ease;
}

/* Dark mode styles */
body.dark-mode .cookie-consent-content {
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Cookie Icon */
.cookie-icon {
  font-size: 48px;
  flex-shrink: 0;
  animation: cookieRotate 2s ease-in-out infinite;
}

@keyframes cookieRotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

/* Cookie Text */
.cookie-text {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cookie-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Cookie Actions */
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Accept Button */
.btn-cookie-accept {
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-cookie-accept::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.btn-cookie-accept:hover::before {
  left: 100%;
}

.btn-cookie-accept:active {
  transform: translateY(0);
}

/* Decline Button */
.btn-cookie-decline {
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid rgba(147, 51, 234, 0.2);
}

.btn-cookie-decline:hover {
  background: rgba(147, 51, 234, 0.08);
  border-color: rgba(147, 51, 234, 0.4);
  color: var(--purple-600);
  transform: translateY(-2px);
}

.btn-cookie-decline:active {
  transform: translateY(0);
}

/* Tablet Styles */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 16px;
  }

  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    padding: 20px 24px;
    gap: 16px;
  }

  .cookie-icon {
    font-size: 40px;
  }

  .cookie-title {
    font-size: 16px;
  }

  .cookie-description {
    font-size: 13px;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-cookie-accept,
  .btn-cookie-decline {
    width: 100%;
    padding: 14px 24px;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 12px;
  }

  .cookie-consent-content {
    padding: 16px 20px;
    gap: 12px;
  }

  .cookie-icon {
    font-size: 36px;
  }

  .cookie-title {
    font-size: 15px;
  }

  .cookie-description {
    font-size: 12px;
  }

  .btn-cookie-accept,
  .btn-cookie-decline {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility - Focus States */
.btn-cookie-accept:focus,
.btn-cookie-decline:focus {
  outline: 3px solid rgba(147, 51, 234, 0.5);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner,
  .cookie-consent-content,
  .cookie-icon,
  .btn-cookie-accept,
  .btn-cookie-decline {
    animation: none;
    transition-duration: 0.01ms;
  }

  .cookie-icon {
    animation: none;
  }
}

/* Print - Hide Cookie Banner */
@media print {
  .cookie-consent-banner {
    display: none !important;
  }
}
