:root {
    --bg: #071224;
    --bg-soft: #0e1c33;
    --surface: #112644;
    --text: #eef4ff;
    --muted: #9eb4d7;
    --line: #2b456f;
    --accent: #2cd4b9;
    --accent-2: #2f7af8;
    --font-base: "IBM Plex Sans", sans-serif;
    --fs-body: clamp(1.02rem, 0.14vw + 0.98rem, 1.07rem);
    --fs-small: 0.97rem;
    --fs-nav: 0.95rem;
    --fs-body-md: 1.02rem;
    --fs-body-lg: 1.12rem;
    --fs-label: 0.93rem;
    --fs-caption: 0.86rem;
    --fs-chip: 0.84rem;
    --lh-body: 1.65;
    --lh-heading: 1.2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, #12366a 0%, transparent 35%),
        radial-gradient(circle at 90% 20%, #17405a 0%, transparent 30%),
        var(--bg);
}

.container {
    width: min(1240px, 93vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 18, 36, 0.85);
    backdrop-filter: blur(8px);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.76rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.brand-mark {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
}

.brand-text {
    color: #e7f0ff;
    white-space: nowrap;
}

.brand--conservative .brand-mark {
    border: 1px solid rgba(163, 186, 223, 0.55);
    background: linear-gradient(180deg, rgba(27, 45, 75, 0.82), rgba(16, 32, 58, 0.82));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.brand--conservative .brand-mark::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    left: 4px;
    top: 4px;
    background: #c7d8f2;
}

.brand--conservative .brand-mark::after {
    width: 8px;
    height: 2px;
    border-radius: 2px;
    right: 4px;
    bottom: 5px;
    background: #c7d8f2;
}

.brand--tech .brand-mark {
    border: 1px solid rgba(44, 212, 185, 0.55);
    background: linear-gradient(145deg, rgba(47, 122, 248, 0.34), rgba(44, 212, 185, 0.14));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand--tech .brand-mark::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 4px;
    top: 4px;
    background: #bcd0ec;
}

.brand--tech .brand-mark::after {
    width: 7px;
    height: 2px;
    right: 4px;
    bottom: 5px;
    border-radius: 2px;
    background: #bcd0ec;
}

.brand--premium .brand-mark {
    border: 1px solid rgba(233, 200, 133, 0.7);
    background: linear-gradient(145deg, rgba(41, 33, 20, 0.75), rgba(24, 21, 15, 0.8));
    box-shadow: inset 0 0 0 1px rgba(255, 227, 174, 0.12);
}

.brand--premium .brand-mark::before {
    width: 11px;
    height: 11px;
    border: 2px solid #efc97e;
    border-radius: 50%;
    left: 3px;
    top: 3px;
    background: transparent;
}

.brand--premium .brand-mark::after {
    width: 8px;
    height: 2px;
    right: 2px;
    bottom: 3px;
    border-radius: 2px;
    transform: rotate(42deg);
    background: #efc97e;
}

.brand--premium2 {
    letter-spacing: 0.02em;
}

.brand--premium2 .brand-text {
    color: #f1f5fb;
    font-weight: 600;
}

.brand--premium2 .brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(208, 220, 238, 0.62);
    background:
        linear-gradient(145deg, rgba(27, 44, 72, 0.88), rgba(15, 30, 56, 0.9));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 1px 8px rgba(8, 16, 28, 0.3);
}

.brand--premium2 .brand-mark::before {
    width: 10px;
    height: 10px;
    border: 2px solid #d9e5f6;
    border-radius: 50%;
    left: 4px;
    top: 4px;
    background: transparent;
}

.brand--premium2 .brand-mark::after {
    width: 7px;
    height: 2px;
    right: 3px;
    bottom: 4px;
    border-radius: 2px;
    transform: rotate(40deg);
    background: #d9e5f6;
}

.main-nav {
    display: flex;
    gap: 1.1rem;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.06rem;
    letter-spacing: 0.01em;
}

.main-nav a:hover {
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
    background: rgba(11, 28, 50, 0.62);
    font-size: 0.88rem;
}

.site-header .btn {
    font-size: 0.98rem;
    padding: 0.58rem 1.02rem;
}

.lang-switch a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}

.lang-switch a.active,
.lang-switch a:hover {
    color: var(--text);
}

.lang-switch span {
    color: var(--line);
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #082020;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.5rem 0.92rem;
    border-radius: 999px;
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.hero {
    position: relative;
    min-height: clamp(500px, 76vh, 820px);
    padding: clamp(1.7rem, 4vw, 3.2rem) 0 clamp(2.5rem, 4.7vw, 4rem);
    background:
        linear-gradient(90deg, rgba(7, 18, 36, 0.92) 0%, rgba(7, 18, 36, 0.78) 48%, rgba(7, 18, 36, 0.88) 100%),
        url("/static/images/hk7.jpg") center/cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}

.hero-copy {
    max-width: 1140px;
    width: min(1140px, 90vw);
    padding: 0.72rem 0 1.5rem 1.1rem;
}

h1, h2, h3 {
    margin: 0 0 0.75rem;
    line-height: var(--lh-heading);
    letter-spacing: -0.01em;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.35rem, 4.25vw, 3.75rem);
    max-width: 15.5ch;
}

h2 {
    font-size: clamp(1.56rem, 2.45vw, 2.28rem);
}

h3 {
    font-size: clamp(1.1rem, 1.32vw, 1.3rem);
    font-weight: 600;
}

.eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 700;
}

.lead {
    color: var(--muted);
    max-width: 66ch;
    font-size: var(--fs-body-lg);
    line-height: 1.68;
    font-weight: 400;
    margin-bottom: 1.2rem;
}

.cta-row {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.metrics-card,
.surface,
.card,
.feature {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 38, 68, 0.95), rgba(11, 28, 50, 0.95));
}

.metrics-card,
.surface {
    padding: 1.2rem;
}

.section-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-bottom: 0.6rem;
}

.photo-caption {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: var(--fs-label);
}

.metrics-card ul {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
}

.metrics-card li {
    color: var(--muted);
    margin: 0.4rem 0;
    font-size: var(--fs-small);
}

.metrics-card span {
    color: var(--text);
    font-weight: 800;
}

.section {
    padding: clamp(2.6rem, 5vw, 3.8rem) 0;
}

.section.alt {
    background: rgba(13, 28, 49, 0.7);
    border-block: 1px solid var(--line);
}

.split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.2rem;
}

.split > div:first-child p {
    max-width: 68ch;
}

.who-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.2rem;
    align-items: start;
}

.who-copy p {
    max-width: 66ch;
}

.who-visual {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 38, 68, 0.95), rgba(11, 28, 50, 0.95));
    padding: 0.95rem;
}

.who-image-frame {
    margin: 0;
    border: 1px solid rgba(111, 144, 191, 0.45);
    border-radius: 12px;
    overflow: hidden;
    background: #0b1930;
}

.who-image {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
}

.who-image-frame figcaption {
    padding: 0.55rem 0.7rem;
    font-size: var(--fs-caption);
    color: var(--muted);
}

.who-highlights {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.who-highlights span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem 0.62rem;
    font-size: var(--fs-chip);
    color: var(--text);
    background: rgba(13, 30, 52, 0.85);
}

.clean-list {
    margin: 0.5rem 0 0;
    padding-left: 1rem;
    color: var(--muted);
    font-size: var(--fs-small);
    line-height: 1.68;
}

.card-grid {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.card,
.feature {
    padding: 1.05rem;
    height: 100%;
}

.what-card {
    padding: 0.8rem 0.8rem 0.95rem;
}

.what-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(125, 155, 202, 0.35);
    margin-bottom: 0.72rem;
    display: block;
}

.what-card h3 {
    margin-top: 0.15rem;
}

.card p,
.feature,
.section p {
    color: var(--muted);
    font-size: var(--fs-body-md);
    line-height: 1.68;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.platform-layout {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    align-items: start;
}

.platform-copy p {
    margin: 0 0 0.8rem;
    max-width: 56ch;
}

.platform-pillars {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.72rem;
}

.pillar-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(17, 38, 68, 0.95), rgba(11, 28, 50, 0.95));
    padding: 0.68rem 0.8rem 0.72rem;
}

.pillar-card h3 {
    margin: 0 0 0.28rem;
    font-size: var(--fs-small);
}

.pillar-card p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-label);
    line-height: 1.6;
}

.platform-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.platform-flow span {
    border: 1px solid rgba(103, 136, 183, 0.5);
    border-radius: 999px;
    padding: 0.32rem 0.55rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #dce8fb;
    background: rgba(13, 30, 52, 0.78);
}

.platform-media {
    display: grid;
    gap: 0.75rem;
}

.platform-main,
.platform-sub {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #0a1930;
}

.platform-main img,
.platform-sub img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.platform-main img {
    height: 190px;
}

.platform-sub img {
    height: 132px;
}

.platform-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.platform-main figcaption,
.platform-sub figcaption {
    padding: 0.52rem 0.65rem;
    color: var(--muted);
    font-size: var(--fs-chip);
}

.locations {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.impact-layout {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 0.9rem;
    align-items: start;
}

.impact-intro {
    margin: 0.2rem 0 0.1rem;
    max-width: 62ch;
}

.impact-hero {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #09182d;
}

.impact-hero img {
    width: 100%;
    height: 238px;
    object-fit: cover;
    object-position: center 56%;
    display: block;
}

.impact-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(17, 38, 68, 0.95), rgba(11, 28, 50, 0.95));
    padding: 0.82rem;
    display: flex;
    flex-direction: column;
}

.impact-panel h3 {
    margin: 0 0 0.5rem;
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.impact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.impact-item {
    border: 1px solid rgba(103, 136, 183, 0.38);
    border-radius: 10px;
    padding: 0.52rem 0.62rem;
    background: rgba(14, 32, 56, 0.78);
    color: var(--text);
    font-size: var(--fs-caption);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.media-grid {
    margin-top: 1.1rem;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 2fr 1fr 1fr;
}

.media-card {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #09182d;
}

.media-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
}

.media-card.wide img {
    height: 180px;
}

.media-card figcaption {
    padding: 0.6rem 0.75rem;
    color: var(--muted);
    font-size: var(--fs-caption);
}

.locations span {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--text);
    font-size: var(--fs-label);
    font-weight: 500;
}

.careers .btn {
    margin-top: 0.8rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1rem 0;
}

.footer-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    color: var(--muted);
    font-size: var(--fs-caption);
    letter-spacing: 0.01em;
    text-align: center;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-shell {
    width: min(650px, 92vw);
}

.login-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(17, 38, 68, 0.95), rgba(11, 28, 50, 0.95));
}

.login-brand {
    margin-bottom: 0.7rem;
}

.login-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.45rem;
}

.login-form label {
    font-size: var(--fs-label);
    font-weight: 500;
    color: var(--muted);
}

.login-form input {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #0b1930;
    color: var(--text);
    padding: 0.7rem 0.8rem;
    font-size: var(--fs-small);
}

.login-form button {
    margin-top: 0.6rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #082020;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-weight: 600;
    font-size: var(--fs-label);
    cursor: pointer;
}

.flash-stack {
    margin-top: 0.8rem;
}

.flash {
    margin: 0.3rem 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    font-size: var(--fs-label);
}

.flash.error {
    border-color: #ad3952;
    color: #f5bac6;
}

.flash.success {
    border-color: #1e825f;
    color: #aeeed9;
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .nav-row {
        gap: 0.6rem;
        padding: 0.38rem 0;
    }

    .brand {
        font-size: 0.86rem;
        gap: 0.36rem;
    }

    .brand--premium2 .brand-mark {
        width: 21px;
        height: 21px;
    }

    .header-actions > .btn {
        padding: 0.38rem 0.72rem;
        font-size: 0.78rem;
    }

    .hero-grid,
    .split,
    .who-layout,
    .platform-layout,
    .impact-layout,
    .card-grid,
    .feature-grid,
    .footer-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-row {
        gap: 0.2rem;
    }

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

    .cta-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-copy {
        width: 100%;
        padding: 0.15rem 0 0.9rem 0.35rem;
    }

    .hero {
        min-height: auto;
    }

    .lang-switch {
        font-size: 0.74rem;
        padding: 0.18rem 0.42rem;
    }

    .who-image {
        height: 205px;
    }

    .what-image {
        height: 156px;
    }

    .platform-side {
        grid-template-columns: 1fr;
    }

    .platform-main img,
    .platform-sub img {
        height: 155px;
    }

    .impact-hero img {
        height: 168px;
    }

    .platform-flow {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {
    .container {
        width: min(1100px, 94vw);
    }

    body {
        font-size: 0.95rem;
        overflow-x: hidden;
    }

    h1 {
        font-size: clamp(1.58rem, 8vw, 2.05rem);
        max-width: 100%;
    }

    h2 {
        font-size: clamp(1.25rem, 6.2vw, 1.52rem);
    }

    .lead {
        font-size: 0.94rem;
        line-height: 1.58;
    }

    .section {
        padding: 2.05rem 0;
    }

    .nav-row {
        gap: 0.42rem;
    }

    .brand {
        font-size: 0.8rem;
        letter-spacing: 0.012em;
    }

    .brand-text {
        max-width: 124px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions > .btn {
        font-size: 0.74rem;
        padding: 0.34rem 0.56rem;
    }

    .hero {
        padding: 1.15rem 0 2rem;
    }

    .who-visual,
    .impact-panel,
    .platform-main,
    .platform-sub,
    .card,
    .feature,
    .surface {
        border-radius: 12px;
    }

    .impact-item {
        font-size: 0.8rem;
        padding: 0.48rem 0.56rem;
    }

    .footer-row {
        font-size: 0.76rem;
    }

    .login-panel {
        padding: 1.15rem;
    }
}
