.theme-toggle { position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; color: #d8d1e0; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.theme-toggle:hover { border-color: var(--line-strong); color: #fff; background: rgba(124,77,255,.1); transform: rotate(8deg); }
.theme-toggle span { position: absolute; font-size: 1rem; line-height: 1; transition: opacity .22s, transform .28s var(--ease); }
.theme-toggle__moon { opacity: 0; transform: translateY(18px) rotate(-35deg); }
html[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: translateY(-18px) rotate(35deg); }
html[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: none; }

html[data-theme="light"] {
    --bg: #e4e4e7;
    --bg-raised: #f7f6f8;
    --surface: #f5f4f6;
    --surface-soft: #dedde1;
    --secondary: #121015;
    --muted: #5d5962;
    --border: #cdccd1;
    --line: rgba(18, 16, 21, .16);
    --line-strong: rgba(91, 38, 214, .46);
    --primary: #5b26d6;
    --primary-bright: #6731df;
    color-scheme: light;
}

html[data-theme="light"] body { color: var(--secondary); background: var(--bg); }
html[data-theme="light"] main > section:not(.contact) { background: var(--bg); }
html[data-theme="light"] .site-header { color: #121015; border-color: rgba(18,16,21,.14); background: rgba(244,243,245,.96); box-shadow: 0 10px 35px rgba(18,16,22,.09); backdrop-filter: blur(18px); }
html[data-theme="light"] .site-header.is-scrolled { background: rgba(244,243,245,.93); }
html[data-theme="light"] .site-header .brand-lockup img { filter: brightness(.23) saturate(1.55) contrast(1.18); }
html[data-theme="light"] .site-nav a { color: #5e5a64; }
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a.is-active { color: #17161a; }
html[data-theme="light"] .site-nav a.is-active { color: var(--primary); text-shadow: none; }
html[data-theme="light"] .site-header .theme-toggle,
html[data-theme="light"] .site-header .language-dropdown__toggle,
html[data-theme="light"] .site-header .live-status,
html[data-theme="light"] .site-header .header-cart { color: #514d57; border-color: rgba(20,18,24,.14); background: rgba(255,255,255,.58); }
html[data-theme="light"] .site-header .theme-toggle:hover,
html[data-theme="light"] .site-header .language-dropdown__toggle:hover,
html[data-theme="light"] .site-header .header-cart:hover { color: #17161a; background: #fff; }
html[data-theme="light"] .language-dropdown__menu { color: #201e24; background: rgba(255,255,255,.98); box-shadow: 0 22px 60px rgba(18,16,22,.16); }
html[data-theme="light"] .language-dropdown__menu a { color: #625e68; }
html[data-theme="light"] .language-dropdown__menu a:hover,
html[data-theme="light"] .language-dropdown__menu a[aria-current="true"] { color: #17161a; background: rgba(99,54,213,.09); }
html[data-theme="light"] .promotion-banner { color: #d9d2df; background: linear-gradient(90deg,rgba(231,184,90,.035),rgba(231,184,90,.11),rgba(231,184,90,.035)),rgba(13,11,16,.97); }
html[data-theme="light"] .site-footer { color: #d8d1df; background: #0b0810; }
html[data-theme="light"] .site-footer p { color: #aaa1b3; }
html[data-theme="light"] .page-loader { background: #e4e4e7; }
html[data-theme="light"] .page-loader__mark img { filter: brightness(.23) saturate(1.55) contrast(1.18); }
html[data-theme="light"] .page-loader__label { color: #615e67; }

html[data-theme="light"] .hero { background: radial-gradient(circle at 72% 38%, rgba(91,38,214,.13), transparent 29%), linear-gradient(135deg,#ececef 22%,#e2e2e5 68%,#d5d4d9); }
html[data-theme="light"] .hero::before { opacity: .52; background-image: linear-gradient(rgba(20,18,24,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(20,18,24,.05) 1px,transparent 1px); }
html[data-theme="light"] .hero h1 em { -webkit-text-stroke-color: #6b3ad8; text-shadow: none; }
html[data-theme="light"] .hero__lead { color: #4f4b54; }
html[data-theme="light"] .statement,
html[data-theme="light"] .capabilities,
html[data-theme="light"] .platform,
html[data-theme="light"] .principles { background: #e4e4e7; }
html[data-theme="light"] .capabilities { background: linear-gradient(#e4e4e7,#dad9dd); }
html[data-theme="light"] .capability-card,
html[data-theme="light"] .architecture,
html[data-theme="light"] .architecture__product { background: rgba(247,246,248,.9); box-shadow: 0 18px 55px rgba(18,16,22,.08); }
html[data-theme="light"] .architecture__product strong { color: #1d1b20; }
html[data-theme="light"] .architecture__product small { color: #716d76; }
html[data-theme="light"] .architecture__core { color: #fff; background: linear-gradient(145deg,#6336d5,#2c193f); }

html[data-theme="light"] .shop-hero,
html[data-theme="light"] .store-plans,
html[data-theme="light"] .store-bundles,
html[data-theme="light"] .store-all-in-one,
html[data-theme="light"] .shop-products,
html[data-theme="light"] .product-detail,
html[data-theme="light"] .cart-section,
html[data-theme="light"] .configurator-section { background: #e4e4e7; }
html[data-theme="light"] .store-plan-card,
html[data-theme="light"] .bundle-card,
html[data-theme="light"] .all-in-one-card,
html[data-theme="light"] .module-product-card,
html[data-theme="light"] .product-detail-card,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .cart-summary,
html[data-theme="light"] .configurator-card,
html[data-theme="light"] .configuration-summary { color: #1d1b20; background: #f7f6f8; box-shadow: 0 20px 60px rgba(18,16,22,.09); }
html[data-theme="light"] .all-in-one-card--lifetime { background: linear-gradient(145deg,#ece9f3,#fff 70%); }
html[data-theme="light"] .all-in-one-included li,
html[data-theme="light"] .product-category-filter button,
html[data-theme="light"] .all-in-one-terms span { color: #514e56; background: #edeef0; }
html[data-theme="light"] .all-in-one-custom,
html[data-theme="light"] .bundle-card fieldset { background: #edeef0; }
html[data-theme="light"] .all-in-one-custom input,
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea { color: #21162b; background: #fff; }

/* Store components were authored for dark surfaces and need explicit light ink. */
html[data-theme="light"] .store-plan-card > span,
html[data-theme="light"] .store-master-note > span,
html[data-theme="light"] .module-product-card small,
html[data-theme="light"] .product-card__top span,
html[data-theme="light"] .bundle-card__top span { color: #5b26d6; }
html[data-theme="light"] .store-plan-card p,
html[data-theme="light"] .store-plan-card li,
html[data-theme="light"] .store-master-note p,
html[data-theme="light"] .module-product-card p,
html[data-theme="light"] .product-card > p,
html[data-theme="light"] .license-tier li { color: #57525c; }
html[data-theme="light"] .store-price__amounts strong,
html[data-theme="light"] .module-product-card > strong,
html[data-theme="light"] .product-card > strong,
html[data-theme="light"] .license-models > article > strong { color: #4920ad; }
html[data-theme="light"] .store-price__amounts del,
html[data-theme="light"] .store-price__amounts small,
html[data-theme="light"] .store-price-prefix,
html[data-theme="light"] .bundle-card__top small,
html[data-theme="light"] .product-card__top small { color: #625d67; }
html[data-theme="light"] .store-price--sale .store-price__amounts strong,
html[data-theme="light"] .bundle-card--sale .bundle-price__current > strong { color: #a96900; }
html[data-theme="light"] .store-price--sale .store-price__amounts del,
html[data-theme="light"] .bundle-card--sale del { color: #554d41; text-decoration-color: #a96900; }
html[data-theme="light"] .store-sale-badge { background: #fff8e8; border-color: #a96900; }
html[data-theme="light"] .store-sale-badge b { color: #8a5500; }
html[data-theme="light"] .store-sale-badge small { color: #715526; }
html[data-theme="light"] .store-master-note { background: linear-gradient(135deg,rgba(91,38,214,.08),rgba(255,255,255,.42)); }
html[data-theme="light"] .bundle-card__contents li { color: #403b45; background: #e5e3e8; }
html[data-theme="light"] .bundle-card fieldset label > span { color: #514c56; }
html[data-theme="light"] .bundle-card fieldset input:checked + span { color: #17131c; background: rgba(91,38,214,.1); }

html[data-theme="light"] .legal-hero,
html[data-theme="light"] .contact-page,
html[data-theme="light"] .auth-page { background: radial-gradient(circle at 80% 25%,rgba(91,38,214,.11),transparent 34%),#e4e4e7; }
html[data-theme="light"] .legal-grid aside,
html[data-theme="light"] .contact-form-card,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .modal { color: #1d1b20; background: #fff; box-shadow: 0 24px 75px rgba(18,16,22,.16); }
html[data-theme="light"] .modal-backdrop { background: rgba(28,18,35,.35); }
html[data-theme="light"] .accessibility-trigger,
html[data-theme="light"] .scroll-top { color: #fff; background: rgba(47,27,68,.92); }

@media (max-width: 980px) {
    .theme-toggle { width: 42px; height: 42px; }
}
