/**
 * Helix VPN Website Styles
 *
 * Theme: Dark cyberpunk with golden accent (logo) and cyan highlights (app theme)
 * Colors matched to app theme: src/theme/index.ts
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */

:root {
  /* Background Scale - from app theme */
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #202020;
  --bg-hover: #262626;
  --bg-selected: #2a2a2a;

  /* Surface States */
  --surface-default: #1a1a1a;
  --surface-hover: #222222;
  --surface-active: #2a2a2a;
  --surface-muted: #161616;

  /* Brand Colors */
  --gold: #F5A623;
  --gold-light: #FFD54F;
  --gold-dark: #C68400;
  --gold-muted: rgba(245, 166, 35, 0.15);
  --gold-glow: rgba(245, 166, 35, 0.4);

  /* Accent - Electric Cyan (from app) */
  --accent: #00D9FF;
  --accent-muted: rgba(0, 217, 255, 0.25);
  --accent-subtle: rgba(0, 217, 255, 0.08);
  --accent-hover: #33E1FF;

  /* Status Colors */
  --success: #00FF94;
  --success-muted: rgba(0, 255, 148, 0.12);
  --warning: #FFB800;
  --warning-muted: rgba(255, 184, 0, 0.12);
  --error: #FF3B5C;
  --error-muted: rgba(255, 59, 92, 0.12);

  /* Cipher Colors */
  --cipher-aes: #00D9FF;
  --cipher-chacha: #FF6B35;
  --cipher-xchacha: #A855F7;
  --cipher-onion: #9B59B6;

  /* Text Hierarchy */
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #707070;
  --text-disabled: #505050;

  /* Borders */
  --border-default: #252525;
  --border-subtle: #1a1a1a;
  --border-strong: #333333;

  /* Typography - Adobe Typekit (Good Times) */
  --font-display: "good-times", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "good-times-bad-times", "good-times", sans-serif;
  --font-mono: 'SF Mono', 'Consolas', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 100ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Ambient Background
   ======================================== */

.ambient-bg {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
}

.helix-strand {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  animation: ambientDrift 30s ease-in-out infinite;
}

.strand-1 {
  top: 10%;
  right: 20%;
  background: var(--gold);
}

.strand-2 {
  bottom: 30%;
  left: 10%;
  background: var(--accent);
  animation-delay: -15s;
  animation-direction: reverse;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  animation: ambientDrift 25s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: 50%;
  right: 30%;
  background: var(--cipher-xchacha);
  animation-delay: -8s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  left: 30%;
  background: var(--cipher-chacha);
  animation-delay: -20s;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5%, -5%) scale(1.05); }
  50% { transform: translate(-3%, 3%) scale(0.95); }
  75% { transform: translate(-5%, -3%) scale(1.02); }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(5deg); }
  50% { transform: translate(-20px, 20px) rotate(-5deg); }
  75% { transform: translate(10px, 40px) rotate(3deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.1); }
}

/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: var(--space-sm) var(--space-xl);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--gold);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  padding: var(--space-xl);
  flex-direction: column;
  gap: var(--space-lg);
  z-index: var(--z-dropdown);
  border-bottom: 1px solid var(--border-default);
}

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

.mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-md) 0;
}

.mobile-cta {
  padding: var(--space-md) var(--space-xl);
  font-size: 14px;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--gold);
  border-radius: var(--radius-pill);
  text-align: center;
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-4xl);
  padding: calc(80px + var(--space-4xl)) var(--space-xl) var(--space-4xl);
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--gold-muted);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px var(--gold-glow);
}

.btn-secondary {
  background: var(--surface-default);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-default);
}

/* Hero Visual - Route Visualization */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.8s ease 0.5s forwards;
  opacity: 0;
}

.route-visualization {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--space-2xl);
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  min-width: 120px;
  transition: all var(--transition-normal);
}

.route-node:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.node-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.node-you .node-icon {
  color: var(--accent);
}

.node-relay .node-icon {
  color: var(--gold);
}

.node-exit {
  border-color: var(--cipher-xchacha);
}

.node-exit .node-icon {
  color: var(--cipher-xchacha);
}

.node-internet .node-icon {
  color: var(--success);
}

.node-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.node-cipher {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
}

.route-path {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--border-default) 0%, var(--gold) 50%, var(--border-default) 100%);
}

.path-packet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-glow);
  animation: packetFlow 2s ease-in-out infinite;
}

.path-1 .path-packet { animation-delay: 0s; }
.path-2 .path-packet { animation-delay: 0.5s; }
.path-3 .path-packet { animation-delay: 1s; }
.path-4 .path-packet { animation-delay: 1.5s; }

@keyframes packetFlow {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(80px + var(--space-3xl));
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .route-visualization {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .route-path {
    width: 40px;
    height: auto;
  }

  .path-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--border-default) 0%, var(--gold) 50%, var(--border-default) 100%);
  }

  .path-packet {
    animation: packetFlowH 2s ease-in-out infinite;
  }

  @keyframes packetFlowH {
    0% { left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
  }
}

@media (max-width: 640px) {
  .hero-visual {
    display: none;
  }
}

/* ========================================
   Section Base
   ======================================== */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-5xl) var(--space-xl);
}

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

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: var(--space-sm) var(--space-lg);
  background: var(--gold-muted);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   Features Section
   ======================================== */

.features {
  background: var(--bg-secondary);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  padding: var(--space-2xl);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent), 0.1);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  color: var(--accent);
}

.feature-icon[style*="--accent: #F5A623"] {
  background: var(--gold-muted);
  color: var(--gold);
}

.feature-icon[style*="--accent: #00D9FF"] {
  background: var(--accent-subtle);
  color: var(--accent);
}

.feature-icon[style*="--accent: #A855F7"] {
  background: rgba(168, 85, 247, 0.1);
  color: #A855F7;
}

.feature-icon[style*="--accent: #FF6B35"] {
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
}

.feature-icon[style*="--accent: #10B981"] {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.feature-icon[style*="--accent: #EC4899"] {
  background: rgba(236, 72, 153, 0.1);
  color: #EC4899;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========================================
   Security Modes Section
   ======================================== */

.security {
  position: relative;
}

.security-modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.mode-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.mode-card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
}

.mode-recommended {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.05) 0%, var(--bg-secondary) 100%);
}

.mode-recommended:hover {
  border-color: var(--gold-light);
}

.mode-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-xs) var(--space-md);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--gold);
  border-radius: var(--radius-pill);
}

.mode-onion {
  border-color: var(--cipher-onion);
}

.mode-onion:hover {
  border-color: #B370CF;
}

.mode-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.mode-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--mode-color, var(--accent)) 12%, transparent);
  border-radius: var(--radius-md);
  color: var(--mode-color, var(--accent));
  flex-shrink: 0;
}

.mode-info {
  flex: 1;
}

.mode-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.mode-cipher {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.mode-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.mode-specs {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mode-specs li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.mode-specs li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 1024px) {
  .security-modes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .security-modes {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
  background: var(--bg-secondary);
  position: relative;
}

.how-it-works::before,
.how-it-works::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

.how-it-works::before {
  top: 0;
}

.how-it-works::after {
  bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-4xl);
}

.step {
  display: flex;
  gap: var(--space-xl);
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  min-width: 80px;
}

.step-content {
  padding-top: var(--space-sm);
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.step-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ========================================
   Download Section
   ======================================== */

.download {
  text-align: center;
  padding: var(--space-5xl) var(--space-xl);
}

.download-content {
  max-width: 640px;
  margin: 0 auto;
}

.download-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-2xl);
}

.download-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.download-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.download-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  min-width: 180px;
}

.download-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.download-btn svg {
  flex-shrink: 0;
}

.download-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.download-btn-small {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.download-btn-large {
  font-size: 16px;
  font-weight: 600;
}

.download-github:hover {
  border-color: var(--text-secondary);
}

.download-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-4xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  width: 40px;
  height: 40px;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-heading {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer-column a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2xl);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Utilities
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
