/* ══════════════════════════════════════════════════════════════
   Gaming Freedom — Design System
   Premium creator community. Clean, confident, elevated.
   Dark base with warm violet accents. No neon, no crypto,
   no AI template. Think: high-end streaming platform meets
   professional community hub.
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --bg: #09090f;
    --bg-deep: #060609;
    --surface: #111118;
    --surface-2: #16161f;
    --card: #13131c;
    --card-hover: #1a1a25;
    --border: rgba(124, 58, 237, 0.10);
    --border-light: rgba(124, 58, 237, 0.18);
    --border-hover: rgba(124, 58, 237, 0.30);
    --text: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #555570;
    --primary: #7c3aed;
    --primary-hover: #8b5cf6;
    --primary-glow: rgba(124, 58, 237, 0.20);
    --primary-soft: rgba(124, 58, 237, 0.08);
    --blue: #3b82f6;
    --blue-soft: rgba(59, 130, 246, 0.10);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.10);
    --green-glow: rgba(34, 197, 94, 0.25);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.10);
    --amber: #f59e0b;
    --amber-soft: rgba(245, 158, 11, 0.10);
    --twitch: #9146ff;
    --twitch-soft: rgba(145, 70, 255, 0.12);
    --youtube: #ff0000;
    --youtube-soft: rgba(255, 0, 0, 0.10);
    --kick: #53fc18;
    --kick-soft: rgba(83, 252, 24, 0.10);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 4px 24px rgba(124, 58, 237, 0.15);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); -webkit-font-smoothing: antialiased; font-weight: 450; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

/* ── Base ── */
html {
    background: var(--bg);
    min-height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 650;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
p { color: var(--text-secondary); line-height: 1.7; }

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 80px 0;
}
.section + .section {
    border-top: 1px solid var(--border);
}

/* ── Navigation ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 15, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 32px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.nav-logo svg {
    width: 28px;
    height: 28px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    display: block;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--primary-soft);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}
.nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}
.nav-mobile-toggle svg {
    width: 24px;
    height: 24px;
}

/* ── Hero ── */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero h1 {
    margin-bottom: 16px;
}
.hero h1 .accent {
    background: linear-gradient(135deg, var(--primary) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn-primary {
    color: #fff;
    background: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
.btn-secondary {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--surface-2);
}
.btn-sm {
    padding: 8px 16px;
    font-size: 0.82rem;
}

/* ── Cards ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ── Stat cards ── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

/* ── Streamer card ── */
.streamer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: default;
}
.streamer-card:hover {
    border-color: var(--border-hover);
    background: var(--card-hover);
}
.streamer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    overflow: hidden;
    border: 2px solid var(--border);
}
.streamer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.streamer-info {
    flex: 1;
    min-width: 0;
}
.streamer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.streamer-name a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.streamer-name a:hover {
    color: var(--primary);
}
.platform-badge {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition);
}
.platform-badge:hover {
    opacity: 0.8;
}
.streamer-game {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.streamer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Platform badges ── */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.platform-badge.twitch {
    color: var(--twitch);
    background: var(--twitch-soft);
}
.platform-badge.youtube {
    color: var(--youtube);
    background: var(--youtube-soft);
}
.platform-badge.kick {
    color: var(--kick);
    background: var(--kick-soft);
}

/* ── Live indicator ── */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}
.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
    overflow-x: auto;
}
.tab {
    flex: 1;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
}
.tab:hover {
    color: var(--text);
    background: var(--surface-2);
}
.tab.active {
    color: #fff;
    background: var(--primary);
}
.tab.active[data-platform="live"] {
    background: var(--green);
}
.tab .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.12);
}
.tab.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Search ── */
.search-bar {
    position: relative;
    margin-bottom: 24px;
}
.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition);
}
.search-bar input::placeholder {
    color: var(--text-muted);
}
.search-bar input:focus {
    border-color: var(--border-hover);
}
.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.search-bar .search-icon svg {
    width: 18px;
    height: 18px;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.4;
}
.empty-state p {
    font-size: 0.9rem;
}

/* ── Feature grid ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    padding: 28px;
}
.feature-card .feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: var(--radius-xs);
    margin-bottom: 16px;
    font-size: 1.3rem;
}
.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.feature-card p {
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Values list ── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.value-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.value-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    border-radius: var(--radius-xs);
    flex-shrink: 0;
    font-size: 1rem;
}
.value-item h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.value-item p {
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ── Team/Leadership ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.team-card {
    text-align: center;
    padding: 32px 24px;
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--border-light);
}
.team-card h3 {
    margin-bottom: 4px;
}
.team-card .team-role {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}
.team-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ── Footer ── */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    background: var(--bg-deep);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    font-size: 0.85rem;
    margin-top: 12px;
    max-width: 280px;
}
.footer h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--text);
}
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.footer-social a:hover {
    border-color: var(--border-hover);
    color: var(--text);
}
.footer-social svg {
    width: 16px;
    height: 16px;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-12 { margin-top: 12px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ── Reveal animation ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-mobile-toggle {
        display: block;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        gap: 4px;
    }
    .hero {
        padding: 60px 0 48px;
    }
    .section {
        padding: 48px 0;
    }
    .card-grid,
    .feature-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .stat-row {
        grid-template-columns: 1fr 1fr;
    }
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .stat-row {
        grid-template-columns: 1fr;
    }
    .streamer-card {
        flex-wrap: wrap;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
