/* ============================================
   SparrowRL | Personal Site
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-primary: #0a0b0f;
    --bg-secondary: #12141a;
    --bg-card: #161820;
    --bg-card-hover: #1c1e28;
    --border: #1e2030;
    --border-hover: #2a2d42;
    --text-primary: #e8e6e3;
    --text-secondary: #8a8d9b;
    --text-muted: #555768;
    --accent: #d4a853;
    --accent-glow: rgba(212, 168, 83, 0.15);
    --accent-hover: #e2bd6e;
    --purple: #9b7dd4;
    --purple-glow: rgba(155, 125, 212, 0.12);
    --green: #5cb385;
    --red: #d45d5d;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.2; }

a { color: inherit; text-decoration: none; }

/* --- NAV --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 40px;
    height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 1.15rem;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 10px;
}

.nav-brand .accent { color: var(--accent); }

.nav-logo {
    width: 32px; height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

.nav-links { display: flex; gap: 32px; align-items: center; }

.nav-links a {
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links .nav-cta {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-links .nav-cta:hover { background: var(--accent-hover); }

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

.hero::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1100px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.78rem; font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    width: fit-content;
}

.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 .line2 { color: var(--accent); display: block; }

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

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem; font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.2s;
    cursor: pointer; border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }

.hero-visual {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.hero-logo {
    width: 260px;
    border-radius: 16px;
    object-fit: contain;
}

.rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    width: 300px;
    position: relative;
}

.rank-card::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-glow), transparent 50%, var(--purple-glow));
    z-index: -1;
}

.rank-peak {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.rank-peak-label {
    font-size: 0.7rem; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.rank-peak-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem; font-weight: 700;
    color: var(--text-primary);
}

.rank-peak-tag {
    display: inline-block;
    background: linear-gradient(135deg, #c74dbd, #e05db6);
    color: #fff;
    font-size: 0.7rem; font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
}

.rank-peak-mode {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.rank-playlists { display: grid; gap: 10px; }

.rank-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
}

img.rank-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.rank-peak-img {
    width: 64px; height: 64px;
    object-fit: contain;
    margin-bottom: 10px;
}

.rank-info { flex: 1; }
.rank-mode { font-size: 0.82rem; font-weight: 500; color: var(--text-primary); }
.rank-mmr { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.rank-div { font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; }

.rank-tracker {
    margin-top: 16px; text-align: center;
}

.rank-tracker a {
    font-size: 0.75rem; color: var(--accent);
    font-weight: 500;
    transition: color 0.2s;
}

.rank-tracker a:hover { color: var(--accent-hover); }

/* --- SECTIONS --- */
.section {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem; font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 560px;
    margin-bottom: 48px;
}

/* --- ABOUT --- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: start;
}

.about-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; }
.about-text p { margin-bottom: 16px; }
.about-text strong { color: var(--text-primary); font-weight: 600; }

.about-highlights {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.2s;
}

.highlight-card:hover { border-color: var(--border-hover); }

.highlight-icon { font-size: 1.6rem; margin-bottom: 10px; }
.highlight-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.highlight-desc { font-size: 0.8rem; color: var(--text-muted); }

/* --- TOOLS --- */
.tools-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.2s;
    display: block;
}

.tool-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.tool-logo {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 16px;
    background: var(--bg-primary); border: 1px solid var(--border);
}

.tool-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.tool-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.tool-link { font-size: 0.8rem; color: var(--accent); margin-top: 12px; display: inline-block; font-weight: 500; }

/* --- ROADMAP --- */
.roadmap { display: grid; gap: 16px; }

.stage-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding-top: 12px;
}

.stage-label.active { color: var(--accent); }
.stage-label:not(:first-child) { margin-top: 8px; }

.roadmap-phase {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: border-color 0.2s;
}

.roadmap-phase.active { border-color: var(--accent); }

.phase-status {
    position: absolute; top: 16px; right: 20px;
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 3px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.roadmap-phase.active .phase-status {
    color: var(--accent);
    border-color: rgba(212, 168, 83, 0.3);
    background: rgba(212, 168, 83, 0.08);
}

.phase-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 12px;
}

.phase-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--text-muted);
    min-width: 40px;
}

.roadmap-phase.active .phase-num { color: var(--accent); }

.phase-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; font-weight: 600;
}

.phase-time {
    font-size: 0.78rem; color: var(--text-muted);
    margin-top: 2px;
}

.phase-desc {
    color: var(--text-secondary);
    font-size: 0.85rem; line-height: 1.7;
    margin-bottom: 16px;
}

.phase-goals {
    display: flex; flex-wrap: wrap; gap: 8px;
}

.phase-goal {
    font-size: 0.75rem; font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 12px;
}

.roadmap-phase.active .phase-goal {
    border-color: rgba(212, 168, 83, 0.2);
    color: var(--text-primary);
}

/* --- SOCIALS --- */
.socials-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    display: flex; gap: 16px; align-items: center;
    transition: all 0.2s;
}

.social-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.social-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}

.social-icon.twitch { background: #1a0a2e; border: 1px solid #2d1a4a; }
.social-icon.youtube { background: #2e0a0a; border: 1px solid #4a1a1a; }
.social-icon.discord { background: #0a0e2e; border: 1px solid #1a2a4a; }

.social-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.95rem; }
.social-handle { font-size: 0.8rem; color: var(--text-muted); }

/* --- FOOTER --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--accent); }

/* --- DIVIDER --- */
.section-divider {
    max-width: 1100px; margin: 0 auto;
    height: 1px; background: var(--border);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav { padding: 0 20px; }
    .nav-links { gap: 16px; }
    .hero { padding: 100px 20px 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-tag { margin: 0 auto 24px; }
    .hero-desc { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-visual { order: -1; }
    .rank-card { width: 260px; margin: 0 auto; }
    .section { padding: 60px 20px; }
    .about-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .socials-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .about-highlights { grid-template-columns: 1fr; }
    .rank-card { width: 100%; }
}
