:root {
    color-scheme: light dark;
    --ink: #07111f;
    --muted: #526174;
    --line: rgba(7, 17, 31, 0.12);
    --paper: #f7f9fc;
    --white: #ffffff;
    --black: #05070d;
    --blue: #0a66ff;
    --blue-deep: #003a9b;
    --blue-soft: #e8f1ff;
    --shadow: 0 24px 70px rgba(7, 17, 31, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    color: var(--white);
    transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(5, 7, 13, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1120px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 750;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 12px;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.nav-links a {
    position: relative;
    padding: 27px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 21px;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: grid;
    align-items: center;
    color: var(--white);
    background: var(--black);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(5, 7, 13, 0.94) 0%, rgba(5, 7, 13, 0.74) 38%, rgba(5, 7, 13, 0.2) 72%),
        radial-gradient(circle at 18% 70%, rgba(10, 102, 255, 0.26), transparent 30%);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transform: scale(1.02);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 112px 0 84px;
    animation: riseIn 760ms ease both;
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(64px, 10vw, 136px);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 620px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 750;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--white);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 26px;
    width: 1px;
    height: 58px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.scroll-cue::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--blue);
    animation: scrollCue 1.9s ease-in-out infinite;
}

.section {
    padding: clamp(72px, 9vw, 132px) max(20px, calc((100vw - 1120px) / 2));
}

.section-light {
    background: var(--paper);
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.7fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 58px;
}

.section h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.03;
    letter-spacing: 0;
}

.section-head p,
.about-title p,
.news-layout p,
.contact-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-item {
    grid-column: span 2;
    min-height: 270px;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.service-item:hover {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-4px);
}

.service-item-wide {
    grid-column: span 6;
    min-height: 190px;
    background: var(--blue-soft);
}

.service-index {
    color: var(--blue);
    font-weight: 800;
}

.service-item h3 {
    margin: auto 0 16px;
    font-size: 24px;
    line-height: 1.25;
}

.service-item p {
    margin: 0;
    color: var(--muted);
}

.service-item:hover p {
    color: rgba(255, 255, 255, 0.72);
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
    gap: 56px;
    align-items: center;
}

.news-layout p {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 28px;
    border-left: 2px solid var(--blue);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: clamp(36px, 8vw, 110px);
}

.about-title {
    position: sticky;
    top: 112px;
    align-self: start;
}

.about-title p {
    margin-top: 24px;
}

.about-content {
    border-top: 1px solid var(--line);
}

.about-block {
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.about-block h3 {
    margin: 0 0 14px;
    font-size: 24px;
}

.about-block p,
.about-block li {
    color: var(--muted);
    font-size: 17px;
}

.about-block p {
    margin: 0;
}

.about-block ul {
    margin: 0;
    padding-left: 20px;
}

.about-block li + li {
    margin-top: 10px;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.9fr);
    gap: 56px;
    align-items: end;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.contact-methods {
    display: grid;
    gap: 12px;
}

.contact-methods a,
.contact-methods div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    min-height: 76px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.contact-methods span {
    color: var(--muted);
}

.contact-methods strong {
    font-size: clamp(18px, 3vw, 28px);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.site-footer {
    padding: 34px 20px;
    background: var(--black);
    color: rgba(255, 255, 255, 0.72);
}

.site-footer div {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.86);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 620ms ease, transform 620ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes riseIn {
    from {
        opacity: 0.82;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollCue {
    0% {
        transform: translateY(-100%);
    }
    55%,
    100% {
        transform: translateY(100%);
    }
}

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

@media (max-width: 820px) {
    .nav-shell {
        width: min(100% - 28px, 1120px);
        min-height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 66px;
        left: 14px;
        right: 14px;
        display: grid;
        gap: 0;
        padding: 10px 18px;
        background: rgba(5, 7, 13, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

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

    .nav-links a {
        display: block;
        padding: 15px 0;
    }

    .nav-links a::after {
        bottom: 10px;
    }

    .hero::after {
        background:
            linear-gradient(180deg, rgba(5, 7, 13, 0.92), rgba(5, 7, 13, 0.58)),
            radial-gradient(circle at 30% 72%, rgba(10, 102, 255, 0.28), transparent 36%);
    }

    .hero-copy {
        width: min(100% - 32px, 1120px);
        padding-top: 96px;
    }

    .hero h1 {
        font-size: clamp(58px, 18vw, 96px);
    }

    .section-head,
    .news-layout,
    .about-layout,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-title {
        position: static;
    }

    .service-item,
    .service-item-wide {
        grid-column: span 6;
        min-height: 210px;
    }

    .contact-methods a,
    .contact-methods div,
    .site-footer div {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .service-grid {
        box-shadow: none;
    }
}
