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

:root {
    --race-from:    #ef4444;
    --race-to:      #f97316;
    --unicorn-from: #7c3aed;
    --unicorn-to:   #ec4899;
    --bg:           #0f172a;
    --bg-alt:       #1e293b;
    --surface:      #1e293b;
    --border:       #334155;
    --text:         #e2e8f0;
    --muted:        #94a3b8;
    --accent:       #38bdf8;
    --radius:       1rem;
    --radius-lg:    1.5rem;
    --shadow:       0 4px 24px rgba(0,0,0,.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: inherit;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: filter .15s, transform .1s;
    text-decoration: none;
    padding: .6rem 1.4rem;
    font-size: .95rem;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn:active { transform: scale(.96); }

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }

.btn-race {
    background: linear-gradient(135deg, var(--race-from), var(--race-to));
    color: #fff;
    margin-top: 1.25rem;
}
.btn-unicorn {
    background: linear-gradient(135deg, var(--unicorn-from), var(--unicorn-to));
    color: #fff;
    margin-top: 1.25rem;
}

/* ── Badge ────────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    background: rgba(56,189,248,.15);
    border: 1px solid rgba(56,189,248,.35);
    color: var(--accent);
    border-radius: 2rem;
    padding: .3rem .9rem;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: .02em;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
}
.logo-icon { font-size: 1.5rem; }

.header-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}
.header-nav a {
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
    transition: color .15s;
}
.header-nav a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 680px) {
    .header-nav { display: none; }
    .logo-text { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    background: radial-gradient(ellipse 90% 70% at 60% 40%, rgba(99,102,241,.18) 0%, transparent 70%),
                radial-gradient(ellipse 60% 50% at 20% 80%, rgba(236,72,153,.12) 0%, transparent 60%),
                var(--bg);
    padding: 4rem 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.highlight { color: var(--accent); }

.hero-sub {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.75rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
}

/* ── Game preview cards ───────────────────────────────────────────────────── */
.game-preview {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card-race {
    background: linear-gradient(135deg, var(--race-from), var(--race-to));
}
.card-unicorn {
    background: linear-gradient(135deg, var(--unicorn-from), var(--unicorn-to));
}

.preview-icon { font-size: 3rem; }
.preview-label {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    margin-bottom: .5rem;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* ── Games grid ───────────────────────────────────────────────────────────── */
.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .games-grid { grid-template-columns: 1fr; }
}

.game-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s;
}
.game-card:hover { transform: translateY(-4px); }

.game-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
}
.race-header    { background: linear-gradient(135deg, var(--race-from), var(--race-to)); }
.unicorn-header { background: linear-gradient(135deg, var(--unicorn-from), var(--unicorn-to)); }

.game-icon { font-size: 2.5rem; }
.game-card-header h3 { font-size: 1.5rem; font-weight: 900; color: #fff; }

.game-card-body { padding: 1.5rem 2rem; }
.game-card-body p { color: var(--muted); margin-bottom: 1rem; }

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .95rem;
    color: var(--text);
}
.feature-list li { padding: .1rem 0; }

/* ── Features grid ────────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .features-grid { grid-template-columns: 1fr; } }

.feature-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color .2s;
}
.feature-item:hover { border-color: var(--accent); }

.feature-icon { font-size: 2rem; margin-bottom: .6rem; }
.feature-item h4 { font-weight: 800; margin-bottom: .4rem; }
.feature-item p { color: var(--muted); font-size: .9rem; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 680px) { .steps-grid { grid-template-columns: 1fr; } }

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h4 { font-weight: 800; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }

.cta-block { text-align: center; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--muted);
    font-size: .875rem;
}
