/* ============================================================
   ELEXO — Digital Growth Studio
   Storybook landing · Royal Violet palette (EvoCRM)
   Layout, typography, navigation, storybook mechanics.
   ============================================================ */

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/vazirmatn-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/vazirmatn-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #0A0512;
    --bg-deep: #05030A;
    --bg-ink: #07030F;
    --surface: rgba(23, 15, 43, 0.55);
    --surface-2: rgba(15, 9, 30, 0.72);
    --primary: #8B5CF6;
    --primary-soft: #A78BFA;
    --primary-pale: #C4B5FD;
    --primary-deep: #6D28D9;
    --secondary: #D946EF;
    --secondary-soft: #E879F9;
    --brand-a: #40D2FF;
    --brand-b: #8D94FF;
    --brand-c: #C467FF;
    --gold: #FBBF24;
    --cyan: #67E8F9;
    --text: #F3F0FA;
    --muted: #9B93B3;
    --muted-dim: rgba(155, 147, 179, 0.8); /* AA: 4.62:1 on --bg */
    --line: rgba(167, 139, 250, 0.14);
    --line-strong: rgba(167, 139, 250, 0.3);
    --glass-blur: blur(18px) saturate(140%);
    --radius-sm: 14px;
    --radius: 22px;
    --radius-lg: 30px;
    --shell: min(1200px, calc(100% - 48px));
    --font: 'Vazirmatn', Tahoma, sans-serif;
    --latin: 'Space Grotesk', 'Vazirmatn', sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 78px;
    --grad-brand: linear-gradient(112deg, #40D2FF 0%, #8D94FF 52%, #C467FF 100%);
    --grad-violet: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 42%, #D946EF 100%);
    --shadow-1: 0 24px 70px rgba(3, 1, 10, 0.55);
    --glow: 0 0 24px rgba(139, 92, 246, 0.45);
}

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

html {
    direction: rtl;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    overflow-x: clip;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

main { position: relative; z-index: 3; }

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible {
    outline: 2px solid rgba(196, 181, 253, 0.75);
    outline-offset: 3px;
    border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #05030A; }
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.34);
    border-radius: 10px;
    border: 2px solid #05030A;
}
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.5); }

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip {
    position: fixed;
    top: 10px;
    inset-inline-start: 50%;
    transform: translate(-50%, -160%);
    z-index: 400;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    transition: transform 0.3s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

/* ============================================================
   Typography helpers
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--latin);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow [dir="ltr"] { font-family: var(--latin); }

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-a);
    box-shadow: 0 0 12px var(--brand-a);
    position: relative;
    flex-shrink: 0;
}
.pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(64, 210, 255, 0.5);
    animation: pulseRing 2.4s ease-out infinite;
}

.grad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section {
    position: relative;
    z-index: 3;
    padding: clamp(72px, 9vw, 132px) 0;
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(30px, 4vw, 52px);
}

.section-title {
    margin: 14px 0 14px;
    font-size: clamp(1.75rem, 3.1vw, 2.75rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -0.2px;
}

.section-lead {
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    line-height: 2;
    color: var(--muted);
    max-width: 58ch;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    isolation: isolate;
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 45%, #C026D3 100%); /* AA: white text 4.7–5.7:1 */
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(64, 210, 255, 0.42), transparent 48%);
    z-index: -1;
    opacity: 0.65;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(139, 92, 246, 0.42), 0 0 0 1px rgba(196, 181, 253, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.btn--ghost {
    color: var(--text);
    background: rgba(23, 15, 43, 0.5);
    border-color: var(--line);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}
.btn--ghost .ico { color: var(--primary-soft); }
.btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(139, 92, 246, 0.12);
}
.btn--sm { height: 37px; padding: 0 14px; font-size: 0.76rem; border-radius: 11px; gap: 7px; }
.btn--sm .ico { width: 15px; height: 15px; }
.btn--lg { height: 54px; padding: 0 26px; font-size: 0.93rem; border-radius: 16px; }
.btn:active { transform: translateY(1px) scale(0.99); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.26); }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 20px;
    background: radial-gradient(circle at 50% 42%, #0d0618 0%, #05030A 72%);
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark {
    width: 88px;
    height: 73px;
    filter: drop-shadow(0 0 30px rgba(141, 148, 255, 0.5));
    animation: prePulse 2.2s ease-in-out infinite;
}
.preloader__mark svg { width: 100%; height: 100%; }
.preloader__word {
    font-family: var(--latin);
    font-size: 11px;
    letter-spacing: 0.62em;
    color: var(--muted);
    padding-inline-start: 0.62em;
}
.preloader__bar {
    width: 120px;
    height: 2px;
    border-radius: 2px;
    background: rgba(167, 139, 250, 0.16);
    overflow: hidden;
}
.preloader__bar i {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: var(--grad-brand);
    animation: preBar 1.3s ease-in-out infinite;
}

/* ============================================================
   Progress · toast
   ============================================================ */
.scroll-progress {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: 2px;
    z-index: 130;
    background: rgba(167, 139, 250, 0.07);
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #40D2FF, #8D94FF 55%, #C467FF);
    box-shadow: 0 0 14px rgba(141, 148, 255, 0.7);
}

/* ---------- Page-load progress ---------- */
/* Fixed and pointer-transparent: it never shifts layout, so CLS stays 0. */
.page-load {
    position: fixed;
    inset-inline: 0;
    top: 0;
    height: 2px;
    z-index: 140;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease 0.12s;
}
.page-load i {
    display: block;
    height: 100%;
    width: 8%;
    background: var(--grad-brand);
    box-shadow: 0 0 14px rgba(141, 148, 255, 0.7);
    transition: width 0.45s cubic-bezier(0.22, 0.85, 0.3, 1);
}
.page-load.is-done { opacity: 0; }
.page-load.is-done i { width: 100%; transition: width 0.25s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .page-load, .page-load i { transition: none; }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 250;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(17, 10, 32, 0.95);
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-size: 0.78rem;
    box-shadow: 0 18px 44px rgba(3, 1, 10, 0.55);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 14px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s;
    pointer-events: none;
    white-space: nowrap;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid transparent;
    transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease, box-shadow 0.45s ease;
}
.nav.is-scrolled {
    background: rgba(8, 4, 16, 0.7);
    border-bottom-color: rgba(167, 139, 250, 0.12);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 50px rgba(3, 1, 10, 0.35);
}
.nav__inner {
    width: min(1280px, calc(100% - 44px));
    height: var(--nav-h);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.24), rgba(64, 210, 255, 0.08));
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.brand__mark svg { width: 24px; height: 20px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.35; }
.brand__text strong {
    font-family: var(--latin);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.17em;
}
.brand__text small { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.02em; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links > a {
    position: relative;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 0.81rem;
    color: var(--muted);
    transition: color 0.25s ease, background 0.25s ease;
}
.nav__links > a:hover { color: var(--text); background: rgba(139, 92, 246, 0.1); }
.nav__links > a.btn--primary { color: #fff; }
.nav__links > a.btn--ghost { color: var(--text); }
.nav__links > a.is-active { color: #fff; }
.nav__links > a.is-active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    inset-inline: 30%;
    height: 1px;
    background: var(--grad-brand);
    box-shadow: 0 0 8px rgba(141, 148, 255, 0.7);
}
.nav__menu-call { display: none; }
.nav__menu-panel { display: none; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__call { border-radius: 12px; }
.nav__panel { border-radius: 12px; }
.nav__panel .ico { width: 16px; height: 16px; }

.burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(23, 15, 43, 0.55);
    cursor: pointer;
    place-items: center;
    gap: 5px;
    padding: 12px 10px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.burger span {
    display: block;
    width: 20px;
    height: 1.6px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.burger[aria-expanded="true"] { border-color: var(--line-strong); background: rgba(139, 92, 246, 0.16); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-6.6px) rotate(-45deg); }

/* ============================================================
   Hero / cover
   ============================================================ */
.hero {
    position: relative;
    z-index: 3;
    width: min(1260px, calc(100% - 48px));
    min-height: 100svh;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: clamp(20px, 3vw, 56px);
    padding: calc(var(--nav-h) + 36px) 0 96px;
}

.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero__copy > * {
    opacity: 0;
    transform: translateY(18px);
    animation: heroIn 1s var(--ease) forwards;
}
.hero__copy > *:nth-child(1) { animation-delay: 0.55s; }
.hero__copy > *:nth-child(2) { animation-delay: 0.68s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.82s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.94s; }
.hero__copy > *:nth-child(5) { animation-delay: 1.06s; }

.hero__title {
    margin: 20px 0 20px;
    font-size: clamp(1.95rem, 3.55vw, 3.35rem);
    font-weight: 800;
    line-height: 1.44;
    letter-spacing: -0.2px;
}
.hero__keep { white-space: nowrap; }
.hero__title .grad {
    filter: drop-shadow(0 0 26px rgba(141, 148, 255, 0.24));
}

.hero__lead {
    max-width: 47ch;
    font-size: clamp(0.9rem, 1.05vw, 1.02rem);
    line-height: 2.1;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 0;
    margin-top: 30px;
    font-size: 0.73rem;
    color: var(--muted);
}
.hero__trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero__trust li + li::before {
    content: '';
    width: 4px;
    height: 4px;
    margin-inline: 14px;
    border-radius: 50%;
    background: var(--primary-soft);
    opacity: 0.55;
}

.hero__stage {
    position: relative;
    z-index: 1;
    min-height: clamp(380px, 58vh, 640px);
    display: grid;
    place-items: center;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.hero__cue {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.32);
    display: grid;
    justify-items: center;
    padding-top: 8px;
    z-index: 4;
}
.hero__cue span {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--primary-soft);
    animation: cueDrop 2s ease-in-out infinite;
}

/* ============================================================
   Table of contents
   ============================================================ */
.toc {
    position: relative;
    z-index: 3;
    padding: clamp(30px, 5vw, 60px) 0 clamp(50px, 7vw, 100px);
}
.toc .section-head { max-width: 760px; }

.toc__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.toc__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 18px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(158deg, rgba(23, 15, 43, 0.55), rgba(10, 5, 18, 0.4));
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}
.toc__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(260px at 92% 0%, rgba(139, 92, 246, 0.22), transparent 72%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.toc__item:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 24px 54px rgba(3, 1, 10, 0.45);
}
.toc__item:hover::after { opacity: 1; }

.toc__num {
    font-family: var(--latin);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196, 181, 253, 0.48);
    min-width: 42px;
    transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}
.toc__item:hover .toc__num { color: rgba(196, 181, 253, 0.92); -webkit-text-stroke-color: transparent; }

.toc__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toc__body strong { font-size: 1rem; font-weight: 700; }
.toc__body small { font-size: 0.71rem; line-height: 1.75; color: var(--muted); }

.toc__arrow {
    margin-inline-start: auto;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.toc__arrow .ico { width: 15px; height: 15px; }
.toc__item:hover .toc__arrow {
    transform: translateX(-3px);
    background: rgba(139, 92, 246, 0.16);
    border-color: var(--line-strong);
    color: #fff;
}

.toc__tag {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    color: #F5D0FE;
    background: rgba(217, 70, 239, 0.14);
    border: 1px solid rgba(217, 70, 239, 0.3);
}

/* ============================================================
   Storybook
   ============================================================ */
.book {
    position: relative;
    z-index: 3;
    height: 820vh;
    height: calc(var(--vh, 1vh) * 820);
}
.book__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    perspective: 2200px;
    perspective-origin: 86% 46%;
    overflow: hidden;
}
.book__stage::before,
.book__stage::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    height: 110px;
    z-index: 20;
    pointer-events: none;
}
.book__stage::before { top: 0; background: linear-gradient(180deg, rgba(5, 3, 10, 0.55), transparent); }
.book__stage::after { bottom: 0; background: linear-gradient(0deg, rgba(5, 3, 10, 0.55), transparent); }

.chapter {
    position: absolute;
    inset: 0;
    transform-origin: 100% 50%;
    backface-visibility: hidden;
    will-change: transform, opacity;
    background:
        radial-gradient(80% 80% at 18% 30%, var(--tint, rgba(139, 92, 246, 0.1)), transparent 62%),
        #080410;
}
.chapter::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(5, 3, 10, 0.55), rgba(5, 3, 10, 0.14) 10%, transparent 26%);
}
.chapter::after {
    content: '';
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 2px;
    z-index: 6;
    pointer-events: none;
    opacity: 0.8;
    background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.5) 18%, rgba(255, 255, 255, 0.65) 50%, rgba(196, 181, 253, 0.5) 82%, transparent);
    box-shadow: 0 0 20px rgba(196, 181, 253, 0.28);
}

/* starry paper of every page */
.chapter__stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.chapter__field {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    background: transparent;
}
.chapter__stars i {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    opacity: var(--o, 0.75);
    animation: pageTwinkle var(--tw, 4.5s) ease-in-out var(--td, 0s) infinite;
}
@keyframes pageTwinkle {
    0%, 100% { opacity: calc(var(--o, 0.75) * 0.45); transform: scale(0.82); }
    50% { opacity: var(--o, 0.75); transform: scale(1.12); }
}

.chapter__inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 124px));
    height: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: clamp(22px, 4vw, 66px);
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: 88px;
}

.chapter__ghost {
    position: absolute;
    z-index: 0;
    left: 3%;
    bottom: 3%;
    font-family: var(--font);
    font-size: clamp(8rem, 18vw, 16rem);
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196, 181, 253, 0.11);
    pointer-events: none;
    user-select: none;
}

.chapter__copy { position: relative; z-index: 3; max-width: 620px; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 0.64rem;
    color: var(--muted);
}
.kicker__num {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(64, 210, 255, 0.22), rgba(196, 103, 255, 0.22));
    border: 1px solid rgba(167, 139, 250, 0.32);
    font-family: var(--font);
    font-size: 0.68rem;
    font-weight: 700;
    color: #E9E3F7;
    box-shadow: 0 0 18px rgba(141, 148, 255, 0.18);
}
.kicker [dir="ltr"] {
    font-family: var(--latin);
    letter-spacing: 0.2em;
    font-size: 0.62rem;
}

.chapter__title {
    margin: 16px 0 14px;
    font-size: clamp(1.62rem, 2.85vw, 2.72rem);
    font-weight: 800;
    line-height: 1.46;
    letter-spacing: -0.2px;
}

.chapter__text {
    font-size: clamp(0.86rem, 0.98vw, 0.97rem);
    line-height: 2.05;
    color: var(--muted);
    max-width: 54ch;
}

.chapter__points {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}
.chapter__points li {
    position: relative;
    padding-inline-start: 23px;
    font-size: 0.84rem;
    line-height: 1.9;
    color: rgba(243, 240, 250, 0.82);
}
.chapter__points li::before {
    content: '';
    position: absolute;
    top: 0.72em;
    inset-inline-start: 2px;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    transform: rotate(45deg);
    background: var(--grad-brand);
    box-shadow: 0 0 10px rgba(141, 148, 255, 0.65);
}

.chapter__step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-size: 0.67rem;
    letter-spacing: 0.03em;
    color: var(--muted-dim);
}
.chapter__step i {
    flex: 1;
    height: 1px;
    max-width: 180px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.32), transparent);
}

.chapter__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.66rem;
    color: #F5D0FE;
    background: rgba(217, 70, 239, 0.1);
    border: 1px solid rgba(217, 70, 239, 0.32);
    box-shadow: 0 0 24px rgba(217, 70, 239, 0.12);
}
.chapter__badge .ico { width: 12px; height: 12px; }

.chapter__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.chapter__scene {
    position: relative;
    z-index: 2;
    height: min(52vh, 480px);
    min-height: 300px;
    display: grid;
    place-items: center;
    perspective: 1250px;
    perspective-origin: 50% 42%;
    transform-style: preserve-3d;
}

.chapter__shade {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(270deg, rgba(5, 3, 10, 0.94), rgba(5, 3, 10, 0.55) 42%, rgba(5, 3, 10, 0.1) 78%);
}

.chapter__edge {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    z-index: 6;
    background: linear-gradient(180deg, transparent, rgba(196, 181, 253, 0.35) 30%, rgba(196, 181, 253, 0.35) 70%, transparent);
    pointer-events: none;
}

.chapter__folio {
    position: absolute;
    z-index: 6;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--latin);
    font-size: 0.64rem;
    letter-spacing: 0.3em;
    color: rgba(196, 181, 253, 0.38);
    pointer-events: none;
    white-space: nowrap;
}
.chapter--final .chapter__paragraph { margin: 0; }

/* ============================================================
   Story rail + counter
   ============================================================ */
.rail {
    position: fixed;
    left: clamp(14px, 2vw, 30px);
    top: 50%;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s var(--ease), visibility 0.5s;
}
body.is-story .rail { opacity: 1; visibility: visible; transform: translateY(-50%); }

.rail__dot {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(10, 5, 18, 0.6);
    backdrop-filter: blur(12px);
    color: var(--muted);
    font-family: var(--latin);
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.3s var(--ease), color 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.rail__dot:hover {
    transform: scale(1.1);
    color: #fff;
    border-color: var(--line-strong);
    background: rgba(139, 92, 246, 0.16);
}
.rail__dot.is-active {
    color: #0A0512;
    background: linear-gradient(135deg, #40D2FF, #8D94FF 52%, #C467FF);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(141, 148, 255, 0.5);
}
.rail__dot::after {
    content: attr(data-label);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(13, 7, 26, 0.94);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.66rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.rail__dot:hover::after { opacity: 1; transform: translateY(-50%); }

.counter {
    position: fixed;
    left: clamp(14px, 2vw, 30px);
    bottom: 24px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(10, 5, 18, 0.62);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}
body.is-story .counter { opacity: 1; visibility: visible; }
.counter__now { font-size: 0.82rem; font-weight: 700; color: #fff; }
.counter__total { font-family: var(--latin); font-size: 0.66rem; color: var(--muted); }
.counter__track {
    width: 54px;
    height: 2px;
    border-radius: 2px;
    background: rgba(167, 139, 250, 0.18);
    overflow: hidden;
}
.counter__track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--grad-brand);
    transition: width 0.18s linear;
}

/* ============================================================
   Services / bento
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 216px;
    padding: 22px 22px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(158deg, rgba(24, 16, 46, 0.62), rgba(9, 5, 20, 0.55));
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 18px 46px rgba(3, 1, 10, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.28s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: radial-gradient(340px at var(--mx, 80%) var(--my, 0%), rgba(167, 139, 250, 0.18), transparent 68%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}
.card:hover {
    border-color: rgba(167, 139, 250, 0.34);
    box-shadow: 0 30px 70px rgba(3, 1, 10, 0.48), 0 0 0 1px rgba(167, 139, 250, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.card:hover::before { opacity: 1; }
.card[data-tilt] {
    transform: perspective(1000px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg));
}
.card[data-tilt]:hover {
    transform: perspective(1000px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)) translateY(-5px);
}

.card > * { position: relative; z-index: 1; }

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--primary-pale);
    border: 1px solid rgba(167, 139, 250, 0.22);
    background: linear-gradient(140deg, rgba(139, 92, 246, 0.2), rgba(64, 210, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card__icon .ico { width: 21px; height: 21px; }
.card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.6rem;
    color: #F5D0FE;
    background: rgba(217, 70, 239, 0.12);
    border: 1px solid rgba(217, 70, 239, 0.28);
}
.card__tag .ico { width: 11px; height: 11px; }

.card__title {
    margin: 16px 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.6;
}
.card__text { font-size: 0.79rem; line-height: 1.95; color: var(--muted); max-width: 42ch; }

.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card__tags li {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.64rem;
    color: #CFC6E6;
    background: rgba(139, 92, 246, 0.09);
    border: 1px solid rgba(167, 139, 250, 0.15);
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 0.75rem;
    color: var(--primary-soft);
    width: fit-content;
}
.card__more .ico { width: 14px; height: 14px; transition: transform 0.3s ease; }
.card__more:hover { color: #fff; }
.card__more:hover .ico { transform: translateX(-4px); }

.card--feature {
    grid-column: span 2;
    grid-row: span 2;
    padding: 26px 26px 26px;
    background:
        radial-gradient(120% 90% at 92% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(217, 70, 239, 0.1), transparent 60%),
        linear-gradient(158deg, rgba(26, 17, 50, 0.72), rgba(9, 5, 20, 0.6));
    border-color: rgba(167, 139, 250, 0.22);
}
.card--feature .card__title { font-size: 1.45rem; margin-top: 18px; }
.card--feature .card__text { font-size: 0.85rem; max-width: 44ch; }
.card--feature .card__tags { margin-top: 16px; }

.mini-ui {
    position: relative;
    margin-top: auto;
    padding: 12px 14px;
    height: 152px;
    border-radius: 14px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: linear-gradient(165deg, rgba(13, 7, 27, 0.9), rgba(8, 4, 17, 0.75));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 22px;
}
.mini-ui::after {
    content: '';
    position: absolute;
    inset: auto -30% -60% -30%;
    height: 90px;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.25), transparent 70%);
    filter: blur(12px);
}
.mini-ui__head { display: flex; align-items: center; gap: 6px; }
.mini-ui__head i {
    width: 16px; height: 16px; border-radius: 5px;
    background: var(--grad-brand);
    opacity: 0.85;
}
.mini-ui__head b {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: rgba(167, 139, 250, 0.25);
}
.mini-ui__head b:nth-child(2) { width: 64px; }
.mini-ui__head b:nth-child(3) { width: 34px; margin-inline-start: auto; background: rgba(52, 211, 153, 0.35); }
.mini-ui__row { display: flex; align-items: center; gap: 7px; }
.mini-ui__row i {
    width: 13px; height: 13px; border-radius: 50%;
    background: rgba(167, 139, 250, 0.22);
    border: 1px solid rgba(167, 139, 250, 0.2);
}
.mini-ui__row b { height: 4px; width: 46%; border-radius: 3px; background: rgba(167, 139, 250, 0.18); }
.mini-ui__row em {
    height: 10px; width: 30px; margin-inline-start: auto;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(167, 139, 250, 0.22);
}
.mini-ui__row:nth-child(3) em { background: rgba(52, 211, 153, 0.16); border-color: rgba(52, 211, 153, 0.28); }
.mini-ui__bars {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    flex: 1;
    padding-top: 6px;
}
.mini-ui__bars i {
    flex: 1;
    height: var(--h);
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, rgba(141, 148, 255, 0.85), rgba(139, 92, 246, 0.2));
    box-shadow: 0 0 12px rgba(141, 148, 255, 0.2);
}

.card__art {
    position: absolute;
    inset-inline-end: 18px;
    bottom: 18px;
    width: 72px;
    height: 50px;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.card:hover .card__art { opacity: 0.95; transform: translateY(-3px); }
.card__art i { position: absolute; display: block; }

.card__art--server i {
    left: 0; right: 0; height: 11px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(30, 22, 58, 0.95), rgba(15, 9, 30, 0.95));
    border: 1px solid rgba(167, 139, 250, 0.35);
}
.card__art--server i:nth-child(1) { top: 0; }
.card__art--server i:nth-child(2) { top: 18px; }
.card__art--server i:nth-child(3) { top: 36px; }
.card__art--server i::after {
    content: '';
    position: absolute;
    left: 6px; top: 4px;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: #67E8F9;
    box-shadow: 0 0 7px #67E8F9;
}

.card__art--web i:nth-child(1) {
    inset: 0;
    border-radius: 5px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(15, 9, 30, 0.85);
}
.card__art--web i:nth-child(1)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 9px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.25);
}
.card__art--web i:nth-child(2) {
    left: 8px; right: 30px; top: 17px; height: 5px;
    border-radius: 2px;
    background: rgba(141, 148, 255, 0.5);
}
.card__art--web i:nth-child(3) {
    left: 8px; width: 18px; top: 28px; height: 12px;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(64, 210, 255, 0.6), rgba(196, 103, 255, 0.45));
}

.card__art--ui i {
    width: 20px; height: 20px;
    border-radius: 5px;
    border: 1px solid rgba(167, 139, 250, 0.4);
    background: rgba(139, 92, 246, 0.14);
}
.card__art--ui i:nth-child(1) { left: 0; top: 0; }
.card__art--ui i:nth-child(2) { left: 26px; top: 0; }
.card__art--ui i:nth-child(3) { left: 0; top: 26px; width: 46px; background: rgba(64, 210, 255, 0.16); }

.card__art--code i {
    height: 5px;
    border-radius: 3px;
    background: rgba(141, 148, 255, 0.5);
}
.card__art--code i:nth-child(1) { top: 6px; left: 0; width: 54px; }
.card__art--code i:nth-child(2) { top: 20px; left: 12px; width: 46px; background: rgba(196, 103, 255, 0.5); }
.card__art--code i:nth-child(3) { top: 34px; left: 4px; width: 60px; background: rgba(64, 210, 255, 0.4); }

.card__art--ai i:nth-child(1) {
    left: 17px; top: 0; width: 32px; height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #8D94FF 30%, #8B5CF6 65%, #3B1D6E);
    box-shadow: 0 0 22px rgba(141, 148, 255, 0.55);
}
.card__art--ai i:nth-child(2) {
    left: 8px; top: 9px; width: 50px; height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.45);
    transform: rotate(-22deg);
}
.card__art--ai i:nth-child(3) {
    left: 55px; top: 3px; width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.card__art--seo i:nth-child(1) {
    left: 10px; top: 2px; width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.4);
}
.card__art--seo i:nth-child(2) {
    left: 22px; top: 14px; width: 22px; height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(64, 210, 255, 0.9), rgba(139, 92, 246, 0.3));
    box-shadow: 0 0 16px rgba(64, 210, 255, 0.5);
}
.card__art--seo i:nth-child(3) {
    left: 49px; top: 35px; width: 16px; height: 2px;
    border-radius: 2px;
    background: rgba(167, 139, 250, 0.6);
    transform: rotate(45deg);
}

.card__art--ads { display: flex; align-items: flex-end; gap: 5px; }
.card__art--ads i {
    position: relative;
    width: 9px;
    border-radius: 3px 3px 1px 1px;
    background: linear-gradient(180deg, rgba(64, 210, 255, 0.75), rgba(139, 92, 246, 0.25));
}
.card__art--ads i:nth-child(1) { height: 18px; }
.card__art--ads i:nth-child(2) { height: 30px; }
.card__art--ads i:nth-child(3) { height: 44px; }

/* ============================================================
   Why
   ============================================================ */
.why__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: start;
}
.why__intro {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
}
.why__intro .btn { margin-top: 26px; }

.why__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid var(--line);
    transition: border-color 0.3s ease;
}
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__item:hover { border-color: rgba(167, 139, 250, 0.32); }
.why__num {
    font-family: var(--latin);
    font-size: 0.82rem;
    color: var(--muted-dim);
    padding-top: 6px;
    transition: color 0.3s ease;
}
.why__item:hover .why__num { color: var(--primary-soft); }
.why__body h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 5px; }
.why__body p { font-size: 0.83rem; line-height: 1.95; color: var(--muted); max-width: 50ch; }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}
.faq__intro { position: sticky; top: calc(var(--nav-h) + 32px); }

.faq__call {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 11px 15px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(23, 15, 43, 0.45);
    backdrop-filter: blur(14px);
    transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}
.faq__call:hover {
    border-color: var(--line-strong);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}
.faq__call-ico {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--grad-violet);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}
.faq__call-ico .ico { width: 18px; height: 18px; }
.faq__call small { display: block; font-size: 0.63rem; color: var(--muted); }
.faq__call strong { font-family: var(--latin); font-size: 0.92rem; letter-spacing: 0.04em; }

.faq__item {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(158deg, rgba(23, 15, 43, 0.5), rgba(10, 5, 18, 0.4));
    backdrop-filter: blur(12px);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.faq__item[open] {
    border-color: rgba(167, 139, 250, 0.32);
    background: rgba(139, 92, 246, 0.06);
}
.faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.25s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #fff; }
.faq__plus {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--primary-soft);
    transition: transform 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.faq__plus .ico { width: 13px; height: 13px; }
.faq__item[open] .faq__plus {
    transform: rotate(45deg);
    background: rgba(139, 92, 246, 0.18);
    border-color: var(--line-strong);
}
.faq__body {
    padding: 0 18px 18px;
    font-size: 0.82rem;
    line-height: 1.98;
    color: var(--muted);
    animation: faqIn 0.4s ease both;
}

/* ============================================================
   Contact
   ============================================================ */
.section--contact { padding-bottom: clamp(80px, 10vw, 140px); }

.contact__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(26px, 4vw, 52px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(167, 139, 250, 0.22);
    background:
        radial-gradient(circle 380px at 92% -12%, rgba(139, 92, 246, 0.24), transparent 70%),
        radial-gradient(circle 320px at 0% 112%, rgba(217, 70, 239, 0.12), transparent 72%),
        linear-gradient(150deg, rgba(26, 16, 48, 0.82), rgba(9, 5, 20, 0.88));
    box-shadow: 0 40px 100px rgba(3, 1, 10, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    overflow: hidden;
}
.contact__card::before {
    content: '';
    position: absolute;
    inset-inline: 38px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 181, 253, 0.6), rgba(232, 121, 249, 0.4), transparent);
}
.contact__copy .section-title { margin-top: 14px; }

.contact__phone {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 16px;
    padding: 13px 17px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: rgba(139, 92, 246, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.contact__phone:hover {
    background: rgba(139, 92, 246, 0.17);
    border-color: rgba(196, 181, 253, 0.45);
    transform: translateY(-2px);
}
.contact__phone-ico {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: var(--grad-violet);
    box-shadow: 0 10px 26px rgba(139, 92, 246, 0.35);
}
.contact__phone-ico .ico { width: 20px; height: 20px; }
.contact__phone-text { display: flex; flex-direction: column; gap: 1px; }
.contact__phone-text small { font-size: 0.65rem; color: var(--muted); }
.contact__phone-text strong {
    font-family: var(--latin);
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.contact__rows { display: grid; gap: 12px; }
.contact__rows li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(10, 5, 18, 0.4);
}
.contact__ico {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--primary-soft);
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(167, 139, 250, 0.18);
}
.contact__ico .ico { width: 17px; height: 17px; }
.contact__rows strong { display: block; font-size: 0.84rem; margin-bottom: 1px; }
.contact__rows span { font-size: 0.72rem; color: var(--muted); }

.contact__social { display: flex; gap: 9px; margin-top: 18px; }
.contact__social a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid var(--line);
    background: rgba(23, 15, 43, 0.5);
    color: var(--muted);
    transition: transform 0.3s var(--ease), color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.contact__social a .ico { width: 18px; height: 18px; }
.contact__social a:hover {
    transform: translateY(-3px);
    color: #fff;
    border-color: var(--line-strong);
    background: rgba(139, 92, 246, 0.16);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    position: relative;
    z-index: 3;
    border-top: 1px solid var(--line);
    padding: 32px 0 26px;
    background: rgba(7, 3, 15, 0.4);
    backdrop-filter: blur(12px);
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}
.brand--footer .brand__mark { width: 36px; height: 36px; border-radius: 11px; }
.brand--footer .brand__mark svg { width: 21px; height: 17px; }
.brand--footer .brand__text small { display: none; }

.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { font-size: 0.77rem; color: var(--muted); transition: color 0.25s ease; }
.footer__links a:hover { color: var(--text); }

.footer__note {
    width: 100%;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(167, 139, 250, 0.08);
    text-align: center;
    font-size: 0.7rem;
    color: var(--muted-dim);
}

/* ============================================================
   Chat
   ============================================================ */
.chat {
    position: fixed;
    right: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-right));
    bottom: calc(clamp(20px, 2.4vw, 30px) + env(safe-area-inset-bottom));
    z-index: 95;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.chat__fab {
    position: relative;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(196, 181, 253, 0.3);
    background: linear-gradient(135deg, #8B5CF6, #D946EF);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.chat__fab .ico { width: 24px; height: 24px; }
.chat__fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 50px rgba(139, 92, 246, 0.5); }
.chat__fab:active { transform: scale(0.93); }
.chat__ping {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 10px #34D399;
    animation: ping 2.4s ease-in-out infinite;
}
.chat__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(342px, calc(100vw - 28px));
    border-radius: var(--radius);
    border: 1px solid rgba(167, 139, 250, 0.24);
    background: linear-gradient(160deg, rgba(22, 14, 42, 0.97), rgba(8, 4, 18, 0.98));
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 30px 80px rgba(3, 1, 10, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.35s;
    overflow: hidden;
}
.chat.is-open .chat__panel { opacity: 1; visibility: visible; transform: none; }
.chat__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.12);
    background: rgba(139, 92, 246, 0.08);
}
.chat__mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.25);
}
.chat__mark svg { width: 22px; height: 17px; }
.chat__who strong { display: block; font-size: 0.85rem; }
.chat__who small { display: flex; align-items: center; gap: 5px; font-size: 0.64rem; color: var(--muted); }
.chat__who small i { width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.chat__close {
    margin-inline-start: auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.chat__close .ico { width: 14px; height: 14px; }
.chat__close:hover { color: #fff; border-color: var(--line-strong); }
.chat__body { padding: 15px 16px 6px; font-size: 0.79rem; line-height: 1.95; color: var(--muted); }
.chat__list { display: grid; gap: 6px; margin-top: 11px; }
.chat__list li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    color: rgba(243, 240, 250, 0.85);
}
.chat__list .ico { width: 13px; height: 13px; color: var(--cyan); }
.chat__actions { display: flex; gap: 8px; padding: 10px 16px; }
.chat__note { padding: 0 16px 14px; font-size: 0.62rem; color: var(--muted-dim); }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
    .nav__links > a { padding: 8px 9px; font-size: 0.78rem; }
    .chapter__inner { width: min(1080px, calc(100% - 96px)); }
    .chapter__ghost { font-size: clamp(8rem, 19vw, 16rem); }
    .toc__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1020px) {
    :root { --nav-h: 70px; }

    .nav__links {
        position: fixed;
        top: calc(var(--nav-h) + 8px);
        inset-inline: 12px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        border-radius: 20px;
        border: 1px solid var(--line-strong);
        background: rgba(9, 5, 20, 0.95);
        backdrop-filter: blur(24px) saturate(150%);
        box-shadow: var(--shadow-1);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.35s;
    }
    .nav__links.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
    .nav__links > a { padding: 13px 14px; border-radius: 12px; font-size: 0.9rem; }
    .nav__links > a.is-active::after { display: none; }
    .nav__links > a.is-active { background: rgba(139, 92, 246, 0.14); }
    .nav__menu-call { display: inline-flex; margin-top: 6px; }
    .nav__menu-panel { display: inline-flex; margin-top: 6px; }
    .nav__call { display: none; }
    .nav__panel { display: none; }
    .burger { display: grid; }

    .hero {
        grid-template-columns: 1fr;
        gap: 8px;
        min-height: auto;
        padding-top: calc(var(--nav-h) + 60px);
        padding-bottom: 80px;
    }
    .hero__copy { max-width: 660px; }
    .hero__stage { min-height: 440px; margin-top: 6px; }
    .hero__cue { display: none; }

    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card--feature { grid-column: span 2; grid-row: span 1; }
    .card--feature .mini-ui { height: 140px; }

    .why__grid, .faq__grid { grid-template-columns: 1fr; gap: 34px; }
    .why__intro, .faq__intro { position: static; }
}

@media (max-width: 900px) {
    /* Storybook falls back to stacked, readable pages */
    .book { height: auto; }
    .book__stage {
        position: static;
        height: auto;
        perspective: none;
        overflow: visible;
    }
    .book__stage::before, .book__stage::after { display: none; }

    .chapter {
        position: relative;
        inset: auto;
        transform: none !important;
        opacity: 1 !important;
        height: auto;
        min-height: 100svh;
        padding: calc(var(--nav-h) + 34px) 0 60px;
        display: flex;
        align-items: center;
        background:
            radial-gradient(120% 70% at 20% 20%, var(--tint, rgba(139, 92, 246, 0.1)), transparent 66%);
    }
    .chapter::before { display: none; }
    .chapter__inner {
        width: var(--shell);
        height: auto;
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 0;
    }
    .chapter__ghost { font-size: clamp(7rem, 30vw, 13rem); left: 4%; bottom: auto; top: 2%; opacity: 0.7; }
    .chapter__scene { height: clamp(300px, 52vw, 430px); min-height: 0; order: 2; }
    .chapter__copy { order: 1; max-width: 640px; }
    .chapter__shade { display: none; }
    .chapter__edge { display: none; }
    .chapter__folio { display: none; }
    .chapter__title { font-size: clamp(1.55rem, 4.4vw, 2.2rem); }
    .chapter__text { max-width: none; }
    .rail, .counter { display: none !important; }

    .toc__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toc__item { padding: 16px; }
}

@media (max-width: 720px) {
    :root { --shell: calc(100% - 36px); }

    .section { padding: 64px 0; }
    .section-title { font-size: clamp(1.5rem, 6vw, 2.1rem); }
    .hero { padding-top: calc(var(--nav-h) + 44px); }
    .hero__title { font-size: clamp(1.7rem, 7.4vw, 2.5rem); line-height: 1.5; }
    .hero__lead { font-size: 0.9rem; }
    .hero__stage { min-height: 390px; }
    .hero__actions .btn { flex: 1 1 auto; }
    .hero__trust { font-size: 0.68rem; }
    .hero__trust li + li::before { margin-inline: 10px; }

    .card--feature .card__title { font-size: 1.25rem; }
    .contact__card { grid-template-columns: 1fr; }
    .contact__copy .section-title { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }
    .contact__phone { width: 100%; }
    .contact__phone-text strong { font-size: 1.2rem; }

    .footer__inner { justify-content: center; text-align: center; }
    .footer__links { justify-content: center; }
}

@media (max-width: 600px) {
    .nav__inner { width: calc(100% - 28px); }
    .brand__mark { width: 38px; height: 38px; border-radius: 12px; }
    .brand__mark svg { width: 21px; height: 17px; }
    .brand__text small { display: none; }

    .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 56px; }
    .hero__stage { min-height: 300px; }
    .hero__title { font-size: clamp(1.4rem, 6.65vw, 1.9rem); }
    .hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 26px; }
    .hero__actions .btn { width: 100%; }
    .hero__trust { gap: 6px 0; margin-top: 18px; }

    .toc__list { grid-template-columns: 1fr; }
    .toc__item { padding: 15px 16px; }
    .toc__num { font-size: 1.25rem; min-width: 36px; }

    .bento { grid-template-columns: 1fr; }
    .card--feature { grid-column: auto; }
    .card { min-height: 0; padding: 20px; }
    .card__art { opacity: 0.4; }
    .mini-ui { height: 132px; }

    .chapter { padding-top: calc(var(--nav-h) + 26px); padding-bottom: 46px; }
    .chapter__scene { height: clamp(310px, 88vw, 420px); }
    .chapter__points li { font-size: 0.81rem; }
    .chapter__ghost { font-size: clamp(5.2rem, 25vw, 8rem); left: 2%; }
    .chapter__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 20px; }

    .btn { height: 50px; padding: 0 18px; white-space: normal; }
    .chapter__actions .btn { width: 100%; }
    .btn--lg { height: 54px; }
    .btn--sm { height: 44px; }

    .contact__card { padding: 22px 18px; }
    .contact__phone { padding: 12px 13px; }
    .contact__phone-ico { width: 40px; height: 40px; }

    .chat { right: calc(14px + env(safe-area-inset-right)); bottom: calc(30px + env(safe-area-inset-bottom)); }
    .chat__fab { width: 50px; height: 50px; border-radius: 16px; }
    .chat__panel { width: calc(100vw - 26px - env(safe-area-inset-right)); }
    .chat__note { display: none; }
}

@media (max-width: 380px) {
    :root { --shell: calc(100% - 28px); }
    .nav__inner { width: calc(100% - 22px); }
    .hero__title { font-size: 1.5rem; }
    .toc__item { gap: 10px; }
    .toc__arrow { width: 26px; height: 26px; }
    .card__title { font-size: 0.96rem; }
}

/* Compact vertical space on short desktop screens */
@media (min-width: 901px) and (max-height: 790px) {
    .chapter__inner { padding-top: calc(var(--nav-h) + 2px); padding-bottom: 62px; }
    .chapter__title { font-size: clamp(1.45rem, 2.4vw, 2.1rem); margin: 11px 0 10px; }
    .chapter__text { font-size: 0.85rem; line-height: 1.9; }
    .chapter__points { margin-top: 14px; gap: 6px; }
    .chapter__points li { font-size: 0.8rem; }
    .chapter__step { margin-top: 14px; }
    .chapter__badge { margin-bottom: 9px; }
    .chapter__scene { height: min(50vh, 380px); }
    .chapter__actions { margin-top: 16px; }
    .chapter__ghost { font-size: clamp(7rem, 17vw, 13rem); }
}

@media (min-width: 901px) and (max-height: 690px) {
    .chapter__copy { max-width: 560px; }
    .chapter__title { font-size: 1.6rem; }
    .chapter__text { font-size: 0.8rem; line-height: 1.82; }
    .chapter__points li { font-size: 0.75rem; }
    .chapter__points { margin-top: 10px; }
    .chapter__step { display: none; }
    .chapter__scene { height: 46vh; }
}

/* ============================================================
   Reduced motion & no-JS story fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero__copy > * { opacity: 1; transform: none; }
    .reveal { opacity: 1; transform: none; }
    .book { height: auto; }
    .book__stage { position: static; height: auto; perspective: none; overflow: visible; }
    .chapter {
        position: relative;
        inset: auto;
        transform: none !important;
        opacity: 1 !important;
        height: auto;
        min-height: 100svh;
        padding: calc(var(--nav-h) + 34px) 0 60px;
        display: flex;
        align-items: center;
    }
    .chapter__inner { height: auto; grid-template-columns: 1fr; gap: 26px; padding: 0; }
    .chapter__scene { height: 340px; }
    .chapter__shade { display: none; }
    .rail, .counter { display: none !important; }
    .hero__cue { display: none; }
}

/* ============================================================
   Knowledge — latest articles and category links
   ============================================================ */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.knowledge-grid .card { display: flex; flex-direction: column; }
.knowledge-grid .card__title a { color: inherit; }
.knowledge-grid .card__title a:hover { color: #fff; }
.knowledge-grid .card__more { margin-top: auto; padding-top: 18px; }
.knowledge-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}
.knowledge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.knowledge-chip {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.68rem;
    color: #CFC6E6;
    background: rgba(139, 92, 246, 0.09);
    border: 1px solid rgba(167, 139, 250, 0.15);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.knowledge-chip:hover {
    color: #fff;
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(139, 92, 246, 0.18);
}
.knowledge-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1020px) {
    .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .knowledge-grid { grid-template-columns: 1fr; }
    .knowledge-more { align-items: flex-start; flex-direction: column; }
}

/* ============================================================
   Keyframes used by this file. They used to live in space.css, so a
   failed/blocked space.css left hero copy invisible (heroIn) and the
   preloader pulsing forever. Keep them here: style.css is the file
   that references them.
   ============================================================ */
@keyframes pulseRing {
    0% { transform: scale(0.7); opacity: 0.8; }
    80%, 100% { transform: scale(1.9); opacity: 0; }
}

@keyframes prePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

@keyframes preBar {
    0% { transform: translateX(110%); }
    100% { transform: translateX(-260%); }
}

@keyframes heroIn {
    to { opacity: 1; transform: none; }
}

@keyframes cueDrop {
    0% { transform: translateY(0); opacity: 0; }
    30% { opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

@keyframes faqIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

@keyframes ping {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}
