:root {
    --navy: #0c2a3d;
    --navy-deep: #071d2b;
    --teal: #0a95a0;
    --teal-dark: #087881;
    --teal-soft: #e1f4f5;
    --paper: #f3f6f9;
    --surface: #ffffff;
    --text: #13202e;
    --muted: #617180;
    --border: #d9e2ea;
    --shadow: 0 16px 42px rgba(12, 42, 61, .09);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 88% 8%, rgba(10, 149, 160, .13), transparent 24rem),
        linear-gradient(180deg, #fff 0, var(--paper) 27rem);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    width: min(42vw, 610px);
    height: 360px;
    border-radius: 0 0 0 100%;
    background-image: linear-gradient(rgba(10, 149, 160, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 149, 160, .055) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    mask-image: linear-gradient(to bottom left, #000, transparent 75%);
}

.page-shell {
    width: min(1180px, calc(100% - 56px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(217, 226, 234, .8);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 150px;
    height: auto;
}

.portal-label {
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .65);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

main {
    flex: 1;
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 66px 0 45px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 15px;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 26px;
    height: 2px;
    background: var(--teal);
}

h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 350;
    letter-spacing: -.045em;
    line-height: 1.05;
}

h1 strong {
    color: var(--teal-dark);
    font-weight: 750;
}

.intro {
    max-width: 650px;
    margin: 21px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.status-badge {
    min-width: 208px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    color: var(--navy);
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 8px 25px rgba(12, 42, 61, .05);
}

.status-badge small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22a765;
    box-shadow: 0 0 0 4px rgba(34, 167, 101, .14);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(12, 42, 61, .025);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    border-color: rgba(10, 149, 160, .6);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card:focus-visible {
    outline: 3px solid rgba(10, 149, 160, .35);
    outline-offset: 3px;
}

.service-card.primary {
    min-height: 288px;
    grid-column: span 3;
    flex-direction: column;
    padding: 31px;
}

.service-card.primary::after {
    position: absolute;
    right: -42px;
    bottom: -74px;
    width: 215px;
    height: 215px;
    border: 26px solid rgba(10, 149, 160, .055);
    border-radius: 50%;
    content: "";
}

.service-card.compact {
    min-height: 210px;
    grid-column: span 2;
    align-items: flex-start;
    flex-direction: column;
    padding: 26px;
}

.icon-wrap {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--teal-dark);
    background: var(--teal-soft);
}

.icon-wrap svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.card-copy {
    display: block;
}

.primary .card-copy {
    margin-top: 27px;
}

.compact .card-copy {
    margin-top: 21px;
    padding-right: 30px;
}

.card-kicker,
.card-title,
.card-description {
    display: block;
}

.card-kicker {
    margin-bottom: 5px;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.card-title {
    color: var(--navy);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.card-description {
    max-width: 420px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.card-action {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: var(--navy);
    font-size: 13px;
    font-weight: 750;
}

.card-action svg,
.round-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.round-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--teal-dark);
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.service-card:hover .round-arrow {
    color: #fff;
    border-color: var(--teal);
    background: var(--teal);
}

footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 39px 0 32px;
    color: var(--muted);
    font-size: 12px;
}

footer > span:first-child {
    color: var(--navy);
    font-weight: 750;
}

.footer-rule {
    width: 28px;
    height: 1px;
    background: var(--border);
}

@media (max-width: 900px) {
    .hero {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 48px;
    }

    .status-badge {
        margin: -15px 0 0;
    }

    .service-card.compact {
        grid-column: span 3;
    }

    .service-card.compact:last-child {
        grid-column: 2 / span 4;
    }
}

@media (max-width: 640px) {
    body {
        background: linear-gradient(180deg, #fff 0, var(--paper) 24rem);
    }

    body::before {
        display: none;
    }

    .page-shell {
        width: min(100% - 32px, 520px);
    }

    .site-header {
        height: 80px;
    }

    .brand img {
        width: 124px;
    }

    .portal-label {
        padding: 6px 9px;
        font-size: 9px;
    }

    .hero {
        gap: 27px;
        padding: 42px 0 34px;
    }

    h1 {
        font-size: clamp(35px, 11vw, 48px);
    }

    .intro {
        font-size: 16px;
        line-height: 1.55;
    }

    .status-badge {
        width: 100%;
    }

    .service-grid {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .service-card.primary,
    .service-card.compact {
        min-height: 0;
        padding: 23px;
    }

    .service-card.primary {
        min-height: 260px;
    }

    .service-card.compact {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) 32px;
        align-items: center;
        column-gap: 15px;
    }

    .compact .icon-wrap {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .compact .card-copy {
        margin: 0;
        padding: 0;
    }

    .compact .card-description {
        display: none;
    }

    .compact .card-title {
        font-size: 18px;
    }

    .compact .card-kicker {
        font-size: 9px;
    }

    .round-arrow {
        position: static;
        width: 32px;
        height: 32px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-top: 28px;
    }

    .footer-rule {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .round-arrow {
        transition: none;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #091722;
        --surface: #102635;
        --text: #e6eef3;
        --muted: #9db0bd;
        --border: #294252;
        --navy: #eaf6f7;
        --teal: #23b7c2;
        --teal-dark: #4fd0d9;
        --teal-soft: #123a40;
        --shadow: 0 18px 45px rgba(0, 0, 0, .25);
    }

    html,
    body {
        color-scheme: dark;
    }

    body {
        background: radial-gradient(circle at 88% 8%, rgba(35, 183, 194, .12), transparent 24rem),
            linear-gradient(180deg, #0b1e2b 0, var(--paper) 27rem);
    }

    .portal-label,
    .status-badge {
        background: rgba(16, 38, 53, .72);
    }

    .status-dot {
        border-color: #102635;
    }
}
