/* Reference palette: midnight navy, violet and teal glows, soft accents. */
:root {
    color-scheme: dark;
    --primary-color: #ede9ff;
    --secondary-color: #ffd43b;
    --info-color: #9edee2;
    --warning-color: #ffd43b;
    --danger-color: #ffa5b8;
    --dark-color: #071427;
    --light-color: #ffffff;
    --gradient-primary: linear-gradient(135deg, #ede9ff, #ffa5b8);
    --gradient-secondary: linear-gradient(135deg, #241c56, #0b3040);
    --gradient-warning: linear-gradient(135deg, #ffd43b, #ffe783);
}

body, #preloader { background: #071427; color: #ffffff; }

.hero-pin,
.mission-section,
.final-cta-section,
.doc-footer {
    background:
        radial-gradient(ellipse at 95% 5%, #241c56 0%, transparent 55%),
        radial-gradient(ellipse at 0% 100%, #0b3040 0%, transparent 45%),
        #071427;
}

.hero-overlay {
    background: radial-gradient(ellipse at 90% 15%, rgba(77, 51, 151, .2), transparent 60%);
}

/* Keep animated artwork luminous on the dark surface. */
#hero-thinking-orb canvas { filter: none; }

.hero-accent-pop, .text-gradient, .brain-phrase-accent {
    background-image: linear-gradient(120deg, #ffffff, #ede9ff 60%, #ffa5b8);
    text-shadow: none;
}

.hero-typed-accent, .hero-typed-separator,
.few-words-kicker, .few-words-version,
.hero-scroll-cue .hero-version { color: #ffd43b; }

.btn-warning, .btn-primary, .btn-glow, .btn-success,
.ludix-cta-btn, .curtain-nav-btn.is-active {
    background: #ede9ff !important;
    border-color: #ede9ff !important;
    color: #182650 !important;
    box-shadow: none !important;
}

.btn-warning:hover, .btn-warning:focus,
.btn-primary:hover, .btn-primary:focus,
.btn-glow:hover, .btn-glow:focus,
.btn-success:hover, .btn-success:focus,
.ludix-cta-btn:hover, .ludix-cta-btn:focus {
    background: #dcd4ff !important;
    border-color: #dcd4ff !important;
    color: #182650 !important;
}

.btn-outline-light {
    background: transparent !important;
    border-color: #68738d !important;
    color: #ede9ff !important;
}

.btn-outline-light:hover, .btn-outline-light:focus {
    background: #241c56 !important;
    color: #ffffff !important;
}

.bg-warning, .badge.bg-warning, .new-feature-badge {
    background: #ffd43b !important;
    border-color: #ffd43b !important;
    color: #071427 !important;
}

.text-warning { color: #ffd43b !important; }
.text-info, .text-success { color: #9edee2 !important; }
.text-primary { color: #ede9ff !important; }

.few-words-check {
    background: #0b3040;
    color: #9edee2 !important;
    box-shadow: 0 8px 18px rgba(11, 48, 64, .25);
}

.detailed-section-icon, .ecosystem-avatar, .testimonial-avatar {
    background: #241c56 !important;
    color: #ede9ff !important;
}

.detailed-section-icon i { color: #ede9ff !important; }
.memory-highlight-banner { background: linear-gradient(135deg, #241c56, #0b3040); }
.few-words-caret, .brain-caret, .final-cta-caret { background: #ffd43b; }
.curtain-band { background: #241c56; }
.curtain-title { color: #ffffff; }
.navbar-toggler-icon { filter: brightness(0) invert(1); }
#faq .accordion-button::after { filter: brightness(0) invert(1); }

::selection { background: #ede9ff; color: #071427; }
:focus-visible { outline: 3px solid #ffd43b; outline-offset: 3px; }
