/* ============================================
   CryptoSignal Academy - Design System
   Modern Fintech Education Platform
   ============================================ */

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

/* ---- CSS Custom Properties (Light Mode Default) ---- */
:root {
  /* Primary Colors */
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --accent: #00d4ff;
  --accent-light: #67e8f9;
  --accent-dark: #0891b2;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-footer: #0f172a;
  --bg-hero: linear-gradient(135deg, #667eea 0%, #7c3aed 50%, #a78bfa 100%);
  --bg-code: #f1f5f9;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  --text-link: #7c3aed;
  --text-link-hover: #5b21b6;

  /* Borders */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Font */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;

  /* Container */
  --container-max: 1200px;
  --nav-height: 72px;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
  --primary: #a78bfa;
  --primary-light: #c4b5fd;
  --primary-dark: #7c3aed;
  --accent: #00d4ff;
  --accent-light: #67e8f9;
  --accent-dark: #06b6d4;

  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: #151c2c;
  --bg-card-hover: #1e293b;
  --bg-nav: rgba(10, 14, 26, 0.95);
  --bg-footer: #060912;
  --bg-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  --bg-code: #1e293b;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;
  --text-link: #a78bfa;
  --text-link-hover: #c4b5fd;

  --border-color: #1e293b;
  --border-light: #1e293b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

ul, ol {
  list-style: none;
}

/* ---- Utility Classes ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section-alt {
  background-color: var(--bg-secondary);
}

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

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header .accent-line {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.section-header p {
  font-size: 1.1rem;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 58, 237, 0.3);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #0f172a;
  font-weight: 700;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 212, 255, 0.3);
  color: #0f172a;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 0.95rem;
}

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

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

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

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 212, 255, 0.1));
  color: var(--primary);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
}
.nav-logo:hover { color: var(--text-primary); }

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

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

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

.nav-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
}

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

/* Theme Toggle */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}
.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all var(--transition-fast);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-lg);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
}

.hero h1 .hero-accent {
  background: linear-gradient(90deg, var(--accent), #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

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

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Floating elements decoration */
.hero-decoration {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  z-index: 1;
}

.hero-float {
  position: absolute;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.hero-float:nth-child(1) { width: 80px; height: 80px; top: 10%; left: 20%; animation-delay: 0s; }
.hero-float:nth-child(2) { width: 70px; height: 70px; top: 50%; left: 60%; animation-delay: 1.5s; }
.hero-float:nth-child(3) { width: 90px; height: 90px; top: 70%; left: 10%; animation-delay: 3s; }
.hero-float:nth-child(4) { width: 65px; height: 65px; top: 20%; left: 70%; animation-delay: 4.5s; }

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

/* ---- Page Header (for sub-pages) ---- */
.page-header {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255, 255, 255, 0.4); }
.breadcrumb .current { color: rgba(255, 255, 255, 0.9); }

/* ============================================
   DISCLAIMER BANNER
   ============================================ */
.disclaimer-banner {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.disclaimer-banner strong {
  color: var(--primary);
}

.disclaimer-banner-icon {
  font-size: 1.2rem;
  margin-right: var(--space-sm);
}

/* ============================================
   FEATURES / TOPIC CARDS
   ============================================ */
.topic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card .icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 212, 255, 0.1));
  color: var(--primary);
}

.topic-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.topic-card p {
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}

/* ============================================
   LEARNING ROADMAP
   ============================================ */
.roadmap {
  position: relative;
  padding-left: var(--space-3xl);
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: var(--radius-full);
}

.roadmap-step {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.roadmap-step:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.roadmap-step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-3xl) + 10px);
  top: var(--space-xl);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 3px solid var(--bg-primary);
}

/* ============================================
   CRYPTO TICKER
   ============================================ */
.crypto-ticker {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  padding: 8px 0;
  white-space: nowrap;
  position: relative;
  z-index: 99;
  font-size: 0.9rem;
  margin-top: var(--nav-height); /* Offset for fixed navbar */
}

/* When navbar is transparent and hero is behind it, we don't want the ticker to push everything down awkwardly, 
but since hero starts with padding-top: var(--nav-height), placing ticker below nav means we must adjust hero padding or position ticker fixed.
Wait, if navbar is fixed top:0, the ticker would be hidden behind it unless we give it a margin-top: var(--nav-height). */

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 35s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 2.5rem;
  font-weight: 500;
}

.ticker-symbol {
  color: var(--text-primary);
  margin-right: 8px;
  font-weight: 700;
}

.ticker-price {
  color: var(--text-secondary);
}

.ticker-loading {
  color: var(--text-secondary);
  font-style: italic;
  display: inline-block;
  padding-left: 20px;
}

@keyframes ticker-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.roadmap-step .step-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.roadmap-step h3 {
  margin-bottom: var(--space-sm);
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.blog-card-image {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.blog-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-sm);
  display: flex;
  gap: var(--space-md);
}

.blog-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.blog-card h3 a {
  color: var(--text-primary);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  flex: 1;
}

/* ============================================
   CTA SECTION (Newsletter)
   ============================================ */
.cta-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-hero);
  position: relative;
  color: #fff;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
}

.newsletter-form input {
  flex: 1;
  padding: 0 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-footer);
  color: #94a3b8;
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

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

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.footer-disclaimer {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  transition: transform var(--transition-base);
}

.cookie-consent.show {
  transform: translateX(-50%) translateY(0);
}

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

.cookie-consent p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-consent-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-question {
  padding: var(--space-lg) var(--space-xl);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-base);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-xl);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-base);
}

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

/* ============================================
   FORMS & CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
}

.info-card {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-card h4 {
  margin-bottom: var(--space-xs);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
}

/* ============================================
   LEGAL PAGES & CONTENT
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
}

.legal-section {
  margin-bottom: var(--space-2xl);
}

.legal-section h2 {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

/* ============================================
   GLOSSARY (Crypto Basics)
   ============================================ */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.glossary-grid dt {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.glossary-grid dd {
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-lg);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-base);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    box-shadow: var(--shadow-lg);
  }
  
  .mobile-menu-btn { display: flex; }
  
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; }
  
  .hero h1 { font-size: 2.5rem; }
  .hero-decoration { display: none; }
  .hero-stats { flex-direction: column; gap: var(--space-md); }
  
  .newsletter-form { flex-direction: column; }
  
  .glossary-grid { grid-template-columns: 1fr; }
  .legal-content { padding: var(--space-xl); }
}

.roadmap-step .step-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.roadmap-step h3 {
  margin-bottom: var(--space-sm);
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.blog-card-image .blog-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.blog-card-body {
  padding: var(--space-xl);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.blog-card-body h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.15rem;
}

.blog-card-body h3 a {
  color: var(--text-primary);
}
.blog-card-body h3 a:hover {
  color: var(--primary);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary-light);
}

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

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ============================================
   NEWSLETTER / CTA
   ============================================ */
.cta-section {
  background: var(--bg-hero);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%);
}

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

.cta-content h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  margin-bottom: 0;
}

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

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}
.footer-bottom-links a:hover {
  color: var(--accent);
}

.footer-disclaimer {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  max-width: 800px;
}

/* ============================================
   COOKIE CONSENT
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: var(--space-lg) var(--space-xl);
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-consent.show {
  transform: translateY(0);
}

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

.cookie-consent p {
  font-size: 0.9rem;
  margin: 0;
}

.cookie-consent-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ============================================
   CONTENT SECTIONS FOR EDUCATION PAGES
   ============================================ */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-block {
  margin-bottom: var(--space-3xl);
}

.content-block h2 {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-color);
}

.content-block h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--primary);
}

.content-block p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-block ul,
.content-block ol {
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
}

.content-block ul li,
.content-block ol li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  padding-left: var(--space-lg);
}

.content-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.content-block ol {
  counter-reset: list-counter;
  list-style: none;
}

.content-block ol li {
  counter-increment: list-counter;
}

.content-block ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.info-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(0, 212, 255, 0.06));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.warning-box {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
}

.warning-box h4 {
  color: #f59e0b;
  margin-bottom: var(--space-sm);
}

/* ---- Glossary ---- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.glossary-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.glossary-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.glossary-item dt {
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.glossary-item dd {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- Legal Pages ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.legal-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.legal-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
  color: var(--primary);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
}

.legal-content ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.legal-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.legal-meta {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-xs);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

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

  .hero-decoration {
    display: none;
  }

  .hero { min-height: 80vh; }

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

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

@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero-stats { gap: var(--space-xl); }

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

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

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

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

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

  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  :root {
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}
