:root {
  --bg: #0d0d0d;
  --surface: #151515;
  --surface-light: #202020;
  --text: #f5f5f5;
  --muted: #a5a5a5;
  --accent: #dfff00;
  --accent-dark: #b8d400;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 24px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 20px auto;
  padding: 16px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(16px);

  position: sticky;
  top: 15px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-weight: 950;
  letter-spacing: -1px;
}

.brand-token {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.nav-join {
  background: var(--accent);
  color: #000 !important;
  padding: 10px 16px;
  border-radius: 12px;
}

.nav-login {
  color: var(--text) !important;
}

.menu-toggle {
  display: none;

  border: 0;
  background: transparent;
  color: var(--text);

  font-size: 24px;
  cursor: pointer;
}

main {
  overflow: hidden;
}

.hero {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 100px auto 140px;
}

.hero-badge,
.eyebrow {
  display: inline-block;

  color: var(--accent);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero h1 {
  margin-top: 25px;

  max-width: 900px;

  font-size: clamp(60px, 10vw, 140px);
  line-height: 0.86;
  letter-spacing: -7px;
  font-weight: 950;
}

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

.hero-text {
  max-width: 650px;
  margin-top: 40px;

  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 22px;

  border-radius: 14px;

  font-weight: 900;

  transition:
    transform 0.25s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-4px) scale(1.02);
}

.button:active {
  transform: translateY(2px) scale(.98);
}

.button-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.12);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-note {
  margin-top: 60px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin-top: 15px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: -4px;
}

.section-heading p {
  margin-top: 25px;
  color: var(--muted);
  font-size: 18px;
}

.card-grid,
.impact-grid,
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.meme-card,
.impact-card,
.game-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;

  background: var(--surface);

  transition:
    transform 0.3s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow 0.25s ease;
}

.meme-card:hover,
.impact-card:hover,
.game-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.card-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.meme-card h3,
.impact-card h3,
.game-card h3 {
  margin-top: 25px;
  font-size: 28px;
}

.meme-card p,
.impact-card p,
.game-card p {
  margin-top: 12px;
  color: var(--muted);
}

.dark-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - var(--max-width)) / 2));
  padding-right: max(20px, calc((100% - var(--max-width)) / 2));

  background: #111;
}

.impact-label,
.game-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.game-card {
  display: block;
  position: relative;
}

.game-arrow {
  display: block;
  margin-top: 30px;
  font-size: 30px;
  font-weight: 900;
}

.cta-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 80px auto;
  padding: 70px;

  border-radius: 30px;

  background: var(--accent);
  color: #000;
}

.cta-section h2 {
  margin-top: 15px;
  font-size: clamp(50px, 7vw, 90px);
  line-height: 0.9;
  letter-spacing: -5px;
}

.cta-section p {
  margin: 25px 0;
}

.cta-section .button {
  background: #000;
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px max(20px, calc((100% - var(--max-width)) / 2)) 30px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  color: var(--muted);
  margin-top: 10px;
}

.footer-small {
  color: var(--accent) !important;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;

  border-top: 1px solid var(--border);

  display: flex;
  justify-content: space-between;

  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;

    position: absolute;

    top: calc(100% + 10px);
    left: 0;
    right: 0;

    padding: 20px;

    flex-direction: column;
    align-items: stretch;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 18px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px;
  }

  .card-grid,
  .impact-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
  }

  .hero h1 {
    letter-spacing: -4px;
  }

  .cta-section {
    padding: 40px 25px;
  }

}

/* ============================================================
   AUTH
   ============================================================ */

.auth-section {
    width: min(100%, 760px);
    margin: 80px auto;
    padding: 20px;
}

.auth-container {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 45px;
    background: var(--surface);
}

.auth-heading {
    margin-bottom: 35px;
}

.auth-heading h1 {
    margin-top: 12px;
    font-size: clamp(45px, 7vw, 80px);
    line-height: .9;
    letter-spacing: -4px;
}

.auth-heading p {
    margin-top: 20px;
    color: var(--muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 900;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px 16px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #0d0d0d;
    color: var(--text);

    font: inherit;
    outline: none;

    transition: border-color .2s ease,
                box-shadow .2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px
        rgba(223, 255, 0, .08);
}

.form-group small {
    color: var(--muted);
    font-size: 12px;
}

.form-error {
    margin-bottom: 20px;
    padding: 14px 16px;

    border: 1px solid rgba(255, 80, 80, .3);
    border-radius: 14px;

    background: rgba(255, 80, 80, .08);
    color: #ff8c8c;

    font-weight: 700;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 15px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.form-divider::before,
.form-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--muted);
    font-size: 13px;
}

.checkbox-row input {
    margin-top: 4px;
}

.checkbox-row a {
    color: var(--text);
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.auth-switch {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 800;
}


/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-section {
    width: min(1200px, calc(100% - 40px));
    margin: 70px auto 100px;
}

.dashboard-welcome h1 {
    margin-top: 15px;

    font-size: clamp(45px, 7vw, 85px);
    line-height: .9;

    letter-spacing: -4px;
}

.dashboard-welcome p {
    margin-top: 20px;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    margin-top: 45px;
}

.stat-card {
    padding: 25px;

    border: 1px solid var(--border);
    border-radius: 22px;

    background: var(--surface);
}

.stat-card span {
    display: block;

    color: var(--muted);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.stat-card strong {
    display: block;

    margin-top: 10px;

    font-size: 38px;
    line-height: 1;
}

.stat-card small {
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

    margin-top: 25px;
}

.dashboard-card {
    position: relative;

    min-height: 240px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: var(--surface);

    transition:
        transform .3s cubic-bezier(.34,1.56,.64,1),
        box-shadow .25s ease;
}

.dashboard-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.3);
}

.dashboard-card h2 {
    margin-top: 18px;
    font-size: 30px;
}

.dashboard-card p {
    margin-top: 10px;
    color: var(--muted);
}

.dashboard-card .button {
    margin-top: 25px;
    border: 0;
    cursor: pointer;
}

.card-arrow {
    position: absolute;

    right: 25px;
    bottom: 20px;

    font-size: 30px;
    font-weight: 900;
}

.action-result {
    margin-top: 15px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 800;
}

.profile-card {
    margin-top: 25px;

    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: var(--surface);
}

.profile-card h2 {
    margin-top: 10px;
    letter-spacing: 2px;
}

.profile-card p {
    margin-top: 5px;
    color: var(--muted);
}

.logout-form {
    margin-top: 30px;
}

.logout-button {
    padding: 10px 15px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: transparent;
    color: var(--muted);

    cursor: pointer;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .auth-container {
        padding: 25px;
        border-radius: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

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

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* ============================================================
   NAV — REFERRALS + LOGOUT
   ============================================================ */

.nav-referrals {
  color: var(--muted);
}

.nav-referrals:hover {
  color: var(--text);
}

.nav-logout-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.nav-logout {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 14px;
  transition: 0.2s ease;
}

.nav-logout:hover {
  color: var(--text);
  border-color: var(--accent);
}