/* ============================================================
   CYBER//TYPE — Demo landing (экран #screen-intro на demo.html)
   Креативный конверсионный лендинг под рекламный трафик.
   Логику теста не трогает; всё скоуплено под .demo-landing.
   Палитра и шрифты — из theme.css (переменные --primary и т.д.).
   ============================================================ */

.demo-landing {
    --dl-cyan: var(--primary);
    --dl-pink: var(--secondary);
    --dl-purple: var(--mastery);
    max-width: 1080px;
    margin: 0 auto;
    padding: 90px 20px 80px;
}

/* Плавное появление секций */
.demo-landing .dl-reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: dlReveal 0.7s ease forwards;
}
.demo-landing .dl-reveal:nth-child(2) { animation-delay: 0.08s; }
.demo-landing .dl-reveal:nth-child(3) { animation-delay: 0.16s; }
@keyframes dlReveal { to { opacity: 1; transform: none; } }

/* ==================== HERO ==================== */
.dl-hero {
    position: relative;
    text-align: center;
    padding: 24px 0 40px;
}

/* Дрейфующие неоновые пятна за героем */
.dl-hero::before,
.dl-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}
.dl-hero::before {
    width: 340px; height: 340px;
    background: radial-gradient(circle, var(--dl-cyan), transparent 70%);
    top: -40px; left: 4%;
    animation: dlDrift 14s ease-in-out infinite alternate;
}
.dl-hero::after {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--dl-pink), transparent 70%);
    top: 20px; right: 4%;
    animation: dlDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes dlDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.15); }
}

.dl-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--dl-cyan);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 26px;
    background: rgba(0, 255, 200, 0.05);
}
.dl-eyebrow .dl-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 8px;
    box-shadow: 0 0 8px var(--success);
    animation: dlBlink 1.6s ease-in-out infinite;
}
@keyframes dlBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.dl-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: clamp(2.1rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 18px rgba(0, 255, 200, 0.35);
    margin-bottom: 20px;
}
.dl-title .dl-accent {
    color: var(--dl-cyan);
    text-shadow: 0 0 12px var(--dl-cyan), 0 0 40px rgba(0, 255, 200, 0.5);
}
.dl-title .dl-sec { color: var(--dl-pink); text-shadow: 0 0 12px var(--dl-pink); }

.dl-sub {
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.6;
    color: rgba(0, 255, 200, 0.85);
}

/* Главная CTA-кнопка (усиливает базовую .btn.btn-primary) */
.demo-landing .dl-cta {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2.4vw, 1.35rem) !important;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 20px 46px !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(0, 255, 200, 0.45), inset 0 0 12px rgba(0, 255, 200, 0.2);
    animation: dlPulse 2.6s ease-in-out infinite;
}
@keyframes dlPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(0, 255, 200, 0.4), inset 0 0 12px rgba(0, 255, 200, 0.2); }
    50%      { box-shadow: 0 0 40px rgba(0, 255, 200, 0.7), inset 0 0 16px rgba(0, 255, 200, 0.3); }
}
/* Пробегающий блик */
.demo-landing .dl-cta::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: dlShine 3.2s ease-in-out infinite;
}
@keyframes dlShine { 0% { left: -60%; } 55%, 100% { left: 130%; } }

.dl-trust {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    font-size: 13px;
    color: rgba(0, 255, 200, 0.6);
}
.dl-trust span::before { content: '✓ '; color: var(--success); }

/* ==================== СПИДОМЕТР ==================== */
.dl-gauge-wrap {
    margin: 46px auto 8px;
    width: 260px;
    text-align: center;
}
.dl-gauge {
    position: relative;
    width: 260px; height: 140px;
    margin: 0 auto;
    overflow: hidden;
}
.dl-gauge-arc {
    position: absolute;
    top: 0; left: 0;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: conic-gradient(from 270deg,
        var(--success) 0deg 45deg,
        var(--warning) 45deg 90deg,
        var(--dl-pink) 90deg 135deg,
        var(--dl-purple) 135deg 180deg,
        transparent 180deg 360deg);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 78px, #000 79px);
            mask: radial-gradient(circle at 50% 50%, transparent 78px, #000 79px);
    opacity: 0.85;
}
.dl-gauge-needle {
    position: absolute;
    left: 50%; bottom: 0;
    width: 3px; height: 108px;
    background: linear-gradient(var(--dl-cyan), transparent);
    transform-origin: bottom center;
    transform: rotate(-82deg);
    box-shadow: 0 0 10px var(--dl-cyan);
    animation: dlSweep 4.5s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}
@keyframes dlSweep {
    0%   { transform: rotate(-82deg); }
    100% { transform: rotate(82deg); }
}
.dl-gauge-hub {
    position: absolute;
    left: 50%; bottom: -6px;
    width: 14px; height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--dl-cyan);
    box-shadow: 0 0 12px var(--dl-cyan);
}
.dl-gauge-caption {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 255, 200, 0.55);
}

/* ==================== СЕКЦИИ ==================== */
.dl-section { margin-top: 76px; }
.dl-section-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 3.4vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: #fff;
    margin-bottom: 8px;
}
.dl-section-title .dl-accent { color: var(--dl-cyan); }
.dl-section-lead {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 34px;
    color: rgba(0, 255, 200, 0.7);
    line-height: 1.6;
}

/* Карточки-выгоды */
.dl-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.dl-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}
.dl-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 255, 200, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.dl-card:hover {
    transform: translateY(-6px);
    border-color: var(--dl-cyan);
    box-shadow: 0 12px 40px rgba(0, 255, 200, 0.15);
}
.dl-card:hover::before { opacity: 1; }
.dl-card-icon {
    font-size: 30px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 200, 0.5));
}
.dl-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    color: var(--dl-cyan);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.dl-card p { color: rgba(0, 255, 200, 0.75); line-height: 1.55; font-size: 0.95rem; }

/* Шкала нормы скорости */
.dl-scale {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 26px 24px;
}
.dl-scale-bar {
    position: relative;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        var(--weak), var(--warning), var(--success), var(--dl-cyan), var(--dl-purple));
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.dl-scale-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    gap: 6px;
}
.dl-tick {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 255, 200, 0.7);
    line-height: 1.4;
}
.dl-tick strong {
    display: block;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 14px;
}

/* Шаги */
.dl-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    counter-reset: dl-step;
}
.dl-step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px 22px 24px;
    text-align: center;
}
.dl-step::before {
    counter-increment: dl-step;
    content: counter(dl-step);
    display: block;
    width: 46px; height: 46px;
    margin: 0 auto 16px;
    line-height: 46px;
    border-radius: 50%;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--dl-cyan);
    box-shadow: 0 0 18px rgba(0, 255, 200, 0.6);
}
.dl-step h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'Orbitron', sans-serif;
}
.dl-step p { color: rgba(0, 255, 200, 0.72); line-height: 1.5; font-size: 0.92rem; }

/* FAQ */
.dl-faq { max-width: 760px; margin: 0 auto; }
.dl-faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.dl-faq summary {
    cursor: pointer;
    padding: 18px 22px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.98rem;
    color: var(--dl-cyan);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.dl-faq summary::-webkit-details-marker { display: none; }
.dl-faq summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--dl-pink);
    transition: transform 0.2s ease;
}
.dl-faq details[open] summary::after { transform: rotate(45deg); }
.dl-faq details p {
    padding: 0 22px 20px;
    color: rgba(0, 255, 200, 0.78);
    line-height: 1.6;
}

/* Финальный CTA */
.dl-final {
    margin-top: 80px;
    text-align: center;
    padding: 50px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 255, 200, 0.1), transparent 60%),
        var(--bg-card);
}
.dl-final h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
}
.dl-final p { color: rgba(0, 255, 200, 0.75); margin-bottom: 28px; }

/* Топ-бар лендинга (замена inline-стиля, запрещённого CSP) */
.dl-topbar { margin-top: 24px; }

/* Ранг в результатах — скрыт до завершения теста, показывается из demo.js */
.dl-rank {
    display: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    margin: 6px 0 4px;
    border-radius: 999px;
    border: 1px solid var(--dl-cyan);
    color: var(--dl-cyan);
    box-shadow: 0 0 18px rgba(0, 255, 200, 0.35);
}

/* ==================== РАЗБОР НАБОРА (результаты) ==================== */
.result-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 640px;
    margin: 22px auto 4px;
    text-align: left;
}
.result-rhythm,
.result-problem-keys {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}
.rb-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.rb-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dl-cyan);
    margin: 0;
}
.rb-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--dl-pink);
    color: var(--dl-pink);
    white-space: nowrap;
}

/* Ритм */
.rhythm-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}
.rhythm-meter-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dl-pink), var(--dl-cyan));
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.5);
    transition: width .8s ease;
}
.rhythm-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 10px 0 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}
.rhythm-meta strong { color: var(--dl-cyan); }
.rhythm-hint { font-size: 11px; color: rgba(255, 255, 255, 0.4); }
.rhythm-spark {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 44px;
}
.rhythm-bar {
    flex: 1;
    min-width: 2px;
    background: linear-gradient(180deg, var(--dl-cyan), rgba(0, 255, 200, 0.15));
    border-radius: 2px 2px 0 0;
}

/* Проблемные клавиши */
.pk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pk-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pk-cap {
    flex: 0 0 auto;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--dl-pink);
    background: rgba(255, 0, 100, 0.08);
    border: 1px solid var(--dl-pink);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 0, 100, 0.25);
}
.pk-info { display: flex; flex-direction: column; gap: 1px; }
.pk-metric { font-size: 13px; font-weight: 600; color: #fff; }
.pk-finger { font-size: 11px; color: rgba(255, 255, 255, 0.5); }

/* ==================== АДАПТИВ ==================== */
@media (max-width: 600px) {
    .demo-landing { padding: 80px 16px 60px; }
    .dl-section { margin-top: 56px; }
    .dl-trust { font-size: 12px; }
    .result-breakdown { grid-template-columns: 1fr; }
}

/* Уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .demo-landing .dl-reveal,
    .demo-landing .dl-cta,
    .demo-landing .dl-cta::after,
    .dl-hero::before, .dl-hero::after,
    .dl-gauge-needle, .dl-eyebrow .dl-dot {
        animation: none !important;
    }
    .demo-landing .dl-reveal { opacity: 1; transform: none; }
    .dl-gauge-needle { transform: rotate(0deg); }
}
