@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0a0a0a;
    --bg-soft: #121212;
    --panel: #1a1a1a;
    --line: #222222;
    --text: #ffffff;
    --muted: #888888;
    --brand: #00ff66;
    --brand-dark: #00cc52;
    --ok: #00ffcc;
    --shadow: 0 4px 20px rgba(0, 255, 102, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 255, 102, 0.2);
    --radius: 14px;
    --font-heading: 'Oxanium', cursive;
    --font-body: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(18, 18, 18, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

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

.main-nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--bg-soft);
}

.main-nav .nav-cta {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}

.main-nav .nav-cta:hover {
    background: var(--brand-dark);
    color: #fff;
}

.menu-toggle {
    display: none;
    border: 1.5px solid var(--line);
    background: var(--panel);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
}

/* ── Main ── */
#app {
    padding: 32px 0 48px;
}

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
}

.hero-content,
.hero-stats,
.block,
.form-card,
.legal-page,
.table-wrap,
.card {
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-content {
    padding: 32px;
}

.hero-visuals {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-banner {
    background: var(--panel);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-banner:hover .hero-img {
    transform: scale(1.05);
}

.eyebrow {
    display: inline-block;
    color: var(--ok);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(26, 143, 92, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
}

h1 {
    font-family: var(--font-heading);
    margin-top: 14px;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    text-transform: uppercase;
}

.hero-text {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.97rem;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--brand);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
}

.btn-primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--line);
}

.btn-secondary:hover {
    background: var(--bg-soft);
    border-color: #c5c1ba;
}

.hero-stats {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.stat-card {
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 16px;
}

.stat-card h3 {
    font-family: var(--font-heading);
    color: var(--brand);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.stat-card p {
    color: var(--muted);
    margin-top: 4px;
    font-size: 0.88rem;
}

/* ── Blocks ── */
.block {
    margin-top: 18px;
    padding: 22px;
}

.block h2,
.section-head h2,
.form-card h2,
.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Cards ── */
.card-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    padding: 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--brand);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
    transform: translateY(-5px);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card p {
    color: var(--muted);
    margin: 8px 0 14px;
    font-size: 0.9rem;
}

/* ── Section Head ── */
.section-head {
    margin-bottom: 14px;
}

.section-head p {
    color: var(--muted);
    margin-top: 4px;
}

/* ── Table ── */
.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

th, td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1.5px solid var(--line);
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--bg-soft);
}

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

tr:hover td {
    background: #2a2a2a;
}

/* ── Forms ── */
.form-card {
    max-width: 550px;
    padding: 28px;
}

form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

input,
textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
    background: var(--bg-soft);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(212, 64, 39, 0.1);
    background: var(--panel);
}

/* ── Legal ── */
.legal-page {
    padding: 24px;
    max-width: 720px;
}

.legal-page h2 {
    margin-bottom: 4px;
}

.legal-page p {
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
    border-top: 1.5px solid var(--line);
    margin-top: 24px;
    background: var(--panel);
}

.footer-inner {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

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

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

/* Leaderboard Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tab-btn {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--brand);
    color: var(--bg);
    border-color: var(--brand);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Toast ── */
.toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.25s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }
    .main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        background: var(--panel);
        border-bottom: 1.5px solid var(--line);
        box-shadow: var(--shadow-lg);
        gap: 10px;
        z-index: 100;
    }
    .main-nav.open {
        display: flex;
    }
    .main-nav a {
        width: 100%;
        padding: 12px 15px;
        background: var(--bg-soft);
        text-align: center;
    }
    .footer-inner {
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .section-head {
        text-align: center;
    }
    .section-head div {
        justify-content: center !important;
    }
}

@media (max-width: 560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .hero-content,
    .block,
    .form-card,
    .legal-page {
        padding: 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .hero-stats {
        grid-template-columns: 1fr;
    }
}
