/*  ╔══════════════════════════════════════════════════════════════╗
    ║  VoiceBoard Landing v3 — Dark/Light (ui-ux-pro-max)          ║
    ║  Design System: OLED Dark + Sky Blue Light                   ║
    ║  Font: DM Sans · CTA: #F97316 · Accent: #818CF8/#6366F1     ║
    ╚══════════════════════════════════════════════════════════════╝ */

/* ================================================================
   1. ШРИФТЫ — DM Sans (рекомендация ui-ux-pro-max: premium modern)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;0,9..40,900;1,9..40,400&display=swap');

/* ================================================================
   2. CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
    --ld-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Фоны — OLED Dark (#000 / #121212) */
    --ld-bg: #050507;
    --ld-bg-surface: #111114;
    --ld-bg-surface-hover: #1A1A1F;
    --ld-bg-glass: rgba(17, 17, 20, 0.7);

    /* Текст — контраст 7:1+ (WCAG AAA) */
    --ld-text: #F4F4F5;
    --ld-text-secondary: #B0B0B8;
    --ld-text-muted: #71717A;

    /* Акценты */
    --ld-accent: #818CF8;
    --ld-accent-hover: #6366F1;
    --ld-accent-glow: rgba(129, 140, 248, 0.25);
    --ld-accent-gradient: linear-gradient(135deg, #6366F1, #A78BFA);

    /* CTA — Orange */
    --ld-cta: #F97316;
    --ld-cta-hover: #FB923C;
    --ld-cta-glow: rgba(249, 115, 22, 0.3);

    /* Движки */
    --ld-google: #4285F4;
    --ld-cloud: #34A853;
    --ld-vosk: #F59E0B;
    --ld-whisper: #EC4899;

    /* Границы */
    --ld-border: rgba(255, 255, 255, 0.06);
    --ld-border-accent: rgba(129, 140, 248, 0.2);

    /* Навбар / карточки / hover — темозависимые */
    --ld-navbar-bg: rgba(5, 5, 7, 0.8);
    --ld-hover-bg: rgba(255, 255, 255, 0.06);
    --ld-hover-bg-strong: rgba(255, 255, 255, 0.08);
    --ld-btn-outline-border: rgba(255, 255, 255, 0.1);
    --ld-btn-outline-hover-border: rgba(255, 255, 255, 0.18);
    --ld-grid-line: rgba(255, 255, 255, 0.018);
    --ld-card-shadow: rgba(0, 0, 0, 0.4);
    --ld-card-shadow-light: rgba(0, 0, 0, 0.3);
    --ld-inset-highlight: rgba(255, 255, 255, 0.04);
    --ld-faq-hover: rgba(255, 255, 255, 0.02);

    /* Радиусы */
    --ld-radius: 12px;
    --ld-radius-lg: 16px;
    --ld-radius-xl: 24px;

    /* Transitions (150-300ms per UX guidelines) */
    --ld-transition: 200ms ease;
    --ld-transition-slow: 350ms ease;
}

/* ================================================================
   2b. LIGHT THEME — Sky Blue (ui-ux-pro-max recommendation)
   ================================================================ */
[data-theme="light"] {
    --ld-bg: #F8FAFC;
    --ld-bg-surface: #FFFFFF;
    --ld-bg-surface-hover: #F1F5F9;
    --ld-bg-glass: rgba(255, 255, 255, 0.85);

    --ld-text: #0F172A;
    --ld-text-secondary: #475569;
    --ld-text-muted: #94A3AF;

    --ld-accent: #6366F1;
    --ld-accent-hover: #4F46E5;
    --ld-accent-glow: rgba(99, 102, 241, 0.18);
    --ld-accent-gradient: linear-gradient(135deg, #6366F1, #818CF8);

    --ld-cta: #EA580C;
    --ld-cta-hover: #F97316;
    --ld-cta-glow: rgba(234, 88, 12, 0.2);

    --ld-border: rgba(0, 0, 0, 0.08);
    --ld-border-accent: rgba(99, 102, 241, 0.2);

    --ld-navbar-bg: rgba(255, 255, 255, 0.85);
    --ld-hover-bg: rgba(0, 0, 0, 0.04);
    --ld-hover-bg-strong: rgba(0, 0, 0, 0.06);
    --ld-btn-outline-border: rgba(0, 0, 0, 0.12);
    --ld-btn-outline-hover-border: rgba(0, 0, 0, 0.2);
    --ld-grid-line: rgba(0, 0, 0, 0.03);
    --ld-card-shadow: rgba(0, 0, 0, 0.08);
    --ld-card-shadow-light: rgba(0, 0, 0, 0.06);
    --ld-inset-highlight: rgba(0, 0, 0, 0.02);
    --ld-faq-hover: rgba(0, 0, 0, 0.02);
}

/* ================================================================
   3. RESET & BASE
   ================================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--ld-font);
    font-size: 16px;
    line-height: 1.6;
    background: var(--ld-bg);
    color: var(--ld-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--ld-accent);
    text-decoration: none;
    transition: color var(--ld-transition);
}

a:hover {
    color: var(--ld-accent-hover);
}

/* Focus states for keyboard navigation (a11y) */
:focus-visible {
    outline: 2px solid var(--ld-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ================================================================
   4. НАВБАР — Floating с отступами (per skill recommendation)
   ================================================================ */
.ld-navbar {
    position: fixed;
    top: 12px;
    left: 16px;
    right: 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--ld-navbar-bg);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-lg);
    z-index: 1000;
    transition: background var(--ld-transition);
}

.ld-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ld-text);
    text-decoration: none;
}

.ld-logo-icon {
    font-size: 24px;
    background: var(--ld-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ld-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ld-nav-link {
    color: var(--ld-text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all var(--ld-transition);
    text-decoration: none;
    cursor: pointer;
}

.ld-nav-link:hover {
    color: var(--ld-text);
    background: var(--ld-hover-bg);
}

.ld-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--ld-btn-outline-border);
    border-radius: 8px;
    color: var(--ld-text);
    background: transparent;
    text-decoration: none;
    transition: all var(--ld-transition);
    cursor: pointer;
    font-family: var(--ld-font);
}

.ld-nav-btn:hover {
    background: var(--ld-hover-bg-strong);
    border-color: var(--ld-btn-outline-hover-border);
    color: var(--ld-text);
}

/* Theme toggle button */
.ld-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ld-btn-outline-border);
    background: transparent;
    color: var(--ld-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all var(--ld-transition);
    margin-left: 4px;
    flex-shrink: 0;
}

.ld-theme-toggle:hover {
    background: var(--ld-hover-bg);
    border-color: var(--ld-btn-outline-hover-border);
    color: var(--ld-text);
}

/* Dark theme: show sun icon (switch to light), hide moon */
:root .ld-theme-icon-light {
    display: inline;
}

:root .ld-theme-icon-dark {
    display: none;
}

/* Light theme: show moon icon (switch to dark), hide sun */
[data-theme="light"] .ld-theme-icon-light {
    display: none;
}

[data-theme="light"] .ld-theme-icon-dark {
    display: inline;
}

/* Smooth theme transition on surfaces */
body,
.ld-navbar,
.ld-engine-card,
.ld-feature-card,
.ld-download-card,
.ld-faq-item,
.ld-referral-card,
.ld-footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ================================================================
   5. HERO
   ================================================================ */
.ld-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px clamp(16px, 6vw, 64px) 40px;
    position: relative;
    overflow: hidden;
}

/* Ambient gradient — subtle, static (per UX: no infinite decorative animations) */
.ld-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ld-hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.ld-hero-bg .orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.1);
    top: -15%;
    left: -8%;
}

.ld-hero-bg .orb-2 {
    width: 450px;
    height: 450px;
    background: rgba(167, 139, 250, 0.06);
    bottom: -15%;
    right: -5%;
}

.ld-hero-bg .orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(236, 72, 153, 0.04);
    top: 35%;
    right: 20%;
}

/* Grid overlay */
.ld-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--ld-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ld-grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

.ld-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.ld-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ld-accent);
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.15);
    margin-bottom: 32px;
    animation: ld-fade-up 0.5s ease both;
}

.ld-hero h1 {
    font-size: clamp(36px, 6.5vw, 68px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 24px;
    color: var(--ld-text);
    animation: ld-fade-up 0.5s ease 0.08s both;
}

.ld-hero-subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--ld-text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: ld-fade-up 0.5s ease 0.16s both;
}

.ld-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: ld-fade-up 0.5s ease 0.24s both;
}

/* ================================================================
   6. КНОПКИ — cursor-pointer, smooth transitions
   ================================================================ */
.ld-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--ld-radius);
    background: var(--ld-accent-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ld-transition);
    box-shadow: 0 4px 20px var(--ld-accent-glow);
    font-family: var(--ld-font);
}

.ld-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--ld-accent-glow);
    color: #fff;
}

.ld-btn-cta:active {
    transform: translateY(0);
}

.ld-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--ld-radius);
    background: transparent;
    color: var(--ld-text-secondary);
    border: 1px solid var(--ld-btn-outline-border);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ld-transition);
    font-family: var(--ld-font);
}

.ld-btn-outline:hover {
    background: var(--ld-hover-bg);
    color: var(--ld-text);
    border-color: var(--ld-btn-outline-hover-border);
}

/* ================================================================
   7. STATS STRIP — с count-up анимацией
   ================================================================ */
.ld-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 5vw, 56px);
    padding: 40px 24px 0;
    position: relative;
    z-index: 1;
    animation: ld-fade-up 0.5s ease 0.36s both;
}

.ld-stat {
    text-align: center;
    cursor: default;
}

.ld-stat-value {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--ld-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.ld-stat-label {
    font-size: 13px;
    color: var(--ld-text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ================================================================
   8. СЕКЦИЯ — ОБЩЕЕ
   ================================================================ */
.ld-section {
    padding: 80px clamp(16px, 6vw, 64px);
    max-width: 1100px;
    margin: 0 auto;
}

.ld-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.ld-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ld-accent);
    margin-bottom: 14px;
}

.ld-section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.ld-section-subtitle {
    font-size: 16px;
    color: var(--ld-text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.ld-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ld-border-accent), transparent);
    border: none;
    margin: 0;
}

/* ================================================================
   9. КАК ЭТО РАБОТАЕТ
   ================================================================ */
.ld-how {
    padding-top: 40px;
}

.ld-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

/* Connector line */
.ld-how-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16.66%;
    right: 16.66%;
    height: 2px;
    background: linear-gradient(90deg, var(--ld-accent), rgba(167, 139, 250, 0.3), var(--ld-accent));
    z-index: 0;
}

.ld-how-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    cursor: default;
}

.ld-how-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 20px;
    background: var(--ld-bg);
    border: 2px solid var(--ld-accent);
    color: var(--ld-accent);
    box-shadow: 0 0 24px rgba(129, 140, 248, 0.12);
    transition: box-shadow var(--ld-transition), transform var(--ld-transition);
}

.ld-how-step:hover .ld-how-num {
    box-shadow: 0 0 36px rgba(129, 140, 248, 0.25);
    transform: scale(1.06);
}

.ld-how-step h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ld-how-step p {
    font-size: 14px;
    color: var(--ld-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ================================================================
   10. ДВИЖКИ
   ================================================================ */
.ld-engines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ld-engine-card {
    background: var(--ld-bg-surface);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--ld-transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.ld-engine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.ld-engine-card[data-engine="google"]::before {
    background: var(--ld-google);
}

.ld-engine-card[data-engine="cloud"]::before {
    background: var(--ld-cloud);
}

.ld-engine-card[data-engine="vosk"]::before {
    background: var(--ld-vosk);
}

.ld-engine-card[data-engine="whisper"]::before {
    background: var(--ld-whisper);
}

.ld-engine-card:hover {
    transform: translateY(-4px);
    border-color: var(--ld-border-accent);
    box-shadow: 0 12px 40px var(--ld-card-shadow);
}

.ld-engine-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--ld-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
}

.ld-engine-card[data-engine="google"] .ld-engine-icon {
    background: rgba(66, 133, 244, 0.1);
    color: var(--ld-google);
}

.ld-engine-card[data-engine="cloud"] .ld-engine-icon {
    background: rgba(52, 168, 83, 0.1);
    color: var(--ld-cloud);
}

.ld-engine-card[data-engine="vosk"] .ld-engine-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--ld-vosk);
}

.ld-engine-card[data-engine="whisper"] .ld-engine-icon {
    background: rgba(236, 72, 153, 0.1);
    color: var(--ld-whisper);
}

.ld-engine-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ld-engine-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.ld-engine-badge.online {
    background: rgba(52, 168, 83, 0.1);
    color: #34A853;
}

.ld-engine-badge.offline {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.ld-engine-card p {
    font-size: 13px;
    color: var(--ld-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ================================================================
   11. ФИЧИ — Bento-inspired grid
   ================================================================ */
.ld-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ld-feature-card {
    background: var(--ld-bg-glass);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-lg);
    padding: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--ld-transition);
    cursor: default;
}

.ld-feature-card:hover {
    border-color: var(--ld-border-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--ld-card-shadow-light);
}

/* Span first feature 2 columns for Bento-style */
.ld-feature-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(167, 139, 250, 0.06));
    border-color: var(--ld-border-accent);
}

.ld-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--ld-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
    background: rgba(129, 140, 248, 0.1);
    color: var(--ld-accent);
}

.ld-feature-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.ld-feature-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.ld-feature-icon.sky {
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
}

.ld-feature-icon.rose {
    background: rgba(244, 63, 94, 0.1);
    color: #F43F5E;
}

.ld-feature-icon.violet {
    background: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.ld-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.ld-feature-card p {
    font-size: 13px;
    color: var(--ld-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ================================================================
   12. СКАЧАТЬ
   ================================================================ */
.ld-download-card {
    background: var(--ld-bg-surface);
    border: 1px solid var(--ld-border-accent);
    border-radius: var(--ld-radius-xl);
    padding: 44px;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.06),
        inset 0 1px 0 var(--ld-inset-highlight);
}

.ld-download-version {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.ld-download-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ld-text-muted);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ld-download-meta .sep {
    opacity: 0.3;
}

.ld-download-changelog {
    text-align: left;
    padding: 16px 20px;
    background: var(--ld-faq-hover);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    font-size: 14px;
    color: var(--ld-text-secondary);
    margin-top: 24px;
    line-height: 1.7;
}

.ld-download-changelog strong {
    color: var(--ld-text);
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

/* ================================================================
   13. РЕФЕРАЛЫ
   ================================================================ */
.ld-referral-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.03), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--ld-radius-lg);
    padding: 28px 32px;
    max-width: 680px;
    margin: 0 auto;
    cursor: default;
}

.ld-referral-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--ld-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--ld-cta);
    flex-shrink: 0;
}

.ld-referral-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ld-referral-content p {
    font-size: 14px;
    color: var(--ld-text-secondary);
    margin: 0;
}

/* ================================================================
   14. FAQ — аккордеон
   ================================================================ */
.ld-faq-list {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ld-faq-item {
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    overflow: hidden;
    transition: border-color var(--ld-transition);
}

.ld-faq-item:hover {
    border-color: var(--ld-border-accent);
}

.ld-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--ld-text);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: var(--ld-font);
    transition: background var(--ld-transition);
}

.ld-faq-q:hover {
    background: var(--ld-faq-hover);
}

.ld-faq-q i {
    font-size: 14px;
    color: var(--ld-text-muted);
    transition: transform var(--ld-transition-slow);
    flex-shrink: 0;
}

.ld-faq-item.open .ld-faq-q i {
    transform: rotate(180deg);
    color: var(--ld-accent);
}

.ld-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--ld-transition-slow), padding var(--ld-transition-slow);
    padding: 0 20px;
}

.ld-faq-item.open .ld-faq-a {
    max-height: 200px;
    padding: 0 20px 16px;
}

.ld-faq-a p {
    font-size: 14px;
    color: var(--ld-text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ================================================================
   15. CTA BANNER
   ================================================================ */
.ld-cta-banner {
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

.ld-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.ld-cta-banner h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    position: relative;
}

.ld-cta-banner p {
    font-size: 16px;
    color: var(--ld-text-secondary);
    margin: 0 0 28px;
    position: relative;
}

/* ================================================================
   16. ФУТЕР
   ================================================================ */
.ld-footer {
    border-top: 1px solid var(--ld-border);
    padding: 32px clamp(16px, 6vw, 64px);
    text-align: center;
    font-size: 13px;
    color: var(--ld-text-muted);
}

.ld-footer a {
    color: var(--ld-text-secondary);
    margin: 0 8px;
    transition: color var(--ld-transition);
}

.ld-footer a:hover {
    color: var(--ld-accent);
}

/* ================================================================
   17. АНИМАЦИИ — корректные, с prefers-reduced-motion
   ================================================================ */
@keyframes ld-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ld-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ld-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.ld-animate-stagger>.ld-animate:nth-child(1) {
    transition-delay: 0s;
}

.ld-animate-stagger>.ld-animate:nth-child(2) {
    transition-delay: 0.07s;
}

.ld-animate-stagger>.ld-animate:nth-child(3) {
    transition-delay: 0.14s;
}

.ld-animate-stagger>.ld-animate:nth-child(4) {
    transition-delay: 0.21s;
}

.ld-animate-stagger>.ld-animate:nth-child(5) {
    transition-delay: 0.28s;
}

.ld-animate-stagger>.ld-animate:nth-child(6) {
    transition-delay: 0.35s;
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .ld-animate {
        opacity: 1;
        transform: none;
    }
}

/* ================================================================
   18. MOBILE
   ================================================================ */
@media (max-width: 768px) {
    .ld-navbar {
        top: 8px;
        left: 8px;
        right: 8px;
        padding: 0 16px;
    }

    .ld-nav-links {
        display: none;
    }

    .ld-hero {
        min-height: auto;
        padding: 120px 20px 40px;
    }

    .ld-stats {
        flex-wrap: wrap;
        gap: 16px 32px;
    }

    .ld-how-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ld-how-grid::before {
        display: none;
    }

    .ld-engines-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ld-features-grid {
        grid-template-columns: 1fr;
    }

    .ld-feature-card.featured {
        grid-column: span 1;
    }

    .ld-download-card {
        padding: 28px 20px;
    }

    .ld-referral-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .ld-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .ld-btn-cta,
    .ld-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ld-hero h1 {
        font-size: 28px;
    }

    .ld-section-title {
        font-size: 24px;
    }

    .ld-engines-grid {
        grid-template-columns: 1fr;
    }

    .ld-stats {
        gap: 12px 24px;
    }

    .ld-stat-value {
        font-size: 28px;
    }
}