:root {
    --portal-page-bg: #070d18;
    --portal-surface: #101827;
    --portal-surface-2: #0c1321;
    --portal-border: rgba(148, 163, 184, .22);
    --portal-text: #edf6ff;
    --portal-muted: #9aa9bb;
    --portal-cyan: #37c9ff;
    --portal-green: #31d38b;
    --portal-gold: #f4c95d;
    --portal-blue: #6fa8ff;
    --portal-rose: #ff7996;
    --portal-teal: #4ee3cf;
}

.portal-page {
    background:
        linear-gradient(180deg, rgba(10, 21, 36, .98), rgba(7, 13, 24, 1) 34%),
        var(--portal-page-bg);
    color: var(--portal-text);
}

.portal-page .navbar-blur {
    background: rgba(7, 13, 24, .9);
}

.portal-shell {
    max-width: 1240px;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    border-bottom: 1px solid var(--portal-border);
    background: #07111f;
}

.portal-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(7, 17, 31, 0), var(--portal-page-bg));
    pointer-events: none;
}

.portal-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(540px, 1.18fr);
    align-items: stretch;
    min-height: 680px;
}

.portal-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 620px;
    padding: 72px 0 92px;
}

.portal-eyebrow,
.portal-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--portal-green);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-hero h1 {
    margin: 0 0 18px;
    font-size: 3.25rem;
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: 0;
}

.portal-hero-logo-title {
    display: inline-block;
    color: transparent;
    background: linear-gradient(90deg, #3a86ff 0%, #00d4ff 48%, #e6f8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 20px 42px rgba(0, 212, 255, .2);
}

.portal-hero p {
    margin: 0;
    max-width: 560px;
    color: #c8d5e4;
    font-size: 1.08rem;
    line-height: 1.75;
    word-break: keep-all;
}

.portal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.portal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 800;
}

.portal-actions .btn-primary {
    --bs-btn-bg: #17b7da;
    --bs-btn-border-color: #17b7da;
    --bs-btn-hover-bg: #119abd;
    --bs-btn-hover-border-color: #119abd;
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 38px;
    max-width: 560px;
}

.portal-stats div {
    min-height: 104px;
    padding: 18px 16px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: rgba(16, 24, 39, .64);
}

.portal-stats strong {
    display: block;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
}

.portal-stats span {
    display: block;
    margin-top: 10px;
    color: var(--portal-muted);
    font-size: .9rem;
}

.portal-visual {
    position: absolute;
    inset: 0 0 0 31%;
    margin: 0;
}

.portal-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, #07111f 0%, rgba(7, 17, 31, .86) 14%, rgba(7, 17, 31, .28) 43%, rgba(7, 17, 31, 0) 72%),
        linear-gradient(180deg, rgba(7, 17, 31, .08), rgba(7, 17, 31, .58));
    pointer-events: none;
}

.portal-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.portal-toolbar-band {
    position: sticky;
    top: 59px;
    z-index: 10;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    background: rgba(7, 13, 24, .92);
    backdrop-filter: saturate(160%) blur(10px);
}

.portal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.portal-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 360px;
    min-height: 42px;
    max-width: 520px;
    padding: 0 13px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: #0b1423;
    color: var(--portal-muted);
}

.portal-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--portal-text);
}

.portal-search input::placeholder {
    color: #76869a;
}

.portal-filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.portal-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: #0b1423;
    color: #c7d4e4;
    font-weight: 750;
}

.portal-filter.active,
.portal-filter:hover {
    border-color: rgba(55, 201, 255, .65);
    background: rgba(55, 201, 255, .12);
    color: #f5fbff;
}

.portal-section {
    padding: 64px 0;
}

.portal-section[hidden],
.country-lane[hidden] {
    display: none;
}

.portal-section-muted {
    border-top: 1px solid rgba(148, 163, 184, .14);
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    background: #09111f;
}

.portal-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 24px;
}

.portal-section-head h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 850;
    letter-spacing: 0;
}

.portal-result-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--portal-border);
    background: rgba(16, 24, 39, .88);
    color: #cbd7e6;
    font-size: .78rem;
    font-weight: 800;
}

.status-live {
    border-color: rgba(49, 211, 139, .36);
    background: rgba(49, 211, 139, .1);
    color: #8df1bf;
}

.status-planned {
    border-color: rgba(244, 201, 93, .38);
    background: rgba(244, 201, 93, .1);
    color: #f7d98a;
}

.country-lane + .country-lane {
    margin-top: 46px;
}

.country-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.country-heading p {
    margin: 0 0 4px;
    color: var(--portal-cyan);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.country-heading h3 {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 820;
}

.portal-card-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.portal-card-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 20px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(16, 24, 39, .96), rgba(12, 19, 33, .96));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .16);
}

.portal-card[hidden] {
    display: none;
}

.card-meta,
.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(148, 163, 184, .1);
    color: #ffffff;
    font-size: 1.05rem;
}

.icon-chip.cyan { color: var(--portal-cyan); background: rgba(55, 201, 255, .11); }
.icon-chip.green { color: var(--portal-green); background: rgba(49, 211, 139, .11); }
.icon-chip.gold { color: var(--portal-gold); background: rgba(244, 201, 93, .12); }
.icon-chip.blue { color: var(--portal-blue); background: rgba(111, 168, 255, .12); }
.icon-chip.rose { color: var(--portal-rose); background: rgba(255, 121, 150, .11); }
.icon-chip.teal { color: var(--portal-teal); background: rgba(78, 227, 207, .1); }

.portal-card h4,
.portal-card h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 830;
    letter-spacing: 0;
}

.portal-card h3 {
    font-size: 1.24rem;
}

.portal-card p {
    margin: 0 0 18px;
    color: #b6c5d7;
    line-height: 1.65;
    word-break: keep-all;
}

.portal-card dl {
    display: grid;
    gap: 8px;
    margin: auto 0 18px;
    color: #dbe7f5;
}

.portal-card dl div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
}

.portal-card dt {
    color: #7f90a5;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-card dd {
    margin: 0;
    color: #c5d4e5;
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 999px;
    background: rgba(148, 163, 184, .08);
    color: #aebed1;
    font-size: .76rem;
    font-weight: 700;
}

.service-card {
    min-height: 268px;
}

.service-top span:last-child {
    color: var(--portal-muted);
    font-weight: 850;
    text-transform: uppercase;
    font-size: .76rem;
}

.highlight-service {
    border-color: rgba(244, 201, 93, .42);
    background:
        linear-gradient(180deg, rgba(41, 34, 17, .52), rgba(12, 19, 33, .96)),
        var(--portal-surface);
}

.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(55, 201, 255, .35);
    border-radius: 8px;
    color: #dff8ff;
    text-decoration: none;
    font-weight: 820;
}

.card-link:hover {
    border-color: rgba(55, 201, 255, .72);
    background: rgba(55, 201, 255, .1);
    color: #ffffff;
}

.api-list {
    display: grid;
    gap: 10px;
}

.api-list[hidden] {
    display: none;
}

.api-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 62px;
    padding: 12px 16px;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    background: rgba(16, 24, 39, .72);
    color: #dce9f8;
    text-decoration: none;
}

.api-list a:hover {
    border-color: rgba(55, 201, 255, .58);
    background: rgba(55, 201, 255, .08);
}

.api-list span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 820;
}

.api-list code {
    color: #91e7ff;
    font-size: .88rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.portal-empty {
    padding: 26px;
    border: 1px dashed rgba(148, 163, 184, .32);
    border-radius: 8px;
    color: var(--portal-muted);
    text-align: center;
}

@media (max-width: 1199.98px) {
    .portal-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .portal-visual {
        inset: 0 0 0 22%;
    }

    .portal-card-grid,
    .service-grid,
    .portal-card-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .portal-hero,
    .portal-hero-grid {
        min-height: auto;
    }

    .portal-hero-copy {
        max-width: 680px;
        padding: 54px 0 340px;
    }

    .portal-hero h1 {
        font-size: 2.45rem;
    }

    .portal-visual {
        inset: auto 0 0 -14%;
        height: 390px;
    }

    .portal-visual::before {
        background:
            linear-gradient(180deg, #07111f 0%, rgba(7, 17, 31, .42) 24%, rgba(7, 17, 31, .02) 58%),
            linear-gradient(90deg, rgba(7, 17, 31, .18), rgba(7, 17, 31, .16));
    }

    .portal-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-search {
        max-width: none;
        flex-basis: auto;
    }

    .portal-filter-group {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .portal-hero-copy {
        padding: 42px 0 210px;
    }

    .portal-hero h1 {
        font-size: 2.05rem;
    }

    .portal-card-grid,
    .service-grid,
    .portal-card-grid-compact,
    .api-list a {
        grid-template-columns: 1fr;
    }

    .portal-stats div {
        min-height: 92px;
        padding: 16px 12px;
    }

    .portal-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 30px;
    }

    .portal-stats strong {
        font-size: 1.65rem;
    }

    .portal-stats span {
        font-size: .78rem;
        line-height: 1.35;
    }

    .portal-visual {
        inset: auto -12% 0 -22%;
        height: 270px;
        opacity: .82;
    }

    .portal-visual::before {
        background:
            linear-gradient(180deg, #07111f 0%, rgba(7, 17, 31, .22) 35%, rgba(7, 17, 31, .08) 72%),
            linear-gradient(90deg, rgba(7, 17, 31, .3), rgba(7, 17, 31, .08));
    }

    .portal-section {
        padding: 46px 0;
    }

    .portal-section-head,
    .country-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-card {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .portal-hero-copy {
        padding-top: 40px;
        padding-bottom: 190px;
    }

    .portal-hero h1 {
        font-size: 1.82rem;
    }

    .portal-hero p,
    .portal-card p {
        word-break: normal;
    }

    .portal-visual {
        height: 250px;
    }

    .portal-filter {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
}
