/* ═══════════════════════════════════════════
   siff — design tokens (matches Qt overlay)
   ═══════════════════════════════════════════ */
:root {
    --bg-main:      #141416;
    --bg-card:      #1a1a1a;
    --bg-card-hover:#222222;
    --border:       #2a2a2a;
    --border-subtle:#222222;
    --accent:       #4a9eff;
    --accent-dim:   #3578cc;
    --text:         #cccccc;
    --text-dim:     #666666;
    --white:        #f0f0f0;
    --green:        #34d399;
    --yellow:       #fbbf24;
    --radius:       12px;
    --radius-sm:    8px;
    --radius-xs:    6px;
}

/* ═══ Reset ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ═══ Container ═══ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ═══ Nav ═══ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(20, 20, 22, .85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.logo {
    font-size: 22px; font-weight: 800; color: var(--white);
    letter-spacing: -0.5px;
    display: inline-flex; align-items: center; gap: 8px;
}
.logo-icon {
    width: 28px; height: 28px; object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(74, 158, 255, .3));
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--white); }

/* Mobile toggle */
.mobile-toggle {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 5px; padding: 4px;
}
.mobile-toggle span {
    display: block; width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: .3s;
}

/* ═══ Buttons ═══ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; font-size: 14px; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all .2s ease; border: none; gap: 8px;
}
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-primary {
    padding: 14px 32px;
    background: var(--accent); color: #fff;
    box-shadow: 0 0 20px rgba(74, 158, 255, .25);
}
.btn-primary:hover {
    background: #5aadff;
    box-shadow: 0 0 30px rgba(74, 158, 255, .4);
    transform: translateY(-1px);
}
.btn-outline {
    padding: 14px 32px;
    background: transparent; color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: rgba(74, 158, 255, .08);
    transform: translateY(-1px);
}
.btn-sm.btn { background: var(--accent); color: #fff; }
.btn-sm.btn:hover { background: #5aadff; }

/* ═══ Hero ═══ */
.hero {
    position: relative; padding: 160px 0 100px;
    text-align: center; overflow: hidden;
}
.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(74,158,255,.12) 0%, transparent 70%);
    pointer-events: none;
}
.badge {
    display: inline-block; padding: 6px 16px;
    font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
    color: var(--accent); background: rgba(74,158,255,.08);
    border: 1px solid rgba(74,158,255,.2); border-radius: 50px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 72px); font-weight: 800;
    line-height: 1.08; letter-spacing: -1.5px;
    color: var(--white); margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 17px; color: var(--text-dim);
    max-width: 480px; margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin-top: 64px; padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--white); }
.stat-label { font-size: 13px; color: var(--text-dim); }

/* ═══ Sections ═══ */
.section { padding: 100px 0; }
.section-alt { background: rgba(26, 26, 26, .4); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--accent); margin-bottom: 12px;
}
.section-header h2 {
    font-size: 36px; font-weight: 800; color: var(--white);
    letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-header p { color: var(--text-dim); font-size: 15px; max-width: 460px; margin: 0 auto; }

/* ═══ Games Grid ═══ */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s ease;
}
.game-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.game-card.coming-soon { opacity: .6; }
.game-card.coming-soon:hover { opacity: .8; border-color: var(--border); transform: translateY(-2px); }
.game-img-wrap { position: relative; aspect-ratio: 460/215; overflow: hidden; }
.game-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover .game-img-wrap img { transform: scale(1.05); }
.status-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; font-size: 11px; font-weight: 600;
    border-radius: 50px; backdrop-filter: blur(8px);
}
.status-badge.live { background: rgba(52,211,153,.15); color: var(--green); border: 1px solid rgba(52,211,153,.3); }
.status-badge.dev  { background: rgba(251,191,36,.1);  color: var(--yellow); border: 1px solid rgba(251,191,36,.2); }
.game-info { padding: 16px 20px; }
.game-info h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.game-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
    padding: 3px 10px; font-size: 11px; font-weight: 500;
    border-radius: 50px;
    background: rgba(74,158,255,.08); color: var(--accent);
    border: 1px solid rgba(74,158,255,.15);
}
.tag.dim { background: rgba(102,102,102,.1); color: var(--text-dim); border-color: var(--border); }

/* ═══ Features Grid ═══ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all .25s ease;
}
.feature-card:hover {
    border-color: rgba(74,158,255,.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.feature-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(74,158,255,.08);
    margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--accent); }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ═══ CTA ═══ */
.cta-section { padding: 80px 0; }
.cta-card {
    text-align: center; padding: 64px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center top, rgba(74,158,255,.06) 0%, transparent 60%);
    pointer-events: none;
}
.cta-card h2 { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-card p { color: var(--text-dim); margin-bottom: 28px; font-size: 15px; }
.cta-card .hero-btns { position: relative; z-index: 1; }

/* ═══ TOS ═══ */
.tos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px; margin-bottom: 32px;
}
.tos-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.tos-card h3 {
    font-size: 15px; font-weight: 700; color: var(--accent);
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.tos-card li {
    font-size: 13px; color: var(--text-dim); line-height: 1.8;
    padding-left: 14px; position: relative;
}
.tos-card li::before {
    content: ''; position: absolute; left: 0; top: 10px;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--border);
}
.tos-footer {
    text-align: center; font-size: 13px; color: var(--text-dim);
    padding-top: 20px; border-top: 1px solid var(--border-subtle);
}

/* ═══ Footer ═══ */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-dim { font-size: 13px; color: var(--text-dim); }
.footer-discord { color: var(--text-dim); transition: color .2s; }
.footer-discord:hover { color: var(--accent); }

/* ═══ Scrollbar ═══ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ═══ Animations ═══ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══ Mobile ═══ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(20, 20, 22, .95);
        backdrop-filter: blur(20px);
        padding: 24px; gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .mobile-toggle { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .games-grid, .features-grid, .tos-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; }
}
