@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg: #0B0E1A;
    --bg-alt: #131829;
    --bg-card: #171D33;
    --brand: #4C6FFF;
    --accent: #7B5CFF;
    --bridge: #00E5C7;
    --text: #E6EAF5;
    --text-dim: #8A93AD;
    --line: rgba(76, 111, 255, .22);
    --line-soft: rgba(138, 147, 173, .14);
    --grad: linear-gradient(135deg, #4C6FFF 0%, #7B5CFF 100%);
    --grad-bridge: linear-gradient(90deg, #00E5C7 0%, #4C6FFF 100%);
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-h: 78px;
    --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

body.fixed { overflow: hidden; }

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

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

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

/* ---------- preloader ---------- */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

html.hide .preloader { display: none; }

/* ---------- header ---------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(11, 14, 26, .88);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.logo img { width: 36px; height: 36px; }

.logo__text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.logo__text em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav-link {
    position: relative;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color .25s ease;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-bridge);
    transition: width .3s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.burger-btn {
    display: none;
    background: transparent;
    border: 0;
    width: 34px;
    height: 26px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.burger-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .3s ease, opacity .25s ease, top .3s ease;
}

.burger-btn span:nth-child(1) { top: 3px; }
.burger-btn span:nth-child(2) { top: 12px; }
.burger-btn span:nth-child(3) { top: 21px; }

.burger-btn.act span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */

#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 14, 26, .97);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

#mobile-menu.opened { opacity: 1; pointer-events: auto; }

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.mobile-menu__nav .nav-link { font-size: 22px; font-family: var(--font-head); font-weight: 600; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 58px;
    border-radius: 100px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .01em;
    cursor: pointer;
    border: 0;
    transition: transform .25s ease, box-shadow .3s ease, filter .25s ease;
}

.btn svg { width: 20px; height: 20px; }

.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 34px rgba(76, 111, 255, .34);
}

.btn--primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 14px 42px rgba(123, 92, 255, .46);
}

@keyframes float-cta {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.btn--float { animation: float-cta 3s ease-in-out infinite; }
.btn--float:hover { animation-play-state: paused; }

/* ---------- shared blocks ---------- */

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bridge);
    margin-bottom: 18px;
}

.section {
    position: relative;
    padding: 110px 0;
}

.section--alt { background: var(--bg-alt); }

.section__title {
    font-size: clamp(28px, 3.6vw, 44px);
    margin-bottom: 26px;
    letter-spacing: -.02em;
}

.section p { color: var(--text-dim); margin-bottom: 10px; }

.accent-line {
    color: var(--text) !important;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 18px;
    margin-top: 18px !important;
    padding-left: 16px;
    border-left: 3px solid var(--bridge);
}

.marked { list-style: none; margin: 20px 0 26px; }

.marked li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-dim);
}

.marked li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-bridge);
}

.questions { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }

.questions li {
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(76, 111, 255, .05);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 16.5px;
    color: var(--text);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding: calc(var(--header-h) + 70px) 0 90px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url('../img/hero-bg.webp') center/cover no-repeat, var(--bg);
    z-index: 0;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 70% at 20% 40%, rgba(11, 14, 26, .94) 0%, rgba(11, 14, 26, .6) 55%, rgba(11, 14, 26, .88) 100%),
        linear-gradient(180deg, rgba(11, 14, 26, .5) 0%, rgba(11, 14, 26, 0) 30%, var(--bg) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.hero__title {
    font-size: clamp(34px, 5vw, 62px);
    letter-spacing: -.028em;
    margin-bottom: 26px;
}

.hero__text p {
    color: var(--text-dim);
    margin-bottom: 6px;
    font-size: 16.5px;
}

.hero__text p:nth-child(4),
.hero__text p:last-child { color: var(--text); }

.pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 34px;
}

.pill {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: rgba(76, 111, 255, .07);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

.hero__visual { position: relative; }

.hero__visual::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 118%;
    padding-bottom: 118%;
    background: radial-gradient(circle, rgba(76, 111, 255, .3) 0%, rgba(123, 92, 255, .12) 45%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
}

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-1.2deg); }
}

.hero__img {
    position: relative;
    width: 100%;
    animation: drift 7s ease-in-out infinite;
    filter: drop-shadow(0 26px 60px rgba(0, 229, 199, .18));
}

/* ---------- split layout ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 62px;
    align-items: center;
}

.split--reverse .split__media { order: 2; }

.split__media { position: relative; }

.split__media img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.split__media::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(0, 229, 199, .1) 0%, transparent 45%);
    pointer-events: none;
}

/* ---------- cards ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 62px;
}

.card {
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(23, 29, 51, .35) 100%);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 199, .45);
    box-shadow: 0 18px 44px rgba(0, 229, 199, .12);
}

.card__num {
    display: block;
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--grad-bridge);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card p { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.6; }

/* ---------- stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.stat {
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    background: var(--bg-alt);
    text-align: center;
    transition: border-color .3s ease, transform .3s ease;
}

.stat:hover { border-color: var(--line); transform: translateY(-5px); }

.stat__num {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--bridge);
    margin-bottom: 10px;
}

.stat h3 {
    font-size: 19px;
    font-weight: 600;
    text-transform: capitalize;
}

/* ---------- callout ---------- */

.callout {
    margin-top: 44px;
    padding: 34px 38px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(76, 111, 255, .1) 0%, rgba(123, 92, 255, .05) 100%);
}

.callout p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.section--contact { background: var(--bg-alt); text-align: center; }

.contact { max-width: 640px; }

.contact__mail {
    display: inline-block;
    margin: 18px 0 22px;
    font-family: var(--font-head);
    font-size: clamp(21px, 3vw, 30px);
    font-weight: 700;
    background: var(--grad-bridge);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: filter .25s ease;
}

.contact__mail:hover { filter: brightness(1.2); }

/* ---------- footer ---------- */

.footer {
    position: relative;
    padding: 60px 0 44px;
    overflow: hidden;
    border-top: 1px solid var(--line-soft);
}

.footer__bg {
    position: absolute;
    inset: 0;
    background: url('../img/footer-bg.webp') center/cover no-repeat, var(--bg);
    opacity: .5;
}

.footer__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 14, 26, .82) 100%);
}

.footer__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }

.footer__nav a {
    font-size: 14.5px;
    color: var(--text-dim);
    transition: color .25s ease;
}

.footer__nav a:hover { color: var(--bridge); }

.footer__copy { font-size: 13.5px; color: var(--text-dim); }

/* ---------- legal pages ---------- */

.legal-page { padding: calc(var(--header-h) + 70px) 0 100px; }

.legal-content { max-width: 900px; margin: 0 auto; }

.legal-content h1 {
    font-size: clamp(30px, 4.4vw, 48px);
    margin-bottom: 34px;
    letter-spacing: -.02em;
}

.legal-content h2 {
    font-size: 23px;
    margin: 40px 0 14px;
    color: var(--text);
}

.legal-content h4,
.legal-content h5 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    margin: 26px 0 10px;
    color: var(--bridge);
}

.legal-content p,
.legal-content li { color: var(--text-dim); margin-bottom: 14px; }

.legal-content ul,
.legal-content ol { margin: 0 0 18px 22px; }

.legal-content li { margin-bottom: 8px; }

.legal-content a { color: var(--brand); word-break: break-word; }

.legal-content a:hover { color: var(--bridge); }

.legal-content strong { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
    .nav { display: none; }
    .burger-btn { display: block; }
    .section { padding: 84px 0; }
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__visual { max-width: 460px; margin: 0 auto; order: -1; }
    .split { grid-template-columns: 1fr; gap: 38px; }
    .split--reverse .split__media { order: 0; }
    .cards, .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 68px 0; }
    .hero { padding: calc(var(--header-h) + 44px) 0 66px; }
    .callout { padding: 26px 24px; }
    .logo__text { font-size: 17px; }
    .footer__nav { gap: 10px 20px; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .cards, .stats { grid-template-columns: 1fr; }
    .btn { width: 100%; padding: 15px 24px; }
    .pills { gap: 8px; }
    .pill { font-size: 12.5px; padding: 7px 14px; }
    .accent-line { font-size: 16.5px; }
    .mobile-menu__nav .nav-link { font-size: 19px; }
    .legal-content h2 { font-size: 20px; }
}
