:root {
    --bg: #0a0b12;
    --bg-2: #0f111b;
    --surface: #141725;
    --surface-2: #1a1e30;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #e7e9f2;
    --text-dim: #a4a8bd;
    --muted: #6b7089;
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --gradient: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1200px;
    --header-h: 72px;
    --shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.muted { color: var(--muted); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 15px; }

.btn--primary {
    background: var(--gradient);
    color: #0a0b12;
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    color: #0a0b12;
}

.btn--ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--ghost:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(10, 11, 18, 0.7);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, background .3s ease;
}
.header.is-scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 11, 18, 0.85);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}
.logo:hover { color: inherit; }
.logo__text span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    color: var(--text-dim);
}
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header__cta { font-size: 13px; padding: 10px 18px; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 80px) 0 120px;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 92, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
}
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}
.hero__glow--1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, #7c5cff 0%, transparent 60%);
    top: -120px; left: -120px;
}
.hero__glow--2 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 60%);
    bottom: -180px; right: -140px;
    opacity: 0.35;
}

.hero__inner {
    text-align: center;
    max-width: 900px;
}
.hero__title {
    font-size: clamp(36px, 6vw, 64px);
    margin: 18px 0 20px;
    letter-spacing: -0.02em;
}
.hero__lead {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-dim);
    max-width: 720px;
    margin: 0 auto;
}
.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}
.hero__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    list-style: none;
    margin-top: 64px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.hero__meta li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero__meta strong {
    font-size: 28px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__meta span {
    font-size: 13px;
    color: var(--text-dim);
}

/* === Sections === */
.section {
    padding: 100px 0;
    position: relative;
}
.section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.section__title {
    font-size: clamp(28px, 3.6vw, 42px);
    margin: 14px 0 12px;
}
.section__sub {
    color: var(--text-dim);
    font-size: 16px;
}

/* === Partners === */
.partners { padding: 80px 0; }
.partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    list-style: none;
}
.partner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
    text-align: center;
}
.partner:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.partner__name {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}

/* === Services === */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.service {
    position: relative;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
    overflow: hidden;
}
.service::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--x, -200px) var(--y, -200px), rgba(124, 92, 255, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.service:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}
.service:hover::before { opacity: 1; }
.service__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(0, 212, 255, 0.14));
    color: var(--accent-2);
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.service__icon svg { width: 22px; height: 22px; }
.service h3 {
    font-size: 19px;
    margin-bottom: 8px;
}
.service p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.65;
}

/* === Advantages === */
.advantages { padding: 80px 0; }
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.advantage {
    padding: 32px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.advantage__num {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    line-height: 1;
}
.advantage h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.advantage p {
    color: var(--text-dim);
    font-size: 14px;
}

/* === Cases slider === */
.slider { position: relative; }
.slider__viewport {
    overflow: hidden;
    border-radius: var(--radius);
}
.slider__track {
    display: flex;
    list-style: none;
    transition: transform .5s cubic-bezier(.6, .05, .2, 1);
    will-change: transform;
}
.slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 2px;
}

.case {
    position: relative;
    padding: 36px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.case::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0.6;
}
.case__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.case__badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.case__badge--nda {
    color: #ffb4b4;
    background: rgba(255, 90, 90, 0.1);
    border: 1px solid rgba(255, 90, 90, 0.35);
}
.case__tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0a0b12;
    background: var(--gradient);
    padding: 5px 10px;
    border-radius: 6px;
}
.case__industry {
    font-size: 13px;
    color: var(--text-dim);
}
.case__industry::before {
    content: "•";
    margin-right: 10px;
    color: var(--muted);
}
.case__title {
    font-size: clamp(20px, 2.4vw, 26px);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.case__lead {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 28px;
    max-width: 820px;
}
.case__cols {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    margin-bottom: 24px;
}
.case__cols h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.case__cols ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.case__cols > div:first-child ul li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.55;
}
.case__cols > div:first-child ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 12px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}
.case__kpi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.case__kpi li {
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.case__kpi strong {
    font-size: 22px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.case__kpi span {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.4;
}
.case__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.case__stack span {
    font-size: 12px;
    color: var(--text-dim);
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}
.slider__btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.slider__btn:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
    transform: translateY(-1px);
}
.slider__btn:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.slider__dots {
    display: flex;
    gap: 8px;
}
.slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
}
.slider__dot:hover { background: rgba(255, 255, 255, 0.3); }
.slider__dot.is-active {
    width: 28px;
    background: var(--gradient);
}

/* === Footer === */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 64px 0 24px;
    margin-top: 40px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.5fr 1fr;
    gap: 40px;
}
.footer__col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.footer__col p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.55;
}
.footer__mail {
    font-weight: 600;
    font-size: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.footer__about {
    margin-top: 14px;
}
.footer__about a {
    color: var(--text-dim);
    font-size: 14px;
}
.footer__about a:hover { color: var(--text); }
.footer__tag {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 12px;
}
.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__links a {
    color: var(--text-dim);
    font-size: 14px;
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* === About === */
.about-hero {
    padding-bottom: 88px;
}
.about-hero__text {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 760px;
    margin: 20px auto 0;
}
.about-section {
    padding: 80px 0;
}
.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.about-details div,
.about-list li,
.about-contact {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.about-details div {
    padding: 22px;
}
.about-details dt {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.about-details dd {
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
}
.about-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    list-style: none;
}
.about-list li {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.about-list strong {
    font-size: 22px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.about-list span {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.55;
}
.about-contact {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px;
    text-align: center;
}
.about-contact h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.about-contact p {
    color: var(--text-dim);
    margin-bottom: 16px;
}
.about-contact a {
    font-weight: 700;
    font-size: 18px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* === Responsive === */
@media (max-width: 960px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .header__cta { display: none; }
    .burger { display: inline-flex; }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-2);
        border-top: 1px solid var(--border);
        padding: 12px 24px 20px;
        transform: translateY(-110%);
        transition: transform .3s ease;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }
    .nav.is-open { transform: translateY(0); }
    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
        color: var(--text);
    }
    .nav a::after { display: none; }

    .hero { padding: calc(var(--header-h) + 56px) 0 80px; }
    .hero__meta { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
    .section { padding: 72px 0; }
    .section__head { margin-bottom: 40px; }
    .case { padding: 26px; }
    .case__cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
    .container { padding: 0 18px; }
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .partners__grid { grid-template-columns: 1fr 1fr; }
    .hero__actions .btn { flex: 1; }
    .service, .advantage { padding: 22px; }
    .case__kpi { grid-template-columns: 1fr; }
    .case__industry::before { display: none; }
}

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