:root {
    --bg: #071018;
    --bg-deep: #040910;
    --surface: rgba(9, 20, 31, 0.74);
    --surface-strong: rgba(13, 27, 42, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.08);
    --text: #f4f8fb;
    --muted: #adc2d4;
    --line: rgba(151, 189, 212, 0.2);
    --cyan: #6cf3ff;
    --teal: #1bc4c4;
    --gold: #ffc86e;
    --rose: #ff8f80;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    --radius-lg: 34px;
    --radius-md: 24px;
    --radius-sm: 18px;
    --container: min(1200px, calc(100vw - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(108, 243, 255, 0.16), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(255, 200, 110, 0.16), transparent 24%),
        radial-gradient(circle at 50% 120%, rgba(27, 196, 196, 0.18), transparent 34%),
        linear-gradient(160deg, #071018 0%, #091827 45%, #040910 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
    opacity: 0.85;
    z-index: -2;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    position: relative;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-main {
    position: relative;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(5, 12, 19, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(108, 243, 255, 0.18), rgba(255, 200, 110, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.brand__mark img {
    width: 34px;
    height: 34px;
}

.brand__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.brand__text strong {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.brand__text small {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.primary-nav {
    justify-self: center;
}

.site-header__controls {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 12px;
}

.nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.25s ease;
}

.nav-menu li a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.header-cta,
.button--primary {
    position: relative;
    overflow: hidden;
    color: #061018;
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    box-shadow: 0 20px 45px rgba(108, 243, 255, 0.2);
    font-weight: 800;
}

.header-cta::after,
.button--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.header-cta:hover,
.button--primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 32px 56px rgba(108, 243, 255, 0.3);
}

.header-cta:hover::after,
.button--primary:hover::after {
    transform: translateX(120%);
}

.button--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.button--ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: 0.25s ease;
}

.language-switcher {
    position: relative;
}

.language-switcher__trigger,
.language-switcher__option {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.language-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.language-switcher__trigger:hover,
.language-switcher.is-open .language-switcher__trigger {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.language-switcher__flag {
    font-size: 1.02rem;
    line-height: 1;
}

.language-switcher__label,
.language-switcher__option-label {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.language-switcher__chevron {
    font-size: 0.72rem;
    color: var(--muted);
    transition: transform 0.22s ease;
}

.language-switcher.is-open .language-switcher__chevron {
    transform: rotate(180deg);
}

.language-switcher__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(286px, calc(100vw - 32px));
    max-height: 360px;
    overflow: auto;
    padding: 10px;
    border-radius: 24px;
    background: rgba(5, 12, 19, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.language-switcher.is-open .language-switcher__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.language-switcher__option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.language-switcher__option + .language-switcher__option {
    margin-top: 6px;
}

.language-switcher__option:hover,
.language-switcher__option.is-active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(108, 243, 255, 0.24);
}

.language-switcher__check {
    color: var(--cyan);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-section,
.page-hero {
    position: relative;
    padding: 92px 0 54px;
}

.hero-section::after,
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 42px;
    align-items: center;
}

.hero-copy h1,
.page-hero__content h1,
.section-heading h2,
.stack h2,
.statement-panel h2,
.cta-banner h2,
.site-footer h3 {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.015em;
}

.hero-copy h1 {
    font-size: clamp(1.6rem, 2.45vw, 2.05rem);
    max-width: 26ch;
}

.page-hero__content h1,
.section-heading h2,
.stack h2,
.statement-panel h2,
.cta-banner h2 {
    font-size: clamp(1.48rem, 1.95vw, 1.8rem);
    max-width: 32ch;
}

.hero-copy p,
.page-hero__content p,
.stack p,
.statement-panel p,
.service-card p,
.feature-card p,
.site-footer p,
.contact-card p,
.prose {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.section-kicker,
.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--cyan);
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    font-weight: 800;
}

.section-kicker::before,
.footer-kicker::before {
    content: "";
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, rgba(108, 243, 255, 0.2), rgba(108, 243, 255, 0.9));
}

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

.hero-actions {
    margin-top: 30px;
}

.hero-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.hero-grid--single .hero-copy {
    display: grid;
    justify-items: center;
    text-align: center;
    margin: 0 auto;
}

.hero-grid--single .hero-actions {
    justify-content: center;
}

.hero-copy {
    max-width: 860px;
}

.stack--measure {
    max-width: 920px;
}

.section {
    padding: 74px 0;
}

.section--dark {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.section-heading {
    display: grid;
    gap: 18px;
    margin-bottom: 34px;
}

.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.service-card,
.statement-card,
.metric-card,
.contact-panel,
.form-panel,
.process-step,
.statement-panel,
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature-card,
.service-card,
.statement-card,
.metric-card,
.process-step,
.contact-panel,
.form-panel {
    padding: 28px;
}

.feature-card::before,
.service-card::before,
.statement-panel::before,
.cta-banner::before,
.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(108, 243, 255, 0.06), transparent 50%, rgba(255, 200, 110, 0.06));
    pointer-events: none;
}

.feature-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(108, 243, 255, 0.16), rgba(255, 200, 110, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 600;
}

.feature-card:hover,
.service-card:hover,
.metric-card:hover,
.statement-panel:hover,
.process-step:hover {
    transform: scale(1.02);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.4);
}

.feature-card:hover .feature-card__index,
.process-step:hover span {
    background: linear-gradient(135deg, rgba(108, 243, 255, 0.28), rgba(255, 200, 110, 0.3));
}

.feature-card h3,
.service-card h2,
.statement-card p,
.metric-card strong,
.contact-card a,
.contact-card p {
    position: relative;
    z-index: 1;
}

.feature-card h3,
.service-card h2,
.metric-card strong,
.contact-card a,
.statement-card span {
    font-family: "IBM Plex Sans", sans-serif;
}

.feature-card h3,
.service-card h2 {
    margin: 0 0 14px;
    font-size: 0.96rem;
    font-weight: 600;
}

.service-card__halo {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(108, 243, 255, 0.24), transparent 70%);
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.stack {
    display: grid;
    gap: 18px;
}

.process-list,
.metric-stack {
    display: grid;
    gap: 18px;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    align-items: center;
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    border-radius: 22px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--cyan), var(--gold));
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.22s ease, transform 0.22s ease;
}

.process-step p {
    margin: 0;
    line-height: 1.55;
    font-size: 1.02rem;
}

.statement-panel,
.cta-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 22px;
    padding: 34px;
    align-items: center;
}

.statement-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.statement-card span {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
}

.statement-card p {
    margin: 0;
    line-height: 1.65;
    font-size: 0.95rem;
}

.metric-card strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.4;
}

.page-hero--services,
.page-hero--about,
.page-hero--contact {
    padding-bottom: 28px;
}

.page-hero__content {
    display: grid;
    gap: 18px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.45fr) minmax(0, 0.55fr);
    gap: 24px;
}

.contact-panel,
.form-panel {
    min-height: 100%;
}

.contact-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

.contact-card {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-card small {
    display: block;
    margin-bottom: 8px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
}

.contact-card a {
    font-size: 1rem;
}

.contact-card p {
    margin: 0;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.form-field {
    display: grid;
    gap: 10px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field--hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 15px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(108, 243, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(108, 243, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-field textarea {
    resize: vertical;
    min-height: 160px;
}

.form-alert {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    font-weight: 700;
}

.form-alert--success {
    color: #0d241c;
    background: linear-gradient(135deg, #92ffd0, #b3ffe1);
}

.form-alert--error {
    color: #2b0d0d;
    background: linear-gradient(135deg, #ff9d95, #ffc1b6);
}

.site-footer {
    padding: 12px 0 24px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.site-footer__meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-block {
    display: grid;
    gap: 6px;
    align-content: start;
}

.footer-block h3 {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
}

.footer-block a {
    color: var(--text);
}

.prose > *:first-child {
    margin-top: 0;
}

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

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

.feature-card.reveal.is-visible:hover,
.service-card.reveal.is-visible:hover,
.metric-card.reveal.is-visible:hover,
.statement-panel.reveal.is-visible:hover,
.process-step.reveal.is-visible:hover {
    transform: translateY(-6px) scale(1.03);
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1080px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 24px;
        right: 24px;
        padding: 16px;
        border-radius: 24px;
        background: rgba(5, 12, 19, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: var(--shadow);
    }

    .nav-toggle {
        display: inline-flex;
    }

    body.menu-open .primary-nav {
        display: block;
    }

    body.menu-open .nav-toggle span:first-child {
        transform: translateY(5px) rotate(45deg);
    }

    body.menu-open .nav-toggle span:last-child {
        transform: translateY(-5px) rotate(-45deg);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu li a {
        justify-content: flex-start;
    }

    .header-cta {
        display: none;
    }

    .site-header__controls {
        gap: 10px;
    }

    .hero-grid,
    .split-layout,
    .statement-panel,
    .cta-banner,
    .contact-layout,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .card-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    :root {
        --container: min(100vw - 32px, 1000px);
    }

    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    .brand__text small {
        display: none;
    }

    .hero-section,
    .page-hero,
    .section {
        padding-top: 62px;
        padding-bottom: 46px;
    }

    .site-header__controls {
        gap: 8px;
    }

    .language-switcher__trigger {
        min-height: 44px;
        padding: 10px 12px;
    }

    .language-switcher__label {
        max-width: 86px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-copy h1 {
        font-size: clamp(1.4rem, 5.8vw, 1.8rem);
    }

    .page-hero__content h1,
    .section-heading h2,
    .stack h2,
    .statement-panel h2,
    .cta-banner h2 {
        font-size: clamp(1.22rem, 5vw, 1.48rem);
    }

    .card-grid--three,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 64px 1fr;
    }

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