/* =========================================================
   Kaspa Guide — Dark Crypto Theme
   Accent: #f7931a (Kaspa Orange/Gold)
   ========================================================= */

/* --- Reset & Base --------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #f7931a;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #f9a94a;
}

/* --- Navigation Bar ------------------------------------- */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #21262d;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f6fc;
}

.nav-brand:hover {
    color: #f7931a;
}

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

.nav-links a {
    color: #8b949e;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #f0f6fc;
    border-bottom-color: #f7931a;
}

/* --- Hero Section --------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1c2128 100%);
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(247, 147, 26, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(247, 147, 26, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #f0f6fc;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.hero h1 .year {
    color: #f7931a;
}

.hero .subtitle {
    font-size: 1.1rem;
    color: #8b949e;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f7931a;
}

.stat-label {
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* --- Container & Sections ------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    flex: 1;
}

.intro-section {
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #21262d;
}

.intro-section h2 {
    font-size: 1.75rem;
    color: #f0f6fc;
    margin-bottom: 1rem;
}

.intro-section p {
    max-width: 720px;
    margin: 0 auto 1rem;
    color: #8b949e;
    font-size: 1rem;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.intro-section strong {
    color: #e6edf3;
}

/* --- Category Sections ---------------------------------- */
.category-section {
    padding: 3rem 0;
}

.category-section + .category-section {
    border-top: 1px solid #21262d;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-icon {
    font-size: 1.3rem;
}

/* --- Card Grid ------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f7931a, #f9a94a);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    border-color: #f7931a;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(247, 147, 26, 0.08);
}

.card:hover::before {
    opacity: 1;
}

.card-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: #f7931a;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card p {
    font-size: 0.875rem;
    color: #8b949e;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #f7931a;
    background: rgba(247, 147, 26, 0.1);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: flex-start;
}

/* --- Footer --------------------------------------------- */
.footer {
    margin-top: 3rem;
    background: #161b22;
    border-top: 1px solid #21262d;
    padding: 2.5rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 0.75rem;
}

.footer-icon {
    font-size: 1.4rem;
}

.footer-text {
    font-size: 0.85rem;
    color: #8b949e;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: #8b949e;
}

.footer-links a:hover {
    color: #f7931a;
}

.footer-copy {
    font-size: 0.8rem;
    color: #484f58;
}

/* --- Responsive ----------------------------------------- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .intro-section h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .hero-icon {
        font-size: 2.5rem;
    }

    .nav-inner {
        flex-direction: column;
        gap: 0.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .category-title {
        font-size: 1.2rem;
    }
}
