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

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #111111;
  --accent: #00ff88;
  --accent-hover: #00cc6a;
  --danger: #ff4444;
  --warning: #ffaa00;
  --text: #e0e0e0;
  --text-muted: #888888;
  --border: #2a2a2a;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--accent);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.nav-aff-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-aff-btn:hover {
  background: var(--accent-hover);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #141414 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}

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

.hero p {
  color: var(--text-muted);
  max-width: 800px;
  margin: 1rem auto 0;
}

.hero .nav-aff-btn {
  margin-top: 1.5rem;
  margin-left: 0;
  display: inline-block;
}

/* Modules */
.module {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.module:last-child {
  border-bottom: none;
}

.module h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.module h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.module p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.module ul,
.module ol {
  color: var(--text-muted);
  margin: 0 0 1rem 1.5rem;
}

.module li {
  margin-bottom: 0.4rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
}

/* Buttons */
.cta-button,
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-button:hover,
.btn:hover {
  background: var(--accent-hover);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn.secondary:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Disclosure */
.aff-disclosure {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

th {
  background: var(--bg-dark);
  color: var(--text);
  padding: 1rem;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #1a1a1a;
}

/* FAQ / details */
details {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

summary {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

details p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

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

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .module {
    padding: 2rem 0;
  }

  .card {
    padding: 1.5rem;
  }

  table {
    min-width: 700px;
  }
}
