:root {
    --nx-bg: #07080c;
    --nx-bg-2: #101218;
    --nx-text: #f5f5f6;
    --nx-muted: #a3a3ad;
    --nx-line: rgba(255, 255, 255, 0.1);
    --nx-card: rgba(255, 255, 255, 0.045);
    --nx-card-2: rgba(255, 255, 255, 0.07);
    --nx-radius: 22px;
    --nx-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --nx-display: clamp(56px, 7.4vw, 104px);
    --nx-title: clamp(38px, 5vw, 68px);
    --nx-space: clamp(78px, 10vw, 150px);
    --nx-panel: #0d0e12;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(900px 480px at 80% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(700px 420px at 10% 20%, rgba(255, 255, 255, 0.04), transparent 55%),
        var(--nx-bg);
    color: var(--nx-text);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; color: inherit; }

.nx {
    min-height: 100vh;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
}

.nx::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 50% -12%, rgba(255,255,255,.075), transparent 68%),
        linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.025) 50%, transparent 50.2%);
}

.nx-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.nx-nav {
    position: sticky;
    top: 14px;
    z-index: 20;
    width: min(1120px, calc(100% - 24px));
    margin: 14px auto 0;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 12px 10px 18px;
    border: 1px solid var(--nx-line);
    border-radius: 999px;
    background: rgba(10, 11, 15, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.nx-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nx-brand img {
    display: block;
    height: 44px;
    width: auto;
}

.nx-links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 12px;
    color: var(--nx-muted);
    font-size: 14px;
}

.nx-links a:hover,
.nx-links a.is-active { color: #fff; }

.nx-links a {
    position: relative;
    padding: 7px 0;
}

.nx-links a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 1px;
    background: #fff;
}

.nx-nav-end {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-langs {
    display: flex;
    gap: 6px;
    color: var(--nx-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.nx-langs a.is-active { color: #fff; }

.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
}

.nx-btn-solid { background: #fff; color: #111; }
.nx-btn-solid:hover { background: #e7e7ea; }
.nx-btn-ghost { border-color: var(--nx-line); background: rgba(255, 255, 255, 0.03); }
.nx-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.nx-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--nx-line);
    background: transparent;
}

.nx-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding: 72px 0 28px;
}

.nx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--nx-line);
    color: var(--nx-muted);
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.nx-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 99px;
    background: #fff;
    box-shadow: 0 0 12px #fff;
}

.nx-page-hero { align-items: start; padding-top: 48px; }
.nx-page-hero h1 { max-width: 14ch; font-size: clamp(40px, 5vw, 64px); }
.nx-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.nx-trust span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--nx-line);
    color: var(--nx-muted);
    font-size: 13px;
}
.nx-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.nx-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.nx-steps strong { display: block; color: inherit; }
.nx-steps li > span > span { color: var(--nx-muted); font-size: 14px; }
.nx-step {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.nx-hero h1 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 650;
}

.nx-hero p {
    max-width: 46ch;
    color: var(--nx-muted);
    font-size: 17px;
}

.nx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.nx-note {
    display: block;
    margin-top: 14px;
    color: var(--nx-muted);
    font-size: 13px;
}

.nx-spark {
    position: relative;
    height: 360px;
}

.nx-spark svg { width: 100%; height: 100%; overflow: visible; }

.nx-rail {
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: auto;
    padding: 18px 0 8px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 650;
    letter-spacing: -0.03em;
    scrollbar-width: none;
}

.nx-rail::-webkit-scrollbar { display: none; }
.nx-rail span { white-space: nowrap; font-size: 18px; opacity: 0.8; }

.nx-section { padding: 78px 0; }
.nx-section { padding: var(--nx-space) 0; }

.nx-head { max-width: 640px; margin-bottom: 28px; }
.nx-head .label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--nx-muted);
    font-size: 13px;
}
.nx-head h2 {
    margin: 0 0 10px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.nx-page .nx-page-hero {
    min-height: 66vh;
    padding: clamp(72px, 10vw, 142px) 0 clamp(70px, 9vw, 130px);
}

.nx-page .nx-page-hero h1 {
    max-width: 11.5ch;
    font-size: var(--nx-display);
    line-height: .88;
    letter-spacing: -.07em;
}

.nx-page .nx-page-hero > :last-child {
    position: relative;
}

.nx-page .nx-page-hero > :last-child::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 42% 58% 47% 53% / 53% 39% 61% 47%;
    transform: rotate(-4deg);
}

.nx-float-tile {
    border: 1px solid var(--nx-line);
    border-radius: 22px;
    background: var(--nx-panel);
    box-shadow: var(--nx-shadow);
    transform: translateY(var(--ny, 0)) rotate(var(--nr, 0deg));
}

.nx-section:nth-of-type(even) {
    position: relative;
}

.nx-section:nth-of-type(even)::before {
    content: "";
    position: absolute;
    inset: 5% 0;
    z-index: -1;
    border-block: 1px solid rgba(255,255,255,.035);
    background: rgba(255,255,255,.012);
}
.nx-head p { margin: 0; color: var(--nx-muted); }

.nx-bento {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    gap: 14px;
}

.nx-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 18px;
    border-radius: var(--nx-radius);
    border: 1px solid var(--nx-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        #0d0f14;
    box-shadow: var(--nx-shadow);
}

.nx-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.03em; }
.nx-card p { margin: 0; color: var(--nx-muted); font-size: 14px; }
.nx-card.wide { grid-column: span 1; }
.nx-card.span2 { grid-column: span 2; }

.nx-viz {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.nx-row, .nx-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.nx-bars { display: flex; align-items: end; gap: 8px; height: 92px; margin-top: 22px; }
.nx-bars i {
    display: block;
    width: 18px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(#fff, rgba(255, 255, 255, 0.25));
}
.nx-bars i:nth-child(1) { height: 35%; }
.nx-bars i:nth-child(2) { height: 58%; }
.nx-bars i:nth-child(3) { height: 46%; }
.nx-bars i:nth-child(4) { height: 78%; }
.nx-bars i:nth-child(5) { height: 64%; }
.nx-bars i:nth-child(6) { height: 92%; }

.nx-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.nx-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.nx-stat {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--nx-line);
    background: rgba(16, 18, 24, 0.9);
    transform: rotate(var(--tilt, 0deg));
}
.nx-stat:nth-child(2) { --tilt: 3deg; margin-top: 28px; }
.nx-stat:nth-child(3) { --tilt: -2deg; }
.nx-stat strong {
    display: block;
    font-size: 42px;
    letter-spacing: -0.05em;
    line-height: 1;
}
.nx-stat span { display: block; margin-top: 8px; color: var(--nx-muted); font-size: 14px; }

.nx-offers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.nx-offer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid var(--nx-line);
    background: #101218;
    min-height: 360px;
}

.nx-offer.is-featured {
    background: #f4f4f5;
    color: #111;
    border-color: #f4f4f5;
}
.nx-offer.is-featured p,
.nx-offer.is-featured li { color: #3f3f46; }

.nx-offer .tag {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}
.nx-offer.is-featured .tag { background: #111; color: #fff; }
.nx-offer.is-featured .nx-btn-solid { background: #111; color: #fff; }
.nx-offer.is-featured .nx-btn-solid:hover { background: #2a2a2e; }
.nx-offer h3 { margin: 0; font-size: 28px; letter-spacing: -0.04em; }
.nx-offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nx-offer li { color: var(--nx-muted); font-size: 14px; }
.nx-offer .nx-btn { margin-top: auto; }

.nx-work, .nx-insights, .nx-quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.nx-work article, .nx-insight, .nx-quote {
    border-radius: 22px;
    border: 1px solid var(--nx-line);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.nx-work img, .nx-insight img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #16181f;
}

.nx-work div, .nx-insight div, .nx-quote { padding: 16px 16px 18px; }
.nx-work h3, .nx-insight h3 { margin: 8px 0; font-size: 18px; letter-spacing: -0.03em; }
.nx-meta { color: var(--nx-muted); font-size: 12px; }

.nx-quote p { margin: 8px 0 16px; }
.nx-quote strong { font-size: 14px; }
.nx-stars { letter-spacing: 2px; font-size: 13px; }

.nx-faq { display: grid; gap: 10px; }
.nx-faq details {
    border-radius: 16px;
    border: 1px solid var(--nx-line);
    background: rgba(255, 255, 255, 0.03);
    padding: 0 16px;
}
.nx-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
}
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq details p { margin: 0 0 16px; color: var(--nx-muted); }

.nx-footer {
    padding: 28px 0 48px;
    border-top: 1px solid var(--nx-line);
}
.nx-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}
.nx-footer h2 {
    margin: 0 0 8px;
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -0.06em;
    line-height: 0.9;
}
.nx-footer p, .nx-footer a { color: var(--nx-muted); }
.nx-footer h3 { margin: 0 0 10px; font-size: 14px; }
.nx-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.nx-copy { margin-top: 28px; color: var(--nx-muted); font-size: 13px; }

/* Page signatures: one visual language, intentionally different compositions. */
.nx-page--home .nx-hero {
    min-height: 76vh;
    padding-top: clamp(90px, 12vw, 170px);
}
.nx-page--home .nx-hero h1 { font-size: var(--nx-display); max-width: 9.5ch; }
.nx-page--home .nx-spark { transform: scale(1.12) translateX(4%); }
.nx-page--home .nx-bento .nx-card:nth-child(1) { grid-column: span 2; min-height: 300px; }
.nx-page--home .nx-bento .nx-card:nth-child(2) { transform: translateY(46px) rotate(1.5deg); }
.nx-page--home .nx-bento .nx-card:nth-child(3) { transform: translateY(-18px) rotate(-1deg); }
.nx-page--home .nx-proof { grid-template-columns: .72fr 1.28fr; }
.nx-page--home .nx-stats { margin-right: -54px; }

.nx-page--services .nx-page-hero { grid-template-columns: 1.3fr .7fr; }
.nx-page--services .nx-page-hero > aside { transform: translateY(54px) rotate(2deg); }

.nx-page--portfolio .nx-page-hero { grid-template-columns: 1.35fr .65fr; }
.nx-page--portfolio .pf-side article:first-child { transform: rotate(-2deg) translateX(-16px); }
.nx-page--portfolio .pf-side article:last-child { transform: rotate(2deg) translate(18px, -8px); }

.nx-page--solutions .nx-page-hero { grid-template-columns: 1fr 1fr; }
.nx-page--solutions .sol-path:first-child { transform: rotate(-2deg) translateY(30px); }
.nx-page--solutions .sol-path:last-child { transform: rotate(2deg) translateY(-14px); }

.nx-page--about .nx-page-hero { grid-template-columns: .92fr 1.08fr; }
.nx-page--about .nx-page-hero > aside { margin-left: 18%; transform: rotate(1.5deg); }
.nx-page--about .pg-steps { grid-template-columns: 1.2fr .8fr 1fr; }
.nx-page--about .pg-steps > :first-child { grid-row: span 2; min-height: 390px; }
.nx-page--about .pg-steps > :nth-child(4) { grid-column: span 2; }

.nx-page--platform .nx-page-hero > aside { transform: rotate(2deg) translateY(32px); }
.nx-page--platform .pg-cards > :first-child { grid-column: span 2; min-height: 280px; }
.nx-page--platform .pg-steps > :nth-child(even) { transform: translateY(28px); }

.nx-page--seamless .nx-page-hero > aside { transform: translateY(-24px); border-radius: 120px 28px 28px 28px; }
.nx-page--seamless .pg-cards { grid-template-columns: .8fr 1.2fr .8fr; align-items: center; }
.nx-page--seamless .pg-cards > :nth-child(2) { min-height: 300px; transform: translateY(36px); }
.nx-page--seamless .pg-steps { position: relative; }
.nx-page--seamless .pg-steps::before {
    content: "";
    position: absolute;
    top: 30px;
    right: 8%;
    left: 8%;
    height: 1px;
    background: rgba(255,255,255,.2);
}

.nx-page--contacts .nx-page-hero { grid-template-columns: .8fr 1.2fr; }
.nx-page--contacts .nx-page-hero .pg-side { grid-template-columns: repeat(3, 1fr); margin-right: -8vw; }
.nx-page--contacts .nx-page-hero .pg-side article:nth-child(2) { transform: translateY(54px); }
.nx-page--contacts .nx-section > .pg-panel { width: min(760px, 88%); margin-left: auto; padding: clamp(24px, 5vw, 56px); }

.nx-page--careers .nx-page-hero { grid-template-columns: 1.2fr .8fr; }
.nx-page--careers .nx-page-hero > aside { transform: rotate(-2deg) translateY(42px); }
.nx-page--careers .pg-grid { display: block; }
.nx-page--careers .pg-grid > article { margin-bottom: 10px; border-radius: 999px; padding: 12px 24px; }
.nx-page--careers .pg-grid > article h2 { display: inline-block; margin-right: 24px; }

.nx-page--news .nx-page-hero { min-height: auto; grid-template-columns: 1fr; padding-bottom: 42px; }
.nx-page--news .nx-page-hero h1 { max-width: none; }
.nx-page--news .pg-filters { position: sticky; top: 84px; z-index: 12; padding: 10px; border: 1px solid var(--nx-line); border-radius: 18px; background: rgba(7,8,12,.88); backdrop-filter: blur(18px); }

.nx-page--news-show main { max-width: 980px; }
.nx-page--news-show .pg-layout { grid-template-columns: minmax(0, 680px) 230px; justify-content: center; gap: 42px; }
.nx-page--news-show .pg-side { position: sticky; top: 104px; }

.nx-page--service-show .nx-page-hero { grid-template-columns: .85fr 1.15fr; }
.nx-page--service-show .nx-page-hero img { transform: rotate(1.5deg) translateX(5%); box-shadow: var(--nx-shadow); }
.nx-page--service-show .pg-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; }
.nx-page--service-show .pg-side { position: sticky; top: 104px; }

.nx-page--privacy-policy main,
.nx-page--cookie main,
.nx-page--job-application-privacy-notice main { max-width: 980px; }
.nx-page--privacy-policy .nx-page-hero,
.nx-page--cookie .nx-page-hero,
.nx-page--job-application-privacy-notice .nx-page-hero { min-height: auto; grid-template-columns: 1fr .7fr; }
.nx-page--maintenance main { max-width: 760px; }
.nx-page--maintenance .pg-prose { min-height: 62vh; display: grid; place-items: center; text-align: center; }

.nx-drawer {
    display: none;
}

@media (max-width: 980px) {
    .nx-links, .nx-langs { display: none; }
    .nx-menu-btn { display: grid; place-items: center; }
    .nx-hero, .nx-proof, .nx-offers, .nx-work, .nx-insights, .nx-quotes, .nx-footer-grid, .nx-bento {
        grid-template-columns: 1fr;
    }
    .nx-card.span2 { grid-column: auto; }
    .nx-stat, .nx-stat:nth-child(2), .nx-stat:nth-child(3) { transform: none; margin-top: 0; }
    .nx-spark { height: 220px; }
    .nx-hero { padding-top: 42px; }
    .nx-hero h1 { max-width: none; }
    .nx-page .nx-page-hero { min-height: auto; padding: 72px 0 56px; }
    .nx-page .nx-page-hero h1 { max-width: none; font-size: clamp(44px, 13vw, 68px); }
    .nx-page--home .nx-bento .nx-card:nth-child(n),
    .nx-page--home .nx-stats,
    .nx-page--services .nx-page-hero > aside,
    .nx-page--portfolio .pf-side article,
    .nx-page--solutions .sol-path,
    .nx-page--about .nx-page-hero > aside,
    .nx-page--platform .nx-page-hero > aside,
    .nx-page--platform .pg-steps > :nth-child(even),
    .nx-page--seamless .nx-page-hero > aside,
    .nx-page--seamless .pg-cards > :nth-child(2),
    .nx-page--contacts .nx-page-hero .pg-side article:nth-child(2),
    .nx-page--careers .nx-page-hero > aside,
    .nx-page--service-show .nx-page-hero img {
        grid-column: auto;
        grid-row: auto;
        margin: 0;
        transform: none;
    }
    .nx-page--about .pg-steps,
    .nx-page--platform .pg-cards,
    .nx-page--seamless .pg-cards,
    .nx-page--contacts .nx-page-hero .pg-side {
        grid-template-columns: 1fr;
    }
    .nx-page--contacts .nx-page-hero .pg-side { margin-right: 0; }
    .nx-page--contacts .nx-section > .pg-panel { width: 100%; }
    .nx-page--news-show .pg-layout,
    .nx-page--service-show .pg-layout { grid-template-columns: 1fr; }
    .nx-page--news-show .pg-side,
    .nx-page--service-show .pg-side { position: static; }
    .nx-page--careers .pg-grid > article { border-radius: 22px; }
    .nx-page--careers .pg-grid > article h2 { display: block; margin-right: 0; }
    .nx-page--news .pg-filters { position: static; }
    body.nx-open .nx-drawer {
        display: grid;
        gap: 14px;
        position: fixed;
        inset: 76px 12px auto;
        z-index: 30;
        padding: 18px;
        border-radius: 22px;
        border: 1px solid var(--nx-line);
        background: #0d0f14;
    }
    body.nx-open .nx-drawer > a {
        color: #fff;
        font-size: 16px;
    }
    body.nx-open .nx-drawer .nx-langs {
        display: flex;
        gap: 16px;
        margin-top: 4px;
        padding-top: 14px;
        border-top: 1px solid var(--nx-line);
        font-size: 14px;
    }
}

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