/* Homepage layout refresh: retain navy + mint brand colors, improve hierarchy */
body.home-page #main-content {
    margin-top: -52px;
}

.home-header .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-height: 70px;
    border: 0;
    border-bottom: 1px solid rgba(16, 45, 82, .1);
    border-radius: 0;
    padding: 8px max(20px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(7, 26, 51, .05);
    color: #1d3768;
    transform: none;
    backdrop-filter: blur(16px);
}

.home-header .brand-mark,
.home-header .nav-actions > a,
.home-header .member-pill {
    color: #1d3768;
}

.home-header .brand-mark i {
    color: #0e7490;
}

.home-header .site-nav .nav-actions > a,
.home-header .site-nav .member-pill {
    min-height: 40px;
}

.home-header .nav-actions > a:hover,
.home-header .nav-actions > a:focus-visible,
.home-header .member-pill:hover,
.home-header .member-pill:focus-visible {
    background: #eef6ff;
    color: #0b43b8;
}

.home-header .login-link {
    border-color: #0b43b8;
    background: #0b43b8;
    color: #fff !important;
}

.home-header .login-link:hover,
.home-header .login-link:focus-visible {
    background: #0e7490;
    color: #fff !important;
}

.home-header .menu-toggle {
    border-color: #cfdeee;
    background: #fff;
    color: #0b43b8;
    backdrop-filter: none;
}

.hero-carousel,
.home-header {
    min-height: clamp(680px, 86svh, 860px);
}

/* Fill the carousel edge-to-edge and preserve the artwork's upper composition. */
.hero-slide img {
    object-fit: cover;
    object-position: center top;
}

.hero-slide::before {
    background:
        linear-gradient(90deg, rgba(4, 19, 39, .92) 0%, rgba(4, 19, 39, .76) 38%, rgba(4, 19, 39, .17) 72%),
        linear-gradient(180deg, rgba(4, 19, 39, .06) 45%, rgba(4, 19, 39, .82) 100%);
}

.hero-slide-content {
    display: flex;
    align-items: center;
    padding: 142px 0 124px;
}

.hero-slide-copy {
    width: min(610px, 100%);
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 3px solid #a6f1dc;
    border-radius: 0 22px 22px 0;
    background: linear-gradient(100deg, rgba(4, 22, 45, .54), rgba(4, 22, 45, .18));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .14);
    backdrop-filter: blur(7px);
}

.hero-slide h1,
.hero-slide h2 {
    max-width: 8.5em;
    font-size: clamp(48px, 5.7vw, 78px);
}

.hero-slide-lead {
    max-width: 520px;
    margin-top: 19px;
    font-size: clamp(16px, 1.2vw, 19px);
}

.hero-ctas {
    margin-top: 26px;
}

.home-button {
    min-height: 48px;
    border-radius: 11px;
}

.home-button-primary {
    background: #a6f1dc;
    color: #06213b;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

.home-button-primary:hover,
.home-button-primary:focus-visible {
    background: #fff;
    color: #06213b;
}

.hero-proof {
    width: min(1200px, calc(100% - 48px));
    justify-content: flex-start;
    gap: 12px;
}

.hero-proof span {
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(4, 22, 45, .48);
    backdrop-filter: blur(10px);
}

.home-trust {
    margin-top: 0;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(7, 26, 51, .1);
}

.home-trust-item {
    min-height: 108px;
    padding: 20px;
    border-right-color: #e7eef5;
}

.home-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: #e9f8f5;
    color: #0e7490;
}

.home-trust-icon i {
    display: block;
    font-size: 17px;
    line-height: 1;
}

.home-section {
    padding: clamp(72px, 9vw, 118px) 0;
}

.home-section + .home-section {
    border-top: 0;
}

.home-section-head {
    margin-bottom: 36px;
}

.home-section h2 {
    max-width: 13ch;
    font-size: clamp(36px, 4.4vw, 61px);
}

.home-section-intro {
    max-width: 600px;
    font-size: 16px;
}

.home-text-link {
    min-height: 44px;
    border-bottom: 1px solid currentColor;
    color: #0b43b8;
}

.home-product-grid {
    gap: 16px;
}

.home-product-card {
    border-color: #e0e9f2;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(7, 26, 51, .035);
}

.home-product-card:hover {
    border-color: rgba(14, 116, 144, .45);
    box-shadow: 0 20px 42px rgba(7, 26, 51, .1);
}

.home-product-visual {
    min-height: 112px;
    padding: 17px 18px;
    background:
        radial-gradient(circle at 80% 16%, rgba(166, 241, 220, .48), transparent 31%),
        linear-gradient(135deg, #092a4d, #0e7490);
}

.home-product-content {
    padding: 20px;
}

.home-product-badge {
    border-radius: 999px;
    background: #e9f8f5;
    color: #0e7490;
}

.home-product-code {
    color: #788ba2;
}

.home-product-meta {
    gap: 8px;
}

.home-product-meta span {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #56708f;
}

.home-product-footer {
    border-top-color: #e7eef5;
}

.home-product-arrow {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eef6ff;
    color: #0b43b8;
}

.home-how {
    position: relative;
    overflow: hidden;
    background: #071f3c;
    color: #fff;
}

.home-how::before {
    position: absolute;
    top: -180px;
    right: -100px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(166, 241, 220, .16);
    border-radius: 50%;
    content: "";
}

.home-how .home-shell {
    position: relative;
}

.home-how .home-eyebrow,
.home-how .home-section h2 {
    color: #fff;
}

.home-how .home-eyebrow {
    color: #a6f1dc;
}

.home-how .home-section-intro {
    color: rgba(255, 255, 255, .74);
}

.home-step-grid {
    gap: 14px;
}

.home-step {
    min-height: 286px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
    padding: 26px;
}

.home-step-number {
    color: #a6f1dc;
}

.home-step h3 {
    margin-top: 46px;
}

.home-blog-grid {
    gap: 16px;
}

.home-blog-card {
    border-color: #e0e9f2;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(7, 26, 51, .035);
}

.home-blog-card-content {
    padding: 20px;
}

.home-final-cta {
    padding: clamp(76px, 9vw, 116px) 0;
    background:
        radial-gradient(circle at 90% 8%, rgba(166, 241, 220, .25), transparent 28%),
        linear-gradient(135deg, #061a32 0%, #0b3c77 56%, #0e7490 100%);
}

.home-final-cta-panel {
    align-items: flex-end;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.home-final-cta-panel::before {
    display: none;
}

.home-final-cta-panel h2 {
    max-width: none;
    font-size: clamp(42px, 5.6vw, 72px);
    letter-spacing: -.045em;
    white-space: nowrap;
}

.home-final-cta-panel .home-button {
    margin-bottom: 4px;
}

@media (max-width: 900px) {
    .home-header .site-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .home-header .site-nav .nav-actions {
        display: grid;
        gap: 8px;
        justify-content: flex-end;
        justify-items: end;
        position: static;
    }

    .home-header .site-nav .nav-actions > .nav-desktop-link,
    .home-header .site-nav .nav-actions > .member-pill,
    .home-header .site-nav .nav-actions > .member-menu {
        display: none !important;
    }

    .home-header .site-nav .menu-toggle {
        display: inline-grid;
    }

    .home-header .site-nav .nav-menu {
        position: static;
        justify-self: end;
        margin-top: 8px;
        border-color: #dbe7f2;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 16px 34px rgba(7, 26, 51, .14);
    }
}

@media (max-width: 768px) {
    body.home-page #main-content {
        margin-top: -24px;
    }

    .home-header .site-nav {
        min-height: 64px;
        padding: 6px 16px;
    }

    .hero-carousel,
    .home-header {
        min-height: max(680px, 88svh);
    }

    .hero-slide-content {
        align-items: flex-end;
        padding: 105px 0 116px;
    }

    .hero-slide-copy {
        padding: 22px;
        border-radius: 0 18px 18px 0;
    }

    .hero-proof {
        bottom: 25px;
    }

    .home-trust {
        border-radius: 16px;
    }

    .home-how {
        margin-top: 0;
    }

    .home-final-cta-panel {
        align-items: flex-start;
    }

    .home-final-cta-panel h2 {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .hero-slide-copy {
        border-left-width: 2px;
    }

    .hero-proof span:nth-child(3) {
        display: none;
    }

    .home-product-grid {
        gap: 14px;
    }

    .home-step {
        min-height: 0;
        padding: 22px;
    }

    .home-final-cta-panel h2 {
        font-size: clamp(40px, 12vw, 56px);
    }
}
