:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --buy: #3fb950;
  --sell: #f85149;
  --hold: #d29922;
  --accent: #58a6ff;
  --gold: #f0b429;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ——— Nav ——— */
.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-logo:hover { text-decoration: none; }

.live-dot {
  color: var(--buy);
  font-size: 0.85rem;
}

.site-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-links a:hover,
.site-links a.active {
  color: var(--text);
}

/* ——— Layout ——— */
.site-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.site-footer a { color: var(--muted); }

/* ——— Hero ——— */
.hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
}

.hero-badge {
  display: inline-block;
  background: #3fb95022;
  color: var(--buy);
  border: 1px solid var(--buy);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--buy);
  color: #0d1117;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: #4cc762;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: var(--surface);
  text-decoration: none;
}

/* ——— Features ——— */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ——— Content pages ——— */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.prose p,
.prose li {
  color: var(--muted);
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem 1.25rem;
  color: var(--muted);
}

.prose li { margin-bottom: 0.5rem; }

.prose strong { color: var(--text); }

.steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  background: var(--accent);
  color: #0d1117;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.factors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.factor {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.cta-box {
  background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
}

.cta-box h2 { margin-bottom: 0.5rem; }

.cta-box p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* ——— Ads ——— */
.ad-slot {
  min-height: 90px;
  margin: 1.5rem auto;
  max-width: 728px;
  background: #0d1117;
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.ad-slot.ad-loaded {
  border-style: solid;
  min-height: auto;
}

.ad-slot:empty::before {
  content: 'Ad space';
}

/* ——— Affiliate ——— */
.affiliate-slot { margin: 2rem 0; }

.affiliate-box {
  background: linear-gradient(135deg, #1a2332 0%, #161b22 100%);
  border: 1px solid #3fb95044;
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
}

.affiliate-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--buy);
  border: 1px solid var(--buy);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.affiliate-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.affiliate-box p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.affiliate-cta { display: inline-block; }

.affiliate-disclosure {
  font-size: 0.75rem !important;
  color: var(--muted) !important;
  margin: 1rem 0 0 !important;
  opacity: 0.8;
}

/* ——— Cookie bar ——— */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 9999;
  font-size: 0.85rem;
}

.cookie-bar p { color: var(--muted); margin: 0; }

.cookie-accept {
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem !important;
}

@media (max-width: 600px) {
  .site-nav { padding: 0.75rem 1rem; }
  .site-wrap { padding: 1.5rem 1rem; }
}
