/* DELTA V80 — reliable dark/light themes + readable contrast */
:root{color-scheme:light;--theme-bg:#f5f9fd;--theme-surface:#fff;--theme-surface-2:#eef6fb;--theme-text:#102b43;--theme-text-2:#35566d;--theme-muted:#5f788b;--theme-line:#d2e2ec}
html[data-theme="dark"]{color-scheme:dark!important;background:#06111d!important}
html[data-theme="dark"] body,html[data-theme="dark"] body.theme-dark{--bg:#06111d!important;--surface:#0c1d2d!important;--surface-2:#0a1725!important;--surface-3:#10283b!important;--text:#f0f9ff!important;--text-2:#c9e0ed!important;--muted:#9bb7c8!important;--line:rgba(157,211,239,.20)!important;--line-strong:rgba(157,211,239,.34)!important;background:radial-gradient(circle at 50% -10%,#12324b 0%,#06111d 48%,#040c15 100%)!important;color:#f0f9ff!important}
html[data-theme="light"] body,html:not([data-theme="dark"]) body{--bg:var(--theme-bg)!important;--surface:var(--theme-surface)!important;--surface-2:var(--theme-surface-2)!important;--surface-3:#e5f0f7!important;--text:var(--theme-text)!important;--text-2:var(--theme-text-2)!important;--muted:var(--theme-muted)!important;--line:var(--theme-line)!important;background:linear-gradient(135deg,#f7fbff,#edf5fb 55%,#fff)!important;color:var(--theme-text)!important}
/* Dark surfaces */
html[data-theme="dark"] .header.page,html[data-theme="dark"] .header.scrolled{background:rgba(6,17,29,.88)!important;border-color:rgba(157,211,239,.20)!important;box-shadow:0 10px 35px rgba(0,0,0,.30)!important}
html[data-theme="dark"] .links a,html[data-theme="dark"] .btn:not(.primary),html[data-theme="dark"] .lang-current{color:#eaf8ff!important}
html[data-theme="dark"] .btn:not(.primary),html[data-theme="dark"] .lang-menu{background:#0d2233!important;border-color:rgba(157,211,239,.25)!important}
html[data-theme="dark"] .section,html[data-theme="dark"] .section.light,html[data-theme="dark"] .section.white{background:linear-gradient(180deg,#081827,#06111d)!important;color:#eaf8ff!important}
html[data-theme="dark"] .section h2,html[data-theme="dark"] .section-head h2,html[data-theme="dark"] .about h2,html[data-theme="dark"] .page-hero h1{color:#f0f9ff!important}
html[data-theme="dark"] .section p,html[data-theme="dark"] .about p,html[data-theme="dark"] .section-head p,html[data-theme="dark"] .page-hero p{color:#a9c4d4!important}
html[data-theme="dark"] .service,html[data-theme="dark"] .product-card,html[data-theme="dark"] .project,html[data-theme="dark"] .info-card,html[data-theme="dark"] .media,html[data-theme="dark"] .glass,html[data-theme="dark"] .card,html[data-theme="dark"] .feature-card{background:linear-gradient(145deg,#10283a,#0b1b2b)!important;border-color:rgba(157,211,239,.22)!important;color:#edf8ff!important;box-shadow:0 18px 48px rgba(0,0,0,.24)!important}
html[data-theme="dark"] .service h3,html[data-theme="dark"] .product-card h3,html[data-theme="dark"] .project h3,html[data-theme="dark"] .info-card h3{color:#f0f9ff!important}
html[data-theme="dark"] .service p,html[data-theme="dark"] .product-card p,html[data-theme="dark"] .project p,html[data-theme="dark"] .info-card p,html[data-theme="dark"] .glass small{color:#a9c4d4!important}
html[data-theme="dark"] .stats-grid{background:linear-gradient(135deg,#102b40,#0a1c2b)!important;border-color:rgba(157,211,239,.24)!important;box-shadow:0 24px 70px rgba(0,0,0,.35)!important}
html[data-theme="dark"] .stat,html[data-theme="dark"] .stat strong{color:#f0f9ff!important}html[data-theme="dark"] .stat span{color:#9bb7c8!important}
html[data-theme="dark"] .page-hero{background:linear-gradient(135deg,#0b2337,#071522)!important;color:#f0f9ff!important}
html[data-theme="dark"] .cta{background:linear-gradient(135deg,#102d43,#0b1c2c)!important;color:#f0f9ff!important;border-color:rgba(157,211,239,.24)!important}
/* Light surfaces: dark readable text, never white-on-white */
html[data-theme="light"] .header.page,html[data-theme="light"] .header.scrolled{background:rgba(255,255,255,.94)!important;border-color:#d2e2ec!important}
html[data-theme="light"] .links a,html[data-theme="light"] .btn:not(.primary),html[data-theme="light"] .lang-current{color:#173b56!important}
html[data-theme="light"] .btn:not(.primary),html[data-theme="light"] .lang-menu{background:#fff!important;color:#173b56!important}
html[data-theme="light"] .section,html[data-theme="light"] .section.light,html[data-theme="light"] .section.white{color:#102b43!important}
html[data-theme="light"] .section h2,html[data-theme="light"] .section-head h2,html[data-theme="light"] .about h2,html[data-theme="light"] .page-hero h1{color:#102b43!important}
html[data-theme="light"] .section p,html[data-theme="light"] .about p,html[data-theme="light"] .section-head p,html[data-theme="light"] .page-hero p{color:#4e6b80!important}
html[data-theme="light"] .service,html[data-theme="light"] .product-card,html[data-theme="light"] .project,html[data-theme="light"] .info-card,html[data-theme="light"] .media,html[data-theme="light"] .card,html[data-theme="light"] .feature-card{background:linear-gradient(145deg,#fff,#f1f8fd)!important;color:#173b56!important;border-color:#d2e2ec!important}
html[data-theme="light"] .service h3,html[data-theme="light"] .product-card h3,html[data-theme="light"] .project h3,html[data-theme="light"] .info-card h3{color:#123b58!important}
html[data-theme="light"] .service p,html[data-theme="light"] .product-card p,html[data-theme="light"] .project p,html[data-theme="light"] .info-card p{color:#4e6b80!important}
html[data-theme="light"] .stats-grid{background:linear-gradient(135deg,#fff,#eef7fc)!important;border-color:#d2e2ec!important}
html[data-theme="light"] .stat,html[data-theme="light"] .stat strong{color:#173b56!important}html[data-theme="light"] .stat span{color:#5f788b!important}
/* Hero stays premium in both modes */
html[data-theme="light"] .hero{background:linear-gradient(135deg,#eaf5ff,#f8fcff)!important;color:#173b56!important}
html[data-theme="light"] .hero h1{color:#102b43!important}html[data-theme="light"] .hero p{color:#4e6b80!important}
html[data-theme="dark"] .hero{background:radial-gradient(circle at 50% 0%,rgba(0,194,255,.16),transparent 40%),linear-gradient(135deg,#061522,#081e32)!important}
/* Gateway language cards */
html[data-theme="dark"] .language-card{background:linear-gradient(145deg,#102b40,#0b1c2c)!important;color:#edf8ff!important;border-color:rgba(157,211,239,.24)!important}
html[data-theme="light"] .language-card{background:linear-gradient(145deg,#fff,#edf7fd)!important;color:#173b56!important;border-color:#d2e2ec!important}
/* Remove old forced light rule from V54 */
html[data-theme="dark"] .footer{background:linear-gradient(135deg,#040c15,#091d30)!important}
@media(max-width:850px){.theme-toggle .theme-text{display:inline-block!important}.logo img{max-width:100%!important}}
