/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #06060c;
  --bg-card: #0d0d16;
  --bg-card-alt: #111120;
  --border: #1a1a30;
  --gold: #d4a017;
  --gold-light: #f5d061;
  --gold-glow: rgba(212, 160, 23, 0.3);
  --blue: #4fc3f7;
  --blue-glow: rgba(79, 195, 247, 0.3);
  --text: #e8e8f0;
  --text-muted: #7a7a9a;
  --text-dim: #4a4a6a;
  --success: #4caf50;
  --danger: #ef5350;
  --font-display: 'Orbitron', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* === Navigation === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 14px 16px;
  white-space: nowrap;
  transition: color 0.2s, box-shadow 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.nav-link.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* === Hero === */
.hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 160, 23, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(79, 195, 247, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, #06060c 0%, #0a0a18 50%, #06060c 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 24px var(--gold-glow));
  border: 3px solid var(--gold);
  transition: transform 0.3s, filter 0.3s;
}

.hero-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 40px var(--gold-glow));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  margin-bottom: 8px;
}

.hero-ticker {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--blue);
  letter-spacing: 6px;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Stats === */
.stats-section {
  padding: 40px 0 60px;
  position: relative;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.stat-card {
  flex: 0 1 calc(25% - 15px);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card.glow-gold:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow);
}

.stat-card.glow-blue:hover {
  border-color: var(--blue);
  box-shadow: 0 0 30px var(--blue-glow);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-unit {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Section Titles === */
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

/* === Checker === */
.checker-section {
  padding: 60px 0;
}

.checker-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 24px;
}

.checker-form input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.checker-form input:focus {
  border-color: var(--gold);
}

.checker-form input::placeholder {
  color: var(--text-dim);
}

.checker-form button {
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.checker-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.checker-form button:active {
  transform: translateY(0);
}

.checker-result {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.checker-result.hidden {
  display: none;
}

.checker-result.eligible {
  border-color: var(--success);
  background: rgba(76, 175, 80, 0.08);
}

.checker-result.not-eligible {
  border-color: var(--danger);
  background: rgba(239, 83, 80, 0.08);
}

.result-status {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-status.yes { color: var(--success); }
.result-status.no { color: var(--danger); }

.result-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

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

/* === Leaderboard === */
.leaderboard-section {
  padding: 60px 0;
}

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

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.leaderboard-table thead {
  background: var(--bg-card-alt);
}

.leaderboard-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

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

.leaderboard-table tbody tr {
  background: var(--bg-card);
  transition: background 0.15s;
}

.leaderboard-table tbody tr:hover {
  background: var(--bg-card-alt);
}

.rank-1 { color: var(--gold-light); font-weight: 700; }
.rank-2 { color: #c0c0c0; font-weight: 600; }
.rank-3 { color: #cd7f32; font-weight: 600; }

.wallet-addr {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--blue);
}

.sol-amount {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold-light);
}

.empty-row {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 20px !important;
  font-style: italic;
}

/* === Distributions === */
.distributions-section {
  padding: 60px 0;
}

.dist-list {
  max-width: 700px;
  margin: 0 auto;
}

.dist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.dist-item:hover {
  border-color: var(--gold);
}

.dist-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dist-amount {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
}

.dist-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.dist-date {
  font-size: 12px;
  color: var(--text-dim);
  text-align: right;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 40px;
  font-style: italic;
}

/* === How It Works === */
.how-section {
  padding: 60px 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.how-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.how-card:hover {
  border-color: var(--gold);
}

.how-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text);
}

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

.rules-box {
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 0 30px var(--gold-glow);
}

.rules-box h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.rules-box ul {
  list-style: none;
}

.rules-box li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  position: relative;
}

.rules-box li:last-child {
  border-bottom: none;
}

.rules-box li::before {
  content: "\25C6";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 10px;
  top: 10px;
}

.rules-box li strong {
  color: var(--gold-light);
}

.rules-box li em {
  color: var(--blue);
  font-style: normal;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

/* === Token Info === */
.token-section {
  padding: 60px 0;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.token-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.token-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.token-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.token-value.mono {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--blue);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Live Activity Log === */
.log-section {
  padding: 0 0 20px;
}

.public-log {
  background: #0a0a0a;
  border: 1px solid #1a3a1a;
  border-radius: 12px;
  max-height: 216px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  box-shadow: inset 0 0 30px rgba(0, 255, 0, 0.03);
}

.public-log .log-entry {
  display: flex;
  gap: 10px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(0, 255, 0, 0.06);
}

.public-log .log-entry:last-child {
  border-bottom: none;
}

.public-log .log-time {
  color: #3a7a3a;
  flex-shrink: 0;
}

.public-log .log-tag {
  color: #00dd00;
  flex-shrink: 0;
  min-width: 90px;
}

.public-log .log-text {
  color: #33cc33;
  word-break: break-word;
}

.public-log .log-warn .log-text {
  color: #cccc00;
}

.public-log .log-error .log-text {
  color: #ff4444;
}

.public-log .log-empty {
  padding: 32px;
  text-align: center;
  color: #2a6a2a;
  font-style: italic;
}

/* === Footer === */
.footer {
  padding: 60px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.footer-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
}

/* === Responsive === */
@media (max-width: 640px) {
  .nav-inner {
    justify-content: flex-start;
    gap: 4px;
  }

  .nav-link {
    font-size: 10px;
    padding: 12px 10px;
    letter-spacing: 1px;
  }

  .hero {
    padding: 60px 16px 50px;
  }

  .hero-logo {
    width: 120px;
    height: 120px;
  }

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

  .stat-value {
    font-size: 24px;
  }

  .checker-form {
    flex-direction: column;
  }

  .checker-form button {
    width: 100%;
  }

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

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 10px 12px;
  }

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

/* === Animations === */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.stat-value {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--text-dim);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
