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

:root {
  --bg-dark: #0a0b0f;
  --bg-card: #12131a;
  --bg-card-hover: #1a1b25;
  --bg-header: rgba(10, 11, 15, 0.95);
  --accent: #f7b731;
  --accent-hover: #f0a500;
  --accent-glow: rgba(247, 183, 49, 0.15);
  --text-main: #e8e8ec;
  --text-muted: #8a8a9a;
  --text-heading: #ffffff;
  --border: #1e1f2a;
  --green: #2ecc71;
  --red: #e74c3c;
  --blue: #3498db;
  --purple: #9b59b6;
  --gradient-gold: linear-gradient(135deg, #f7b731 0%, #f0a500 50%, #e8960a 100%);
  --gradient-dark: linear-gradient(180deg, #0a0b0f 0%, #111220 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px rgba(247, 183, 49, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav { display: flex; gap: 4px; }

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li { list-style: none; }

.nav a {
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: var(--text-heading);
  background: var(--bg-card);
}

.header-buttons { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #0a0b0f;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(247, 183, 49, 0.35);
  color: #0a0b0f;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }

/* ─── Burger ─── */
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text-main); margin: 5px 0; transition: 0.3s; border-radius: 2px; }

/* ─── Hero ─── */
.hero {
  padding: 120px 24px 60px;
  text-align: center;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-heading);
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.2;
  position: relative;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

/* ─── Sections ─── */
.section { padding: 64px 0; }

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 640px;
}

/* ─── Table of Contents ─── */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc li { margin-bottom: 6px; }

.toc a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

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

/* ─── Content ─── */
.content { max-width: 900px; }

.content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 48px 0 16px;
  padding-top: 16px;
}

.content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  margin: 32px 0 12px;
}

.content p { margin-bottom: 16px; color: var(--text-main); }

.content ul, .content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.content li { margin-bottom: 8px; }

/* ─── Cards Grid ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.25s;
}

.card:hover {
  border-color: rgba(247, 183, 49, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ─── Table ─── */
.table-wrap { overflow-x: auto; margin: 24px 0; }

.styled-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.styled-table th {
  background: #1a1b25;
  color: var(--accent);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.styled-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-main);
}

.styled-table tr:hover td { background: rgba(247, 183, 49, 0.03); }

/* ─── Steps ─── */
.steps { counter-reset: step; margin: 32px 0; }

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
}

.step-content h3 { margin: 0 0 4px; font-size: 16px; }
.step-content p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ─── Info box ─── */
.info-box {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p { margin: 0; font-size: 14px; }

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-q::before { content: '▸'; color: var(--accent); font-size: 14px; }

.faq-a { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

.cta-banner h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Features row ─── */
.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-item {
  text-align: center;
  padding: 24px 16px;
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.feature-item p { font-size: 13px; color: var(--text-muted); }

/* ─── Crypto list ─── */
.crypto-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.crypto-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}

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

.crypto-item .icon { font-size: 32px; margin-bottom: 8px; }
.crypto-item h4 { font-size: 14px; font-weight: 600; color: var(--text-heading); margin-bottom: 4px; }
.crypto-item p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ─── Footer ─── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-about p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 12px; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  padding: 4px 0;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-badges span {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 100px 16px 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 600px) {
  .header-buttons .btn-outline { display: none; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 15px; }
  .section-title { font-size: 24px; }
  .content h2 { font-size: 22px; }
  .cta-banner { padding: 24px 16px; }
  .styled-table { font-size: 13px; }
}

/* ─── Mobile nav overlay ─── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 15, 0.97);
  z-index: 200;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  color: var(--text-main);
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 28px;
  cursor: pointer;
}

/* ─── Breadcrumbs ─── */
.breadcrumbs {
  padding: 80px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }
