/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============ BASE ============ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-navy-900);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Анимированный фон — неоновые «пятна» */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--g-radial-bg);
    pointer-events: none;
    z-index: 0;
    animation: drift 30s ease-in-out infinite alternate;
}

@keyframes drift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    100% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

/* Тонкая сетка поверх фона */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(122,184,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122,184,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    padding: 0 var(--gutter);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(5, 11, 31, 0.7);
    border-bottom: 1px solid var(--c-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: var(--fs-lg);
    letter-spacing: -.01em;
}

.logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--g-primary);
    display: grid;
    place-items: center;
    box-shadow: var(--glow-neon);
    flex-shrink: 0;
}
.logo__mark svg { width: 20px; height: 20px; }

.logo__text { color: var(--c-text); }
.logo__text b { color: var(--c-neon-400); }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============ КНОПКИ ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: var(--fs-sm);
    white-space: nowrap;
    transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
    user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
    background: var(--g-primary);
    color: #fff;
    box-shadow: var(--glow-neon);
}
.btn--primary:hover {
    background: var(--g-primary-hover);
    box-shadow: 0 0 0 1px rgba(122,184,255,.55), 0 12px 40px rgba(47,128,255,.6);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border-strong);
}
.btn--ghost:hover {
    background: rgba(122,184,255,.08);
    border-color: var(--c-neon-400);
    color: #fff;
}

.btn--lg { padding: 15px 30px; font-size: var(--fs-md); }
.btn--block { width: 100%; }

/* ============ HERO ============ */
.hero {
    padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 7vw, 96px);
    position: relative;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: rgba(47,128,255,.1);
    border: 1px solid var(--c-border-strong);
    font-size: var(--fs-xs);
    color: var(--c-neon-300);
    font-weight: 600;
    margin-bottom: 22px;
}
.hero__badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-cyan-400);
    box-shadow: 0 0 12px var(--c-cyan-400);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: .6; transform: scale(.8); }
}

.hero__title {
    font-size: var(--fs-3xl);
    line-height: 1.05;
    letter-spacing: -.025em;
    font-weight: 800;
    margin: 0 0 20px;
}

.hero__title-accent {
    background: linear-gradient(120deg, var(--c-neon-400) 0%, var(--c-cyan-400) 50%, var(--c-violet-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: var(--fs-lg);
    color: var(--c-text-soft);
    max-width: 56ch;
    margin: 0 0 32px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--c-text-dim);
    font-size: var(--fs-sm);
}
.hero__meta-item { display: flex; align-items: center; gap: 8px; }
.hero__meta-item svg { color: var(--c-neon-400); flex-shrink: 0; }

/* ============ МОК-КАРТОЧКА ДАШБОРДА (декоративная) ============ */
.hero__visual {
    position: relative;
    perspective: 1200px;
}

.mock {
    position: relative;
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, rgba(20,42,92,.9), rgba(10,21,48,.95));
    border: 1px solid var(--c-border-strong);
    box-shadow: var(--shadow-md), 0 0 80px rgba(47,128,255,.25);
    padding: 22px;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform var(--t-slow);
    animation: floatY 6s ease-in-out infinite;
}
.mock:hover { transform: rotateY(0) rotateX(0); }

@keyframes floatY {
    0%,100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
    50%     { transform: rotateY(-8deg) rotateX(4deg) translateY(-10px); }
}

.mock__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}
.mock__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.mock__dot--r { background: #ff5f57; }
.mock__dot--y { background: #febc2e; }
.mock__dot--g { background: #28c840; }
.mock__dots { display: flex; gap: 6px; }

.mock__balance-label { font-size: var(--fs-xs); color: var(--c-text-dim); text-transform: uppercase; letter-spacing: .1em; }
.mock__balance {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 4px 0 20px;
    background: linear-gradient(120deg, #fff, var(--c-neon-300));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.mock__bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 90px;
    margin-bottom: 18px;
}
.mock__bar {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--c-neon-400), var(--c-violet-500));
    opacity: .85;
    animation: barGrow 1.2s cubic-bezier(.2,.8,.2,1) backwards;
}
.mock__bar:nth-child(1) { height: 40%; animation-delay: .1s; }
.mock__bar:nth-child(2) { height: 65%; animation-delay: .2s; }
.mock__bar:nth-child(3) { height: 45%; animation-delay: .3s; }
.mock__bar:nth-child(4) { height: 85%; animation-delay: .4s; }
.mock__bar:nth-child(5) { height: 70%; animation-delay: .5s; }
.mock__bar:nth-child(6) { height: 95%; animation-delay: .6s; background: linear-gradient(180deg, var(--c-cyan-400), var(--c-neon-500)); }
.mock__bar:nth-child(7) { height: 60%; animation-delay: .7s; }

@keyframes barGrow {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}

.mock__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--c-border);
    font-size: var(--fs-sm);
}
.mock__row:first-of-type { border-top: none; }
.mock__row-left { display: flex; align-items: center; gap: 10px; color: var(--c-text-soft); }
.mock__icon {
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: rgba(47,128,255,.18);
    color: var(--c-neon-300);
}
.mock__amount--in  { color: #4ade80; font-weight: 700; }
.mock__amount--out { color: #f87171; font-weight: 700; }

/* ============ FEATURES ============ */
.features {
    padding: clamp(40px, 7vw, 96px) 0;
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(32px, 5vw, 56px);
}
.section-head__eyebrow {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-neon-400);
    margin-bottom: 12px;
}
.section-head__title {
    font-size: var(--fs-xl);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    font-weight: 800;
}
.section-head__sub {
    color: var(--c-text-soft);
    font-size: var(--fs-md);
    margin: 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
}

.feature {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--r-lg);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
    overflow: hidden;
}
.feature::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--g-primary);
    opacity: 0;
    transition: opacity var(--t-base);
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--c-border-strong);
    box-shadow: 0 20px 50px rgba(47,128,255,.18);
}
.feature:hover::before { opacity: 1; }

.feature__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(47,128,255,.25), rgba(124,92,255,.2));
    color: var(--c-neon-300);
    border: 1px solid var(--c-border-strong);
    margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }

.feature__title {
    font-size: var(--fs-lg);
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.01em;
}
.feature__text {
    color: var(--c-text-soft);
    font-size: var(--fs-sm);
    margin: 0;
    line-height: 1.65;
}

/* ============ CTA BANNER ============ */
.cta-banner {
    padding: clamp(40px, 6vw, 80px) 0;
}
.cta-banner__inner {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    padding: clamp(32px, 5vw, 64px);
    background:
        linear-gradient(135deg, rgba(47,128,255,.22), rgba(124,92,255,.22)),
        var(--c-surface-solid);
    border: 1px solid var(--c-border-strong);
    text-align: center;
    box-shadow: 0 30px 80px rgba(47,128,255,.2);
}
.cta-banner__inner::before {
    content: "";
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(47,128,255,.5), transparent 70%);
    top: -200px; right: -100px;
    filter: blur(40px);
    pointer-events: none;
}
.cta-banner__title {
    font-size: var(--fs-xl);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    position: relative;
}
.cta-banner__sub {
    color: var(--c-text-soft);
    margin: 0 0 28px;
    position: relative;
}
.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    position: relative;
}

/* ============ FOOTER ============ */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--c-border);
    color: var(--c-text-dim);
    font-size: var(--fs-xs);
    text-align: center;
}
.site-footer a { color: var(--c-neon-400); }
.site-footer a:hover { text-decoration: underline; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__lead { margin-left: auto; margin-right: auto; }
    .hero__cta, .hero__meta { justify-content: center; }
    .hero__visual {
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }
    .mock { transform: none; animation: none; }
}

@media (max-width: 600px) {
    .nav { height: 60px; }
    .logo__text { font-size: var(--fs-md); }
    .nav__actions .btn--ghost { display: none; } /* на мобилке оставляем только «Войти» */

    .hero__meta { gap: 14px; font-size: var(--fs-xs); }
    .hero__cta .btn { flex: 1 1 auto; }

    .feature { padding: 22px 18px; }
    .feature__icon { width: 42px; height: 42px; }
}

@media (max-width: 380px) {
    .logo__text b { display: inline; }
    .btn { padding: 11px 18px; font-size: var(--fs-xs); }
}

/* ============ A11Y ============ */
:focus-visible {
    outline: 2px solid var(--c-neon-400);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}