:root {
    --ink: #0d1b2a;
    --sky: #1a6ef5;
    --sky-soft: #e8f0fe;
    --accent: #f5a623;
    --muted: #64748b;
    --rule: #dde3ed;
    --bg: #f9fafc;
    --white: #ffffff;
    --radius: 14px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    font-size: 16px;
}

/* ─── HERO ─── */
.hero {
    background: var(--ink);
    color: var(--white);
    padding: 72px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,110,245,.45) 0%, transparent 70%);
        pointer-events: none;
    }

.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,.18);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    border: 1px solid rgba(245,166,35,.35);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    margin-bottom: 16px;
}

    .hero h1 em {
        font-style: italic;
        color: rgba(255,255,255,.65);
    }

.hero p {
    color: rgba(255,255,255,.6);
    max-width: 540px;
    margin: 0 auto 28px;
    font-size: 15px;
}

.hero-meta {
    display: inline-flex;
    gap: 28px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
}

    .hero-meta span {
        white-space: nowrap;
    }

        .hero-meta span strong {
            color: rgba(255,255,255,.85);
            font-weight: 500;
        }

/* ─── TOC ─── */
.toc-wrap {
    max-width: 920px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.toc {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 6px 24px;
}

.toc-title {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.toc a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 13.5px;
    padding: 5px 0;
    transition: color .2s;
}

    .toc a:hover {
        color: var(--sky);
    }

    .toc a .toc-num {
        min-width: 22px;
        height: 22px;
        border-radius: 6px;
        background: var(--sky-soft);
        color: var(--sky);
        font-size: 11px;
        font-weight: 700;
        display: grid;
        place-items: center;
    }

/* ─── BODY ─── */
.content {
    max-width: 920px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

.section {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 36px 40px;
    margin-bottom: 20px;
    position: relative;
    transition: box-shadow .25s;
}

    .section:hover {
        box-shadow: 0 4px 24px rgba(26,110,245,.07);
    }

.section-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.section-num {
    min-width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--sky-soft);
    color: var(--sky);
    font-size: 15px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.section p, .section li {
    color: #3a4a5c;
    font-size: 15px;
}

.section p {
    margin-bottom: 12px;
}

    .section p:last-child {
        margin-bottom: 0;
    }

.section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
}

    .section ul li {
        padding: 7px 0 7px 22px;
        position: relative;
        border-bottom: 1px solid var(--rule);
        font-size: 15px;
    }

        .section ul li:last-child {
            border-bottom: none;
        }

        .section ul li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--sky);
        }

/* callout boxes */
.callout {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 14.5px;
}

    .callout.note {
        background: var(--sky-soft);
        border-left: 3px solid var(--sky);
        color: #1e3a6e;
    }

    .callout.warn {
        background: #fff8ed;
        border-left: 3px solid var(--accent);
        color: #7a4a00;
    }

    .callout.danger {
        background: #fff0f0;
        border-left: 3px solid #e53e3e;
        color: #7a1e1e;
    }

    .callout strong {
        font-weight: 600;
    }

/* two-column grid */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}

@media (max-width: 560px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.mini-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 14px 16px;
}

    .mini-card .label {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--muted);
        margin-bottom: 4px;
    }

    .mini-card .value {
        font-size: 14px;
        color: var(--ink);
        font-weight: 500;
    }

/* feature pills */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sky-soft);
    color: var(--sky);
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 100px;
}

    .pill::before {
        content: '✓';
        font-size: 11px;
    }

/* ─── CONTACT CARD ─── */
.contact-card {
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

    .contact-card::before {
        content: '';
        position: absolute;
        top: -60px;
        right: -60px;
        width: 220px;
        height: 220px;
        background: radial-gradient(circle, rgba(26,110,245,.35) 0%, transparent 70%);
        pointer-events: none;
    }

    .contact-card h2 {
        font-family: 'DM Serif Display', serif;
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .contact-card p {
        color: rgba(255,255,255,.55);
        font-size: 14.5px;
        margin-bottom: 24px;
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.contact-item {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 14px 16px;
}

    .contact-item .c-label {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgba(255,255,255,.4);
        margin-bottom: 4px;
    }

    .contact-item .c-val {
        font-size: 14px;
        color: rgba(255,255,255,.9);
    }

        .contact-item .c-val a {
            color: var(--accent);
            text-decoration: none;
        }

/* ─── FOOTER ─── */
.footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--muted);
    border-top: 1px solid var(--rule);
}

    .footer strong {
        color: var(--ink);
    }

/* ─── SCROLL ANIMATION ─── */
.section, .toc, .contact-card {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .5s ease forwards;
}

.toc {
    animation-delay: .05s;
}

.section:nth-child(1) {
    animation-delay: .08s;
}

.section:nth-child(2) {
    animation-delay: .13s;
}

.section:nth-child(3) {
    animation-delay: .18s;
}

.section:nth-child(4) {
    animation-delay: .23s;
}

.section:nth-child(5) {
    animation-delay: .28s;
}

.section:nth-child(6) {
    animation-delay: .33s;
}

.section:nth-child(7) {
    animation-delay: .38s;
}

.section:nth-child(8) {
    animation-delay: .43s;
}

.section:nth-child(9) {
    animation-delay: .48s;
}

.section:nth-child(10) {
    animation-delay: .53s;
}

.section:nth-child(11) {
    animation-delay: .58s;
}

.section:nth-child(12) {
    animation-delay: .63s;
}

.section:nth-child(13) {
    animation-delay: .68s;
}

.section:nth-child(14) {
    animation-delay: .73s;
}

.section:nth-child(15) {
    animation-delay: .78s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .section {
        padding: 24px 20px;
    }

    .hero {
        padding: 52px 20px 44px;
    }

    .hero-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}
