:root {
    --ink: #182f3a;
    --muted-ink: #5d7079;
    --brand: #0d5b70;
    --brand-dark: #092d3d;
    --accent: #2b7f91;
    --line: #d7e2e6;
    --soft: #f3f7f8;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(9, 45, 61, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    line-height: 1.6;
    animation: page-fade-in .6s ease both;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
iframe {
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    color: var(--white);
    background: var(--brand-dark);
    font-size: 13px;
}

.topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--white);
    box-shadow: 0 1px 0 rgba(9, 45, 61, .08);
    transition: box-shadow .25s ease, transform .25s ease;
}

.site-header.scrolled {
    box-shadow: 0 12px 28px rgba(9, 45, 61, .12);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    width: 220px;
    max-width: 46vw;
    transition: color .2s ease;
}

.logo img,
.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .25s ease, filter .25s ease;
}

.logo:hover img {
    transform: translateY(-2px);
}

.footer-logo:hover img {
    transform: translateY(-2px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    position: relative;
    padding: 28px 12px;
    color: #25444f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    transition: color .2s ease, box-shadow .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand);
    box-shadow: inset 0 -3px 0 var(--brand);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--white);
    transition: border-color .2s ease, background-color .2s ease;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--brand-dark);
    transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero,
.page-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    color: var(--white);
    background-position: center;
    background-size: cover;
    animation: hero-pan 18s ease-in-out infinite alternate;
}

.page-hero.compact {
    min-height: 380px;
}

.hero-content {
    max-width: 760px;
    animation: rise-in .75s ease .08s both;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
    color: #a9d8e2;
}

.page-hero .container {
    animation: rise-in .7s ease .08s both;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 400;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(29px, 4vw, 45px);
    line-height: 1.12;
    font-weight: 400;
}

h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: 20px;
    color: rgba(255, 255, 255, .88);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn.primary {
    color: var(--white);
    background: var(--brand);
}

.btn.primary:hover {
    background: var(--brand-dark);
    box-shadow: 0 12px 24px rgba(9, 45, 61, .18);
    transform: translateY(-2px);
}

.btn.ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, .72);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn.wide {
    width: 100%;
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--brand);
    font-weight: 700;
    transition: transform .2s ease, color .2s ease;
}

.text-link:hover {
    color: var(--brand-dark);
    transform: translateX(4px);
}

.section {
    padding: 88px 0;
}

.section.muted {
    background: var(--soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading p {
    color: var(--muted-ink);
    font-size: 18px;
}

.feature-grid,
.solution-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card,
.solution-card,
.service-item {
    min-height: 210px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover,
.solution-card:hover,
.service-item:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 127, 145, .42);
    box-shadow: var(--shadow);
}

.feature-card {
    border-top: 4px solid var(--accent);
}

.feature-card p,
.solution-card p,
.service-item p,
.lead-copy p,
.network-layout p,
.contact-panel p {
    color: var(--muted-ink);
}

.solution-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: var(--brand);
    border: 1px solid var(--line);
    font-size: 18px;
    font-weight: 700;
    transition: transform .25s ease, color .25s ease, border-color .25s ease, background-color .25s ease;
}

.solution-card:hover .solution-icon {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
    transform: rotate(-3deg) scale(1.05);
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}

.split-image {
    min-height: 420px;
    background-position: center;
    background-size: cover;
    transition: filter .35s ease;
}

.split-section:hover .split-image {
    filter: saturate(1.08) contrast(1.03);
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px clamp(32px, 7vw, 96px);
    background: var(--white);
}

.two-column,
.network-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 62px;
    align-items: start;
}

.lead-copy {
    font-size: 18px;
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-item {
    min-height: 230px;
    border-top: 4px solid var(--brand);
}

.map-panel {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(13, 91, 112, .08) 1px, transparent 1px),
        linear-gradient(rgba(13, 91, 112, .08) 1px, transparent 1px),
        #edf5f7;
    background-size: 42px 42px;
    box-shadow: var(--shadow);
    animation: grid-drift 16s linear infinite;
}

.map-node {
    position: absolute;
    z-index: 2;
    padding: 10px 14px;
    color: var(--white);
    background: var(--brand);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(9, 45, 61, .18);
    animation: node-pulse 3s ease-in-out infinite;
}

.map-node.hk {
    left: 46%;
    bottom: 24%;
}

.map-node.cn {
    left: 18%;
    top: 22%;
}

.map-node.tw {
    right: 13%;
    top: 44%;
}

.map-line {
    position: absolute;
    height: 2px;
    background: rgba(13, 91, 112, .45);
    transform-origin: left center;
    overflow: hidden;
}

.map-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
    animation: signal-flow 2.8s linear infinite;
}

.line-one {
    width: 260px;
    left: 29%;
    top: 35%;
    transform: rotate(29deg);
}

.line-two {
    width: 210px;
    right: 24%;
    top: 54%;
    transform: rotate(151deg);
}

.check-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 9px;
    height: 9px;
    background: var(--accent);
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    min-height: 720px;
}

.contact-photo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 560px;
    padding-top: 70px;
    color: var(--white);
    background-position: center;
    background-size: cover;
    animation: hero-pan 18s ease-in-out infinite alternate;
}

.contact-panel {
    padding: 62px clamp(28px, 5vw, 70px);
}

.contact-panel h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.form-note {
    margin: 24px 0;
    padding: 12px 14px;
    color: #174654;
    background: #e7f5f7;
    border: 1px solid #c6e2e8;
}

.form-note.success {
    color: #15513d;
    background: #e7f6ef;
    border-color: #bfe4d3;
}

.form-note.error {
    color: #7b2c2c;
    background: #fbecec;
    border-color: #efc3c3;
}

.contact-form {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label span {
    display: block;
    margin-bottom: 6px;
    color: #48626b;
    font-size: 13px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #8eb1bc;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(43, 127, 145, .25);
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(9, 45, 61, .08);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    filter: saturate(.72);
    transition: filter .3s ease;
}

.map-embed iframe:hover {
    filter: saturate(.95);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) {
    transition-delay: .08s;
}

.reveal:nth-child(3) {
    transition-delay: .16s;
}

.reveal:nth-child(4) {
    transition-delay: .24s;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-pan {
    from {
        background-position: center center;
    }
    to {
        background-position: center 42%;
    }
}

@keyframes grid-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 42px 42px;
    }
}

@keyframes node-pulse {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes signal-flow {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.site-footer {
    color: rgba(255, 255, 255, .82);
    background: var(--brand-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
    padding: 50px 0;
}

.footer-logo,
.site-footer h2 {
    color: var(--white);
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}

.site-footer p {
    margin: 6px 0;
}

.copyright {
    padding: 18px 20px;
    text-align: center;
    color: rgba(255, 255, 255, .7);
    background: rgba(0, 0, 0, .18);
    font-size: 14px;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 116px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .25s ease, transform .25s ease;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 15px 18px;
        border-bottom: 1px solid var(--line);
    }

    .feature-grid,
    .solution-grid,
    .service-grid,
    .split-section,
    .two-column,
    .network-layout,
    .contact-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 560px;
    }

    .section {
        padding: 64px 0;
    }

    .contact-panel {
        padding: 44px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 0;
    }

    .main-nav {
        top: 136px;
        left: 14px;
        right: 14px;
    }

    .hero,
    .page-hero.compact {
        min-height: 500px;
    }

    .hero p {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-photo {
        min-height: 380px;
        padding-top: 48px;
    }
}
