/* ========================================
   BoomtownTrades — Design System
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0A0B02;
  --bg-card: #191B0B;
  --bg-card-hover: #1F2110;
  --bg-glass: rgba(212, 255, 0, 0.03);
  --text-primary: #f9f8e0;
  --text-muted: #a3a18b;
  --text-dim: #6b6a58;
  --accent: #D4FF00;
  --accent-glow: rgba(212, 255, 0, 0.15);
  --accent-hover: #C7EF00;
  --accent-2: #10b981;
  --accent-2-glow: rgba(16, 185, 129, 0.2);
  --border: rgba(212, 255, 0, 0.06);
  --radius: 4px;
  --radius-lg: 4px;
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -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%; display: block; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(10, 11, 2, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-size: 1.3rem; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.nav-brand .logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent); color: #000 !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 700; font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  color: #000 !important;
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; left: -20%; width: 140%; height: 200%;
  background: radial-gradient(ellipse at 50% 0%, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-glass); border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; color: var(--accent); font-weight: 600;
  margin-bottom: 28px; position: relative;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 24px; position: relative;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero .subtitle {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 580px; margin: 0 auto 40px; position: relative;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #C7EF00);
  color: #000; padding: 14px 32px;
  border-radius: 10px; font-weight: 800; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #000;
}
.btn-secondary {
  background: var(--bg-glass); color: var(--text-primary);
  padding: 14px 32px; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover {
  background: var(--bg-card-hover); border-color: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 60px; flex-wrap: wrap; position: relative;
}
.stat { text-align: center; }
.stat-number {
  font-size: 2rem; font-weight: 900; color: var(--accent);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* --- Section --- */
.section { padding: 100px 0; }
.section-title {
  font-size: 2rem; font-weight: 800; text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center; color: var(--text-muted);
  max-width: 560px; margin: 0 auto 56px; font-size: 1.05rem;
}

/* --- How It Works --- */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: transform 0.25s, border-color 0.25s;
  position: relative;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 255, 0, 0.15);
}
.step-num {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #C7EF00);
  color: #000; font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Pricing --- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: 800px; margin: 0 auto;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px;
  text-align: center; position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.price-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000; font-size: 0.7rem;
  font-weight: 800; padding: 4px 16px; border-radius: 50px;
  letter-spacing: 0.05em;
}
.price-card:hover { transform: translateY(-4px); }
.price-tier { font-size: 0.85rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.price-amount { font-size: 2.8rem; font-weight: 900; margin-bottom: 4px; }
.price-period { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 24px; }
.price-features { list-style: none; text-align: left; margin-bottom: 28px; }
.price-features li {
  padding: 8px 0; color: var(--text-muted); font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.price-features li:last-child { border: none; }
.price-features .check { color: var(--accent-2); font-weight: 700; }

/* --- Use Cases --- */
.trades-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; max-width: 700px; margin: 0 auto;
}
.trade-pill {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px;
  text-align: center; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, border-color 0.2s;
}
.trade-pill:hover { transform: translateY(-2px); border-color: var(--accent); }
.trade-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, rgba(212,255,0,0.06), rgba(16,185,129,0.03));
  border: 1px solid rgba(212,255,0,0.1);
  border-radius: var(--radius-lg); padding: 60px 40px;
  text-align: center; margin: 0 auto; max-width: var(--max-w);
}
.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: var(--text-muted); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text-dim); font-size: 0.8rem; }

/* --- Legal Pages --- */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; font-weight: 700; margin-top: 40px; margin-bottom: 12px; }
.legal-page h3 { font-size: 1.1rem; font-weight: 600; margin-top: 28px; margin-bottom: 8px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 6px; }
.legal-page .highlight-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin: 20px 0;
}
.legal-page .highlight-box p { margin-bottom: 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 130px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .stats-bar { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .pricing-grid { grid-template-columns: 1fr; }
}
