:root {
  --bg: #0a0a0a;
  --bg-light: #111111;
  --surface: #1a1a1a;
  --text: #e5e5e5;
  --text-muted: #737373;
  --accent: #00d4aa;
  --winner: #14f195;
  --coordinator: #f7931a;
  --operations: #00c2ff;
  --border: rgba(255,255,255,0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-muted);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 48px;
  position: relative;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  margin-right: 16px;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* Mobile nav */
@media (max-width: 640px) {
  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 48px;
    left: 0;
    flex-direction: column;
    background: rgba(10,10,10,0.98);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px 24px;
    gap: 12px;
    min-width: 200px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
  }
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ANIMATIONS (non-hero only) ===== */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: var(--text);
}

.tagline {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 48px;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-bullets span::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

/* Join Card */
.join-card {
  max-width: 600px;
  margin: 0 auto 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
}

.copy-box {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 56px 20px 20px;
  margin-bottom: 28px;
}

.copy-box p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.copy-btn.copied {
  color: var(--winner);
  border-color: var(--winner);
}

.join-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.join-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

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

.join-step p strong {
  color: var(--text);
  font-weight: 600;
}

/* WHO WE ARE SECTION */
.who-we-are-section {
  text-align: center;
}

.who-content {
  max-width: 640px;
  margin: 0 auto;
}

.who-content .lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.who-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.formula-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 32px;
  margin: 28px 0;
  display: inline-block;
}

.formula-box code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--winner);
}

.who-content .btn {
  margin-top: 8px;
}

/* Live Status */
.live-status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
  margin: 40px auto 0;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.status-item {
  text-align: left;
}

.status-item .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.status-item .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.status-loading {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== SECTIONS ===== */
section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 48px;
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}

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

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

/* Economics */
.split-visual {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.split {
  flex: 1;
  padding: 36px 20px;
  border-radius: 12px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.split:hover {
  transform: translateY(-3px);
}

.split span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.split.winner {
  background: rgba(20, 241, 149, 0.06);
  color: var(--winner);
  border: 1px solid rgba(20, 241, 149, 0.12);
}

.split.coordinator {
  background: rgba(247, 147, 26, 0.06);
  color: var(--coordinator);
  border: 1px solid rgba(247, 147, 26, 0.12);
}

.split.operations {
  background: rgba(0, 194, 255, 0.06);
  color: var(--operations);
  border: 1px solid rgba(0, 194, 255, 0.12);
}

.detail {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.detail strong {
  color: var(--text);
  font-weight: 600;
}

/* Verify */
.verify {
  text-align: center;
}

.verify p {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 17px;
}

.verify-sub {
  font-size: 15px !important;
  margin-bottom: 16px !important;
}

.verify-list {
  list-style: none;
  max-width: 400px;
  margin: 0 auto 28px;
  text-align: left;
  padding: 0;
}

.verify-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
}

.verify-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--winner);
  font-weight: 600;
}

.links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.recent-draws table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.recent-draws th {
  text-align: left;
  padding: 14px 16px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
}

.recent-draws td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.recent-draws tr:hover td {
  background: rgba(255,255,255,0.02);
}

.recent-draws a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.recent-draws a:hover {
  opacity: 0.7;
  text-decoration: underline;
}



/* Disclaimer */
.disclaimer {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}

.disclaimer-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.disclaimer-box h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 24px;
}

.disclaimer-box h3:first-child {
  margin-top: 0;
}

.disclaimer-box p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Footer */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

footer p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 14px;
}

.social {
  display: flex;
  gap: 28px;
  justify-content: center;
}

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

.social a:hover {
  color: var(--text);
}

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

  .manifesto {
    font-size: 18px;
  }

  .manifesto .highlight {
    font-size: 15px;
  }

  .split-visual {
    flex-direction: column;
  }

  .split {
    font-size: 24px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .who-we-are {
    padding: 24px;
    margin: 32px auto;
  }

  .join-card {
    padding: 24px;
  }

  .copy-box {
    padding: 16px 48px 16px 16px;
  }

  .copy-box p {
    font-size: 12px;
  }

  .join-step p {
    font-size: 13px;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
