:root {
    --bg: #08090a;
    --bg-2: #0c0d0f;
    --panel: #101113;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #ededee;
    --dim: #9a9aa0;
    --faint: #5f6064;
    --accent: #c8f135;          /* кислотно-лаймовый, не «нейросетевой» синий */
    --accent-ink: #0a0b06;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.mono { font-family: var(--mono); font-weight: 400; }

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

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
    .cursor {
        display: block;
        position: fixed;
        top: 0; left: 0;
        z-index: 10000;
        pointer-events: none;
        mix-blend-mode: difference;
    }
    .cursor__dot,
    .cursor__ring {
        position: fixed;
        top: 0; left: 0;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }
    .cursor__dot {
        width: 6px; height: 6px;
        background: #fff;
    }
    .cursor__ring {
        width: 34px; height: 34px;
        border: 1px solid rgba(255, 255, 255, 0.7);
        transition: width 0.28s var(--ease), height 0.28s var(--ease),
                    background 0.28s var(--ease), border-color 0.28s var(--ease), opacity 0.28s var(--ease);
    }
    /* hovering interactive elements */
    .cursor.is-hover .cursor__ring {
        width: 56px; height: 56px;
        background: rgba(255, 255, 255, 0.12);
        border-color: transparent;
    }
    .cursor.is-hover .cursor__dot { opacity: 0; }
    /* pressed */
    .cursor.is-down .cursor__ring { width: 26px; height: 26px; }
    /* hide native cursor on fine pointers */
    body.has-cursor,
    body.has-cursor a,
    body.has-cursor button,
    body.has-cursor .link-arrow { cursor: none; }
}

/* ---------- Film grain ---------- */
.grain {
    position: fixed;
    inset: -150%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 7s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-4%, 3%); }
    40% { transform: translate(3%, -5%); }
    60% { transform: translate(-2%, 4%); }
    80% { transform: translate(5%, 2%); }
    100% { transform: translate(0, 0); }
}

/* ---------- Nav (floating pill) ---------- */
.nav {
    position: fixed;
    top: 16px; left: 0; right: 0;
    z-index: 100;
    padding: 0 20px;
    transition: top 0.4s var(--ease);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 12px 10px 22px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: rgba(14, 15, 17, 0.55);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled { top: 10px; }
.nav.is-scrolled .nav__inner {
    background: rgba(12, 13, 15, 0.82);
    border-color: var(--line-2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__word { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.logo__mark {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 18px; height: 18px;
}
.logo__mark span {
    background: var(--accent);
    border-radius: 1.5px;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.logo__mark span:nth-child(2) { opacity: 0.45; }
.logo__mark span:nth-child(3) { opacity: 0.45; }
.logo:hover .logo__mark span:nth-child(1) { transform: translate(-1px, -1px); }
.logo:hover .logo__mark span:nth-child(4) { transform: translate(1px, 1px); }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
    display: inline-flex; align-items: baseline; gap: 7px;
    font-size: 15px; color: var(--dim);
    transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__idx { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.nav__cta {
    padding: 9px 18px;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    color: var(--text) !important;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__cta:hover { background: var(--accent); color: var(--accent-ink) !important; border-color: var(--accent); }

.nav__avito { position: relative; }
.nav__avito::after {
    content: ""; position: absolute; left: 0; bottom: -3px;
    width: 100%; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav__avito:hover::after { transform: scaleX(1); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--text); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 500;
    padding: 14px 24px;
    border-radius: 100px;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(200, 241, 53, 0.22); }
.btn--lg { padding: 17px 30px; font-size: 17px; }

.link-arrow {
    position: relative;
    font-size: 16px; color: var(--dim);
    padding-bottom: 2px;
}
.link-arrow::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s var(--ease);
}
.link-arrow:hover { color: var(--text); }
.link-arrow:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 168px 0 0; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
    opacity: 0.55;
}
.hero__inner { padding-bottom: 70px; }

.hero__meta {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    font-size: 13px; color: var(--faint);
    margin-bottom: 40px;
}
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--dim); }
.status__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(200, 241, 53, 0.6);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(200, 241, 53, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(200, 241, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(200, 241, 53, 0); }
}

.hero__title {
    font-size: clamp(42px, 7.6vw, 96px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: 56px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span {
    display: block;
    transform: translateY(105%);
    animation: rise 0.9s var(--ease) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: 0.05s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.16s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.27s; }
.hero__title em { font-style: normal; color: var(--accent); }
@keyframes rise { to { transform: translateY(0); } }

.hero__bottom {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: end;
    border-top: 1px solid var(--line);
    padding-top: 34px;
}
.hero__sub { font-size: 18px; color: var(--dim); max-width: 540px; }
.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- MacBook mockup ---------- */
.macbook {
    --open: 0;
    grid-column: 1 / -1;
    position: relative;
    margin-top: 76px;
    perspective: 2200px;
    perspective-origin: 50% 24%;
}
.macbook.is-open { --open: 1; }
.macbook__tilt {
    position: relative;
    width: min(100%, 860px);
    margin: 0 auto;
    transform-style: preserve-3d;
    transform: rotateX(8deg) rotateY(0deg);
    transition: transform 0.25s var(--ease);
    will-change: transform;
}

/* Screen / lid — pivots open when .macbook.is-open is set */
.macbook__screen {
    position: relative;
    transform-style: preserve-3d;
    transform-origin: bottom center;
    transform: rotateX(-92deg);
    transition: transform 1.6s var(--ease);
    border-radius: 22px 22px 8px 8px;
    padding: 12px 12px 14px;
    background: linear-gradient(180deg, #2a2c30 0%, #18191c 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.18);
}
.macbook.is-open .macbook__screen { transform: rotateX(0deg); }
/* back of the lid shown while closing */
.macbook__screen::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: 22px 22px 8px 8px;
    background: linear-gradient(180deg, #303236, #16171a);
    transform: rotateY(180deg) translateZ(1px);
    backface-visibility: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.macbook__bezel {
    position: relative;
    border-radius: 12px;
    padding: 18px 12px 12px;
    background: #050506;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.macbook__camera {
    position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: #111316;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.macbook__camera::after {
    content: ""; position: absolute; inset: 1.6px; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #2b6b6b, #0a1414);
}
.macbook__display {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    background: #0a0b0d;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
/* screen content brightens as the lid opens */
.macbook__display::before {
    content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
    background: #04040a;
    opacity: 1;
    transition: opacity 1.4s var(--ease);
}
.macbook.is-open .macbook__display::before { opacity: 0; }
/* glossy reflection sweeping the screen */
.macbook__display::after {
    content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 100%);
    opacity: 0.7;
    transition: transform 0.3s var(--ease);
}

/* Base / keyboard deck */
.macbook__base {
    position: relative;
    width: 106%;
    left: -3%;
    height: 16px;
    margin-top: -2px;
    border-radius: 2px 2px 12px 12px;
    background: linear-gradient(180deg, #3a3c40 0%, #1d1e21 55%, #46484c 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: rotateX(78deg);
    transform-origin: top center;
}
.macbook__notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 16%; height: 7px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, #141517, #2a2b2e);
    box-shadow: inset 0 -1px 1px rgba(0,0,0,0.6);
}
.macbook__shadow {
    position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
    width: 70%; height: 60px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 70%);
    filter: blur(12px);
    z-index: -1;
    opacity: 0.35;
    transition: opacity 1.4s var(--ease);
}
.macbook.is-open .macbook__shadow { opacity: 1; }

/* ---------- Dashboard on screen ---------- */
.dash { position: absolute; inset: 0; display: flex; flex-direction: column; background: #0b0c0e; font-size: 11px; }
.dash__bar {
    display: flex; align-items: center; gap: 12px;
    padding: 0 14px; height: 34px;
    background: #121316; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash__dots { display: inline-flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c2e32; }
.dash__dots i:nth-child(1) { background: #ff5f57; }
.dash__dots i:nth-child(2) { background: #febc2e; }
.dash__dots i:nth-child(3) { background: #28c840; }
.dash__url { flex: 1; text-align: center; color: var(--faint); font-size: 11px; }
.dash__live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 10px; letter-spacing: 0.08em; }
.dash__live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s var(--ease) infinite; }

.dash__body { flex: 1; display: grid; grid-template-columns: 54px 1fr; min-height: 0; }
.dash__side {
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 20px;
    background: #0e0f12;
}
.dash__logo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 16px; height: 16px; }
.dash__logo i { background: var(--accent); border-radius: 1px; }
.dash__logo i:nth-child(2), .dash__logo i:nth-child(3) { opacity: 0.4; }
.dash__nav { list-style: none; display: flex; flex-direction: column; gap: 12px; width: 100%; align-items: center; }
.dash__nav li { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.dash__nav li.is-active { background: var(--accent); width: 26px; }

.dash__main { padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; }
.dash__row--top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
    background: #111317; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.stat__k { font-size: 9px; color: var(--faint); letter-spacing: 0.04em; }
.stat__v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.stat__v small { font-size: 13px; color: var(--dim); }
.stat__bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.stat__bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width 1.1s var(--ease); }
.macbook.is-live .stat__bar span { width: var(--w); }

.dash__graph { background: #111317; border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; padding: 12px; }
.dash__graph-head { display: flex; justify-content: space-between; font-size: 9px; color: var(--faint); margin-bottom: 8px; }
.dash__ok { color: var(--accent); }
.graph { width: 100%; height: 64px; display: block; }
.graph__line { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.macbook.is-live .graph__line { animation: draw 2s var(--ease) 0.3s forwards; }
.graph__area { opacity: 0; }
.macbook.is-live .graph__area { animation: fadein 1.2s var(--ease) 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.dash__log { display: flex; flex-direction: column; gap: 7px; }
.logline { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--dim); }
.logline__t { color: var(--faint); font-size: 9px; }
.logline__d { width: 6px; height: 6px; border-radius: 50%; background: #febc2e; flex-shrink: 0; }
.logline__d.ok { background: var(--accent); }
.logline__m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Marquee ---------- */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 16px 0;
    background: var(--bg-2);
}
.marquee__track {
    display: inline-flex; align-items: center; gap: 26px;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 14px; color: var(--dim);
    animation: scroll 28s linear infinite;
}
.marquee__track i { color: var(--accent); font-style: normal; }
.marquee__track span { letter-spacing: 0.02em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.sec-head { margin-bottom: 64px; }
.sec-head__tag {
    display: inline-block; font-size: 12px; letter-spacing: 0.1em;
    color: var(--faint); margin-bottom: 20px;
    padding-left: 14px; position: relative;
}
.sec-head__tag::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 7px; height: 7px; background: var(--accent);
    transform: translateY(-50%);
}
.sec-head__title {
    font-size: clamp(28px, 4.6vw, 52px);
    font-weight: 600; letter-spacing: -0.03em;
    line-height: 1.08; max-width: 860px;
}

/* ---------- Services (list, not generic cards) ---------- */
.services { padding: 130px 0; }
.svc { list-style: none; border-top: 1px solid var(--line); }
.svc__row {
    display: grid;
    grid-template-columns: 90px minmax(0, 360px) 1fr;
    gap: 30px;
    align-items: baseline;
    padding: 36px 8px;
    border-bottom: 1px solid var(--line);
    transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.svc__row:hover { background: var(--bg-2); padding-left: 24px; }
.svc__idx { font-size: 14px; color: var(--accent); }
.svc__name { font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.svc__desc { font-size: 16px; color: var(--dim); max-width: 480px; }

/* ---------- Approach ---------- */
.approach {
    padding: 130px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.approach__inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 70px; }
.approach__head { margin-bottom: 0; position: sticky; top: 110px; align-self: start; }
.approach__lead { margin-top: 26px; font-size: 17px; color: var(--dim); max-width: 420px; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.step {
    display: grid; grid-template-columns: 60px 1fr; gap: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px 30px;
    transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step__no { font-size: 15px; color: var(--accent); padding-top: 5px; }
.step h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { font-size: 16px; color: var(--dim); max-width: 460px; }

/* ---------- About ---------- */
.about { padding: 130px 0; }
.about__statement em { font-style: normal; color: var(--accent); }
.about__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.fact {
    padding: 34px 24px 34px 0;
    border-right: 1px solid var(--line);
    transition: background 0.35s var(--ease);
}
.fact:last-child { border-right: none; }
.fact:hover { background: var(--bg-2); }
.fact__k { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 16px; padding-left: 24px; }
.fact:first-child .fact__k { padding-left: 0; }
.fact__v { display: block; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; padding-left: 24px; }
.fact:first-child .fact__v { padding-left: 0; }

/* ---------- Contact ---------- */
.contact { padding: 60px 0 130px; }
.contact__card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 80px 60px;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 14px),
        var(--panel);
    overflow: hidden;
}
.contact__card::after {
    content: ""; position: absolute; right: -80px; top: -80px;
    width: 280px; height: 280px;
    border: 1px solid var(--line);
    border-radius: 50%;
}
.contact__card .sec-head__tag { margin-bottom: 24px; }
.contact__title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; max-width: 640px; margin-bottom: 22px; }
.contact__sub { font-size: 18px; color: var(--dim); max-width: 560px; margin-bottom: 38px; }
.contact__note { display: block; margin-top: 18px; font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 34px; }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__tagline { margin-top: 14px; font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }
.footer__cols { display: flex; gap: 30px; flex-wrap: wrap; }
.footer__cols a { font-size: 15px; color: var(--dim); transition: color 0.25s var(--ease); }
.footer__cols a:hover { color: var(--text); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: 12px; color: var(--faint); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero__title .line > span { animation: none; transform: none; }
    .marquee__track, .grain, .status__dot, .dash__live-dot { animation: none; }
    .graph__line { stroke-dashoffset: 0; }
    .graph__area { opacity: 1; }
    .macbook__tilt { transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    .container { padding: 0 22px; }

    /* backdrop-filter создаёт containing block для position:fixed потомков,
       из-за чего мобильное меню позиционировалось относительно плашки, а не экрана.
       Отключаем размытие у плашки на мобильных — само меню размывается отдельно. */
    .nav__inner {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(12, 13, 15, 0.92);
    }

    .nav__links {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(80vw, 330px);
        flex-direction: column; align-items: flex-start; justify-content: center;
        gap: 30px; padding: 44px;
        background: rgba(10, 11, 13, 0.94);
        backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--line);
        transform: translateX(100%);
        transition: transform 0.45s var(--ease);
    }
    .nav__links.is-open { transform: translateX(0); }
    .nav__links a { font-size: 22px; }
    .nav__burger { display: flex; z-index: 110; }

    /* блокируем прокрутку страницы, пока открыто меню */
    body.menu-open { overflow: hidden; }

    .hero { padding-top: 130px; }
    .hero__bottom { grid-template-columns: 1fr; gap: 32px; align-items: start; }
    .hero__actions { justify-content: flex-start; }
    .macbook { margin-top: 56px; }
    .macbook__tilt { transform: rotateX(6deg) !important; }
    .dash { font-size: 10px; }
    .stat__v { font-size: 18px; }

    .services, .approach, .about { padding: 84px 0; }
    .contact { padding: 30px 0 84px; }

    .svc__row { grid-template-columns: 1fr; gap: 12px; padding: 30px 0; }
    .svc__row:hover { padding-left: 0; }
    .svc__desc { max-width: 100%; }

    .approach__inner { grid-template-columns: 1fr; gap: 44px; }
    .approach__head { position: static; }

    .about__grid { grid-template-columns: 1fr 1fr; }
    .fact { border-bottom: 1px solid var(--line); }
    .fact:nth-child(2) { border-right: none; }
    .fact__k, .fact__v { padding-left: 22px; }
    .fact:nth-child(odd) .fact__k, .fact:nth-child(odd) .fact__v { padding-left: 0; }

    .contact__card { padding: 56px 28px; }
}

@media (max-width: 460px) {
    .hero__meta { gap: 14px; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { justify-content: center; }
    .link-arrow { text-align: center; }
    .btn--lg { width: 100%; justify-content: center; }
    .about__grid { grid-template-columns: 1fr; }
    .fact { border-right: none; }
    .fact__k, .fact__v { padding-left: 0; }
}
