/*
 * BPH SYSTEMS — LIGHT THEME (white + elephant grey + black). This is the default theme.
 * Active when <html data-theme="light">, which is always the case unless the URL has ?theme=dark.
 * The dark theme is kept untouched in the other stylesheets.
 *
 * Rhythm: hero white → Intelligence elephant → Energy white → Scale elephant → footer black.
 * "Boxes" (cards, consoles, panels, menus, footer) stay dark.
 */

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #ecebe7;          /* elephant, light */
  --fg: #111214;
  --muted: #67625b;           /* elephant, text */
  --faint: #9c968e;
  --accent: #c47f24;          /* deeper amber, readable on white */
  color-scheme: light;
}

/* ---------- dark boxes keep the dark palette ---------- */
[data-theme="light"] :is(.card, .demo__console, .care__panel, .eday__panel, .site-footer, .lang__menu) {
  --bg: #0b0d10;
  --fg: #e9edf3;
  --muted: rgba(233, 237, 243, 0.55);
  --faint: rgba(233, 237, 243, 0.3);
  --accent: #f2b870;
  color: var(--fg);
}
[data-theme="light"] :is(.card, .eday__panel) { box-shadow: 0 30px 80px rgba(17, 18, 20, 0.18); }
[data-theme="light"] :is(.demo__console, .care__panel) {
  background: linear-gradient(180deg, #16191d, #0f1114);
  border-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 30px 80px rgba(17, 18, 20, 0.16);
}

/* ---------- section rhythm ---------- */
/* Explore: Intelligence elephant → Care white → Hospitality elephant → Energy white → Security elephant → Scale elephant (dark stage) → footer black */
[data-theme="light"] :is(.intel, .hotel, .sec-sec, .scale) { --bg: var(--bg-alt); }
[data-theme="light"] :is(.intel, .care-sec, .hotel, .energy, .sec-sec, .scale) { border-top-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] :is(.incident, .role, .chat, .tile) { box-shadow: 0 24px 60px rgba(17, 18, 20, 0.14); border-color: rgba(0, 0, 0, 0.5); }
[data-theme="light"] .site-footer { border-top-color: transparent; }

/* ---------- hero ---------- */
[data-theme="light"] .hero__scrim {
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, transparent 50%, rgba(236, 235, 231, 0.75) 100%),
    linear-gradient(to top, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0) 40%);
}
[data-theme="light"] .hero__l2 { color: #4f4b45; }
/* the common-language console and the mobile ORA caption become small dark boxes so the text reads clearly */
[data-theme="light"] :is(.hero__console, .hero__ora) {
  --fg: #e9edf3;
  --faint: rgba(233, 237, 243, 0.38);
  --accent: #f2b870;
  background: rgba(20, 22, 26, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(17, 18, 20, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-shadow: none;
}
[data-theme="light"] .hero__console { padding: 16px 20px 14px; color: rgba(233, 237, 243, 0.62); }
[data-theme="light"] .hero__console-head { border-top: 0; padding-top: 0; }
[data-theme="light"] .hero__ora { padding: 10px 14px; }
[data-theme="light"] .hero__scroll { background: rgba(0, 0, 0, 0.12); }

/* ---------- header & menus ---------- */
[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  border-block-end-color: rgba(0, 0, 0, 0.07);
}
[data-theme="light"] .btn--ghost { border-color: rgba(0, 0, 0, 0.2); }
[data-theme="light"] .btn--ghost:hover { border-color: rgba(0, 0, 0, 0.55); }
[data-theme="light"] .btn--accent { color: #fff; }
[data-theme="light"] .btn--accent:hover { background: #b06f19; border-color: #b06f19; }
[data-theme="light"] .site-footer .btn--accent { color: #120c05; }
[data-theme="light"] .site-footer .btn--accent:hover { background: #f6c78a; border-color: #f6c78a; }
[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, 0.97); }
[data-theme="light"] .mobile-menu__lang { border-color: rgba(0, 0, 0, 0.12); }
[data-theme="light"] .mobile-menu__lang[aria-current="true"] { color: #111214; border-color: var(--accent); }

/* ---------- shared type ---------- */
[data-theme="light"] .sec-title { color: #57524b; }
[data-theme="light"] .p { color: #111214; }

/* ---------- Intelligence ---------- */
[data-theme="light"] .chip {
  color: #3d3a35;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.09);
}
[data-theme="light"] .chip:hover { color: #000; border-color: rgba(0, 0, 0, 0.25); }
[data-theme="light"] .chip[aria-pressed="true"] { color: #000; background: #fff; border-color: var(--accent); box-shadow: 0 6px 20px rgba(196, 127, 36, 0.12); }
[data-theme="light"] .trust__item { border-block-start-color: rgba(0, 0, 0, 0.14); }

/* ---------- Energy ---------- */
[data-theme="light"] .ekpi__item { border-block-start-color: rgba(0, 0, 0, 0.14); }
[data-theme="light"] .eproto__list li { background: var(--bg-alt); border-color: transparent; color: var(--muted); }

/* ---------- Scale ----------
   The zoom stage is a dark charcoal "screen" (like the other boxes), so the central management,
   cluster and status labels read clearly. The canvas uses its dark palette here. */
[data-theme="light"] .zoom__sticky {
  --fg: #e9edf3;
  --muted: rgba(233, 237, 243, 0.62);
  --faint: rgba(233, 237, 243, 0.32);
  --accent: #f2b870;
  color: var(--fg);
  background: radial-gradient(ellipse 80% 70% at 60% 45%, #24282e 0%, #181b1f 70%);
}
[data-theme="light"] .zoom__fade {
  background:
    linear-gradient(to right, rgba(24, 27, 31, 0.92) 0%, rgba(24, 27, 31, 0.5) 26%, rgba(24, 27, 31, 0) 46%),
    radial-gradient(ellipse 90% 80% at 60% 50%, transparent 60%, rgba(24, 27, 31, 0.7) 100%);
}
@media (max-width: 900px) {
  [data-theme="light"] .zoom__fade {
    background:
      linear-gradient(to top, rgba(24, 27, 31, 0.96) 0%, rgba(24, 27, 31, 0.7) 30%, rgba(24, 27, 31, 0) 50%),
      radial-gradient(ellipse 100% 80% at 50% 40%, transparent 60%, rgba(24, 27, 31, 0.7) 100%);
  }
}

/* ---------- mockup theme switch (only shown with ?theme=…) ---------- */
.theme-switch {
  position: fixed;
  inset-block-end: 18px;
  inset-inline-start: 18px;
  z-index: 60;
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font: 500 12px/1 var(--font);
}
.theme-switch a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(233, 237, 243, 0.6);
  text-decoration: none;
}
.theme-switch a[aria-current="true"] { background: #f2b870; color: #120c05; }
