/* ==========================================================================
   SHIFTIFY INTERNAL PORTAL
   Premium Internal Ecosystem / Platform Selection

   Palette:
   Primary Navy: #002B66
   Dark Navy: #001A3E
   Accent Orange: #FF5500
   Light Orange: #FFF4ED
   White: #FFFFFF
   Main Text: #172B40
   Secondary Text: #667789
   Borders: #E5EAF0
========================================================================== */


/* ==========================================================================
   1. PAGE CANVAS
========================================================================== */

.portal-wrapper {
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            #F8FAFC 0%,
            #FFFFFF 38%,
            #F8FAFC 100%
        );
    color: #172B40;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* ==========================================================================
   2. HERO BANNER
========================================================================== */

.portal-banner {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(255, 85, 0, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(0, 43, 102, 0.4),
            transparent 40%
        ),
        linear-gradient(
            120deg,
            #001A3E 0%,
            #002B66 55%,
            #003B82 100%
        );
    color: #FFFFFF;
}


/* ==========================================================================
   HERO GRID
========================================================================== */

.portal-banner__grid {
    position: absolute;
    right: -50px;
    bottom: -100px;
    width: 600px;
    height: 400px;
    opacity: 0.1;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.3) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.3) 1px,
            transparent 1px
        );

    background-size: 36px 36px;

    transform:
        perspective(500px)
        rotateX(60deg)
        rotateZ(-10deg);

    mask-image:
        linear-gradient(
            to top,
            black,
            transparent 80%
        );

    pointer-events: none;
}


/* ==========================================================================
   HERO GLOWS
========================================================================== */

.portal-banner__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
}

.portal-banner__glow--one {
    width: 250px;
    height: 250px;
    right: 12%;
    top: -100px;

    background:
        radial-gradient(
            circle,
            rgba(255, 85, 0, 0.25),
            transparent 70%
        );
}

.portal-banner__glow--two {
    width: 180px;
    height: 180px;
    left: 5%;
    bottom: -80px;

    background:
        radial-gradient(
            circle,
            rgba(0, 102, 255, 0.18),
            transparent 70%
        );
}


/* ==========================================================================
   HERO INNER
========================================================================== */

.portal-banner__inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 44px 24px;
}


/* ==========================================================================
   3. HERO BRAND LABEL

   Logo is intentionally NOT placed in the hero.
   Main Shiftify logo appears in the platform-selection section.
========================================================================== */

.portal-brand {
    display: block;
    margin-bottom: 18px;
}

.portal-brand__title {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    line-height: 1.4;
    text-transform: uppercase;
}


/* ==========================================================================
   4. HERO BADGE
========================================================================== */

.portal-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 14px;
    margin-bottom: 16px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.85);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    backdrop-filter: blur(8px);
}

.portal-banner__badge span {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;

    border-radius: 50%;

    background: #FF5500;

    box-shadow:
        0 0 10px #FF5500;
}


/* ==========================================================================
   5. HERO HEADING
========================================================================== */

.portal-banner h1 {
    max-width: 850px;

    margin: 0 0 16px;

    color: #FFFFFF;

    font-size: clamp(34px, 4vw, 46px);
    line-height: 1.15;

    letter-spacing: -1px;
    font-weight: 800;
}

.portal-banner h1 span {
    display: block;

    color: #FF5500;
    font-weight: 800;
}


/* ==========================================================================
   6. HERO DESCRIPTION
========================================================================== */

.portal-banner__description {
    max-width: 720px;

    margin: 0 0 24px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================================
   7. HERO STATS
========================================================================== */

.portal-banner__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-banner__stats > div {
    min-width: 125px;

    padding: 10px 16px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.06);

    backdrop-filter: blur(8px);
}

.portal-banner__stats strong {
    display: block;

    color: #FFFFFF;

    font-size: 16px;
    font-weight: 800;
}

.portal-banner__stats span {
    display: block;

    margin-top: 2px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 11px;
    font-weight: 600;
}


/* ==========================================================================
   8. MAIN CONTENT
========================================================================== */

.portal-content {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 60px 24px 70px;
}


/* ==========================================================================
   9. SECTION HEADER
========================================================================== */

.portal-section-header {
    max-width: 760px;

    margin: 0 auto 38px;

    text-align: center;
}


/* ==========================================================================
   SHIFTIFY SECTION BRAND / LOGO
========================================================================== */

.portal-section-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
}

.portal-section-brand__logo {
    display: block;

    width: auto;
    height: 72px;
    max-width: 330px;

    object-fit: contain;
    object-position: center;

    filter:
        drop-shadow(
            0 5px 12px rgba(0, 43, 102, 0.10)
        );
}


/* ==========================================================================
   SECTION LABEL
========================================================================== */

.portal-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 12px;

    color: #FF5500;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.portal-section-label::before,
.portal-section-label::after {
    content: "";

    width: 18px;
    height: 2px;

    border-radius: 2px;

    background: #FF5500;
}


/* ==========================================================================
   SECTION HEADING
========================================================================== */

.portal-section-header h2 {
    margin: 0 0 12px;

    color: #002B66;

    font-size: 28px;
    line-height: 1.25;

    font-weight: 700;
}

.portal-section-header p {
    max-width: 650px;

    margin: 0 auto;

    color: #667789;

    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================================
   10. PORTAL CARDS GRID
========================================================================== */

.portal-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* ==========================================================================
   11. PORTAL CARD
========================================================================== */

.portal-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 560px;

    padding: 28px;

    overflow: hidden;

    border: 1px solid #E5EAF0;
    border-radius: 16px;

    background: #FFFFFF;

    color: #172B40;

    text-decoration: none;

    box-shadow:
        0 4px 16px rgba(0, 43, 102, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.portal-card:hover {
    transform: translateY(-5px);

    border-color: #FFC0A0;

    box-shadow:
        0 16px 35px rgba(0, 43, 102, 0.10);

    text-decoration: none;
}

.portal-card:focus-visible {
    outline: 3px solid rgba(255, 85, 0, 0.25);
    outline-offset: 3px;
}


/* ==========================================================================
   SUBTLE CARD TOP GLOW
========================================================================== */

.portal-card::before {
    content: "";

    position: absolute;

    top: -100px;
    right: -100px;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 85, 0, 0.08),
            transparent 70%
        );

    pointer-events: none;
}


/* ==========================================================================
   12. CARD TOP
========================================================================== */

.portal-card__top {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}


/* ==========================================================================
   ICON
========================================================================== */

.portal-card .icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 12px;

    font-size: 25px;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.portal-card:hover .icon {
    transform: translateY(-2px);
}

.horizon-icon {
    background: #FFF4ED;
    border: 1px solid #FFE1D1;
}

.shield-icon {
    background: rgba(0, 43, 102, 0.06);
    border: 1px solid rgba(0, 43, 102, 0.08);
}


/* ==========================================================================
   VERSION
========================================================================== */

.version {
    display: inline-flex;

    align-items: center;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.horizon-version {
    background: #FFF4ED;
    color: #FF5500;
}

.shield-version {
    background: rgba(0, 43, 102, 0.06);
    color: #002B66;
}


/* ==========================================================================
   13. CARD CONTENT
========================================================================== */

.portal-card__eyebrow {
    margin-bottom: 8px;

    color: #FF5500;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.portal-card h2 {
    margin: 0 0 12px;

    color: #002B66;

    font-size: 27px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.4px;
}

.portal-card > p {
    margin: 0 0 25px;

    color: #667789;

    font-size: 13.5px;
    line-height: 1.7;
}


/* ==========================================================================
   14. CAPABILITIES
========================================================================== */

.portal-capabilities {
    display: flex;
    flex-direction: column;

    gap: 0;

    margin-top: 2px;
}

.capability {
    display: flex;

    gap: 13px;

    padding: 13px 0;

    border-top: 1px solid #E5EAF0;
}

.capability:first-child {
    border-top: 0;
}

.capability > span {
    flex: 0 0 auto;

    padding-top: 2px;

    color: #FF5500;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.5px;
}

.capability div {
    min-width: 0;
}

.capability strong {
    display: block;

    margin-bottom: 3px;

    color: #172B40;

    font-size: 13px;
    line-height: 1.35;

    font-weight: 700;
}

.capability small {
    display: block;

    color: #667789;

    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================================
   15. CARD FOOTER
========================================================================== */

.portal-card__footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;
    padding-top: 20px;

    border-top: 1px solid #E5EAF0;
}

.portal-card__footer > div {
    min-width: 0;
}

.portal-card__footer strong {
    display: block;

    margin-bottom: 3px;

    color: #172B40;

    font-size: 11px;
    line-height: 1.4;

    font-weight: 700;
}

.portal-card__footer span:not(.open-arrow) {
    display: block;

    color: #667789;

    font-size: 10px;
    line-height: 1.4;
}


/* ==========================================================================
   ARROW
========================================================================== */

.open-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    border-radius: 9px;

    background: #FFF4ED;
    color: #FF5500;

    font-size: 20px;
    font-weight: 500;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.portal-card:hover .open-arrow {
    transform: translateX(4px);

    background: #FF5500;
    color: #FFFFFF;
}


/* ==========================================================================
   16. SYSTEM STATUS BANNER
========================================================================== */

.portal-info-banner {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-top: 28px;
    padding: 18px 20px;

    border: 1px solid #E5EAF0;
    border-radius: 12px;

    background: #FFFFFF;

    box-shadow:
        0 4px 14px rgba(0, 43, 102, 0.025);
}

.info-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: rgba(0, 43, 102, 0.06);

    font-size: 18px;
}

.portal-info-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;
}

.portal-info-content strong {
    margin-bottom: 3px;

    color: #172B40;

    font-size: 13px;
    font-weight: 700;
}

.portal-info-content span {
    color: #667789;

    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================================
   STATUS
========================================================================== */

.portal-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    flex: 0 0 auto;

    padding: 7px 10px;

    border-radius: 7px;

    background: #F0FDF4;

    color: #15803D;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.portal-status > span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #22C55E;

    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12);
}


/* ==========================================================================
   17. BENEFITS SECTION
========================================================================== */

.portal-benefits {
    margin-top: 70px;

    padding-top: 55px;

    border-top: 1px solid #E5EAF0;
}

.portal-benefits > .portal-section-label {
    display: flex;
    justify-content: center;
}

.portal-benefits h2 {
    margin: 0 0 30px;

    color: #002B66;

    font-size: 28px;
    line-height: 1.25;

    font-weight: 700;

    text-align: center;
}

.benefits-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.benefit-item {
    padding: 24px;

    border: 1px solid #E5EAF0;
    border-radius: 12px;

    background: #FFFFFF;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);

    border-color: #D0D8E2;

    box-shadow:
        0 8px 20px rgba(0, 43, 102, 0.05);
}

.benefit-item > span {
    display: block;

    margin-bottom: 12px;

    color: #FF5500;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

.benefit-item strong {
    display: block;

    margin-bottom: 8px;

    color: #172B40;

    font-size: 16px;
    font-weight: 700;
}

.benefit-item p {
    margin: 0;

    color: #667789;

    font-size: 13px;
    line-height: 1.6;
}


/* ==========================================================================
   18. HORIZON / SHIELD COLOR VARIANTS
========================================================================== */

.horizon-card:hover {
    border-color: #FFC0A0;
}

.horizon-card .portal-card__eyebrow {
    color: #FF5500;
}

.shield-card:hover {
    border-color: #B8C8DA;
}

.shield-card .portal-card__eyebrow {
    color: #002B66;
}

.shield-card .capability > span {
    color: #002B66;
}

.shield-card .open-arrow {
    background: rgba(0, 43, 102, 0.06);
    color: #002B66;
}

.shield-card:hover .open-arrow {
    background: #002B66;
    color: #FFFFFF;
}


/* ==========================================================================
   19. TABLET
========================================================================== */

@media (max-width: 1024px) {

    .portal-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .portal-grid {
        gap: 18px;
    }

    .portal-card {
        padding: 24px;
        min-height: 540px;
    }

    .benefits-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .benefit-item:last-child {
        grid-column: span 2;
    }
}


/* ==========================================================================
   20. MOBILE
========================================================================== */

@media (max-width: 768px) {

    .portal-banner {
        min-height: 300px;
    }

    .portal-banner__inner {
        padding: 38px 20px;
    }


    /* -----------------------------------------
       HERO BRAND
    ----------------------------------------- */

    .portal-brand {
        margin-bottom: 18px;
        text-align: center;
    }

    .portal-brand__title {
        font-size: 9px;
        letter-spacing: 1.4px;
    }


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .portal-banner__badge {
        margin-left: auto;
        margin-right: auto;
    }

    .portal-banner h1 {
        font-size: 29px;
        letter-spacing: -0.6px;
        text-align: center;
    }

    .portal-banner__description {
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
    }

    .portal-banner__stats {
        justify-content: center;
        gap: 8px;
    }

    .portal-banner__stats > div {
        min-width: 110px;
        padding: 9px 12px;
        text-align: center;
    }


    /* -----------------------------------------
       CONTENT
    ----------------------------------------- */

    .portal-content {
        padding:
            45px 16px
            55px;
    }

    .portal-section-header {
        margin-bottom: 28px;
    }


    /* -----------------------------------------
       SECTION LOGO
    ----------------------------------------- */

    .portal-section-brand {
        margin-bottom: 15px;
    }

    .portal-section-brand__logo {
        height: 62px;
        max-width: 290px;
    }


    /* -----------------------------------------
       SECTION HEADING
    ----------------------------------------- */

    .portal-section-header h2,
    .portal-benefits h2 {
        font-size: 23px;
    }

    .portal-section-header p {
        font-size: 13px;
        line-height: 1.6;
    }


    /* -----------------------------------------
       CARDS
    ----------------------------------------- */

    .portal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portal-card {
        min-height: auto;
        padding: 22px;
    }

    .portal-card__top {
        margin-bottom: 22px;
    }

    .portal-card h2 {
        font-size: 24px;
    }


    /* -----------------------------------------
       INFO
    ----------------------------------------- */

    .portal-info-banner {
        align-items: flex-start;
        flex-wrap: wrap;

        padding: 16px;
    }

    .portal-info-content {
        flex-basis: calc(100% - 58px);
    }

    .portal-status {
        width: 100%;
        justify-content: center;
    }


    /* -----------------------------------------
       BENEFITS
    ----------------------------------------- */

    .portal-benefits {
        margin-top: 50px;
        padding-top: 40px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .benefit-item:last-child {
        grid-column: span 1;
    }
}


/* ==========================================================================
   21. SMALL MOBILE
========================================================================== */

@media (max-width: 480px) {

    .portal-banner {
        min-height: 350px;
    }

    .portal-banner__inner {
        padding:
            34px 16px
            38px;
    }

    .portal-banner__grid {
        right: -180px;
        width: 500px;
    }


    /* -----------------------------------------
       HERO BRAND
    ----------------------------------------- */

    .portal-brand {
        margin-bottom: 16px;
    }

    .portal-brand__title {
        font-size: 8px;
        letter-spacing: 1.1px;
    }


    /* -----------------------------------------
       HERO BADGE
    ----------------------------------------- */

    .portal-banner__badge {
        font-size: 9px;
        padding: 5px 10px;
    }

    .portal-banner h1 {
        font-size: 27px;
    }


    /* -----------------------------------------
       HERO STATS
    ----------------------------------------- */

    .portal-banner__stats {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .portal-banner__stats > div {
        min-width: 0;
    }

    .portal-banner__stats > div:last-child {
        grid-column: span 2;
    }


    /* -----------------------------------------
       SECTION LOGO
    ----------------------------------------- */

    .portal-section-brand {
        margin-bottom: 13px;
    }

    .portal-section-brand__logo {
        height: 56px;
        max-width: 260px;
    }


    /* -----------------------------------------
       CARDS
    ----------------------------------------- */

    .portal-card {
        padding: 20px;
    }

    .portal-card__footer {
        align-items: flex-end;
    }

    .open-arrow {
        width: 34px;
        height: 34px;
    }

    .portal-section-label {
        font-size: 10px;
    }
}


/* ==========================================================================
   22. VERY SMALL MOBILE
========================================================================== */

@media (max-width: 360px) {

    .portal-banner {
        min-height: 360px;
    }

    .portal-banner__inner {
        padding:
            30px 14px
            34px;
    }


    /* -----------------------------------------
       HERO BRAND
    ----------------------------------------- */

    .portal-brand {
        margin-bottom: 15px;
    }

    .portal-brand__title {
        font-size: 7px;
        letter-spacing: 0.9px;
    }


    /* -----------------------------------------
       SECTION LOGO
    ----------------------------------------- */

    .portal-section-brand__logo {
        height: 50px;
        max-width: 230px;
    }


    /* -----------------------------------------
       HERO
    ----------------------------------------- */

    .portal-banner h1 {
        font-size: 25px;
        letter-spacing: -0.4px;
    }

    .portal-banner__description {
        font-size: 12px;
    }

    .portal-banner__stats > div {
        padding: 8px 9px;
    }
}


/* ==========================================================================
   23. REDUCED MOTION
========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .portal-card,
    .benefit-item,
    .portal-card .icon,
    .open-arrow {
        transition: none;
    }

    .portal-card:hover,
    .benefit-item:hover {
        transform: none;
    }
}