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

:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --bg3: #1a1a24;
    --purple: #a855f7;
    --purple-dim: #7c3aed;
    --purple-glow: rgba(168, 85, 247, 0.12);
    --purple-border: rgba(168, 85, 247, 0.25);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #334155;
    --border: rgba(255,255,255,0.06);
    --mono: 'JetBrains Mono', monospace;
    --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* grid bg */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
    linear-gradient(rgba(168,85,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* glow blob */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    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;
    z-index: 0;
}

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

.logo {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--purple);
    letter-spacing: -0.3px;
    text-decoration: none;
}

.logo span { color: var(--text-muted); }

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* HERO */
.hero {
    position: relative;
    z-index: 1;
    padding: 140px 2rem 80px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--purple);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--purple);
}

h1 {
    font-family: var(--mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

h1 .accent { color: var(--purple); }
h1 .dim { color: var(--text-muted); }

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-num {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--purple);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* CATEGORIES */
.section {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.cat-card {
    background: var(--bg2);
    padding: 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 0;
    background: var(--purple);
    transition: height 0.3s ease;
}

.cat-card:hover { background: var(--bg3); }
.cat-card:hover::before { height: 100%; }

.cat-icon {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--purple);
    opacity: 0.8;
}

.cat-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.cat-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cat-count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: auto;
}

/* FEATURED */
.guides-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.guide-row {
    background: var(--bg2);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}

.guide-row:hover { background: var(--bg3); }

.guide-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    min-width: 24px;
}

.guide-info { flex: 1; }

.guide-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.guide-meta {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--mono);
}

.guide-badge {
    font-family: var(--mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--purple-border);
    color: var(--purple);
    background: var(--purple-glow);
    white-space: nowrap;
}

.guide-badge.series {
    border-color: rgba(99,102,241,0.3);
    color: #818cf8;
    background: rgba(99,102,241,0.08);
}

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
}

footer p {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
}

footer span { color: var(--purple); }

/* ANIMATE */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }
.fade-in:nth-child(7) { animation-delay: 0.7s; }

@media (max-width: 600px) {
    .nav-links { display: none; }
    .hero-stats { gap: 1.5rem; }
    .categories-grid { grid-template-columns: 1fr; }
}
