:root {
    --portal-ink: #171a3d;
    --portal-purple: #5546e8;
    --portal-green: #09b878;
    --portal-lilac: #f0eeff;
    --portal-mint: #e9fbf4;
    --portal-line: rgba(34, 37, 73, 0.11);
}

body {
    background: #fbfbfe;
}

.portal-header {
    position: sticky;
    z-index: 50;
    top: 0;
    width: min(1180px, calc(100% - 32px));
    height: 78px;
    margin: 12px auto 0;
    padding: 0 18px 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 40px rgba(31, 28, 83, 0.08);
    backdrop-filter: blur(18px);
}

.portal-logo {
    display: flex;
    width: 148px;
}

.portal-logo img {
    width: 148px;
    height: 44px;
    object-fit: contain;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #565b73;
    font-size: 14px;
    font-weight: 700;
}

.portal-nav a {
    transition: color 0.2s ease;
}

.portal-nav a:hover {
    color: var(--portal-purple);
}

.account-menu {
    position: relative;
    justify-self: end;
}

.account-menu summary {
    min-height: 46px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 13px;
    color: #fff;
    background: var(--portal-ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(23, 26, 61, 0.2);
}

.account-menu summary span {
    color: #8589a3;
}

.account-menu summary i {
    margin-left: 3px;
    font-size: 15px;
    font-style: normal;
    transition: transform 0.2s ease;
}

.account-menu[open] summary i {
    transform: rotate(180deg);
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 13px);
    right: 0;
    width: 310px;
    padding: 11px;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(23, 26, 61, 0.2);
}

.account-dropdown-title {
    padding: 8px 10px 10px;
    color: #898da3;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.account-dropdown a {
    min-height: 65px;
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.account-dropdown a:hover {
    background: #f6f6fb;
}

.account-dropdown a > span:nth-child(2),
.account-register > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-dropdown b {
    color: var(--portal-ink);
    font-size: 14px;
}

.account-dropdown small {
    color: #85899d;
    font-size: 11px;
}

.account-dropdown i {
    color: #85899d;
    font-style: normal;
}

.account-product {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.crm-dot {
    background: linear-gradient(135deg, #5648ed, #0cbd7c);
}

.live-dot {
    background: linear-gradient(135deg, #28237f, #5546e8);
}

.account-divider {
    height: 1px;
    margin: 7px 6px;
    background: #ececf3;
}

.account-register {
    grid-template-columns: 1fr auto !important;
    background: var(--portal-mint);
}

.portal-page {
    overflow: hidden;
}

.portal-hero {
    position: relative;
    min-height: 480px;
    padding: 94px 24px 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portal-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    top: -150px;
    left: 50%;
    width: 1020px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #fff 0 28%, #f4f1ff 58%, transparent 74%);
    transform: translateX(-50%);
}

.portal-orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.75;
}

.portal-orb-one {
    top: 100px;
    left: max(30px, calc(50% - 510px));
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #cabfff, #eefcff);
}

.portal-orb-two {
    right: max(35px, calc(50% - 520px));
    bottom: 80px;
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, #c7f8e5, #edf9ff);
}

.portal-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #686c86;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-eyebrow span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--portal-green);
    box-shadow: 0 0 0 5px rgba(9, 184, 120, 0.12);
}

.portal-hero h1 {
    max-width: 850px;
    margin: 25px 0 23px;
    color: var(--portal-ink);
    font-size: clamp(52px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.portal-hero h1 em {
    color: var(--portal-purple);
    font-style: normal;
}

.portal-hero > p {
    max-width: 690px;
    margin: 0;
    color: #656a82;
    font-size: 18px;
    line-height: 1.7;
}

.portal-benefits {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.portal-benefits span {
    padding: 10px 14px;
    border: 1px solid rgba(85, 70, 232, 0.12);
    border-radius: 999px;
    color: #535871;
    background: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 750;
}

.portal-benefits span::before {
    content: "✓";
    margin-right: 7px;
    color: var(--portal-green);
    font-weight: 900;
}

.product-section,
.audience-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0 110px;
}

.portal-section-heading {
    max-width: 740px;
    margin-bottom: 38px;
}

.portal-section-heading > span,
.portal-cta > div > span {
    color: var(--portal-purple);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.portal-section-heading h2,
.sales-intro h2 {
    margin: 13px 0 0;
    color: var(--portal-ink);
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.product-card {
    position: relative;
    min-height: 620px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--portal-line);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(23, 26, 61, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 32px 80px rgba(23, 26, 61, 0.15);
}

.product-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-label {
    padding: 9px 12px;
    border-radius: 999px;
    color: #5d6279;
    background: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--portal-ink);
    font-size: 20px;
}

.product-logo-stage {
    height: 285px;
    margin: 18px 0 8px;
    display: grid;
    place-items: center;
    border-radius: 23px;
    overflow: hidden;
}

.crm-card .product-logo-stage {
    background: linear-gradient(145deg, #f0efff, #e9fbf5);
}

.live-card .product-logo-stage {
    background: linear-gradient(145deg, #efefff, #f6f4ff);
}

.crm-card .product-logo-stage img {
    width: 78%;
    max-height: 180px;
    object-fit: contain;
}

.live-card .product-logo-stage img {
    width: 47%;
    max-height: 245px;
    object-fit: contain;
}

.product-card-copy {
    padding: 15px 8px 4px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-card h3 {
    max-width: 440px;
    margin: 0 0 13px;
    color: var(--portal-ink);
    font-size: 29px;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.product-card p {
    margin: 0;
    color: #6f7389;
    font-size: 15px;
    line-height: 1.65;
}

.product-action {
    margin-top: auto;
    padding-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--portal-purple);
    font-size: 14px;
    font-weight: 850;
}

.product-action i {
    font-size: 19px;
    font-style: normal;
    transition: transform 0.2s ease;
}

.product-card:hover .product-action i {
    transform: translateX(5px);
}

.sales-section {
    padding: 105px max(30px, calc((100% - 1180px) / 2));
    color: #fff;
    background:
        radial-gradient(circle at 84% 16%, rgba(85, 70, 232, 0.55), transparent 28%),
        radial-gradient(circle at 8% 90%, rgba(9, 184, 120, 0.24), transparent 28%),
        var(--portal-ink);
}

.sales-intro {
    max-width: 820px;
}

.sales-intro .portal-eyebrow,
.sales-intro h2 {
    color: #fff;
}

.sales-intro > p {
    max-width: 760px;
    margin: 25px 0 0;
    color: #bdc1d5;
    font-size: 18px;
    line-height: 1.75;
}

.advantage-grid {
    margin-top: 65px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.advantage-grid article {
    min-height: 260px;
    padding: 29px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
}

.advantage-grid article > span {
    color: #7d83a0;
    font-size: 12px;
    font-weight: 900;
}

.advantage-grid h3 {
    margin: 55px 0 13px;
    font-size: 23px;
}

.advantage-grid p {
    margin: 0;
    color: #b9bdd0;
    font-size: 14px;
    line-height: 1.65;
}

.audience-section {
    padding-top: 120px;
}

.audience-heading {
    max-width: 830px;
}

.audience-heading > p {
    max-width: 650px;
    color: #6f7389;
    font-size: 17px;
    line-height: 1.65;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.audience-grid article {
    min-height: 300px;
    padding: 26px;
    border: 1px solid var(--portal-line);
    border-radius: 22px;
    background: #fff;
}

.audience-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--portal-purple);
    background: var(--portal-lilac);
    font-size: 22px;
    font-weight: 900;
}

.audience-grid article:nth-child(even) .audience-icon {
    color: #078e60;
    background: var(--portal-mint);
}

.audience-grid h3 {
    margin: 54px 0 13px;
    color: var(--portal-ink);
    font-size: 20px;
    line-height: 1.24;
}

.audience-grid p {
    margin: 0;
    color: #73778c;
    font-size: 14px;
    line-height: 1.6;
}

.portal-cta {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 110px;
    padding: 58px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(125deg, #eeecff, #e6fbf3);
}

.portal-cta h2 {
    margin: 12px 0 10px;
    color: var(--portal-ink);
    font-size: 40px;
    letter-spacing: -0.04em;
}

.portal-cta p {
    max-width: 650px;
    margin: 0;
    color: #676b80;
    line-height: 1.65;
}

.portal-cta > a {
    min-height: 58px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: 16px;
    color: #fff;
    background: var(--portal-ink);
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
    box-shadow: 0 16px 35px rgba(23, 26, 61, 0.18);
}

.portal-cta > a i {
    font-size: 19px;
    font-style: normal;
}

.portal-footer {
    padding: 75px max(30px, calc((100% - 1180px) / 2)) 28px;
    color: #fff;
    background: #11132e;
}

.portal-footer-main {
    padding-bottom: 70px;
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 45px;
}

.portal-footer-brand img {
    width: 170px;
    height: 52px;
    object-fit: contain;
}

.portal-footer-brand p {
    max-width: 310px;
    margin: 20px 0 0;
    color: #969bb5;
    font-size: 14px;
    line-height: 1.7;
}

.portal-footer-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.portal-footer-column b {
    margin-bottom: 7px;
    color: #fff;
    font-size: 13px;
}

.portal-footer-column a {
    color: #969bb5;
    font-size: 13px;
    transition: color 0.2s ease;
}

.portal-footer-column a:hover {
    color: #fff;
}

.portal-footer-bottom {
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #70758f;
    font-size: 12px;
}

@media (max-width: 900px) {
    .portal-header {
        grid-template-columns: 1fr auto;
    }

    .portal-nav {
        display: none;
    }

    .product-card {
        min-height: 570px;
    }

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

    .portal-footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .portal-footer-column:last-child {
        display: none;
    }
}

@media (max-width: 700px) {
    .portal-header {
        width: calc(100% - 20px);
        height: 68px;
        margin-top: 8px;
        padding: 0 10px 0 15px;
        border-radius: 16px;
    }

    .portal-logo,
    .portal-logo img {
        width: 118px;
    }

    .account-menu summary {
        min-height: 42px;
        padding: 0 12px;
        font-size: 12px;
    }

    .account-menu summary span,
    .account-menu summary i {
        display: none;
    }

    .account-dropdown {
        position: fixed;
        top: 85px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .portal-hero {
        min-height: 450px;
        padding: 78px 20px 50px;
    }

    .portal-hero h1 {
        font-size: clamp(44px, 15vw, 64px);
    }

    .portal-hero > p {
        font-size: 16px;
    }

    .portal-orb {
        display: none;
    }

    .product-section,
    .audience-section {
        width: min(100% - 24px, 1180px);
        padding: 48px 0 75px;
    }

    .product-grid,
    .advantage-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        min-height: 535px;
        padding: 19px;
        border-radius: 23px;
    }

    .product-logo-stage {
        height: 245px;
    }

    .live-card .product-logo-stage img {
        max-height: 210px;
    }

    .product-card h3 {
        font-size: 25px;
    }

    .sales-section {
        padding: 80px 20px;
    }

    .sales-intro > p {
        font-size: 16px;
    }

    .advantage-grid {
        margin-top: 40px;
    }

    .advantage-grid article {
        min-height: auto;
    }

    .advantage-grid h3 {
        margin-top: 28px;
    }

    .audience-grid article {
        min-height: 240px;
    }

    .audience-grid h3 {
        margin-top: 35px;
    }

    .portal-cta {
        width: calc(100% - 24px);
        margin-bottom: 75px;
        padding: 35px 24px;
        grid-template-columns: 1fr;
        border-radius: 23px;
    }

    .portal-cta h2 {
        font-size: 34px;
    }

    .portal-cta > a {
        justify-content: center;
    }

    .portal-footer {
        padding: 55px 24px 25px;
    }

    .portal-footer-main {
        padding-bottom: 45px;
        grid-template-columns: 1fr 1fr;
        gap: 38px 25px;
    }

    .portal-footer-brand {
        grid-column: 1 / -1;
    }

    .portal-footer-bottom {
        gap: 20px;
    }
}
