/* =========================================================
   CUSTOMER PORTAL PAGE
========================================================= */


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

.portal-hero {
    position: relative;
    overflow: hidden;

    padding: 160px 0 100px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(16, 185, 129, .15),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 70%,
            rgba(37, 99, 235, .16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eef6ff 0%,
            #e9f9f4 100%
        );
}


.portal-grid {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(37, 99, 235, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(37, 99, 235, .045) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


.portal-orb {
    position: absolute;

    border-radius: 50%;

    filter: blur(10px);

    pointer-events: none;
}


.orb-one {
    width: 420px;
    height: 420px;

    top: -150px;
    right: -100px;

    background:
        rgba(37, 99, 235, .16);
}


.orb-two {
    width: 300px;
    height: 300px;

    bottom: -130px;
    left: 5%;

    background:
        rgba(16, 185, 129, .14);
}


.portal-hero-content {
    position: relative;

    display: grid;

    grid-template-columns:
        1fr 1.05fr;

    gap: 70px;

    align-items: center;
}


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

.product-label {
    width: fit-content;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        8px 16px;

    border:
        1px solid
        rgba(37, 99, 235, .15);

    border-radius: 100px;

    background:
        rgba(255, 255, 255, .75);

    color:
        #2563eb;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    box-shadow:
        0 10px 30px
        rgba(37, 99, 235, .08);
}


.label-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #10b981
        );

    font-size: 15px;
}


.portal-hero h1 {
    max-width: 650px;

    margin:
        25px 0 20px;

    color:
        #0b2850;

    font-size:
        clamp(
            38px,
            5vw,
            65px
        );

    line-height: 1.25;
}


.portal-hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #10b981
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;
}


.hero-description {
    max-width: 620px;

    color:
        #56708f;

    font-size: 17px;

    line-height: 2;
}


.hero-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 15px;

    margin-top: 35px;
}


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

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 54px;

    padding:
        0 25px;

    border-radius: 14px;

    font-weight: 700;

    text-decoration: none;

    transition:
        .3s ease;
}


.primary-button {
    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5a4
        );

    box-shadow:
        0 15px 35px
        rgba(37, 99, 235, .25);
}


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

    box-shadow:
        0 20px 45px
        rgba(37, 99, 235, .35);
}


.secondary-button {
    border:
        1px solid
        rgba(37, 99, 235, .15);

    color:
        #174678;

    background:
        rgba(255, 255, 255, .75);
}


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

    background:
        white;
}


.hero-mini-features {
    display: flex;

    flex-wrap: wrap;

    gap:
        12px 20px;

    margin-top: 30px;

    color:
        #466887;

    font-size: 14px;
}


.hero-mini-features div {
    display: flex;

    align-items: center;

    gap: 7px;
}


.hero-mini-features span {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    color:
        #059669;

    background:
        rgba(16, 185, 129, .12);

    font-size: 12px;

    font-weight: 900;
}


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

.portal-hero-visual {
    position: relative;
}


.portal-window {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .8);

    border-radius: 25px;

    background:
        rgba(255, 255, 255, .9);

    box-shadow:
        0 35px 80px
        rgba(20, 70, 130, .18);

    backdrop-filter:
        blur(20px);
}


.portal-window-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        18px 22px;

    border-bottom:
        1px solid
        #e9eef5;
}


.portal-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}


.portal-brand-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #10b981
        );
}


.portal-brand strong {
    display: block;

    color:
        #183b63;

    font-size: 14px;
}


.portal-brand span {
    display: block;

    margin-top: 3px;

    color:
        #8aa0b8;

    font-size: 11px;
}


.portal-status {
    padding:
        7px 12px;

    border-radius: 100px;

    color:
        #059669;

    background:
        rgba(16, 185, 129, .1);

    font-size: 11px;

    font-weight: 700;
}


.portal-dashboard-body {
    display: grid;

    grid-template-columns:
        125px 1fr;

    min-height: 390px;
}


/* SIDEBAR */

.portal-sidebar {
    padding:
        20px 10px;

    background:
        #f5f9fd;

    border-left:
        1px solid
        #e7eef5;
}


.portal-menu-item {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        10px 9px;

    margin-bottom: 8px;

    border-radius: 9px;

    color:
        #8499b0;

    font-size: 10px;
}


.portal-menu-item.active {
    color:
        #2563eb;

    background:
        white;

    box-shadow:
        0 6px 15px
        rgba(30, 70, 110, .07);
}


/* DASHBOARD CONTENT */

.portal-dashboard-content {
    padding: 25px;
}


.portal-welcome {
    display: flex;

    align-items: center;

    justify-content: space-between;
}


.portal-welcome small {
    color:
        #9aaabd;

    font-size: 10px;
}


.portal-welcome h3 {
    margin:
        5px 0 0;

    color:
        #183b63;

    font-size: 18px;
}


.profile-avatar {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    color: white;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #10b981
        );

    font-size: 11px;

    font-weight: 800;
}


/* STATS */

.portal-stats {
    display: grid;

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

    gap: 10px;

    margin:
        25px 0;
}


.portal-stat {
    padding:
        15px 10px;

    border-radius: 12px;

    background:
        #f7faff;
}


.portal-stat span {
    display: block;

    margin-bottom: 6px;

    color:
        #174678;

    font-size: 20px;

    font-weight: 800;
}


.portal-stat small {
    color:
        #8ca0b6;

    font-size: 9px;
}


/* SERVICES */

.portal-section-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 12px;
}


.portal-section-title strong {
    color:
        #355473;

    font-size: 12px;
}


.portal-section-title small {
    color:
        #2563eb;

    font-size: 9px;
}


.portal-services-list {
    display: grid;

    gap: 10px;
}


.portal-service-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 11px;

    border:
        1px solid
        #edf1f6;

    border-radius: 12px;
}


.service-info {
    display: flex;

    align-items: center;

    gap: 10px;
}


.service-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;
    height: 32px;

    border-radius: 10px;

    background:
        #e5efff;

    font-size: 15px;
}


.service-icon.green {
    background:
        #dff9ef;
}


.service-info strong {
    display: block;

    color:
        #355473;

    font-size: 10px;
}


.service-info small {
    display: block;

    margin-top: 4px;

    color:
        #9baabd;

    font-size: 8px;
}


.service-active {
    padding:
        5px 8px;

    border-radius: 100px;

    color:
        #059669;

    background:
        #d1fae5;

    font-size: 8px;

    font-weight: 700;
}


/* =========================================================
   FLOATING CARDS
========================================================= */

.floating-portal {
    position: absolute;

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        12px 16px;

    border:
        1px solid
        rgba(255, 255, 255, .8);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, .9);

    box-shadow:
        0 20px 45px
        rgba(30, 70, 110, .15);

    color:
        #315271;

    font-size: 11px;

    font-weight: 700;

    backdrop-filter:
        blur(12px);
}


.floating-portal span {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 24px;
    height: 24px;

    border-radius: 8px;

    color:
        white;

    background:
        #10b981;
}


.portal-card-one {
    bottom: -20px;
    right: 40px;
}


.portal-card-two {
    top: 90px;
    left: -45px;
}


.portal-card-two span {
    background:
        #2563eb;
}


/* =========================================================
   COMMON SECTIONS
========================================================= */

.portal-intro,
.portal-features,
.how-it-works,
.portal-benefits,
.use-cases,
.portal-cta {
    padding:
        110px 0;
}


.section-heading {
    margin-bottom: 55px;
}


.center-heading {
    max-width: 720px;

    margin:
        0 auto 55px;

    text-align: center;
}


.section-tag {
    display: inline-block;

    margin-bottom: 16px;

    color:
        #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.section-heading h2 {
    margin:
        0 0 18px;

    color:
        #0d3159;

    font-size:
        clamp(
            30px,
            4vw,
            48px
        );
}


.section-heading p {
    margin: 0;

    color:
        #617b96;

    line-height: 2;
}


/* =========================================================
   INTRO
========================================================= */

.portal-intro {
    background:
        #f8fbff;
}


.problem-solution-grid {
    display: grid;

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

    gap: 25px;

    max-width: 1050px;

    margin: auto;
}


.problem-card,
.solution-card {
    padding: 40px;

    border-radius: 25px;

    transition:
        .35s ease;
}


.problem-card {
    background:
        white;

    border:
        1px solid
        #edf1f5;
}


.solution-card {
    color: white;

    background:
        linear-gradient(
            135deg,
            #1559c5,
            #0e9d8b
        );

    box-shadow:
        0 25px 60px
        rgba(20, 120, 140, .22);
}


.problem-card:hover,
.solution-card:hover {
    transform:
        translateY(-8px);
}


.card-top-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 55px;
    height: 55px;

    margin-bottom: 25px;

    border-radius: 16px;

    font-size: 25px;
}


.problem-icon {
    background:
        #fff1f1;
}


.solution-icon {
    background:
        rgba(255, 255, 255, .15);
}


.card-label {
    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    opacity: .7;
}


.problem-card h3,
.solution-card h3 {
    margin:
        12px 0 25px;

    font-size: 25px;
}


.problem-card h3 {
    color:
        #173d66;
}


.problem-card ul,
.solution-card ul {
    padding: 0;

    margin: 0;

    list-style: none;
}


.problem-card li,
.solution-card li {
    position: relative;

    padding:
        11px 28px 11px 0;

    line-height: 1.8;
}


.problem-card li {
    color:
        #68819a;

    border-bottom:
        1px solid
        #f0f3f6;
}


.problem-card li::before {
    content:
        "×";

    position: absolute;

    right: 0;

    color:
        #ef4444;

    font-weight: 900;
}


.solution-card li {
    border-bottom:
        1px solid
        rgba(255, 255, 255, .12);
}


.solution-card li::before {
    content:
        "✓";

    position: absolute;

    right: 0;

    color:
        #8fffe0;

    font-weight: 900;
}


/* =========================================================
   FEATURES
========================================================= */

.portal-features {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f1f8ff
        );
}


.features-layout {
    display: grid;

    grid-template-columns:
        .75fr 1.25fr;

    gap: 60px;

    align-items: start;
}


.features-text {
    position: sticky;

    top: 120px;
}


.features-text h2 {
    margin:
        0 0 20px;

    color:
        #10365e;

    font-size:
        clamp(
            30px,
            4vw,
            46px
        );

    line-height: 1.45;
}


.features-text p {
    color:
        #66809a;

    line-height: 2;
}


.text-link {
    display: inline-flex;

    margin-top: 25px;

    color:
        #0b9a88;

    font-weight: 700;

    text-decoration: none;
}


.features-grid {
    display: grid;

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

    gap: 20px;
}


.feature-card {
    padding: 30px;

    border:
        1px solid
        rgba(31, 100, 180, .08);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, .8);

    transition:
        .35s ease;
}


.feature-card:hover {
    transform:
        translateY(-7px);

    border-color:
        rgba(37, 99, 235, .22);

    box-shadow:
        0 20px 45px
        rgba(20, 70, 120, .09);
}


.feature-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 52px;
    height: 52px;

    margin-bottom: 22px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #e5efff,
            #ddf8f0
        );

    font-size: 24px;
}


.feature-card h3 {
    margin:
        0 0 12px;

    color:
        #183d66;

    font-size: 19px;
}


.feature-card p {
    margin: 0;

    color:
        #7289a0;

    line-height: 1.9;

    font-size: 14px;
}


/* =========================================================
   HOW IT WORKS
========================================================= */

.how-it-works {
    position: relative;

    overflow: hidden;

    background:
        #0e3561;
}


.how-it-works .section-heading h2 {
    color:
        white;
}


.how-it-works .section-heading p {
    color:
        #a9c0d8;
}


.how-it-works .section-tag {
    color:
        #67e8c6;
}


.steps-wrapper {
    position: relative;

    display: grid;

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

    gap: 30px;
}


.process-line {
    position: absolute;

    top: 70px;

    right: 10%;

    width: 80%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #10b981
        );

    opacity: .45;
}


.process-step {
    position: relative;

    z-index: 2;

    text-align: center;
}


.step-number {
    margin-bottom: 15px;

    color:
        #5b8ec5;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}


.step-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 85px;
    height: 85px;

    margin:
        0 auto 20px;

    border:
        8px solid
        #0e3561;

    border-radius: 25px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #10b981
        );

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, .18);

    font-size: 28px;
}


.process-step h3 {
    margin:
        0 0 10px;

    color:
        white;

    font-size: 19px;
}


.process-step p {
    margin: 0;

    color:
        #a9c0d8;

    line-height: 1.9;

    font-size: 14px;
}


/* =========================================================
   BENEFITS
========================================================= */

.portal-benefits {
    background:
        #f6fbff;
}


.benefits-panel {
    display: grid;

    grid-template-columns:
        1.1fr .9fr;

    overflow: hidden;

    border-radius: 30px;

    background:
        white;

    box-shadow:
        0 25px 70px
        rgba(20, 70, 120, .09);
}


.benefits-content {
    padding: 65px;
}


.benefits-content h2 {
    margin:
        0 0 20px;

    color:
        #12395f;

    font-size:
        clamp(
            30px,
            4vw,
            44px
        );

    line-height: 1.5;
}


.benefits-content > p {
    color:
        #6b849e;

    line-height: 2;
}


.benefit-list {
    display: grid;

    gap: 13px;

    margin-top: 30px;
}


.benefit-item {
    display: flex;

    align-items: center;

    gap: 12px;

    color:
        #375a7a;
}


.benefit-item span {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 8px;

    color:
        #059669;

    background:
        #dcfce7;

    font-size: 13px;

    font-weight: 900;
}


.benefits-stats {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 50px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #1559c5,
            #0d9b88
        );
}


.big-stat span {
    display: block;

    font-size:
        clamp(
            80px,
            10vw,
            140px
        );

    font-weight: 900;

    line-height: 1;

    opacity: .95;
}


.big-stat p {
    max-width: 250px;

    margin-top: 15px;

    color:
        #d7f7f0;

    line-height: 1.9;
}


.small-stats {
    display: grid;

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

    gap: 15px;

    margin-top: 50px;
}


.small-stats div {
    padding: 20px;

    border:
        1px solid
        rgba(255, 255, 255, .15);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, .08);
}


.small-stats strong {
    display: block;

    margin-bottom: 10px;

    font-size: 22px;
}


/* =========================================================
   USE CASES
========================================================= */

.use-cases {
    background:
        white;
}


.use-cases-grid {
    display: grid;

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

    gap: 18px;
}


.use-case-card {
    position: relative;

    overflow: hidden;

    padding:
        32px 25px;

    border:
        1px solid
        #eaf0f6;

    border-radius: 22px;

    background:
        #f9fcff;

    transition:
        .35s ease;
}


.use-case-card:hover {
    transform:
        translateY(-8px);

    background:
        white;

    box-shadow:
        0 20px 50px
        rgba(20, 70, 120, .1);
}


.use-case-card > div {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 20px;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #e5efff,
            #dff9ef
        );

    font-size: 26px;
}


.use-case-card h3 {
    margin:
        0 0 10px;

    color:
        #163d64;

    font-size: 18px;
}


.use-case-card p {
    margin: 0;

    color:
        #728aa1;

    line-height: 1.9;

    font-size: 14px;
}


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

.portal-cta {
    padding-top: 70px;

    background:
        #f7fbff;
}


.cta-box {
    position: relative;

    overflow: hidden;

    padding:
        85px 30px;

    border-radius: 32px;

    text-align: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #0e3f85,
            #0c9d8a
        );

    box-shadow:
        0 30px 70px
        rgba(10, 90, 130, .2);
}


.cta-glow {
    position: absolute;

    width: 400px;
    height: 400px;

    top: -250px;
    left: -100px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .12);

    filter:
        blur(10px);
}


.cta-content {
    position: relative;

    z-index: 2;
}


.cta-content > span {
    color:
        #77f5d0;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


.cta-content h2 {
    margin:
        20px 0 15px;

    font-size:
        clamp(
            30px,
            4vw,
            48px
        );
        color:white;
}


.cta-content p {
    max-width: 600px;

    margin:
        auto;

    color:
        #d3edf2;

    line-height: 2;
}


.cta-button {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    margin-top: 30px;

    padding:
        15px 28px;

    border-radius: 14px;

    color:
        #0d5f76;

    background:
        white;

    font-weight: 800;

    text-decoration: none;

    transition:
        .3s ease;
}


.cta-button:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 15px 30px
        rgba(0, 0, 0, .15);
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}


.reveal.show {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {


    .portal-hero-content {
        grid-template-columns:
            1fr;

        gap: 60px;
    }


    .portal-hero-text {
        max-width: 750px;
    }


    .portal-hero-visual {
        width: 100%;

        max-width: 700px;

        margin: auto;
    }


    .features-layout {
        grid-template-columns:
            1fr;
    }


    .features-text {
        position: static;

        max-width: 650px;
    }


    .benefits-panel {
        grid-template-columns:
            1fr;
    }


    .use-cases-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 850px) {


    .portal-hero {
        padding:
            130px 0 80px;
    }


    .problem-solution-grid {
        grid-template-columns:
            1fr;
    }


    .steps-wrapper {
        grid-template-columns:
            repeat(2, 1fr);

        gap:
            50px 30px;
    }


    .process-line {
        display: none;
    }


    .portal-dashboard-body {
        grid-template-columns:
            100px 1fr;
    }

}


@media (max-width: 650px) {


    .portal-hero,
    .portal-intro,
    .portal-features,
    .how-it-works,
    .portal-benefits,
    .use-cases,
    .portal-cta {
        padding:
            75px 0;
    }


    .portal-hero {
        padding-top:
            120px;
    }


    .hero-actions {
        flex-direction:
            column;

        align-items:
            stretch;
    }


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


    .hero-mini-features {
        flex-direction:
            column;
    }


    .portal-window {
        border-radius:
            18px;
    }


    .portal-sidebar {
        display: none;
    }


    .portal-dashboard-body {
        grid-template-columns:
            1fr;
    }


    .portal-dashboard-content {
        padding:
            18px;
    }


    .portal-stats {
        grid-template-columns:
            1fr;
    }


    .floating-portal {
        display: none;
    }


    .features-grid {
        grid-template-columns:
            1fr;
    }


    .steps-wrapper {
        grid-template-columns:
            1fr;
    }


    .problem-card,
    .solution-card {
        padding:
            30px 23px;
    }


    .benefits-content {
        padding:
            40px 25px;
    }


    .benefits-stats {
        padding:
            40px 25px;
    }


    .small-stats {
        grid-template-columns:
            1fr;
    }


    .use-cases-grid {
        grid-template-columns:
            1fr;
    }


    .cta-box {
        padding:
            60px 20px;
    }

}


@media (max-width: 420px) {


    .portal-welcome {
        flex-direction:
            column;

        align-items:
            flex-start;

        gap: 15px;
    }


    .portal-window-top {
        align-items:
            flex-start;

        gap: 15px;

        flex-direction:
            column;
    }

}