:root {
    --site-bg: #f7f3e8;
    --site-panel: #fffdf8;
    --site-panel-strong: #f1ebdf;
    --site-border: #ddcfba;
    --site-text: #1c1a17;
    --site-muted: #5f584e;
    --site-brand: #0f766e;
    --site-brand-dark: #0a4f4a;
    --site-brand-soft: #dff2ef;
    --site-radius: 20px;
    --site-shadow: 0 18px 44px rgba(26, 22, 17, 0.08);
    --site-ink-deep: #10293d;
    --site-ink-mid: #183f5d;
    --site-ink-soft: #2d5f87;
    --site-glow: rgba(107, 167, 205, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #232933;
    color: var(--site-text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.page-bg {
    position: relative;
    overflow: hidden;
    padding-bottom: 32px;
    background:
        radial-gradient(circle at 18% 14%, rgba(56, 110, 255, 0.34), transparent 24%),
        radial-gradient(circle at 44% 62%, rgba(36, 88, 232, 0.26), transparent 22%),
        linear-gradient(135deg, #02101d 0%, #05182f 30%, #071f3e 54%, #020915 100%);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.page-bg::before,
.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.page-bg::before {
    background:
        linear-gradient(145deg, rgba(6, 26, 66, 0.9) 0%, rgba(6, 26, 66, 0.12) 30%, transparent 31%),
        linear-gradient(145deg, transparent 0%, transparent 13%, rgba(36, 92, 255, 0.58) 14%, rgba(19, 52, 138, 0.18) 33%, transparent 34%),
        linear-gradient(145deg, transparent 0%, transparent 43%, rgba(7, 24, 59, 0.82) 44%, rgba(7, 24, 59, 0.2) 60%, transparent 61%),
        linear-gradient(145deg, transparent 0%, transparent 59%, rgba(39, 94, 255, 0.44) 60%, rgba(15, 44, 117, 0.16) 78%, transparent 79%),
        linear-gradient(145deg, transparent 0%, transparent 76%, rgba(6, 19, 46, 0.74) 77%, rgba(6, 19, 46, 0.14) 100%);
    background-size: cover;
    background-position: center;
    opacity: 0.96;
    animation: siteDriftOne 20s ease-in-out infinite alternate;
}

.page-bg::after {
    background:
        radial-gradient(circle at 22% 20%, rgba(140, 187, 255, 0.12), transparent 16%),
        radial-gradient(circle at 48% 70%, rgba(102, 163, 255, 0.1), transparent 18%),
        linear-gradient(180deg, rgba(3, 10, 23, 0.42) 0%, rgba(2, 7, 16, 0.56) 100%);
    animation: siteDriftTwo 26s ease-in-out infinite alternate;
}

.page-bg > .site-shell {
    position: relative;
    z-index: 1;
}

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

a {
    color: inherit;
}

.site-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 24px;
}

.site-topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 18px 22px;
    border-radius: 30px;
    overflow: visible;
    background: linear-gradient(135deg, #0c2236 0%, #11304b 54%, #173d5e 100%);
    border: 1px solid rgba(155, 198, 227, 0.14);
    box-shadow: 0 28px 54px rgba(7, 18, 30, 0.28);
    isolation: isolate;
    z-index: 30;
}

.site-topbar::before {
    content: "";
    position: absolute;
    inset: 0 38% 0 0;
    background: linear-gradient(118deg, #fffdf8 0%, #fbfdff 64%, #f7fbff 78%, #f7fbff 100%);
    clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%);
    z-index: 0;
}

.site-topbar::after {
    content: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    min-height: 96px;
    padding-left: 6px;
}

.site-brand img {
    width: min(360px, 100%);
    height: auto;
}

.site-language-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: min(320px, 100%);
    position: relative;
    z-index: 40;
}

.site-language-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d9edf8;
}

.site-language-menu {
    position: relative;
    width: 100%;
    z-index: 50;
}

.site-language-menu summary {
    list-style: none;
}

.site-language-menu summary::-webkit-details-marker {
    display: none;
}

.site-language-current {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #c5d6e4;
    border-radius: 999px;
    box-shadow: 0 12px 20px rgba(10, 23, 37, 0.16);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-language-current:hover,
.site-language-menu[open] .site-language-current {
    border-color: rgba(71, 123, 160, 0.46);
    box-shadow: 0 20px 34px rgba(11, 25, 37, 0.2);
}

.site-language-current:focus-visible {
    outline: 2px solid rgba(15, 118, 110, 0.32);
    outline-offset: 2px;
}

.site-language-current-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-language-current-name {
    font-size: 1rem;
    font-weight: 700;
    color: #121a22;
    line-height: 1.2;
}

.site-language-caret {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: #244763;
    transform: rotate(0deg);
    transition: transform 0.18s ease;
}

.site-language-menu[open] .site-language-caret {
    transform: rotate(180deg);
}

.site-language-flag {
    flex: 0 0 auto;
    display: block;
    width: auto;
    height: 28px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(26, 22, 17, 0.1);
    object-fit: contain;
}

.site-language-option .site-language-flag {
    height: 18px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(26, 22, 17, 0.08);
}

.site-language-current-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.site-language-current-copy strong {
    font-size: 1rem;
    color: #121a22;
}

.site-language-current-copy span {
    font-size: 0.88rem;
    color: #4e6274;
}

.site-language-options {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 100%;
    display: grid;
    gap: 8px;
    padding: 10px;
    background: #dbeaf7;
    border: 1px solid #a7c0d5;
    border-radius: 18px;
    box-shadow: 0 22px 36px rgba(8, 22, 37, 0.26);
    z-index: 500;
}

.site-language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: #162736;
    background: #f8fbff;
    border: 1px solid #c8d8e5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.site-language-option:hover {
    transform: translateY(-1px);
    background: #eef5fb;
    border-color: #88acc6;
    box-shadow: 0 10px 20px rgba(38, 78, 108, 0.13);
}

.site-language-option.is-future {
    color: #6d665c;
    background: rgba(241, 235, 223, 0.88);
    border-style: dashed;
    border-color: rgba(15, 118, 110, 0.28);
    cursor: default;
}

.site-language-option.is-future:hover {
    transform: none;
    box-shadow: none;
}

.site-main {
    position: relative;
    isolation: isolate;
    z-index: 1;
}

.site-main::before,
.site-main::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.site-main::before {
    top: 12px;
    right: -38px;
    width: min(34vw, 430px);
    height: 420px;
    border-radius: 42px;
    background:
        linear-gradient(150deg, rgba(8, 23, 52, 0.4), rgba(45, 95, 135, 0.08)),
        linear-gradient(130deg, rgba(108, 167, 205, 0.16), rgba(255, 255, 255, 0));
    transform: rotate(-8deg);
    filter: blur(1px);
}

.site-main::after {
    top: 430px;
    left: -56px;
    width: min(32vw, 390px);
    height: 320px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(46, 111, 255, 0.18), rgba(10, 28, 64, 0.34));
    transform: rotate(-10deg);
}

.site-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: stretch;
    margin-top: 18px;
}

.site-card {
    position: relative;
    background: rgba(248, 251, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: var(--site-radius);
    box-shadow: 0 26px 48px rgba(2, 10, 22, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #111111;
}

.site-card::before {
    content: none;
}

.site-hero-copy {
    padding: 40px 40px 36px;
    background: rgba(248, 251, 255, 0.92);
    color: #000000;
}

.site-kicker {
    margin: 0 0 14px;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 1;
    text-shadow: none;
}

.site-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.05;
    color: #000000;
    opacity: 1;
    text-shadow: none;
}

.site-subtitle {
    margin: 12px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.3;
    color: #000000;
    opacity: 1;
    text-shadow: none;
}

.site-hero p {
    margin: 18px 0 0;
    font-size: 1.06rem;
    color: #000000;
    max-width: 60ch;
    opacity: 1;
    text-shadow: none;
}

.site-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.site-button,
.site-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-button {
    background: var(--site-brand);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.site-button-secondary {
    background: #ffffff;
    color: var(--site-brand-dark);
    border: 1px solid rgba(15, 118, 110, 0.24);
}

.site-button:hover,
.site-button-secondary:hover {
    transform: translateY(-1px);
}

.site-hero-panel {
    padding: 28px;
    background: rgba(243, 248, 255, 0.9);
    color: #000000;
}

.site-panel-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    color: #000000;
    opacity: 1;
    text-shadow: none;
}

.site-panel-copy {
    margin: 12px 0 0;
    color: #000000;
    opacity: 1;
    text-shadow: none;
}

.site-panel-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.site-panel-list li {
    position: relative;
    margin-top: 12px;
    padding-left: 20px;
    color: #000000;
    opacity: 1;
    text-shadow: none;
}

.site-panel-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--site-brand);
}

.site-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.site-section {
    padding: 28px 26px;
    background: rgba(246, 250, 255, 0.9);
    color: #000000;
}

.site-section h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    color: #000000;
    opacity: 1;
    text-shadow: none;
}

.site-section p {
    margin: 0;
    color: #000000;
    opacity: 1;
    text-shadow: none;
}

.site-callout {
    margin-top: 28px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #143854 0%, #102f46 100%);
    color: #eef6fb;
    box-shadow: 0 24px 42px rgba(2, 10, 22, 0.28);
}

.site-callout::before,
.site-callout::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.site-callout::before {
    top: -26px;
    right: 18%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(124, 197, 230, 0.2), transparent 70%);
}

.site-callout::after {
    right: -40px;
    bottom: -54px;
    width: 240px;
    height: 180px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}

.site-callout h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
}

.site-callout p {
    margin: 0;
    max-width: 58ch;
    color: #eef6fb;
}

.site-footer {
    margin-top: 0;
    padding: 0;
    background: #0f2740;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #f3f7fb;
    overflow: visible;
    position: relative;
    isolation: isolate;
    z-index: 5;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-footer-shell {
    padding-bottom: 0;
    background: #0f2740;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 30px 12px;
    background: #0f2740;
    border-bottom: 1px solid #2a4257;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer-nav a {
    color: #eef3f8;
    font-weight: 600;
    text-decoration: none;
}

.site-footer-nav a:hover {
    color: #ffffff;
}

.site-footer-language {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: min(280px, 100%);
}

.site-footer-language-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ed4d1;
}

.site-footer-language-current,
.site-footer-language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 14px;
    text-decoration: none;
}

.site-footer-language-current {
    border: 1px solid #3e5770;
    background: #16324d;
    color: #ffffff;
}

.site-footer-language-option {
    color: #eef3f8;
    background: transparent;
}

.site-footer-language-option:hover {
    color: #ffffff;
    background: #183044;
}

.site-footer-language-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.site-footer-language-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.site-footer-language-option .site-footer-language-copy {
    width: auto;
}

.site-footer-language-flag {
    display: none;
    height: 18px;
    border-radius: 5px;
    box-shadow: none;
}

.site-footer-language-copy strong {
    font-size: 0.94rem;
}

.site-footer-language-badge {
    flex: 0 0 auto;
    padding: 0.16rem 0.44rem;
    border-radius: 999px;
    background: #1a6f68;
    color: #d8f2ef;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer-language-divider {
    height: 1px;
    background: #2a4257;
}

.site-footer-legal {
    padding: 14px 30px 22px;
    background: #0f2740;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-footer::before,
.site-footer::after,
.site-footer-shell::before,
.site-footer-shell::after,
.site-footer-top::before,
.site-footer-top::after,
.site-footer-legal::before,
.site-footer-legal::after {
    content: none !important;
}

.site-footer-legal-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer-logo {
    width: min(96px, 100%);
    height: auto;
    flex: 0 0 auto;
}

.site-footer-legal-text {
    color: #f3f7fb;
    font-size: 0.94rem;
    line-height: 1.45;
}

.site-footer-legal-text a {
    color: #f3f7fb;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.site-footer-legal-text a:hover {
    color: #ffffff;
}

.site-footer-legal-text div + div {
    margin-top: 2px;
}

.site-accessibility-note {
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--site-muted);
}

.reveal {
    will-change: transform, opacity;
}

.has-motion-js.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.has-motion-js.reveal-ready .reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes siteDriftOne {
    from {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    to {
        transform: translate3d(-34px, 24px, 0) scale(1.03) rotate(-2.6deg);
    }
}

@keyframes siteDriftTwo {
    from {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
    to {
        transform: translate3d(28px, -18px, 0) scale(1.02) rotate(2.3deg);
    }
}

@media (max-width: 980px) {
    .site-hero,
    .site-section-grid {
        grid-template-columns: 1fr;
    }

    .site-hero-copy,
    .site-hero-panel,
    .site-callout,
    .site-footer,
    .site-section {
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .site-shell {
        padding: 0 16px 20px;
    }

    .site-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 18px;
    }

    .site-topbar::before {
        content: none;
    }

    .site-brand {
        width: 100%;
        min-height: 0;
        justify-content: center;
        padding: 16px 14px;
        border-radius: 24px;
        background: linear-gradient(135deg, #fffdf8 0%, #f7fbff 100%);
        box-shadow: inset 0 0 0 1px rgba(197, 214, 228, 0.72);
    }

    .site-brand img {
        width: min(300px, 100%);
    }

    .site-language-nav {
        width: 100%;
        align-items: stretch;
        gap: 10px;
    }

    .site-language-label {
        padding-left: 2px;
    }

    .site-language-options {
        left: 0;
        right: 0;
        width: auto;
    }

    .site-actions {
        flex-direction: column;
    }

    .site-button,
    .site-button-secondary {
        width: 100%;
    }

    .site-footer-top,
    .site-footer-legal {
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-footer-language {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .page-bg::before,
    .page-bg::after {
        animation: none;
    }

    .has-motion-js.reveal-ready .reveal,
    .has-motion-js.reveal-ready .reveal.reveal-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
