section[id] {
    scroll-margin-top: 24px;
}

.landing .site-header {
    position: relative;
    background: transparent;
    border-bottom: none;
}

/* ---------- Header ---------- */

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header__nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s ease;
}

.site-header__nav a:hover {
    color: var(--primary);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* ---------- Intro ---------- */

.intro {
    padding-top: 88px;
    padding-bottom: 32px;
    text-align: center;
}

.pill {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
}

.intro__title {
    max-width: 900px;
    margin: 24px auto 20px;
    font-size: clamp(32px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.accent-text {
    background: linear-gradient(90deg, #8B7BFA, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro__text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--muted);
}

.intro__cta {
    margin-top: 32px;
}

/* ---------- Sections ---------- */

.section {
    padding-top: 56px;
}

.section-title {
    margin-bottom: 28px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

/* News */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
    border-color: #D3DCEC;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.news-card__image {
    aspect-ratio: 547 / 293;
    background-color: #E8ECF3;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.news-card__body {
    padding: 18px 20px 22px;
}

.news-card__body h3 {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.news-card__body p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}

.landing main {
    padding-bottom: 88px;
}

/* ---------- Reveal on scroll ---------- */

.has-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.has-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .has-reveal .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .site-header__inner {
        gap: 28px;
    }

    .site-header__nav {
        gap: 20px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header__nav {
        display: none;
    }

    .site-header__actions {
        gap: 8px;
    }

    .intro {
        padding-top: 40px;
        padding-bottom: 8px;
    }

    .intro__title {
        margin: 20px auto 16px;
        font-size: 28px;
        line-height: 1.2;
    }

    .intro__text {
        font-size: 15px;
    }

    .intro__cta {
        width: 100%;
        margin-top: 24px;
    }

    .section {
        padding-top: 40px;
    }

    .section-title {
        margin-bottom: 20px;
        font-size: 26px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-actions .btn {
        width: 100%;
    }

    .landing main {
        padding-bottom: 48px;
    }
}

@media (max-width: 359px) {
    .intro__title {
        font-size: 25px;
    }
}
