/* ============================================================
   KLYVERO HOMEPAGE DARK MODE
   KLYVERO_PUBLIC_THEME_SITE_V852
   ============================================================ */

:root[data-theme="dark"] {
    --text: #f4f4f5;
    --muted: #969eac;
    --muted-dark: #b0b7c3;

    --line: #3a4049;

    --background: #17191d;
    --soft: #1d2025;
    --soft-blue: #141721;
}


/* ============================================================
   PAGE
   ============================================================ */

:root[data-theme="dark"] body {
    color:
        var(--text);

    background:
        var(--background);
}


/* ============================================================
   HEADER
   ============================================================ */

:root[data-theme="dark"] .site-header {
    border-bottom-color:
        rgba(
            55,
            61,
            73,
            0.88
        );

    background:
        rgba(
            13,
            15,
            19,
            0.88
        );
}

:root[data-theme="dark"] .desktop-nav a,
:root[data-theme="dark"] .login-link {
    color:
        #aeb5c1;
}

:root[data-theme="dark"] .desktop-nav a:hover,
:root[data-theme="dark"] .login-link:hover {
    color:
        #ffffff;
}

:root[data-theme="dark"] .menu-button span {
    background:
        #f4f4f5;
}

:root[data-theme="dark"] .mobile-nav {
    border-color:
        var(--line);

    background:
        #1d2025;
}


/* ============================================================
   HERO
   ============================================================ */

:root[data-theme="dark"] .hero {
    background:
        radial-gradient(
            circle at 82% 10%,
            rgba(
                139,
                92,
                246,
                0.14
            ),
            transparent 27%
        ),
        radial-gradient(
            circle at 63% 35%,
            rgba(
                59,
                130,
                246,
                0.11
            ),
            transparent 31%
        ),
        #17191d;
}

:root[data-theme="dark"] .hero::before {
    border-color:
        rgba(
            99,
            102,
            241,
            0.12
        );
}

:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .section-intro h2,
:root[data-theme="dark"] .benefit-heading h2,
:root[data-theme="dark"] .contact-copy h2,
:root[data-theme="dark"] .demo-copy h2,
:root[data-theme="dark"] .sales-value-header h2,
:root[data-theme="dark"] .proof-heading h2 {
    color:
        #f4f4f5;
}

:root[data-theme="dark"] .hero-description,
:root[data-theme="dark"] .section-copy p,
:root[data-theme="dark"] .benefit-heading p,
:root[data-theme="dark"] .contact-copy p,
:root[data-theme="dark"] .sales-value-header > p,
:root[data-theme="dark"] .proof-heading > p {
    color:
        #a7aebb;
}

:root[data-theme="dark"] .text-link,
:root[data-theme="dark"] .section-copy .section-copy-lead {
    color:
        #e4e7ec;
}

:root[data-theme="dark"] .eyebrow {
    border-color:
        rgba(
            129,
            140,
            248,
            0.24
        );

    background:
        rgba(
            99,
            102,
            241,
            0.13
        );

    color:
        #a5b4fc;
}

:root[data-theme="dark"] .hero-points span::before {
    background:
        rgba(
            59,
            130,
            246,
            0.14
        );

    color:
        #60a5fa;
}


/* ============================================================
   PRODUCT PREVIEW
   ============================================================ */

:root[data-theme="dark"] .product-preview {
    border-color:
        #3f4650;

    background:
        #171b21;

    box-shadow:
        0
        35px
        80px
        rgba(
            0,
            0,
            0,
            0.32
        );
}

:root[data-theme="dark"] .preview-topbar {
    border-bottom-color:
        #3f4650;

    background:
        rgba(
            24,
            28,
            35,
            0.97
        );
}

:root[data-theme="dark"] .preview-brand,
:root[data-theme="dark"] .preview-copy h2 {
    color:
        #f1f3f5;
}

:root[data-theme="dark"] .preview-nav,
:root[data-theme="dark"] .preview-cart,
:root[data-theme="dark"] .preview-label,
:root[data-theme="dark"] .preview-copy p {
    color:
        #929aa7;
}

:root[data-theme="dark"] .preview-body {
    background:
        radial-gradient(
            circle at 70% 42%,
            #242a33 0,
            #1b2027 48%,
            #22252b 100%
        );
}

:root[data-theme="dark"] .shoe-shape {
    border-bottom-color:
        #d9dee6;

    box-shadow:
        inset
        -30px
        8px
        0
        rgba(
            0,
            0,
            0,
            0.10
        );
}

:root[data-theme="dark"] .shoe-shadow {
    background:
        rgba(
            0,
            0,
            0,
            0.36
        );
}


/* ============================================================
   DEMO CHAT
   ============================================================ */

:root[data-theme="dark"] .chat-preview {
    border-color:
        #434a55;

    background:
        #22252b;

    box-shadow:
        0
        22px
        55px
        rgba(
            0,
            0,
            0,
            0.36
        );
}

:root[data-theme="dark"] .chat-messages {
    background:
        #1c1f24;
}

:root[data-theme="dark"] .ai-message {
    border-color:
        #3f4650;

    background:
        #2a2e35;

    color:
        #d7dbe2;
}

:root[data-theme="dark"] .chat-input {
    border-top-color:
        #3f4650;

    background:
        #22252b;

    color:
        #858d99;
}


/* ============================================================
   SECTIONS
   ============================================================ */

:root[data-theme="dark"] .trust-strip,
:root[data-theme="dark"] .section-light,
:root[data-theme="dark"] .benefit-section,
:root[data-theme="dark"] .implementation-section,
:root[data-theme="dark"] .contact-section,
:root[data-theme="dark"] .proof-section,
:root[data-theme="dark"] .sales-value-section {
    border-color:
        var(--line);

    background:
        #1c1f24;
}

:root[data-theme="dark"] .trust-grid > div,
:root[data-theme="dark"] .steps,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .benefit-list,
:root[data-theme="dark"] .benefit-item {
    border-color:
        var(--line);
}

:root[data-theme="dark"] .trust-grid strong,
:root[data-theme="dark"] .step h3,
:root[data-theme="dark"] .benefit-item h3,
:root[data-theme="dark"] .implementation-grid h3,
:root[data-theme="dark"] .home-integration-card h3,
:root[data-theme="dark"] .sales-value-grid h3,
:root[data-theme="dark"] .proof-card h3 {
    color:
        #f0f2f5;
}

:root[data-theme="dark"] .step-icon {
    border-color:
        rgba(
            129,
            140,
            248,
            0.24
        );

    background:
        rgba(
            99,
            102,
            241,
            0.13
        );

    color:
        #a5b4fc;
}


/* ============================================================
   CARDS
   ============================================================ */

:root[data-theme="dark"] .implementation-grid article,
:root[data-theme="dark"] .home-integration-card,
:root[data-theme="dark"] .sales-value-grid article,
:root[data-theme="dark"] .proof-card,
:root[data-theme="dark"] .contact-card {
    border-color:
        #3b414a !important;

    background:
        #22252b !important;

    color:
        #f4f4f5;
}

:root[data-theme="dark"] .implementation-grid article:hover,
:root[data-theme="dark"] .home-integration-card:hover,
:root[data-theme="dark"] .proof-card:hover {
    border-color:
        #414957 !important;

    background:
        #292d34 !important;
}

:root[data-theme="dark"] .home-integration-card > p,
:root[data-theme="dark"] .home-integration-card li,
:root[data-theme="dark"] .implementation-grid p,
:root[data-theme="dark"] .sales-value-grid p,
:root[data-theme="dark"] .proof-card p,
:root[data-theme="dark"] .proof-card li,
:root[data-theme="dark"] .contact-card p {
    color:
        #989fab;
}


/* ============================================================
   PROOF
   ============================================================ */

:root[data-theme="dark"] .proof-status,
:root[data-theme="dark"] .integration-status {
    border-color:
        #343b46;

    background:
        #20252d;

    color:
        #c4cad4;
}

:root[data-theme="dark"] .proof-bottom {
    border-color:
        #3f4650;

    background:
        #23272d;
}

:root[data-theme="dark"] .proof-bottom strong {
    color:
        #f4f4f5;
}

:root[data-theme="dark"] .proof-bottom p,
:root[data-theme="dark"] .proof-text-link {
    color:
        #9da5b2;
}


/* ============================================================
   CONTACT FORM
   ============================================================ */

:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea,
:root[data-theme="dark"] .contact-form select {
    border-color:
        #434a55;

    background:
        #1c1f24;

    color:
        #f4f4f5;
}

:root[data-theme="dark"] .contact-form input::placeholder,
:root[data-theme="dark"] .contact-form textarea::placeholder {
    color:
        #6f7783;
}

:root[data-theme="dark"] .contact-form label,
:root[data-theme="dark"] .pilot-field-label {
    color:
        #d9dde4;
}

:root[data-theme="dark"]
.pilot-platform-option > span {
    border-color:
        #434a55;

    background:
        #22252b;

    color:
        #d8dce3;
}

:root[data-theme="dark"]
.pilot-platform-option input:checked + span {
    border-color:
        rgba(
            99,
            102,
            241,
            0.65
        );

    background:
        rgba(
            79,
            70,
            229,
            0.14
        );
}

:root[data-theme="dark"] .pilot-platform-option small,
:root[data-theme="dark"] .pilot-submit-note,
:root[data-theme="dark"] .contact-field-hint,
:root[data-theme="dark"] .contact-privacy-note {
    color:
        #9098a5;
}


/* ============================================================
   BUTTONS
   ============================================================ */

:root[data-theme="dark"] .button:not(.button-light) {
    border-color:
        transparent;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #6366f1
        );

    color:
        #ffffff;
}

:root[data-theme="dark"] .button:not(.button-light):hover {
    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #7c3aed
        );
}


/* ============================================================
   EXISTING DARK SECTIONS
   ============================================================ */

:root[data-theme="dark"] .section-dark,
:root[data-theme="dark"] .demo-section,
:root[data-theme="dark"] footer {
    color:
        #ffffff;
}


/* ============================================================
   LOGO
   ============================================================ */

:root[data-theme="dark"] .brand-logo-header {
    filter:
        none;
}


/* ============================================================
   SELECTION / SCROLLBAR
   ============================================================ */

:root[data-theme="dark"] {
    scrollbar-color:
        #414752
        #17191d;
}

:root[data-theme="dark"] ::selection {
    background:
        rgba(
            99,
            102,
            241,
            0.34
        );
}


/* === v8.52.1 dark surface tokens === */
:root[data-theme="dark"],
[data-theme="dark"] {
  --site-bg: #17191d;
  --site-bg-elevated: #1d2025;
  --site-surface: #22252b;
  --site-surface-2: #2a2e35;
  --site-surface-3: #30353d;
  --site-border: #3a4049;
  --site-text: #f3f5f7;
  --site-text-soft: #b7bec8;
  --site-text-muted: #949cab;
}
