/* ==========================================
   HOME PAGE
========================================== */

:root {
    --home-navy: #252640;
    --home-wine: #6d1c3d;
    --home-wine-deep: #8a1738;

    --home-accent: #8d1637;
    --home-accent-hover: #74102d;

    --home-gold: #f0c66c;

    --home-bg: #f7f4ee;
    --home-card: #ffffff;

    --home-text: #1f2433;
    --home-muted: #747984;

    --home-border: #e7e2db;

    --home-shadow:
        0 18px 46px
        rgba(57, 47, 40, 0.08);
}


/* ==========================================
   BASE
========================================== */

html {
    scroll-behavior: smooth;
}


.home-body {
    min-width: 320px;

    margin: 0;

    background:
        var(--home-bg);

    color:
        var(--home-text);

    font-family:
        "DM Sans",
        sans-serif;
}


.home-container {
    width:
        min(
            calc(100% - 48px),
            1180px
        );

    margin:
        0 auto;
}


/* ==========================================
   HEADER
========================================== */

.home-header {
    position: sticky;

    top: 0;

    z-index: 100;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid
        rgba(224, 220, 213, 0.88);

    backdrop-filter:
        blur(12px);
}


.home-navbar {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    min-height: 76px;

    gap: 30px;
}


/* ==========================================
   BRAND
========================================== */

.home-brand {
    display: inline-flex;

    align-items: center;

    gap: 13px;

    color:
        inherit;

    text-decoration:
        none;
}


.home-brand-logo {
    width: 48px;
    height: 48px;

    object-fit:
        contain;

    border-radius:
        10px;
}


.home-brand-copy {
    display: flex;

    flex-direction:
        column;

    gap: 1px;
}


.home-brand-copy strong {
    color:
        var(--home-accent);

    font-size: 15px;

    font-weight: 700;

    line-height: 1.2;
}


.home-brand-copy span {
    color:
        var(--home-muted);

    font-size: 11px;

    line-height: 1.3;
}


/* ==========================================
   DESKTOP NAVIGATION
========================================== */

.home-nav {
    display: flex;

    align-items: center;

    gap: 28px;
}


.home-nav a {
    position: relative;

    color:
        #656a75;

    font-size: 14px;

    font-weight: 500;

    text-decoration:
        none;

    transition:
        color 180ms ease;
}


.home-nav a:not(
    .home-login-button
):hover {
    color:
        var(--home-accent);
}


.home-login-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 39px;

    padding:
        0 21px;

    border-radius:
        999px;

    background:
        var(--home-accent);

    color:
        #ffffff !important;

    font-weight:
        600 !important;

    box-shadow:
        0 7px 16px
        rgba(141, 22, 55, 0.12);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}


.home-login-button:hover {
    transform:
        translateY(-1px);

    background:
        var(--home-accent-hover);

    box-shadow:
        0 10px 20px
        rgba(141, 22, 55, 0.17);
}


/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.home-menu-button {
    display: none;

    width: 40px;
    height: 40px;

    padding: 0;

    place-items:
        center;

    border:
        1px solid
        var(--home-border);

    border-radius:
        10px;

    background:
        #ffffff;

    color:
        var(--home-text);

    cursor:
        pointer;
}


.home-mobile-nav {
    display: none;
}


/* ==========================================
   HERO SECTION
========================================== */

.home-hero-section {
    padding:
        26px 0 18px;
}


.home-hero-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(360px, 0.88fr);

    align-items:
        center;

    gap: 58px;

    min-height:
        450px;

    padding:
        56px 54px;

    overflow:
        hidden;

    border-radius:
        28px;

    background:
        linear-gradient(
            117deg,
            var(--home-navy) 0%,
            #3f2440 40%,
            #651b3a 70%,
            #8b1839 100%
        );

    box-shadow:
        0 20px 46px
        rgba(58, 36, 48, 0.15);
}


/* ==========================================
   HERO CONTENT
========================================== */

.home-hero-content {
    max-width:
        620px;
}


.home-eyebrow {
    display: inline-block;

    margin-bottom:
        11px;

    color:
        var(--home-accent);

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        0.16em;

    text-transform:
        uppercase;
}


.home-eyebrow-gold {
    color:
        var(--home-gold);
}


.home-hero-content h1 {
    margin:
        0;

    max-width:
        650px;

    color:
        #ffffff;

    font-size:
        clamp(42px, 5vw, 64px);

    font-weight:
        700;

    letter-spacing:
        -0.045em;

    line-height:
        1.02;
}


.home-hero-content h2 {
    margin:
        12px 0 0;

    color:
        var(--home-gold);

    font-size:
        18px;

    font-weight:
        700;
}


.home-hero-content > p {
    max-width:
        650px;

    margin:
        19px 0 0;

    color:
        rgba(255, 255, 255, 0.84);

    font-size:
        15px;

    line-height:
        1.7;
}


/* ==========================================
   HERO BUTTONS
========================================== */

.home-hero-actions {
    display: flex;

    align-items: center;

    flex-wrap:
        wrap;

    gap: 13px;

    margin-top:
        26px;
}


.home-primary-button,
.home-secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height:
        42px;

    padding:
        0 19px;

    border-radius:
        8px;

    font-size:
        13px;

    font-weight:
        600;

    text-decoration:
        none;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}


.home-primary-button {
    background:
        var(--home-accent);

    color:
        #ffffff;

    box-shadow:
        0 7px 16px
        rgba(141, 22, 55, 0.15);
}


.home-primary-button:hover {
    transform:
        translateY(-1px);

    background:
        var(--home-accent-hover);

    box-shadow:
        0 10px 20px
        rgba(141, 22, 55, 0.2);
}


.home-secondary-button {
    background:
        #ffffff;

    color:
        var(--home-text);
}


.home-secondary-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.08);
}


/* ==========================================
   PLATFORM PREVIEW
========================================== */

.home-platform-preview {
    position: relative;

    padding:
        20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius:
        23px;

    background:
        rgba(255, 255, 255, 0.13);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.06);

    backdrop-filter:
        blur(5px);
}


.home-platform-header {
    display: flex;

    align-items: center;

    justify-content:
        space-between;

    margin-bottom:
        14px;
}


.home-platform-header > span:first-child {
    padding:
        5px 12px;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.15);

    color:
        #ffffff;

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        0.05em;

    text-transform:
        uppercase;
}


.home-platform-status {
    width:
        10px;

    height:
        10px;

    border-radius:
        50%;

    background:
        var(--home-gold);

    box-shadow:
        0 0 0 4px
        rgba(240, 198, 108, 0.08);
}


.home-platform-main-card,
.home-platform-small-card {
    display: flex;

    flex-direction:
        column;

    justify-content:
        flex-start;

    border-radius:
        13px;

    background:
        #ffffff;

    color:
        var(--home-text);
}


.home-platform-main-card {
    min-height:
        104px;

    padding:
        18px;

    margin-bottom:
        12px;
}


.home-platform-main-card:last-child {
    margin-bottom:
        0;
}


.home-platform-two-column {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        12px;

    margin-bottom:
        12px;
}


.home-platform-small-card {
    min-height:
        88px;

    padding:
        16px;
}


.home-platform-main-card strong,
.home-platform-small-card strong {
    font-size:
        13px;

    font-weight:
        700;
}


.home-platform-main-card span,
.home-platform-small-card span {
    margin-top:
        5px;

    color:
        var(--home-muted);

    font-size:
        11px;
}


/* ==========================================
   GENERAL SECTIONS
========================================== */

.home-section {
    padding:
        18px 0;
}


.home-white-panel {
    padding:
        38px 30px 30px;

    border:
        1px solid
        var(--home-border);

    border-radius:
        25px;

    background:
        var(--home-card);

    box-shadow:
        var(--home-shadow);
}


.home-section-heading {
    max-width:
        850px;
}


.home-section-heading h2 {
    margin:
        0;

    color:
        var(--home-text);

    font-size:
        27px;

    font-weight:
        700;

    letter-spacing:
        -0.035em;

    line-height:
        1.2;
}


.home-section-heading p {
    margin:
        10px 0 0;

    color:
        var(--home-muted);

    font-size:
        14px;

    line-height:
        1.65;
}


/* ==========================================
   SERVICE CARDS
========================================== */

.home-service-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        16px;

    margin-top:
        25px;
}


.home-service-card {
    min-height:
        180px;

    padding:
        20px;

    border:
        1px solid
        var(--home-border);

    border-radius:
        15px;

    background:
        #ffffff;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}


.home-service-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 24px
        rgba(59, 49, 42, 0.08);
}


.home-service-icon {
    display: grid;

    width:
        37px;

    height:
        37px;

    margin-bottom:
        17px;

    place-items:
        center;

    border-radius:
        10px;

    background:
        rgba(141, 22, 55, 0.08);

    color:
        var(--home-accent);

    font-size:
        15px;
}


.home-service-card h3 {
    margin:
        0;

    font-size:
        15px;

    font-weight:
        700;
}


.home-service-card p {
    margin:
        8px 0 0;

    color:
        var(--home-muted);

    font-size:
        12px;

    line-height:
        1.6;
}


/* ==========================================
   ROLE / OPERATION CARDS
========================================== */

.home-role-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        16px;

    margin-top:
        25px;
}


.home-role-card {
    padding:
        20px;

    border:
        1px solid
        var(--home-border);

    border-radius:
        15px;

    background:
        #ffffff;
}


.home-role-card h3 {
    margin:
        0;

    font-size:
        15px;

    font-weight:
        700;
}


.home-role-card p {
    margin:
        8px 0 0;

    color:
        var(--home-muted);

    font-size:
        12px;

    line-height:
        1.6;
}


/* ==========================================
   CONNECTION FLOW
========================================== */

.home-connection-flow {
    display: flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        14px;

    margin-top:
        26px;
}


.home-flow-item {
    display: flex;

    align-items:
        flex-start;

    gap:
        12px;

    flex:
        1;

    min-height:
        92px;

    padding:
        16px;

    border:
        1px solid
        var(--home-border);

    border-radius:
        14px;

    background:
        #ffffff;
}


.home-flow-number {
    display: grid;

    flex:
        0 0 30px;

    width:
        30px;

    height:
        30px;

    place-items:
        center;

    border-radius:
        9px;

    background:
        rgba(141, 22, 55, 0.09);

    color:
        var(--home-accent);

    font-size:
        12px;

    font-weight:
        700;
}


.home-flow-item strong {
    display:
        block;

    font-size:
        13px;
}


.home-flow-item span {
    display:
        block;

    margin-top:
        5px;

    color:
        var(--home-muted);

    font-size:
        11px;

    line-height:
        1.5;
}


.home-flow-arrow {
    flex:
        0 0 auto;

    color:
        var(--home-accent);

    font-size:
        13px;

    opacity:
        0.6;
}


/* ==========================================
   STAT CARDS
========================================== */

.home-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        16px;

    margin-top:
        25px;
}


.home-stat-card {
    min-height:
        98px;

    padding:
        21px;

    border:
        1px solid
        var(--home-border);

    border-radius:
        15px;

    background:
        #ffffff;
}


.home-stat-card strong {
    display:
        block;

    color:
        var(--home-accent);

    font-size:
        20px;

    font-weight:
        700;
}


.home-stat-card span {
    display:
        block;

    margin-top:
        8px;

    color:
        var(--home-muted);

    font-size:
        12px;
}


/* ==========================================
   ACCESS CTA
========================================== */

.home-access-section {
    padding-bottom:
        28px;
}


.home-access-card {
    padding:
        35px 30px;

    border-radius:
        24px;

    background:
        linear-gradient(
            112deg,
            var(--home-navy) 0%,
            #4b203c 46%,
            var(--home-wine-deep) 100%
        );

    color:
        #ffffff;

    text-align:
        center;

    box-shadow:
        0 18px 40px
        rgba(58, 35, 47, 0.13);
}


.home-access-card h2 {
    margin:
        0;

    color:
        #ffffff;

    font-size:
        24px;

    font-weight:
        700;

    letter-spacing:
        -0.025em;
}


.home-access-card p {
    margin:
        9px 0 19px;

    color:
        rgba(255, 255, 255, 0.82);

    font-size:
        13px;
}


.home-access-card .home-primary-button {
    min-height:
        39px;

    padding:
        0 18px;
}


/* ==========================================
   FOOTER
========================================== */

.home-footer {
    padding:
        28px 0 34px;

    color:
        var(--home-muted);
}


.home-footer-content {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items:
        center;

    gap:
        30px;
}


.home-footer-content > div strong {
    color:
        #5e626c;

    font-size:
        13px;
}


.home-footer-content > div p {
    margin:
        5px 0 0;

    font-size:
        11px;
}


.home-footer-nav {
    display: flex;

    align-items:
        center;

    gap:
        22px;
}


.home-footer-nav a {
    color:
        var(--home-muted);

    font-size:
        11px;

    text-decoration:
        none;
}


.home-footer-nav a:hover {
    color:
        var(--home-accent);
}


.home-footer-copy {
    margin:
        0;

    justify-self:
        end;

    font-size:
        11px;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1020px) {

    .home-nav {
        gap:
            18px;
    }


    .home-hero-card {
        grid-template-columns:
            1fr 340px;

        gap:
            36px;

        padding:
            46px 38px;
    }


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


    .home-connection-flow {
        display:
            grid;

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


    .home-flow-arrow {
        display:
            none;
    }

}


/* ==========================================
   MOBILE NAVIGATION
========================================== */

@media (max-width: 840px) {

    .home-nav {
        display:
            none;
    }


    .home-menu-button {
        display:
            grid;
    }


    .home-mobile-nav {
        position:
            absolute;

        top:
            76px;

        right:
            24px;

        left:
            24px;

        z-index:
            110;

        padding:
            12px;

        border:
            1px solid
            var(--home-border);

        border-radius:
            14px;

        background:
            #ffffff;

        box-shadow:
            0 16px 35px
            rgba(48, 40, 35, 0.12);
    }


    .home-mobile-nav:not([hidden]) {
        display:
            grid;

        gap:
            4px;
    }


    .home-mobile-nav a {
        padding:
            11px 12px;

        border-radius:
            9px;

        color:
            var(--home-text);

        font-size:
            13px;

        font-weight:
            500;

        text-decoration:
            none;
    }


    .home-mobile-nav a:hover {
        background:
            rgba(141, 22, 55, 0.06);

        color:
            var(--home-accent);
    }


    .home-mobile-login {
        margin-top:
            5px;

        background:
            var(--home-accent);

        color:
            #ffffff !important;

        text-align:
            center;
    }


    .home-hero-card {
        grid-template-columns:
            1fr;

        gap:
            35px;
    }


    .home-platform-preview {
        width:
            min(100%, 520px);
    }

}


/* ==========================================
   SMALL TABLET / MOBILE
========================================== */

@media (max-width: 680px) {

    .home-container {
        width:
            min(
                calc(100% - 30px),
                1180px
            );
    }


    .home-navbar {
        min-height:
            70px;
    }


    .home-brand-logo {
        width:
            43px;

        height:
            43px;
    }


    .home-brand-copy strong {
        font-size:
            13px;
    }


    .home-brand-copy span {
        font-size:
            10px;
    }


    .home-hero-section {
        padding-top:
            18px;
    }


    .home-hero-card {
        min-height:
            0;

        padding:
            38px 25px;

        border-radius:
            22px;
    }


    .home-hero-content h1 {
        font-size:
            42px;
    }


    .home-platform-two-column {
        grid-template-columns:
            1fr;
    }


    .home-white-panel {
        padding:
            28px 21px 22px;

        border-radius:
            21px;
    }


    .home-service-grid,
    .home-role-grid,
    .home-stat-grid,
    .home-connection-flow {
        grid-template-columns:
            1fr;
    }


    .home-access-card {
        padding:
            31px 22px;

        border-radius:
            21px;
    }


    .home-access-card h2 {
        font-size:
            21px;
    }


    .home-footer-content {
        grid-template-columns:
            1fr;

        text-align:
            center;

        gap:
            18px;
    }


    .home-footer-nav {
        justify-content:
            center;

        flex-wrap:
            wrap;
    }


    .home-footer-copy {
        justify-self:
            center;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 440px) {

    .home-brand-copy span {
        display:
            none;
    }


    .home-hero-content h1 {
        font-size:
            36px;
    }


    .home-hero-content h2 {
        font-size:
            16px;
    }


    .home-hero-actions {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .home-primary-button,
    .home-secondary-button {
        width:
            100%;
    }


    .home-section-heading h2 {
        font-size:
            24px;
    }

}


/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }


    .home-login-button,
    .home-primary-button,
    .home-secondary-button,
    .home-service-card {
        transition:
            none;
    }

}

/* ==========================================
   DESKTOP SCALE TUNING
   Match homepage reference more closely
========================================== */

@media (min-width: 1200px) {

    /* Wider overall content */
   .home-container {
    width: min(
        calc(100% - 56px),
        1400px
    );
}


    /* Navbar slightly larger */
    .home-navbar {
        min-height: 86px;
    }

  .home-brand-logo {
    display: block;

    width: 58px;
    height: 58px;

    flex-shrink: 0;

    object-fit: contain;

    border-radius: 12px;

    background: transparent;
}
.home-brand {
    min-width: 0;
}

.home-brand-copy {
    min-width: 0;
}

    .home-brand-copy strong {
        font-size: 17px;
    }

    .home-brand-copy span {
        font-size: 12px;
    }

    .home-nav {
        gap: 30px;
    }

    .home-nav a {
        font-size: 15px;
    }

    .home-login-button {
        min-height: 43px;
        padding: 0 24px;
        font-size: 14px;
    }


    /* =========================
       HERO
    ========================= */

    .home-hero-section {
        padding-top: 28px;
    }

    .home-hero-card {
        grid-template-columns:
            minmax(0, 1.12fr)
            minmax(410px, 0.88fr);

        min-height: 500px;

        gap: 68px;

        padding: 64px 62px;

        border-radius: 30px;
    }

    .home-hero-content {
        max-width: 680px;
    }

    .home-hero-content h1 {
        font-size: clamp(
            54px,
            4vw,
            68px
        );
    }

    .home-hero-content h2 {
        margin-top: 14px;
        font-size: 20px;
    }

    .home-hero-content > p {
        max-width: 650px;
        font-size: 16px;
        line-height: 1.7;
    }

    .home-eyebrow {
        font-size: 12px;
    }

    .home-primary-button,
    .home-secondary-button {
        min-height: 46px;
        padding: 0 22px;
        font-size: 14px;
    }


    /* Right hero preview */
    .home-platform-preview {
        padding: 22px;
        border-radius: 25px;
    }

    .home-platform-main-card {
        min-height: 116px;
        padding: 20px;
    }

    .home-platform-small-card {
        min-height: 96px;
        padding: 18px;
    }

    .home-platform-main-card strong,
    .home-platform-small-card strong {
        font-size: 14px;
    }

    .home-platform-main-card span,
    .home-platform-small-card span {
        font-size: 12px;
    }


    /* =========================
       MAIN WHITE SECTIONS
    ========================= */

    .home-section {
        padding: 21px 0;
    }

    .home-white-panel {
        padding: 44px 34px 34px;
        border-radius: 27px;
    }

    .home-section-heading {
        max-width: 950px;
    }

    .home-section-heading h2 {
        font-size: 30px;
    }

    .home-section-heading p {
        font-size: 15px;
    }


    /* Service cards */
    .home-service-grid,
    .home-role-grid {
        gap: 18px;
        margin-top: 28px;
    }

    .home-service-card {
        min-height: 195px;
        padding: 23px;
    }

    .home-role-card {
        min-height: 130px;
        padding: 23px;
    }

    .home-service-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .home-service-card h3,
    .home-role-card h3 {
        font-size: 16px;
    }

    .home-service-card p,
    .home-role-card p {
        font-size: 13px;
    }


    /* =========================
       WORKFLOW
    ========================= */

    .home-flow-item {
        min-height: 105px;
        padding: 18px;
    }

    .home-flow-number {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .home-flow-item strong {
        font-size: 14px;
    }

    .home-flow-item span {
        font-size: 12px;
    }


    /* =========================
       ACTIVITY CARDS
    ========================= */

    .home-stat-card {
        min-height: 115px;
        padding: 24px;
    }

    .home-stat-card strong {
        font-size: 22px;
    }

    .home-stat-card span {
        font-size: 13px;
    }


    /* =========================
       CTA
    ========================= */

    .home-access-card {
        padding: 42px 34px;
    }

    .home-access-card h2 {
        font-size: 27px;
    }

    .home-access-card p {
        font-size: 14px;
    }


    /* =========================
       FOOTER
    ========================= */

    .home-footer {
        padding: 32px 0 40px;
    }

    .home-footer-content > div strong {
        font-size: 14px;
    }

    .home-footer-content > div p,
    .home-footer-nav a,
    .home-footer-copy {
        font-size: 12px;
    }
}