/* ============================================================
   Torzon Official - Elevated Cyberpunk Design System
   Inherits parent site purple/cyan DNA + glassmorphism + animations
   Gold/amber accent for official/verified status indicators
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors - inheriting parent Torzon palette */
  --color-primary: #7c3aed;
  --color-primary-hover: #6d28d9;
  --color-primary-active: #5b21b6;
  --color-primary-light: #a78bfa;
  --color-primary-glow: rgba(124, 58, 237, 0.3);
  --color-accent: #06b6d4;
  --color-accent-hover: #0891b2;
  --color-official: #ffd700;
  --color-official-hover: #e6c200;
  --color-official-glow: rgba(255, 215, 0, 0.3);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --bg-card: #15151f;
  --bg-card-hover: #1c1c2a;
  --bg-elevated: #1e1e2e;
  --bg-overlay: rgba(10, 10, 15, 0.95);

  /* Text */
  --text-primary: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --text-muted: #525252;
  --text-link: #a78bfa;
  --text-code: #10b981;

  /* Typography - Inter + JetBrains Mono */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
  --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #ffd700 100%);
  --gradient-official: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  --gradient-card: linear-gradient(180deg, #15151f 0%, #0a0a0f 100%);

  /* Borders & Shadows - parent radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-glow-primary: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(124, 58, 237, 0.1);
  --shadow-glow-official: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);

  /* Transitions - parent 0.2s ease */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 350ms ease;
}

/* --- CSS @property for Animated Gradients --- */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --mesh-x {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: false;
}

@property --mesh-y {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: false;
}

/* --- Reset / Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 72px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.5);
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: #ffffff;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* --- Header (sticky, glassmorphism) --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  height: 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  color: var(--color-official);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
}

.logo-accent {
  color: var(--color-official);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-official);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-official);
  border-radius: 1px;
}

.nav-external::after {
  content: ' \2197';
  font-size: 0.8em;
}

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

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-primary-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-verified {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-official {
  background: rgba(255, 215, 0, 0.15);
  color: var(--color-official);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--color-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* --- Hero Section (animated mesh gradient) --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-20) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at var(--mesh-x) var(--mesh-y), rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at calc(100% - var(--mesh-x)) calc(100% - var(--mesh-y)), rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  animation: meshMove 15s ease-in-out infinite;
}

@keyframes meshMove {
  0%, 100% { --mesh-x: 30%; --mesh-y: 30%; }
  33% { --mesh-x: 70%; --mesh-y: 50%; }
  66% { --mesh-x: 40%; --mesh-y: 70%; }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-glow-1,
.hero-glow-2,
.hero-glow-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: glowFloat 10s ease-in-out infinite;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -5%;
  background: rgba(124, 58, 237, 0.15);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -10%;
  right: -5%;
  background: rgba(255, 215, 0, 0.1);
  animation-delay: -5s;
}

.hero-glow-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  background: rgba(6, 182, 212, 0.1);
  animation-delay: -2.5s;
}

@keyframes glowFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, #7c3aed 0%, #ffd700 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

.hero-stat {
  text-align: center;
}

.stat-item {
  text-align: center;
}

.hero-stat-value,
.stat-value {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-official);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.2);
}

.hero-stat-label,
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Neon Text Glow --- */
.neon-text {
  text-shadow:
    0 0 7px rgba(124, 58, 237, 0.5),
    0 0 10px rgba(124, 58, 237, 0.4),
    0 0 21px rgba(124, 58, 237, 0.3),
    0 0 42px rgba(124, 58, 237, 0.2);
}

/* --- Hero Quick-Link Card (instant value above fold) --- */
.hero-quick-link {
  background: rgba(21, 21, 31, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-10);
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.hero-quick-link::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: conic-gradient(from var(--angle), var(--color-primary), var(--color-official), var(--color-accent), var(--color-primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

/* --- Section Styling --- */
.section {
  padding: var(--space-20) 0;
}

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

.section-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Glassmorphism Cards --- */
.glass-card {
  background: rgba(21, 21, 31, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
}

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Feature Cards --- */
.card-feature {
  text-align: center;
}

.card-image {
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Mirror Link Cards --- */
.mirror-card {
  background: rgba(21, 21, 31, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

.mirror-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: var(--shadow-glow-official);
}

.mirror-card.mirror-primary {
  border-color: rgba(255, 215, 0, 0.2);
}

.mirror-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.mirror-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.status-online {
  background: var(--color-success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.8); }
}

.status-text {
  font-size: var(--text-sm);
  color: var(--color-success);
  font-weight: 500;
}

.mirror-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(0, 0, 0, 0.3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.onion-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-official);
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  cursor: pointer;
  flex-shrink: 0;
}

.mirror-info {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.mirror-info-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.mirrors-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* --- Steps / How-to --- */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.step-item {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-light);
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  text-align: left;
  font-family: var(--font-primary);
}

.faq-question::after {
  content: '+';
  font-size: var(--text-2xl);
  color: var(--color-primary-light);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: var(--space-4);
}

.faq-item.active .faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-6);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* --- Alert Boxes --- */
.alert {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-warning);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-error);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}

/* --- PGP Key Block --- */
.pgp-key-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
}

.pgp-key-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-code);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.pgp-key-block .copy-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-success);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Scroll Animations (Intersection Observer driven) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Content Section Text Styling --- */
.content-section h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  margin-top: var(--space-12);
}

.content-section h3 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  margin-top: var(--space-8);
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.content-section ul,
.content-section ol {
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.content-section li {
  margin-bottom: var(--space-2);
}

.content-section a {
  color: var(--color-primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-section a:hover {
  color: var(--color-accent);
}

.content-section code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--text-code);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-20) 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-16) 0 var(--space-8);
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-tagline {
  color: var(--text-secondary);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}

.footer-desc {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

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

.footer-security h4 {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-crypto {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
}

.crypto-widget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.crypto-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.crypto-icon {
  font-size: 24px;
}

.crypto-sublabel {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.crypto-name {
  font-weight: 600;
  color: var(--color-warning);
}

.crypto-value {
  font-weight: 600;
  color: var(--color-success);
}

.crypto-updated {
  text-align: right;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-warning {
  margin-bottom: var(--space-2);
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */

/* --- 1200px --- */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: var(--text-5xl);
  }
}

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

/* --- 768px --- */
@media (max-width: 768px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    padding: var(--space-6);
    gap: var(--space-4);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
  }

  .nav-actions.open {
    display: flex;
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    background: var(--bg-overlay);
    padding: 0 var(--space-6) var(--space-6);
    justify-content: center;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-6);
  }

  .hero {
    min-height: 70vh;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex-direction: column;
  }
}

/* --- 480px --- */
@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .container {
    padding: 0 var(--space-4);
  }

  .hero-stat-value,
  .stat-value {
    font-size: var(--text-2xl);
  }

  .hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }

  .section {
    padding: var(--space-12) 0;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
