/* === LANDING.CSS ===
 * /assets/css/landing.css
 * НАЗНАЧЕНИЕ: Лендинг ACI Companion — эстетика "Сакральный Минимализм"
 * СВЯЗИ: index.php (#page-landing), landing.js
 * РАЗМЕР: ~600 строк
 * ПРИНЦИП: единый фон, atmosphere через orbs, золото в темноте
 */

/* ============================================
 * 0a. ПРИНУДИТЕЛЬНЫЙ DARK для гостевой страницы
 * Лендинг — художественная страница "сакральный минимализм".
 * Фон ВСЕГДА тёмный (золото в темноте), независимо от light-theme.
 * Перекрываем глобальные переменные внутри гостя.
 * ============================================ */
html.light-theme body:not(.authenticated),
html body:not(.authenticated) {
    --bg-primary: #0F0F0F;
    --bg-secondary: #1A1A1A;
    --bg-card: #1E1E1E;
    --text-primary: #E8E8E8;
    --text-secondary: #B8B8B8;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.08);
    background-color: #0F0F0F !important;
    color: #E8E8E8;
}

html.light-theme body:not(.authenticated) .navbar,
html body:not(.authenticated) .navbar {
    background: rgba(15, 15, 15, 0.85) !important;
    border-bottom-color: rgba(255, 215, 0, 0.08) !important;
    backdrop-filter: blur(12px);
}

html.light-theme body:not(.authenticated) .btn-primary,
html body:not(.authenticated) .btn-primary {
    color: #1A1A1A !important;
}

/* ============================================
 * 0. OVERRIDE legacy components.css
 * ============================================ */

#page-landing .landing-hero,
#page-landing .landing-features,
#page-landing .landing-courses,
#page-landing .landing-cta,
#page-landing .landing-philosophy {
    background: transparent !important;
}

#page-landing .feature-card {
    box-shadow: none;
}

#page-landing .courses-preview {
    display: none !important;
}

#page-landing .cta-content {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    max-width: none;
}

/* ============================================
 * 1. LANDING ROOT — переменные эстетики
 * ============================================ */

#page-landing {
    --landing-bg: oklch(0.13 0.02 270);
    --landing-bg-soft: oklch(0.16 0.025 275);
    --gold: oklch(0.85 0.15 85);
    --gold-soft: oklch(0.85 0.15 85 / 0.18);
    --gold-glow: oklch(0.85 0.15 85 / 0.08);
    --saffron: oklch(0.72 0.16 55);
    --lapis: oklch(0.55 0.15 250);
    --lapis-soft: oklch(0.55 0.15 250 / 0.15);
    --ink: oklch(0.96 0.01 80);
    --ink-soft: oklch(0.85 0.02 80);
    --ink-muted: oklch(0.62 0.02 80);

    --navbar-h: 80px;
    --section-pad: clamp(80px, 12vh, 140px);

    background: var(--landing-bg);
    color: var(--ink);
    font-family: var(--font-body, 'Crimson Text', Georgia, serif);
    overflow-x: clip;
    position: relative;
    isolation: isolate;
}

#page-landing::before,
#page-landing::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    will-change: transform;
}

#page-landing::before {
    top: 10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--gold-glow), transparent 70%);
    animation: orb-drift 30s ease-in-out infinite;
}

#page-landing::after {
    bottom: 5%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--lapis-soft), transparent 70%);
    animation: orb-drift 38s ease-in-out infinite reverse;
}

@keyframes orb-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
    #page-landing::before,
    #page-landing::after { animation: none; }
}

/* ============================================
 * 2. NAVBAR (overlay для лендинга)
 * ============================================ */

body:not(.authenticated) .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: oklch(0.13 0.02 270 / 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid oklch(1 0 0 / 0.06);
    z-index: 100;
    transition: background 0.3s ease;
}

body:not(.authenticated) .navbar.scrolled {
    background: oklch(0.10 0.02 270 / 0.85);
}

#page-landing.active {
    padding-top: var(--navbar-h);
}

/* ============================================
 * 3. HERO — sacred space
 * ============================================ */

#page-landing .landing-hero {
    min-height: calc(100vh - var(--navbar-h));
    height: calc(100vh - var(--navbar-h));
    display: grid;
    place-items: center;
    padding: 24px 0;
    position: relative;
    text-align: center;
    background: transparent !important;
    overflow: hidden;
}

@media (max-height: 800px) {
    #page-landing .landing-hero { min-height: 0; height: auto; padding: 60px 0; }
}

#page-landing .landing-hero .container {
    max-width: 880px;
    padding: 0 24px;
}

/* Дхармачакра — SVG c вращением */
.dharma-wheel {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 24px oklch(0.78 0.13 70 / 0.30)) drop-shadow(0 0 6px oklch(0.45 0.15 25 / 0.25));
    opacity: 1;
}

.dharma-wheel .wheel-rotate {
    transform-origin: center;
    animation: wheel-spin 60s linear infinite;
}

@keyframes wheel-appear {
    from { opacity: 0; transform: scale(0.6) rotate(-30deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes wheel-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .dharma-wheel .wheel-rotate { animation: none; }
}

/* Эпиграф над названием */
.hero-epigraph {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: clamp(11px, 0.9vw, 13px);
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 1;
}

.hero-title {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}

.hero-subtitle {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: clamp(17px, 2vw, 22px);
    color: var(--gold);
    line-height: 1.4;
    margin-bottom: 14px;
    opacity: 1;
}

.hero-description {
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 580px;
    margin: 0 auto 22px;
    opacity: 1;
}

/* CTA Group */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 1;
}

.btn-sacred {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: oklch(0.15 0.02 270);
    background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 0 0 var(--gold-soft), 0 8px 30px var(--gold-glow);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-sacred::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, oklch(1 0 0 / 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-sacred:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 8px var(--gold-soft), 0 12px 40px var(--gold-soft);
}

.btn-sacred:hover::before { opacity: 1; }

.btn-sacred:active {
    transform: translateY(0);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    background: transparent;
    border: 1px solid oklch(1 0 0 / 0.18);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    color: var(--gold);
    border-color: var(--gold-soft);
    background: var(--gold-glow);
}

/* Disclaimer (мягкий, не баннер) */
.hero-disclaimer {
    margin-top: 22px;
    padding: 12px 18px;
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
    background: oklch(1 0 0 / 0.02);
    backdrop-filter: blur(10px);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
}

.hero-disclaimer strong { color: var(--ink-soft); font-weight: 600; }

/* ============================================
 * 4. SECTION TITLES
 * ============================================ */

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid var(--gold-soft);
    border-radius: 999px;
    background: var(--gold-glow);
}

.section-title {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-title em {
    color: var(--gold);
    font-style: italic;
}

.section-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 580px;
    margin: 0 auto 60px;
}

/* ============================================
 * 5. FEATURES — 9 модулей платформы
 * ============================================ */

.landing-features {
    padding: var(--section-pad) 0;
    text-align: center;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    margin-top: 48px;
    background: oklch(1 0 0 / 0.06);
    border: 1px solid oklch(1 0 0 / 0.06);
    border-radius: 24px;
    overflow: hidden;
}

.feature-card {
    padding: 40px 28px;
    background: var(--landing-bg);
    text-align: left;
    position: relative;
    transition: background 0.4s ease;
    cursor: default;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: width 0.6s ease;
}

.feature-card:hover {
    background: var(--landing-bg-soft);
}

.feature-card:hover::before {
    width: 80%;
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold-glow), transparent);
    border: 1px solid var(--gold-soft);
    margin-bottom: 22px;
    color: var(--gold);
    transition: transform 0.4s ease;
}

.feature-icon svg,
.feature-icon i {
    color: var(--gold) !important;
    stroke: var(--gold) !important;
    width: 24px;
    height: 24px;
}

.feature-card:hover .feature-icon {
    transform: rotate(-6deg) scale(1.05);
}

.feature-icon .icon { width: 24px; height: 24px; }

.feature-card h3 {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-weight: 600;
    font-size: 24px;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-muted);
}

.feature-card .feature-tag {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-heading, serif);
    font-style: italic;
    font-size: 13px;
    color: var(--gold);
}

/* ============================================
 * 6. COURSES PREVIEW — путь из 18 ступеней
 * ============================================ */

.landing-courses {
    padding: var(--section-pad) 0;
    text-align: center;
}

.landing-courses .container {
    max-width: 1100px;
    padding: 0 24px;
    margin: 0 auto;
}

.courses-path {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 48px 0 36px;
    text-align: left;
}

.course-step {
    padding: 18px 20px;
    border: 1px solid oklch(1 0 0 / 0.08);
    border-radius: 14px;
    background: oklch(1 0 0 / 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.course-step.unlocked:hover {
    border-color: var(--gold-soft);
    background: var(--gold-glow);
    transform: translateY(-3px);
}

.course-step .course-num {
    display: block;
    font-family: var(--font-heading, serif);
    font-style: italic;
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.course-step .course-name {
    font-family: var(--font-heading, serif);
    font-size: 17px;
    line-height: 1.3;
    color: var(--ink-soft);
}

.course-step.locked {
    opacity: 0.5;
}

.course-step.locked .course-name {
    color: var(--ink-muted);
}

.course-step.more {
    border-style: dashed;
    text-align: center;
    display: grid;
    place-items: center;
    color: var(--ink-muted);
    font-style: italic;
}

/* ============================================
 * 7. PHILOSOPHY — цитата
 * ============================================ */

.landing-philosophy {
    padding: var(--section-pad) 0;
    text-align: center;
}

.landing-philosophy .container {
    max-width: 800px;
    padding: 0 32px;
    margin: 0 auto;
}

.quote-mark {
    font-family: var(--font-heading, serif);
    font-size: 120px;
    line-height: 0.8;
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: -20px;
    user-select: none;
}

.philosophy-quote {
    font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 30px;
    letter-spacing: -0.005em;
}

.philosophy-author {
    display: inline-block;
    padding-top: 20px;
    font-family: var(--font-body, serif);
    font-size: 14px;
    color: var(--ink-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-top: 1px solid var(--gold-soft);
    padding: 16px 24px 0;
}

/* ============================================
 * 8. CTA FINAL — приглашение
 * ============================================ */

.landing-cta {
    padding: var(--section-pad) 0;
    text-align: center;
    position: relative;
}

.landing-cta .container {
    max-width: 720px;
    padding: 0 24px;
    margin: 0 auto;
    position: relative;
}

.cta-card {
    padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 48px);
    border: 1px solid var(--gold-soft);
    border-radius: 32px;
    background:
        radial-gradient(ellipse at top, var(--gold-glow), transparent 60%),
        linear-gradient(180deg, oklch(0.18 0.025 275 / 0.6), oklch(0.13 0.02 270 / 0.6));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--gold-soft), transparent 30%);
    animation: cta-rotate 20s linear infinite;
    opacity: 0.4;
    z-index: -1;
}

@keyframes cta-rotate {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-card::before { animation: none; }
}

.cta-card .section-title {
    margin-bottom: 18px;
}

.cta-card p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 36px;
}

/* ============================================
 * 9. FOOTER (overrides для лендинга)
 * ============================================ */

body:not(.authenticated) .footer {
    background: transparent;
    border-top: 1px solid oklch(1 0 0 / 0.06);
    padding: 40px 0 30px;
    margin-top: 40px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 14px;
}

body:not(.authenticated) .footer .container {
    max-width: 1100px;
    padding: 0 24px;
    margin: 0 auto;
}

body:not(.authenticated) .footer a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dashed var(--gold-soft);
    transition: border-color 0.2s ease;
}

body:not(.authenticated) .footer a:hover {
    border-bottom-color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-family: var(--font-heading, serif);
    font-style: italic;
}

/* ============================================
 * 10. STAGGERED REVEAL ON SCROLL
 * ============================================ */

/* Reveal: контент ВСЕГДА видим. Анимация только subtle slide-up при первом показе */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
}
html.js-ready [data-reveal] {
    transform: translateY(14px);
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-ready [data-reveal].is-visible {
    transform: translateY(0);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal], .hero-title, .hero-subtitle, .hero-description,
    .hero-actions, .hero-disclaimer, .hero-epigraph, .dharma-wheel {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* ============================================
 * 11. RESPONSIVE
 * ============================================ */

@media (max-width: 768px) {
    #page-landing {
        --navbar-h: 64px;
        --section-pad: 70px;
    }

    .dharma-wheel { width: 120px; height: 120px; margin-bottom: 28px; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-sacred, .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .feature-card { padding: 32px 22px; }

    .courses-path {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        border-radius: 22px;
        padding: 44px 22px;
    }

    .footer-links { gap: 12px; font-size: 13px; }
}

@media (max-width: 420px) {
    .courses-path { grid-template-columns: 1fr; }
}

/* ============================================
 * 12. LIGHT THEME — для лендинга оставляем темный всегда
 * ============================================ */

html.light-theme #page-landing {
    /* Лендинг сохраняет темную атмосферу даже в light-theme.
       Это намеренный выбор — sacred space всегда тёмное небо */
    --landing-bg: oklch(0.13 0.02 270);
    --landing-bg-soft: oklch(0.16 0.025 275);
    color: var(--ink);
}

html.light-theme body:not(.authenticated) .navbar {
    background: oklch(0.13 0.02 270 / 0.7);
}

/* ============================================
 * 13. ДХАРМАЧАКРА — изысканное контурное колесо
 * ============================================ */

.dharma-wheel-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.dharma-wheel-wrap .dharma-wheel {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    /* Тёплое золотое свечение для аутентичной дхармачакры */
    filter: drop-shadow(0 0 24px oklch(0.78 0.13 70 / 0.30))
            drop-shadow(0 0 6px oklch(0.45 0.15 25 / 0.25));
    opacity: 1;
}

@media (max-width: 768px) {
    .dharma-wheel-wrap { width: 160px; height: 160px; margin-bottom: 32px; }
}

/* Один мягкий ореол позади — туман, не огонь */
.wheel-aura {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at center,
        oklch(0.85 0.08 75 / 0.10) 0%,
        oklch(0.75 0.05 65 / 0.04) 35%,
        transparent 65%);
    filter: blur(20px);
    animation: wheel-aura-breath 8s ease-in-out infinite;
}

@keyframes wheel-aura-breath {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}

/* Главное колесо: медленное достойное вращение */
.dharma-wheel .wheel-rotate {
    transform-origin: center;
    animation: wheel-spin 90s linear infinite;
}

@keyframes wheel-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-aura, .dharma-wheel .wheel-rotate { animation: none !important; }
}

/* ============================================
 * 14. ЗВЁЗДЫ + ТОНКАЯ АВРОРА — атмосфера, не дискотека
 * ============================================ */

.hero-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(1px 1px at 20% 30%, oklch(1 0.05 80 / 0.5), transparent),
        radial-gradient(1px 1px at 60% 20%, oklch(0.9 0.10 90 / 0.4), transparent),
        radial-gradient(1px 1px at 80% 60%, oklch(1 0.05 60 / 0.5), transparent),
        radial-gradient(1px 1px at 30% 80%, oklch(0.9 0.10 80 / 0.35), transparent),
        radial-gradient(1.5px 1.5px at 90% 10%, oklch(1 0.08 90 / 0.5), transparent),
        radial-gradient(1px 1px at 10% 50%, oklch(0.85 0.10 75 / 0.3), transparent),
        radial-gradient(1px 1px at 50% 90%, oklch(0.95 0.05 80 / 0.4), transparent),
        radial-gradient(1px 1px at 75% 40%, oklch(0.85 0.08 70 / 0.25), transparent),
        radial-gradient(1px 1px at 15% 70%, oklch(1 0.05 90 / 0.4), transparent),
        radial-gradient(1px 1px at 95% 80%, oklch(0.9 0.10 80 / 0.3), transparent);
    opacity: 0.6;
    animation: stars-twinkle 12s ease-in-out infinite;
}

@keyframes stars-twinkle {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.7; }
}

/* Аврора убрана для чистоты эстетики — фон orbs из #page-landing достаточно */
.hero-aurora { display: none; }

@media (prefers-reduced-motion: reduce) {
    .hero-stars { animation: none; }
}

/* ============================================
 * 15. LOGO в шапке — магическая мини-чакра
 * ============================================ */

.navbar-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-wheel {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px oklch(0.85 0.18 70 / 0.5));
    transition: filter 0.4s ease, transform 0.4s ease;
}

.logo-wheel-rotate {
    transform-origin: center;
    animation: logo-spin 30s linear infinite;
}

.navbar-brand:hover .logo-wheel {
    filter: drop-shadow(0 0 16px oklch(0.85 0.20 70 / 0.8));
    transform: scale(1.1);
}

.navbar-brand:hover .logo-wheel-rotate {
    animation-duration: 6s;
}

@keyframes logo-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-wheel-rotate { animation: none; }
}

/* Прячем старую logo-icon (☸️ эмодзи) если осталась */
.navbar-brand .logo-icon { display: none !important; }

/* ============================================
 * 16. Hero stars видны и в кабинете тоже (subtle)
 * ============================================ */

body.authenticated .navbar .logo-wheel {
    filter: drop-shadow(0 0 6px oklch(0.85 0.18 70 / 0.4));
}
