* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #f3f4f6;
}

body {
    background: #0b0d12;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

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

.hero {
    background: radial-gradient(circle at top, #1a2235, #0b0d12 70%);
    padding: 5rem 0 4rem;
    text-align: center;
}

.tagline {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: #7dd3fc;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}

.hero-copy {
    max-width: 720px;
    margin: 0 auto 2rem;
    color: #d1d5db;
}

.domain {
    color: #38bdf8;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.btn.primary {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #0b0d12;
}

.btn.secondary {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn.outline {
    border: 1px solid rgba(125, 211, 252, 0.6);
    background: transparent;
}

.btn.tertiary {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #f8fafc;
}

.cta-buttons .btn.tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 0.75rem;
}

.btn.disabled {
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

.features {
    padding: 4rem 0;
}

.downloads {
    padding: 4rem 0 3rem;
    background: rgba(12, 16, 26, 0.9);
}

.downloads .intro {
    max-width: 720px;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 1rem;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-card.loading,
.download-card.error {
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #cbd5f5;
}

.download-card h3 {
    color: #f8fafc;
    font-size: 1.25rem;
}

.download-card .version {
    color: #7dd3fc;
    font-weight: 600;
}

.download-card .desc {
    color: #cbd5f5;
}


.download-source {
    margin-top: 1.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.download-source a {
    color: #38bdf8;
}
.download-card .count {
    color: #94a3b8;
    font-size: 0.9rem;
}

.download-card .btn {
    margin-top: auto;
    text-align: center;
}

.download-card.unavailable {
    opacity: 0.65;
}

.download-alert {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.download-alert strong {
    color: #fbbf24;
}

.features h2,
.how-it-works h2,
.leaderboard h2,
.cta h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 1rem;
    padding: 1.6rem;
    backdrop-filter: blur(6px);
    min-height: 200px;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: #f8fafc;
}

.feature-card p {
    color: #cbd5f5;
}

.how-it-works {
    background: rgba(15, 18, 27, 0.9);
    padding: 4rem 0;
}

.steps {
    display: grid;
    gap: 1rem;
    counter-reset: step;
}

.steps li {
    list-style: none;
    padding-left: 3.2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem 1.5rem 1.5rem 3.5rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.steps li strong {
    color: #f8fafc;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 50%;
    left: 1.2rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #0b0d12;
}

.leaderboard {
    padding: 4rem 0;
}

.leaderboard .intro {
    max-width: 760px;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.setup-card {
    border-radius: 1rem;
    padding: 1.6rem;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.setup-card h3 {
    color: #7dd3fc;
    margin-bottom: 0.8rem;
}

.live-board {
    background: rgba(9, 13, 23, 0.95);
    padding: 4rem 0;
}

.live-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.board-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #cbd5f5;
}

.board-controls input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #f8fafc;
    border-radius: 0.6rem;
    padding: 0.45rem 0.75rem;
    min-width: 220px;
}

.leaderboard-table {
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.05);
    padding: 1.5rem;
    min-height: 180px;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.leaderboard-table th {
    color: #7dd3fc;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.leaderboard-table .loading,
.leaderboard-table .error,
.leaderboard-table .empty,
.leaderboard-table .note {
    text-align: center;
    margin: 1.5rem 0;
    color: #cbd5f5;
}

.cta {
    background: #0f172a;
    padding: 3.5rem 0;
    text-align: center;
}

.cta p {
    color: #cbd5f5;
    margin-bottom: 1.5rem;
}

.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    background: #080a0f;
}

.footer p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.download-total {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #7dd3fc;
}

@media (max-width: 640px) {
    .steps li {
        padding-left: 3rem;
    }

    .live-board-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .board-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .board-controls input {
        width: 100%;
    }
}
