/* ==========================================================================
   Home — CTA  (Figma node 1:1181 "CTA Section")
   Panel 1280x342 in Figma; rendered inside .gg-container (1200 content width).
   All internal metrics kept at their Figma pixel values.
   ========================================================================== */

.home-cta {
    --home-cta-panel: #151c78;
    --home-cta-sub: #9da5ff;
    --home-cta-btn-ink: #653c00;

    background: var(--gg-bg);
    padding-block: 40px 80px;
}

.home-cta__panel {
    position: relative;
    overflow: hidden;
    background: var(--home-cta-panel);
    border-radius: 48px;
    box-shadow: 0 25px 50px -12px rgba(21, 28, 120, .3);
}

/* Decorative outline pills ------------------------------------------------ */

.home-cta__ring {
    position: absolute;
    border: 4px solid var(--gg-white);
    border-radius: var(--gg-radius-pill);
    opacity: .1;
    pointer-events: none;
}

/* Figma: 384x80 at (40, 40) and 512x208 at (728, 94) inside a 1280x342 panel.
   Anchored to the panel edges with the exact 40px inset; the max-width caps
   keep the proportions once the panel narrows. */

.home-cta__ring--one {
    left: 40px;
    top: 40px;
    width: 384px;
    max-width: 32%;
    height: 80px;
}

.home-cta__ring--two {
    right: 40px;
    top: 94px;
    bottom: 40px;
    width: 512px;
    max-width: 43%;
}

/* Content ----------------------------------------------------------------- */

.home-cta__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 48px 40px;
}

.home-cta__title {
    max-width: 981px;
    font-family: var(--gg-font-display);
    font-size: 48px;
    line-height: 60px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--gg-white);
}

.home-cta__sub {
    max-width: 672px;
    margin-top: 28px;
    font-size: 20px;
    line-height: 28px;
    color: var(--home-cta-sub);
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
}

.home-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 21px 48px;
    border-radius: var(--gg-radius-pill);
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-cta__btn:hover {
    transform: translateY(-1px);
}

.home-cta__btn--primary {
    background: var(--gg-accent-alt);
    color: var(--home-cta-btn-ink);
}

.home-cta__btn--primary:hover {
    background: #ffb02e;
    box-shadow: var(--gg-shadow);
}

.home-cta__btn--ghost {
    padding: 21px 49px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--gg-white);
}

.home-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, .18);
}

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

@media (max-width: 900px) {
    .home-cta {
        padding-block: 24px 56px;
    }

    .home-cta__panel {
        border-radius: 32px;
    }

    .home-cta__inner {
        padding: 48px 32px;
    }

    .home-cta__title {
        font-size: 34px;
        line-height: 44px;
        letter-spacing: -1px;
    }

    .home-cta__sub {
        font-size: 18px;
        line-height: 28px;
        margin-top: 20px;
    }

    .home-cta__sub br {
        display: none;
    }

    .home-cta__ring {
        border-width: 3px;
    }

    .home-cta__ring--one {
        left: 24px;
        top: 24px;
        height: 64px;
        max-width: 34%;
    }

    .home-cta__ring--two {
        right: 24px;
        top: 64px;
        bottom: 24px;
        max-width: 46%;
    }
}

@media (max-width: 560px) {
    .home-cta__panel {
        border-radius: 24px;
    }

    .home-cta__inner {
        padding: 40px 20px;
    }

    .home-cta__title {
        font-size: 26px;
        line-height: 34px;
        letter-spacing: -0.5px;
    }

    .home-cta__sub {
        font-size: 16px;
        line-height: 26px;
    }

    .home-cta__actions {
        width: 100%;
        flex-direction: column;
        gap: 14px;
        margin-top: 24px;
    }

    .home-cta__btn,
    .home-cta__btn--ghost {
        width: 100%;
        padding: 16px 24px;
        font-size: 17px;
    }

    .home-cta__ring {
        display: none;
    }
}
