/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #1DB954;
    --green-dark: #14a146;
    --green-dim: rgba(29,185,84,0.12);
    --bg: #0d0d0d;
    --bg-2: #111111;
    --bg-card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #f5f5f5;
    --text-muted: #888;
    --font-head: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 48px;
    height: 68px;
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo span { color: var(--green); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    flex: 1;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-cta {
    background: var(--green);
    color: #000;
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.nav-cta:hover { background: var(--green-dark); transform: scale(1.03); }
a.nav-cta { display: inline-flex; align-items: center; text-decoration: none; }

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: auto;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 64px;
    padding: 120px 64px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(29,185,84,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29,185,84,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}
.glow-1 {
    width: 600px; height: 600px;
    background: rgba(29,185,84,0.12);
    top: -100px; left: -100px;
}
.glow-2 {
    width: 500px; height: 500px;
    background: rgba(29,185,84,0.07);
    bottom: -150px; right: 0;
}

/* Left column */
.hero-left {
    flex: 1;
    max-width: 540px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s ease both;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-dim);
    border: 1px solid rgba(29,185,84,0.25);
    color: var(--green);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 22px;
}
.hero-title-accent {
    color: var(--green);
    position: relative;
}
.hero-title-accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 3px;
    background: var(--green);
    border-radius: 2px;
    opacity: 0.5;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-primary {
    background: var(--green);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 0 24px rgba(29,185,84,0.3);
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(29,185,84,0.45);
}

.btn-ghost {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--green); border-color: var(--green); }

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.stat-divider {
    width: 1px; height: 36px;
    background: var(--border);
}

/* Right column */
.hero-right {
    flex: 1;
    position: relative;
    z-index: 1;
    min-height: 480px;
    max-width: 520px;
}

/* Card styles moved to card.css */

/* ===== FOOTER ===== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 40px 64px;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; }

.footer-team { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.footer-team-label { font-size: 0.8rem; color: var(--text-muted); }
.footer-avatars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-avatars span {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ccc;
    transition: color 0.2s, border-color 0.2s;
}
.footer-avatars span:hover { color: var(--green); border-color: var(--green); }

/* ===== ANIMATION HELPERS ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 100px 28px 64px;
        gap: 48px;
    }
    .hero-left { max-width: 100%; }
    .hero-right {
        width: 100%;
        max-width: 100%;
        min-height: 340px;
    }
    .topics { padding: 64px 28px; }
    .footer { padding: 32px 28px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-team { align-items: flex-start; }
    .footer-avatars { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .navbar { padding: 0 20px; gap: 16px; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0; right: 0;
        background: rgba(13,13,13,0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 16px 20px 24px;
        gap: 4px;
        z-index: 99;
        animation: slideDown 0.2s ease both;
    }
    .nav-links.open li { width: 100%; }
    .nav-links.open a {
        display: block;
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open li:last-child a { border-bottom: none; }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .hero-title { letter-spacing: -1px; }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .hero-right { min-height: 420px; }
}