:root {
    --bg: #05080c;
    --bg-soft: #08111a;
    --panel: rgba(12, 24, 36, 0.76);
    --panel-solid: #0d1823;
    --text: #edf7ff;
    --muted: #9eb0be;
    --line: rgba(94, 177, 212, 0.18);
    --cyan: #38d7ff;
    --cyan-deep: #1286b0;
    --blue: #0a2e5c;
    --max: 1180px;
    --radius: 24px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    color-scheme: dark;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 15% 8%, rgba(20, 116, 168, 0.25), transparent 32rem),
        radial-gradient(circle at 86% 0%, rgba(36, 214, 255, 0.13), transparent 25rem),
        var(--bg);
    color: var(--text);
    overflow-x: clip;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

.narrow {
    max-width: 860px;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 100;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    border-radius: 999px;
    background: var(--cyan);
    color: #001018;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    border-bottom: 1px solid transparent;
    transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.body-subpage .site-header {
    border-color: var(--line);
    background: rgba(5, 9, 14, 0.78);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 8px 22px rgba(56, 215, 255, 0.12));
}

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

.main-nav a {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    border-color: var(--line);
    background: rgba(56, 215, 255, 0.08);
    color: var(--text);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 30px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.language-switch a.is-active {
    background: rgba(56, 215, 255, 0.14);
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 16, 24, 0.8);
    color: var(--text);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 290vh;
    overflow: clip;
    isolation: isolate;
}

.sequence-bg {
    position: sticky;
    top: 0;
    --sequence-focus-x: 50%;
    --sequence-focus-y: 50%;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #05080c;
}

.sequence-bg img {
    position: absolute;
    top: 50%;
    left: var(--sequence-focus-x);
    display: block;
    max-width: none;
    object-fit: cover;
    object-position: var(--sequence-focus-x) var(--sequence-focus-y);
    filter: none;
    transform: translate(-50%, -50%);
}

.sequence-bg canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    filter: none;
}

.sequence-bg img {
    opacity: 0;
    transition: opacity 220ms ease;
}

.sequence-bg.is-first-frame-ready img,
.sequence-bg.is-ready img {
    opacity: 1;
}

.sequence-loader {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid rgba(56, 215, 255, 0.22);
    border-radius: 999px;
    background: rgba(2, 8, 14, 0.58);
    color: rgba(237, 247, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    transform: translateX(-50%);
    transition: opacity 220ms ease, visibility 220ms ease;
}

.sequence-loader strong {
    color: var(--cyan);
}

.sequence-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.sequence-fallback {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(0, 0, 0, 0.8), rgba(2, 13, 24, 0.45)),
        radial-gradient(circle at 72% 36%, rgba(56, 215, 255, 0.28), transparent 20rem),
        linear-gradient(135deg, #05080c, #0a1926 55%, #061120);
}

.sequence-fallback::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(56, 215, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 215, 255, 0.08) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(circle at 65% 42%, black, transparent 68%);
    animation: gridDrift 16s linear infinite;
}

.sequence-fallback span {
    position: absolute;
    border: 1px solid rgba(56, 215, 255, 0.28);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(56, 215, 255, 0.12), rgba(10, 46, 92, 0.1));
    box-shadow: 0 0 34px rgba(56, 215, 255, 0.08);
}

.sequence-fallback span:nth-child(1) {
    width: 36vw;
    height: 22vh;
    right: 8vw;
    top: 22vh;
}

.sequence-fallback span:nth-child(2) {
    width: 18vw;
    height: 28vh;
    right: 22vw;
    top: 50vh;
}

.sequence-fallback span:nth-child(3) {
    width: 14vw;
    height: 14vw;
    right: 42vw;
    top: 36vh;
    border-radius: 50%;
}

.sequence-fallback span:nth-child(4) {
    width: 30vw;
    height: 1px;
    right: 16vw;
    top: 48vh;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: var(--hero-overlay-opacity-desktop, 0.74);
    background:
        linear-gradient(90deg, rgba(5, 8, 12, 1), rgba(5, 8, 12, 0.66) 45%, rgba(5, 8, 12, 0.1)),
        linear-gradient(180deg, rgba(5, 8, 12, 0.02), #05080c 96%);
    pointer-events: none;
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 50%;
    display: flex;
    min-height: 100svh;
    padding-top: 118px;
    padding-bottom: 80px;
    transform: translateX(-50%);
    flex-direction: column;
    justify-content: center;
}

.hero-logo {
    width: 168px;
    margin-bottom: 32px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.04;
    letter-spacing: -0.04em;
}

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(3rem, 5.9vw, 5.9rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
    font-size: 1.35rem;
}

.hero-lead {
    max-width: 640px;
    margin-bottom: 34px;
    color: #c8d6df;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-form .btn {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), #8be9ff);
    color: #001019;
    box-shadow: 0 18px 54px rgba(56, 215, 255, 0.24);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.section {
    position: relative;
    padding: 110px 0;
}

.section-intro {
    padding-bottom: 48px;
    background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.split-layout,
.contact-grid,
.content-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 7vw, 96px);
    align-items: start;
}

.split-layout > p,
.page-hero p,
.content-grid p,
.contact-panel p,
.feature-card p,
.timeline p,
.site-footer p {
    color: var(--muted);
}

.cards-section {
    padding-top: 46px;
    background: var(--bg-soft);
}

.authority-section {
    padding: 0 0 16px;
    background: var(--bg-soft);
}

.authority-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 0%, rgba(56, 215, 255, 0.1), transparent 36rem),
        linear-gradient(145deg, rgba(17, 34, 49, 0.86), rgba(7, 14, 22, 0.78));
    box-shadow: var(--shadow), 0 0 44px rgba(56, 215, 255, 0.05);
}

.authority-item {
    display: grid;
    min-height: 148px;
    padding: 30px 24px;
    place-items: center;
    text-align: center;
}

.authority-item + .authority-item {
    border-left: 1px solid var(--line);
}

.authority-item strong {
    color: var(--text);
    font-size: clamp(1.5rem, 2.4vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.authority-item span {
    max-width: 220px;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card,
.content-grid article,
.contact-panel,
.contact-form,
.timeline article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(17, 34, 49, 0.86), rgba(7, 14, 22, 0.78));
    box-shadow: var(--shadow);
}

.feature-card {
    display: flex;
    min-height: 620px;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.feature-card span,
.timeline span {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--cyan);
    font-weight: 900;
}

.feature-card.highlighted {
    background: linear-gradient(145deg, rgba(17, 58, 82, 0.86), rgba(8, 17, 27, 0.88));
}

.feature-card-media {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #061019;
}

.feature-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(5, 8, 12, 0.62));
    pointer-events: none;
}

.feature-card-media img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    filter: brightness(0.88) saturate(1.06);
    transform: scale(1.001);
    transition: transform 260ms ease, filter 260ms ease;
}

.feature-card-body {
    display: flex;
    flex: 1;
    padding: 24px 28px 28px;
    flex-direction: column;
}

.feature-card-body > p {
    margin-bottom: 0;
}

.feature-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 24px;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 18px;
    color: #c7d8e3;
    font-size: 0.94rem;
}

.feature-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 16px rgba(56, 215, 255, 0.5);
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: auto;
    padding: 0 15px;
    border: 1px solid rgba(56, 215, 255, 0.22);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 900;
    background: rgba(56, 215, 255, 0.07);
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        border-color: rgba(56, 215, 255, 0.42);
        filter: brightness(1.06);
        transform: translateY(-8px);
    }

    .feature-card:hover .feature-card-media img {
        filter: brightness(1.04) saturate(1.12);
        transform: scale(1.045);
    }

    .feature-card:hover .card-action {
        border-color: rgba(56, 215, 255, 0.52);
        background: rgba(56, 215, 255, 0.13);
        color: #ffffff;
    }
}

.page-hero {
    padding: 180px 0 96px;
    background:
        radial-gradient(circle at 76% 10%, rgba(56, 215, 255, 0.14), transparent 28rem),
        linear-gradient(180deg, #08111a, var(--bg));
}

.page-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.content-grid article,
.contact-panel,
.contact-form,
.timeline article {
    padding: 32px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #cddbe4;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 8, 14, 0.82);
    color: var(--text);
    padding: 13px 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(56, 215, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(56, 215, 255, 0.08);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #04070b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    padding: 62px 0;
}

.footer-logo {
    margin-bottom: 18px;
}

.site-footer h2 {
    margin-bottom: 12px;
    font-size: 1rem;
    letter-spacing: 0;
}

.site-footer a {
    color: var(--cyan);
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 20px;
    color: #7f91a0;
    text-align: center;
    font-size: 0.9rem;
}

@keyframes gridDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(70px, 70px, 0); }
}

@media (max-width: 860px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .nav-toggle {
        display: inline-block;
        position: relative;
        z-index: 22;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 14px;
        right: 14px;
        z-index: 21;
        display: grid;
        align-content: start;
        justify-items: center;
        gap: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #061019;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .main-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .main-nav a {
        width: 100%;
        min-width: 0;
        text-align: center;
        font-size: 1.2rem;
    }

    .language-switch {
        margin-left: auto;
    }

    .hero {
        min-height: 310vh;
    }

    .hero-overlay {
        opacity: var(--hero-overlay-opacity-mobile, 0.42);
        background:
            linear-gradient(180deg, rgba(5, 8, 12, 0.12), rgba(5, 8, 12, 0.72) 76%, #05080c),
            linear-gradient(90deg, rgba(5, 8, 12, 0.72), rgba(5, 8, 12, 0.08));
    }

    .sequence-bg {
        --sequence-focus-x: 56%;
    }

    .hero-content {
        justify-content: flex-end;
    }

    .split-layout,
    .contact-grid,
    .content-grid,
    .cards-grid,
    .timeline,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 76px 0;
    }

    .section-intro {
        padding-bottom: 36px;
    }

    .authority-panel {
        grid-template-columns: 1fr;
    }

    .authority-item {
        min-height: 118px;
        padding: 24px 18px;
    }

    .authority-item + .authority-item {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .cards-section {
        padding-top: 36px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        min-height: 70px;
    }

    h1 {
        font-size: clamp(2.65rem, 14vw, 4.6rem);
    }

    .hero-logo {
        width: 136px;
        margin-bottom: 24px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .feature-card,
    .content-grid article,
    .contact-panel,
    .contact-form,
    .timeline article {
        padding: 24px;
    }
}

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