:root {
    --home-surface: rgba(255, 255, 255, 0.06);
    --home-surface-strong: rgba(255, 255, 255, 0.12);
    --home-outline: rgba(255, 255, 255, 0.12);
    --home-shadow: 0 22px 64px rgba(0, 0, 0, 0.34);
    --home-soft-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    --home-cool: #93d4ec;
}

.page.page-home {
    max-width: 1220px;
    padding: 1.25rem 1rem 3rem;
}

.home-shell {
    display: grid;
    gap: 1rem;
}

.home-kicker,
.home-section-label,
.home-card-label,
.home-resource-card__eyebrow,
.home-latest-type {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--home-cool);
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(155deg, rgba(171, 95, 45, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(5, 11, 18, 0.14), rgba(5, 11, 18, 0.86)),
        #071018;
    border: 1px solid var(--home-outline);
    box-shadow: var(--home-shadow);
    isolation: isolate;
}

.home-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 12, 18, 0.18) 0%, rgba(7, 12, 18, 0.68) 54%, rgba(7, 12, 18, 0.9) 100%),
        url("../images/home-hero-bg.png") center center / cover no-repeat;
    transform: scale(1.02);
    z-index: -2;
    filter: saturate(0.82) contrast(1.06);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% 42%;
    height: 420px;
    background: radial-gradient(circle, rgba(143, 228, 255, 0.18), transparent 60%);
    filter: blur(18px);
    z-index: -1;
}

.home-hero__content,
.home-hero__panel {
    position: relative;
    z-index: 1;
}

.home-hero__content {
    padding: 1rem 0.45rem 0.35rem;
}

.home-hero h1,
.home-newsletter h2,
.home-resource-section h2,
.home-story-card h2 {
    font-family: "Montserrat", "Open Sans", sans-serif;
}

.home-hero h1 {
    max-width: 9ch;
    margin: 0.5rem 0 1rem;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 0.98;
    color: #f8fbff;
    text-wrap: balance;
}

.home-hero__lead {
    max-width: 60ch;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: rgba(236, 245, 255, 0.88);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-stat {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.home-stat strong {
    display: block;
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
    color: #ffffff;
}

.home-stat span {
    display: block;
    margin-top: 0.25rem;
    color: rgba(233, 242, 252, 0.78);
    font-size: 0.92rem;
}

.home-hero__panel {
    display: grid;
    gap: 1rem;
}

.home-spotlight-card,
.home-latest-card,
.home-newsletter,
.home-resource-card,
.home-story-card {
    border-radius: 18px;
    border: 1px solid var(--home-outline);
    box-shadow: var(--home-soft-shadow);
}

.home-spotlight-card,
.home-latest-card {
    padding: 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.045));
    box-shadow: var(--home-soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-spotlight-card h2 {
    margin: 0.45rem 0 0.8rem;
    font-size: clamp(1.45rem, 2.1vw, 1.9rem);
    line-height: 1.1;
}

.home-spotlight-card p,
.home-latest-card p {
    color: rgba(233, 242, 252, 0.82);
}

.home-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.home-latest-card {
    display: grid;
    gap: 0.85rem;
}

.home-latest-item {
    display: grid;
    gap: 0.3rem;
    padding-top: 0.2rem;
}

.home-latest-item a {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
}

.home-latest-item a:hover,
.home-inline-link:hover {
    color: var(--home-cool);
}

.home-inline-link {
    color: var(--home-cool);
    font-weight: 600;
    text-decoration: none;
}

.home-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1rem;
    padding: 1.1rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.home-newsletter h2 {
    margin: 0.55rem 0 0.85rem;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    line-height: 1.08;
}

.home-check-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.home-check-list li {
    position: relative;
    padding-left: 1.6rem;
    color: rgba(236, 245, 255, 0.84);
}

.home-check-list li::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 0;
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--home-cool), #58c4f5);
    box-shadow: 0 0 0 6px rgba(143, 220, 255, 0.12);
}

.home-newsletter__form-shell {
    padding: 1.2rem;
    border-radius: 20px;
    background: var(--home-surface);
    border: 1px solid rgba(143, 220, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-form-status {
    margin: 0 0 1rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
}

.home-form-status p:last-child {
    margin-bottom: 0;
}

.home-form-status--success {
    background: rgba(61, 140, 90, 0.16);
    border: 1px solid rgba(91, 198, 131, 0.34);
    color: #d6ffe3;
}

.home-form-status--error {
    background: rgba(163, 43, 43, 0.14);
    border: 1px solid rgba(255, 126, 126, 0.34);
    color: #ffe0e0;
}

.newsletter-form {
    display: grid;
    gap: 1rem;
}

.newsletter-form__row {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 0.9rem;
}

.newsletter-field {
    min-width: 0;
}

.newsletter-field label {
    margin-bottom: 0.45rem;
    color: #f8fbff;
}

.newsletter-field input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(143, 220, 255, 0.16);
    color: #f8fbff;
}

.newsletter-field input::placeholder {
    color: rgba(233, 242, 252, 0.56);
}

.newsletter-field__error {
    margin: 0.45rem 0 0;
    color: #ffd0d0;
    font-size: 0.92rem;
}

.newsletter-form__button {
    justify-self: start;
}

.newsletter-form__note {
    margin: 0;
    color: rgba(233, 242, 252, 0.68);
    font-size: 0.92rem;
}

.home-resource-section {
    padding: 0.2rem 0;
}

.home-section-heading {
    max-width: 48rem;
    margin-bottom: 1rem;
}

.home-section-heading h2 {
    margin: 0.4rem 0 0;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.03;
}

.home-resource-grid,
.home-story-grid {
    display: grid;
    gap: 1rem;
}

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

.home-resource-card,
.home-story-card {
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    box-shadow: var(--home-soft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.home-resource-card h3 {
    margin: 0.6rem 0 0.65rem;
    font-size: 1.2rem;
    color: #f8fbff;
}

.home-resource-card p:not(.home-resource-card__eyebrow) {
    color: rgba(236, 245, 255, 0.78);
}

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

.home-story-card {
    min-height: 100%;
}

.home-story-card--soft {
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
}

.home-story-card h2 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.02;
}

.home-story-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .home-hero,
    .home-newsletter {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .page.page-home {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.75rem 2.4rem;
    }

    .home-hero,
    .home-newsletter,
    .home-resource-card,
    .home-story-card {
        border-radius: 22px;
    }

    .home-hero {
        padding: 1rem;
    }

    .home-hero h1 {
        max-width: 100%;
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .home-hero__lead {
        font-size: 1rem;
    }

    .home-hero__actions,
    .home-spotlight-actions {
        display: grid;
    }

    .home-hero__actions .btn,
    .newsletter-form__button {
        width: 100%;
        justify-content: center;
    }

    .home-stat-grid,
    .newsletter-form__row,
    .home-resource-grid,
    .home-story-grid {
        grid-template-columns: 1fr;
    }

    .home-newsletter__form-shell,
    .home-spotlight-card,
    .home-latest-card,
    .home-resource-card,
    .home-story-card {
        padding: 1.05rem;
    }

    .newsletter-form__button {
        justify-self: stretch;
    }
}
