/* Theme B — Liquid Glass */

:root {
    color-scheme: light dark;

    --bg: #eef3ef;
    --bg-image:
        radial-gradient(58% 52% at 10% 4%, rgba(146, 216, 182, 0.62), transparent 62%),
        radial-gradient(48% 44% at 92% 0%, rgba(255, 210, 186, 0.58), transparent 62%),
        radial-gradient(46% 46% at 78% 88%, rgba(168, 194, 255, 0.4), transparent 62%),
        linear-gradient(165deg, #f9fcf9 0%, #e9f0ea 52%, #edf2f7 100%);

    --text: #18211d;
    --text-2: #55615b;
    --text-3: #8a938e;
    --surface: rgba(255, 255, 255, 0.56);
    --surface-2: rgba(255, 255, 255, 0.38);
    --border: rgba(255, 255, 255, 0.72);
    --accent: #2f7d5b;
    --accent-soft: rgba(47, 125, 91, 0.11);
    --on-accent: #ffffff;
    --device-bg: rgba(255, 255, 255, 0.5);
    --header-bg: rgba(255, 255, 255, 0.42);

    --shadow-sm: 0 2px 10px rgba(28, 62, 46, 0.06);
    --shadow-md: 0 26px 70px rgba(28, 62, 46, 0.16);

    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --blur: blur(28px) saturate(170%);
}

/* Glass gets slightly stronger card borders in light mode */
.app-card,
.feature-card,
.doc-card,
.cta-band,
.device,
.float-card,
.contact-box {
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1210;
        --bg-image:
            radial-gradient(55% 50% at 10% 2%, rgba(38, 96, 70, 0.65), transparent 62%),
            radial-gradient(45% 42% at 92% 0%, rgba(96, 62, 52, 0.5), transparent 62%),
            radial-gradient(45% 45% at 80% 90%, rgba(38, 62, 110, 0.5), transparent 62%),
            linear-gradient(165deg, #101715 0%, #0c100e 60%, #0e1416 100%);

        --text: #eef3ef;
        --text-2: #a5b0a9;
        --text-3: #78837c;
        --surface: rgba(255, 255, 255, 0.07);
        --surface-2: rgba(255, 255, 255, 0.045);
        --border: rgba(255, 255, 255, 0.13);
        --accent: #7fd3a7;
        --accent-soft: rgba(127, 211, 167, 0.13);
        --on-accent: #0b1a12;
        --device-bg: rgba(255, 255, 255, 0.06);
        --header-bg: rgba(16, 23, 20, 0.5);

        --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 26px 70px rgba(0, 0, 0, 0.55);
    }

    .app-card,
    .feature-card,
    .doc-card,
    .cta-band,
    .device,
    .float-card,
    .contact-box {
        box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}

/* --------------------------------------------------------------------------
   Glass buttons
   -------------------------------------------------------------------------- */

.btn {
    position: relative;
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(255, 255, 255, 0.25),
        0 8px 20px rgba(28, 62, 46, 0.08);
    transition: transform 0.18s ease, box-shadow 0.25s ease,
        background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3),
        0 14px 30px rgba(28, 62, 46, 0.14);
}

.btn:active {
    transform: translateY(0) scale(0.985);
    box-shadow: inset 0 1px 2px rgba(28, 62, 46, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 12px rgba(28, 62, 46, 0.1);
}

.btn-primary {
    background: linear-gradient(
        180deg,
        rgba(86, 168, 126, 0.96),
        rgba(45, 122, 89, 0.96)
    );
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(12, 40, 26, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(9, 40, 24, 0.18),
        0 10px 24px rgba(37, 110, 78, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(
        180deg,
        rgba(98, 180, 138, 0.98),
        rgba(52, 132, 97, 0.98)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(9, 40, 24, 0.18),
        0 16px 34px rgba(37, 110, 78, 0.34);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.72);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 0.95);
}

.btn-store {
    background: linear-gradient(
        180deg,
        rgba(44, 52, 48, 0.92),
        rgba(22, 28, 25, 0.94)
    );
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 10px 24px rgba(14, 26, 20, 0.3);
}

.btn-store:hover {
    background: linear-gradient(
        180deg,
        rgba(56, 66, 60, 0.95),
        rgba(30, 38, 34, 0.96)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2),
        0 16px 34px rgba(14, 26, 20, 0.36);
}

.btn-store:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(14, 26, 20, 0.24);
}

/* Segmented language switch, same glass language */
.lang-switcher {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
        0 4px 14px rgba(28, 62, 46, 0.06);
}

.lang-btn.active {
    background: linear-gradient(
        180deg,
        rgba(86, 168, 126, 0.96),
        rgba(45, 122, 89, 0.96)
    );
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 8px rgba(37, 110, 78, 0.28);
}

@media (prefers-color-scheme: dark) {
    .btn {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16),
            inset 0 -1px 0 rgba(0, 0, 0, 0.18),
            0 8px 20px rgba(0, 0, 0, 0.28);
    }

    .btn:hover {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
            inset 0 -1px 0 rgba(0, 0, 0, 0.2),
            0 14px 30px rgba(0, 0, 0, 0.36);
    }

    .btn-primary {
        border-color: rgba(255, 255, 255, 0.18);
        color: #08170f;
        text-shadow: none;
        background: linear-gradient(
            180deg,
            rgba(163, 227, 189, 0.95),
            rgba(112, 194, 151, 0.95)
        );
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 10px 26px rgba(0, 0, 0, 0.35);
    }

    .btn-primary:hover {
        background: linear-gradient(
            180deg,
            rgba(178, 236, 201, 0.98),
            rgba(124, 205, 162, 0.98)
        );
    }

    .btn-ghost {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(255, 255, 255, 0.14);
        color: var(--text);
    }

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .btn-store {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.16),
            rgba(255, 255, 255, 0.09)
        );
        border-color: rgba(255, 255, 255, 0.18);
        color: #f2f6f3;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 10px 26px rgba(0, 0, 0, 0.34);
    }

    .btn-store:hover {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.22),
            rgba(255, 255, 255, 0.13)
        );
    }

    .lang-switcher {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 4px 14px rgba(0, 0, 0, 0.24);
    }

    .lang-btn.active {
        color: #08170f;
        background: linear-gradient(
            180deg,
            rgba(163, 227, 189, 0.95),
            rgba(112, 194, 151, 0.95)
        );
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
            0 2px 8px rgba(0, 0, 0, 0.3);
    }
}
