/* ============================================
   PYMTWiB - Put Your Money to Work in Bitcoin
   Modern, Interactive CSS
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  --accent-orange: #f7931a;
  --accent-gold: #ffd700;
  --accent-amber: #ffb347;
  --gradient-start: #f7931a;
  --gradient-end: #ffd700;
  --gradient-alt: #ff6b00;
  --border-color: rgba(247, 147, 26, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --glow-orange: rgba(247, 147, 26, 0.4);
  --glow-gold: rgba(255, 215, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 118px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Particle Canvas --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  z-index: 1001;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #000;
}

.logo-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  transition: width 0.3s;
  border-radius: 1px;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 1px;
}

.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);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 158px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.25);
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end), var(--gradient-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-alt));
  color: #000;
  box-shadow: 0 4px 20px rgba(247, 147, 26, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247, 147, 26, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-orange);
}

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

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

/* --- Hero Visual (Bitcoin Coin) --- */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 400px;
  animation: fadeIn 1s ease 0.5s both;
}

.bitcoin-3d {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: coinSpin 8s linear infinite;
}

@keyframes coinSpin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  font-weight: 900;
  backface-visibility: hidden;
}

.coin-face.front {
  background: linear-gradient(135deg, #f7931a, #ffd700);
  color: #000;
  box-shadow: 0 0 60px rgba(247, 147, 26, 0.5), inset 0 0 40px rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.coin-face.back {
  background: linear-gradient(135deg, #ffd700, #f7931a);
  color: #000;
  transform: rotateY(180deg);
  box-shadow: 0 0 60px rgba(247, 147, 26, 0.5), inset 0 0 40px rgba(255, 255, 255, 0.1);
}

.coin-edge {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #b8720e;
  transform: translateZ(-2px);
}

/* Orbiting elements */
.orbit {
  position: absolute;
  border: 1px dashed rgba(247, 147, 26, 0.15);
  border-radius: 50%;
  animation: orbitRotate linear infinite;
}

.orbit-1 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  margin-top: -150px;
  margin-left: -150px;
  animation-duration: 12s;
}

.orbit-2 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  margin-top: -200px;
  margin-left: -200px;
  animation-duration: 18s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  margin-top: -250px;
  margin-left: -250px;
  animation-duration: 25s;
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-orange);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  margin-left: -4px;
  box-shadow: 0 0 12px var(--glow-orange);
}

/* --- Ticker Bar --- */
.ticker-bar {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: flex;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #000;
  letter-spacing: 2px;
}

.ticker-dot {
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.6rem;
}

/* --- Section Shared --- */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.2);
  color: var(--accent-orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Features Grid (Why Bitcoin) --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(247, 147, 26, 0.05);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(247, 147, 26, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-orange);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Steps Timeline (Getting Started) --- */
.getting-started {
  background: var(--bg-secondary);
}

.steps-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-orange), transparent);
}

.step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-number {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-orange);
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-top: 4px;
}

.step-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.step-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(247, 147, 26, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(247, 147, 26, 0.2);
}

/* --- Interactive Education Tabs in Step 1 --- */
.tag-interactive {
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.82rem;
  padding: 6px 16px;
}

.tag-interactive:hover {
  background: rgba(247, 147, 26, 0.2);
  border-color: var(--accent-orange);
  transform: translateY(-1px);
}

.tag-interactive.active {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #000;
  border-color: transparent;
  font-weight: 600;
}

/* Education Panels Container */
.edu-panels {
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              margin-top 0.4s ease;
}

.edu-panels.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 20px;
}

.edu-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: eduPanelIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.edu-panel.active {
  display: flex;
}

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

/* Individual Resource Item */
.edu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.edu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 3px 0 0 3px;
}

.edu-item:hover {
  background: rgba(247, 147, 26, 0.04);
  border-color: rgba(247, 147, 26, 0.25);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.edu-item:hover::before {
  opacity: 1;
}

.edu-item-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 147, 26, 0.08);
  border-radius: var(--radius-sm);
}

.edu-item-info {
  flex: 1;
  min-width: 0;
}

.edu-item-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.edu-item-author {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.edu-item-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

.edu-item-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(247, 147, 26, 0.12);
  color: var(--accent-orange);
  white-space: nowrap;
}

.edu-item-badge.beginner {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.edu-item-badge.technical {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.edu-item-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s;
}

.edu-item:hover .edu-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-orange);
}

/* Responsive adjustments for edu items */
@media (max-width: 768px) {
  .edu-item {
    flex-wrap: wrap;
    padding: 14px;
    gap: 12px;
  }

  .edu-item-badge {
    order: -1;
    margin-left: auto;
  }

  .edu-item-arrow {
    display: none;
  }

  .edu-item-info p {
    font-size: 0.8rem;
  }

  .edu-item-icon {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .edu-item {
    padding: 12px;
  }

  .edu-item-info h4 {
    font-size: 0.88rem;
  }
}

/* --- Resources Section --- */
.resource-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  color: #000;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-color: transparent;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

a.resource-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resource-card.hidden {
  display: none;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.resource-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(247, 147, 26, 0.15);
  color: var(--accent-orange);
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.resource-author {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.resource-card p:last-of-type {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.resource-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stars {
  color: var(--accent-gold);
  letter-spacing: 1px;
}

/* --- Quiz Section (Learn) --- */
.learn {
  background: var(--bg-secondary);
}

.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.quiz-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-option {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  font-size: 0.95rem;
  text-align: left;
  transition: all 0.3s;
  cursor: pointer;
}

.quiz-option:hover:not(.selected):not(.correct):not(.incorrect) {
  border-color: var(--accent-orange);
  background: rgba(247, 147, 26, 0.05);
}

.quiz-option.selected {
  border-color: var(--accent-orange);
  background: rgba(247, 147, 26, 0.1);
}

.quiz-option.correct {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.quiz-option.incorrect {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.quiz-feedback {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #86efac;
}

.quiz-feedback.incorrect {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

.quiz-next {
  margin-top: 8px;
}

.quiz-score {
  text-align: center;
}

.quiz-score h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.quiz-score p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.score-big {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

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

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

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

.faq-item.active {
  border-color: rgba(247, 147, 26, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.3s;
}

.faq-question span {
  flex: 1;
  padding-right: 16px;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0 100px;
}

.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-actions {
  position: relative;
  margin-bottom: 24px;
}

.cta-note {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.footer-copy {
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Mobile Responsive --- */
@media (max-width: 968px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 138px;
    gap: 40px;
  }

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

  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-visual {
    min-height: 300px;
  }

  .bitcoin-3d {
    width: 150px;
    height: 150px;
  }

  .coin-face {
    font-size: 3.5rem;
  }

  .orbit-1 { width: 220px; height: 220px; margin-top: -110px; margin-left: -110px; }
  .orbit-2 { width: 300px; height: 300px; margin-top: -150px; margin-left: -150px; }
  .orbit-3 { width: 380px; height: 380px; margin-top: -190px; margin-left: -190px; }

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

@media (max-width: 768px) {
  .navbar {
    top: 34px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .section {
    padding: 72px 0;
  }

  .quiz-container {
    padding: 32px 24px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .steps-timeline::before {
    left: 36px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }

  .step {
    gap: 20px;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1rem;
  }

  .steps-timeline::before {
    left: 28px;
  }
}

/* --- Selection color --- */
::selection {
  background: rgba(247, 147, 26, 0.3);
  color: var(--text-primary);
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Live Bitcoin Price Bar
   ============================================ */
.btc-price-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: 38px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-main);
  overflow: hidden;
}

.btc-price-bar-inner {
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.8rem;
}

/* --- Live Indicator --- */
.btc-price-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: btcPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
}

@keyframes btcPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.btc-live-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #4ade80;
  text-transform: uppercase;
}

/* --- Price Display --- */
.btc-price-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btc-price-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #000;
}

.btc-price-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.btc-price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  min-width: 90px;
}

/* --- 24h Change Pill --- */
.btc-price-change {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
}

.btc-price-change.positive {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.btc-price-change.negative {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

/* --- Divider --- */
.btc-price-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

/* --- Secondary Stats --- */
.btc-price-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btc-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.btc-stat-value {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Updated Timestamp --- */
.btc-price-updated {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* --- Price Flash Animation --- */
@keyframes btcPriceFlash {
  0% { color: var(--accent-gold); text-shadow: 0 0 8px var(--glow-orange); }
  100% { color: var(--text-primary); text-shadow: none; }
}

.btc-price-value.flash {
  animation: btcPriceFlash 0.8s ease-out;
}

/* --- Loading Skeleton --- */
.btc-price-value.loading,
.btc-stat-value.loading {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: btcShimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
  min-width: 70px;
  display: inline-block;
}

@keyframes btcShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Error State --- */
.btc-price-bar.error .btc-live-dot {
  background: var(--text-muted);
  box-shadow: none;
  animation: none;
}

.btc-price-bar.error .btc-live-text {
  color: var(--text-muted);
}

/* --- Price Bar Responsive --- */
@media (max-width: 968px) {
  .btc-stat-desktop {
    display: none;
  }

  .btc-price-updated {
    display: none;
  }

  .btc-price-bar-inner {
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .btc-price-bar {
    height: 34px;
  }

  .btc-price-bar-inner {
    gap: 10px;
    font-size: 0.75rem;
    justify-content: center;
  }

  .btc-price-divider,
  .btc-price-stat {
    display: none;
  }

  .btc-price-label {
    display: none;
  }
}

@media (max-width: 480px) {
  .btc-price-live-indicator .btc-live-text {
    display: none;
  }
}
