/* ============================================
   FxMath Evolution — Modern Landing & Docs
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-deep: #0a0a1a;
  --bg-card: #12122a;
  --bg-elevated: #1a1a3e;
  --bg-hover: #222255;
  --border: #2a2a5a;
  --border-light: #3a3a7a;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px var(--primary-glow);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #67e8f9; }
img { max-width: 100%; height: auto; }

/* ---------- Animated Grid Background ---------- */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.bg-glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  animation: glowFloat 8s ease-in-out infinite alternate;
}
.bg-glow-1 { top: -200px; right: -100px; background: var(--primary); }
.bg-glow-2 { bottom: -200px; left: -100px; background: var(--accent); animation-delay: -4s; }

@keyframes glowFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.12; }
  100% { transform: translate(60px, -40px) scale(1.2); opacity: 0.2; }
}

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ---------- Glass Card ---------- */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.glass:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.glass-static {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), #8b5cf6) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  box-shadow: 0 0 30px var(--primary-glow);
  transform: scale(1.03);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- SVG Animations ---------- */
@keyframes dash {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; filter: blur(8px); }
  50% { opacity: 1; filter: blur(4px); }
}
@keyframes drawCircle {
  from { stroke-dashoffset: 315; }
  to { stroke-dashoffset: 0; }
}
.anim-float { animation: floatY 3s ease-in-out infinite; }
.anim-float-delay { animation: floatY 3s ease-in-out 1.5s infinite; }
.anim-glow { animation: glowPulse 2s ease-in-out infinite; }
.anim-dash { stroke-dasharray: 200; stroke-dashoffset: 200; animation: dash 2s ease forwards; }
.anim-dash-2 { stroke-dasharray: 150; stroke-dashoffset: 150; animation: dash 2s ease 0.3s forwards; }
.anim-dash-3 { stroke-dasharray: 100; stroke-dashoffset: 100; animation: dash 2s ease 0.6s forwards; }
.anim-fade-scale { animation: fadeInScale 0.6s ease forwards; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 80px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent);
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 0 40px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual .orb {
  width: 400px; height: 400px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), #8b5cf6, var(--primary));
  animation: spin 8s linear infinite;
  opacity: 0.3;
  filter: blur(50px);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual .inner-orb {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.feature-icon.purple { background: rgba(99,102,241,0.15); color: var(--primary); }
.feature-icon.cyan { background: rgba(34,211,238,0.15); color: var(--accent); }
.feature-icon.green { background: rgba(16,185,129,0.15); color: var(--success); }
.feature-icon.amber { background: rgba(245,158,11,0.15); color: var(--warning); }
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- How It Works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.step-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; max-width: 280px; margin: 0 auto; }
.step-arrow {
  position: absolute;
  top: 50%;
  right: -24px;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.4;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.pricing-card.popular {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, var(--bg-card) 100%);
}
.pricing-card.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.pricing-name { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.pricing-price .currency { font-size: 1.2rem; }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.pricing-btn:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.pricing-card.popular .pricing-btn {
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  border: none;
}
.pricing-card.popular .pricing-btn:hover {
  box-shadow: 0 0 30px var(--primary-glow);
}
.payment-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.payment-note strong { color: var(--warning); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 740px;
  margin: 48px auto 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--border-light); }
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: var(--text-muted);
  flex-shrink: 0;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Comparison Table ---------- */
.comparison-section { background: rgba(99,102,241,0.02); }
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.compare-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.compare-card:hover { border-color: var(--border-light); transform: translateY(-4px); }
.compare-card.bad { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.compare-card.good { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.04); }
.compare-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.compare-card table { width: 100%; border-collapse: collapse; }
.compare-card td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.compare-card td:first-child { font-weight: 600; color: var(--text-primary); width: 40%; }
.compare-card tr:last-child td { border-bottom: none; }
.compare-check { color: var(--success); font-weight: 700; }
.compare-cross { color: var(--danger); }

/* ---------- Online Learning Deep Dive ---------- */
.online-learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.ol-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}
.ol-card:hover { transform: translateY(-4px); border-color: var(--border-light); }
.ol-card .ol-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 16px;
}
.ol-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.ol-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ---------- Support Badge ---------- */
.support-bar {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(34,211,238,0.05));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.support-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.support-item .support-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.support-item a { color: var(--text-primary); font-weight: 500; }
.support-item a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- 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);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---------- Docs Pages ---------- */
.docs-page {
  background: var(--bg-deep);
}
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-top: 90px;
  padding-bottom: 60px;
  min-height: 100vh;
}
.docs-sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.docs-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.docs-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 2px;
  transition: all 0.15s;
}
.docs-nav a:hover { color: #fff; background: var(--bg-hover); }
.docs-nav a.active {
  color: var(--accent);
  background: rgba(34,211,238,0.08);
  border-left: 2px solid var(--accent);
}
.docs-content {
  max-width: 800px;
}
.docs-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.docs-content .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.docs-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.docs-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.docs-content ul, .docs-content ol {
  margin: 12px 0 20px 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.docs-content li { margin-bottom: 6px; }
.docs-content code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.docs-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 16px 0 24px;
}
.docs-content pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.docs-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.docs-card:hover { border-color: var(--border-light); }
.docs-card .emoji { font-size: 2rem; margin-bottom: 10px; }
.docs-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.docs-card p { font-size: 0.85rem; margin-bottom: 0; }
.docs-card a { font-size: 0.85rem; font-weight: 600; }
.docs-tip {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.docs-tip .tip-icon { font-size: 1.2rem; flex-shrink: 0; }
.docs-tip p { font-size: 0.88rem; margin-bottom: 0; }
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.specs-table th, .specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.specs-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.specs-table td { color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-visual .orb { width: 280px; height: 280px; }
  .hero-visual .inner-orb { width: 140px; height: 140px; font-size: 2.5rem; }
  .hero-stats { margin-top: 32px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 32px auto 0; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,26,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .online-learning-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
