/* =========================================================================
   Landing — система цветовых полос (тёмные / светлые секции)
   Тёмные полосы прозрачны, чтобы сквозь них светились фоновые орбы.
   Светлые полосы непрозрачны и перекрывают фон.
   ========================================================================= */

body.landing {
    background: #05050a;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Space Grotesk', sans-serif;
}

html:has(body.landing) {
    scroll-behavior: smooth;
}

.landing .band[id],
.landing [id="top"] {
    scroll-margin-top: 76px;
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.landing) {
        scroll-behavior: auto;
    }
}

.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.landing main {
    position: relative;
    z-index: 1;
}

/* убираем диагональную «шумовую» текстуру на весь экран —
   на светлых полосах она давала бы артефакты */
body.landing::after {
    display: none;
}

/* ------------------------------------------------------------------ полоса */

.band {
    position: relative;
    z-index: 1;
}

.band__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem;
}

.band__inner--tight {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* -------------------------------------------------------------- тёмная тема */

.band--dark {
    color: #fff;
    --text-primary: #fff;
    --text-secondary: #98a4b8;
    --heading: #fff;
    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-border: rgba(255, 255, 255, 0.10);
    --border-color: rgba(255, 255, 255, 0.10);
    --surface: rgba(255, 255, 255, 0.03);
    --surface-solid: #101019;
    --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.band--dark + .band--dark {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* -------------------------------------------------------------- светлая тема */

.band--light {
    background: #f4f6f8;
    color: #191c22;
    --text-primary: #191c22;
    --text-secondary: #5c6675;
    --heading: #12141a;
    --glass-bg: #fff;
    --glass-border: rgba(18, 24, 38, 0.10);
    --border-color: rgba(18, 24, 38, 0.10);
    --surface: #fff;
    --surface-solid: #fff;
    --card-shadow: 0 20px 44px rgba(18, 24, 38, 0.08);
}

.band--light + .band--light {
    border-top: 1px solid rgba(18, 24, 38, 0.06);
}

/* мягкий переход тёмная → светлая: лёгкая тень от тёмной полосы сверху */
.band--dark + .band--light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(5, 5, 10, 0.10), transparent);
    pointer-events: none;
}

/* ---------------------------------------------------------- общие элементы */

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    text-align: left;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent-primary, #00d4aa);
    margin-bottom: 0.9rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--heading);
    margin: 0 0 1rem;
}

.section-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ---------------------------------------------------------------- кнопки */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.7rem;
    border-radius: 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.03rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.lp-btn--primary {
    background: linear-gradient(135deg, #00d4aa 0%, #7c3aed 100%);
    color: #fff;
}

.lp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 212, 170, 0.32);
    color: #fff;
}

.lp-btn--ghost {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.lp-btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary, #00d4aa);
    color: var(--text-primary);
}

.lp-btn--lg {
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
}

/* ---------------------------------------------------- служебная анимация */

@media (prefers-reduced-motion: reduce) {
    .landing *,
    .landing *::before,
    .landing *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------------------------------------------------- тост о заявке */

.lp-toast {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    max-width: min(560px, calc(100vw - 2rem));
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
    background: #101019;
    border: 1px solid rgba(0, 212, 170, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    animation: lp-toast-in 0.35s ease;
}

.lp-toast--error {
    border-color: rgba(255, 107, 107, 0.55);
}

.lp-toast button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    flex-shrink: 0;
}

.lp-toast button:hover {
    opacity: 1;
}

@keyframes lp-toast-in {
    from { opacity: 0; transform: translate(-50%, -12px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
