/* =========================================================
   Roiatek AI · theme-light.css
   Light theme, switched by the sun/moon button (js/theme.js).
   Everything is scoped to html[data-theme="light"], so the dark
   theme is untouched.

   Light palette
     Page          #F4F7FD   soft blue-white
     Surfaces      #FFFFFF   cards, panels
     Text          #0B1A3F   deep navy (brand dark)
     Text 2 / 3    #3B4A6B / #66759A
     Accents       cyan #0789A6, blue #3359E0, violet #7148E8,
                   magenta #D63384, green #16A34A, amber #D97706
   The architecture diagram and the phone mock-ups stay dark on
   purpose: they read as "screens" and keep the brand's LED look.
   ========================================================= */

/* ---------- Theme toggle (both themes) ---------- */
.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.theme-toggle .ico { position: absolute; width: 20px; height: 20px; transition: transform 0.4s var(--ease), opacity 0.3s; }
.theme-toggle .ico-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
html[data-theme="light"] .theme-toggle .ico-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
html[data-theme="light"] .theme-toggle .ico-moon { opacity: 1; transform: none; }
@media (max-width: 1024px) {
  .header-inner { gap: 10px; }
  .theme-toggle { margin-left: auto; }
}

/* Smooth colour change while switching */
.theme-switching body,
.theme-switching body *:not(canvas) {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, fill 0.4s ease !important;
}

/* ---------- Tokens ---------- */
html[data-theme="light"] {
  color-scheme: light;
  --navy-950: #f4f7fd;
  --navy-900: #eaf0fb;
  --navy-850: #e1e9f8;
  --navy-800: #d6e1f5;
  --navy-700: #c3d2ee;
  --line: rgba(28, 56, 130, 0.12);
  --line-strong: rgba(28, 56, 130, 0.22);
  --text: #0b1a3f;
  --text-2: #3b4a6b;
  --text-3: #66759a;
  --cyan: #0789a6;
  --aqua: #0e9f8a;
  --blue: #3359e0;
  --violet: #7148e8;
  --magenta: #d63384;
  --green: #16a34a;
  --amber: #d97706;
  --grad-led: linear-gradient(90deg, #06b6d4, #3359e0 40%, #7148e8 72%, #d63384);
  --glow-cyan: 0 0 14px rgba(6, 182, 212, 0.35);
  --glow-soft: 0 0 26px -8px rgba(6, 182, 212, 0.35), 0 0 46px -20px rgba(113, 72, 232, 0.4);
  --shadow-card: 0 1px 2px rgba(11, 26, 63, 0.04), 0 10px 30px -18px rgba(11, 26, 63, 0.25);
}

/* Dark "screen" islands keep the original dark tokens */
html[data-theme="light"] :is(.arch-frame, .phone, .va-phone, .wa-phone, .json, .idcard) {
  color-scheme: dark;
  --navy-950: #061330;
  --navy-900: #0a1a40;
  --navy-700: #1b3470;
  --line: rgba(120, 150, 230, 0.16);
  --line-strong: rgba(120, 160, 255, 0.28);
  --text: #eaf1ff;
  --text-2: #a9b8da;
  --text-3: #7d8eb5;
  --cyan: #22e4f5;
  --aqua: #2bd9b9;
  --blue: #3d6bff;
  --violet: #8c5cff;
  --magenta: #ee3fa6;
  --green: #46e08a;
  --amber: #ffb547;
  color: var(--text);
}

/* ---------- Page background ---------- */
html[data-theme="light"] body { background: var(--navy-950); }
html[data-theme="light"] body::before {
  background:
    radial-gradient(70vw 60vh at 88% -8%, rgba(51, 89, 224, 0.12), transparent 70%),
    radial-gradient(60vw 60vh at -10% 108%, rgba(113, 72, 232, 0.09), transparent 70%),
    radial-gradient(40vw 40vh at 50% 55%, rgba(6, 182, 212, 0.06), transparent 70%),
    linear-gradient(180deg, #f7f9fe 0%, #f2f6fd 55%, #eef3fc 100%);
}
html[data-theme="light"] body::after {
  background-image:
    linear-gradient(rgba(28, 56, 130, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 56, 130, 0.05) 1px, transparent 1px);
}
html[data-theme="light"] .section--band {
  background: linear-gradient(180deg, transparent, rgba(51, 89, 224, 0.05) 16%, rgba(51, 89, 224, 0.05) 84%, transparent);
}
html[data-theme="light"] #bg3d.is-ready { opacity: 0.75; mix-blend-mode: multiply; }
html[data-theme="light"] ::selection { background: rgba(6, 182, 212, 0.25); color: var(--text); }

/* ---------- Header, navigation, buttons ---------- */
html[data-theme="light"] .site-header.is-scrolled { background: rgba(255, 255, 255, 0.85); box-shadow: 0 6px 24px -18px rgba(11, 26, 63, 0.4); }
html[data-theme="light"] .site-header.menu-open { background: #fff; }
html[data-theme="light"] .nav-toggle span { background: var(--text); }
html[data-theme="light"] .brand-tag { color: var(--cyan); border-color: rgba(7, 137, 166, 0.45); box-shadow: none; }
@media (max-width: 1024px) {
  html[data-theme="light"] .site-nav { background: rgba(255, 255, 255, 0.98); }
}
html[data-theme="light"] .btn-primary {
  color: #fff;
  background: linear-gradient(100deg, #06b6d4 0%, #3359e0 100%);
  box-shadow: 0 8px 22px -10px rgba(51, 89, 224, 0.6);
}
html[data-theme="light"] .btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(51, 89, 224, 0.75), 0 0 0 1px rgba(51, 89, 224, 0.3); }
html[data-theme="light"] .btn-ghost { background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-card); }
html[data-theme="light"] .btn-ghost:hover { border-color: var(--blue); box-shadow: 0 8px 22px -14px rgba(51, 89, 224, 0.6); }
html[data-theme="light"] .status-pill { background: #fff; box-shadow: var(--shadow-card); }

/* ---------- Shared surfaces: cards become white ---------- */
html[data-theme="light"] :is(.about-points li, .tile, .tile-strip, .case-panel, .ind, .tracks, .deploy-row li, .feat,
  .va-agent, .va-card, .va-does li, .aic-starter, .cases-tabs [role="tab"]:hover) {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-card);
}
html[data-theme="light"] .tile--flagship,
html[data-theme="light"] .va-form-card {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
}
html[data-theme="light"] .chips li,
html[data-theme="light"] .va-tags > span,
html[data-theme="light"] .layer-items li { background: #f1f5fd; border-color: var(--line); }
html[data-theme="light"] .ticks li::before { border-color: var(--cyan); box-shadow: none; }

/* Glass icon tiles keep their colour but sit lighter */
html[data-theme="light"] .glyph {
  background:
    radial-gradient(120% 90% at 28% 12%, rgba(255, 255, 255, 0.7), transparent 46%),
    linear-gradient(160deg, color-mix(in srgb, var(--tone) 16%, #ffffff) 0%, color-mix(in srgb, var(--tone) 8%, #eef3fc) 70%);
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px -12px color-mix(in srgb, var(--tone) 70%, transparent);
}
html[data-theme="light"] .glyph .ico { filter: none; }
html[data-theme="light"] .itile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 22px -12px color-mix(in srgb, var(--tone) 80%, transparent); }

/* ---------- Hero ---------- */
html[data-theme="light"] .hero-atmosphere {
  background:
    radial-gradient(36% 46% at 72% 44%, rgba(51, 89, 224, 0.12), transparent 70%),
    radial-gradient(26% 34% at 86% 74%, rgba(214, 51, 132, 0.06), transparent 70%);
}
html[data-theme="light"] .hero-atmosphere::before { background-image: radial-gradient(rgba(28, 56, 130, 0.14) 1px, transparent 1.4px); }
html[data-theme="light"] .hero-title .t-white { color: var(--text); text-shadow: none; }
html[data-theme="light"] .hero-title .t-grad {
  background-image: linear-gradient(115deg, #0789a6 0%, #3359e0 30%, #7148e8 58%, #c2307f 82%, #0789a6 100%);
}
html[data-theme="light"] .title-trace { box-shadow: none; }
html[data-theme="light"] .pod-name { text-shadow: none; }
html[data-theme="light"] .pod-task,
html[data-theme="light"] .core-label,
html[data-theme="light"] .engine-feed { background: #fff; box-shadow: var(--shadow-card); }
html[data-theme="light"] .engine-links .mesh { stroke: rgba(28, 56, 130, 0.2); }
html[data-theme="light"] .core-glow { background: radial-gradient(circle, rgba(51, 89, 224, 0.18), transparent 70%); box-shadow: 0 0 50px rgba(6, 182, 212, 0.15); }
html[data-theme="light"] .core-orbit { border-color: rgba(28, 56, 130, 0.25); }
html[data-theme="light"] .trusted-list li { color: #7a88a8; }
html[data-theme="light"] .trusted-list li:hover { color: var(--text); text-shadow: none; }

/* ---------- About ---------- */


/* ---------- Architecture: light stage, dark diagram screen ---------- */
html[data-theme="light"] .arch {
  background:
    radial-gradient(60% 50% at 50% 55%, rgba(51, 89, 224, 0.08), transparent 70%),
    linear-gradient(180deg, transparent, rgba(51, 89, 224, 0.05) 20%, rgba(51, 89, 224, 0.05) 85%, transparent);
}
html[data-theme="light"] .arch-frame { box-shadow: 0 30px 70px -40px rgba(11, 26, 63, 0.55); }
html[data-theme="light"] .arch-note { background: rgba(22, 163, 74, 0.07); border-color: rgba(22, 163, 74, 0.3); }
html[data-theme="light"] .arch-steps li + li::before { background: linear-gradient(90deg, var(--text-3) 0 5px, transparent 5px) repeat-x; background-size: 9px 2px; }
html[data-theme="light"] .arch-steps li + li::after { border-left-color: var(--text-3); }

/* ---------- Solutions demos ---------- */
html[data-theme="light"] .rag-demo { background: #f4f7fd; }
html[data-theme="light"] .rag-q { background: rgba(51, 89, 224, 0.08); border-color: rgba(51, 89, 224, 0.25); }
html[data-theme="light"] .rag-a { background: rgba(113, 72, 232, 0.07); }
html[data-theme="light"] .src--hit { box-shadow: none; }
html[data-theme="light"] .tile-strip .strip-item + .strip-item { border-color: var(--line); }

/* ---------- Use cases ---------- */
html[data-theme="light"] .cases-tabs [aria-selected="true"] {
  background: #fff;
  border-color: rgba(7, 137, 166, 0.35);
  box-shadow: var(--shadow-card);
}
html[data-theme="light"] .flow li { background: #f4f7fd; }
html[data-theme="light"] .flow li:last-child { box-shadow: 0 0 0 1px rgba(7, 137, 166, 0.25); }

/* ---------- Training ---------- */
html[data-theme="light"] .track:hover { background: #f6f9ff; }

/* ---------- Contact + forms ---------- */
html[data-theme="light"] .contact-panel {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(6, 182, 212, 0.08), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(113, 72, 232, 0.08), transparent 60%),
    #fff;
}
html[data-theme="light"] :is(.field input, .field select, .field textarea, .va-form input, .aic-card input) {
  background: #f7f9fe;
  color: var(--text);
}
html[data-theme="light"] .field select option { background: #fff; }

/* ---------- Footer ---------- */
html[data-theme="light"] .site-footer { background: linear-gradient(180deg, transparent, rgba(51, 89, 224, 0.06)); }
html[data-theme="light"] .social a { background: #fff; }

/* ---------- Voice AI agents ---------- */
html[data-theme="light"] .va-lang { background: #fff; box-shadow: var(--shadow-card); }
html[data-theme="light"] .va-lang button[aria-pressed="true"] { color: #fff; background: linear-gradient(100deg, #06b6d4, #3359e0); }
html[data-theme="light"] .va-steps li > span { background: #fff; }
html[data-theme="light"] .va-steps li.is-current > span,
html[data-theme="light"] .va-steps li.is-done > span { color: #fff; }
html[data-theme="light"] .va-form-card {
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(22, 163, 74, 0.07), transparent 60%),
    #fff;
}
html[data-theme="light"] .va-submit,
html[data-theme="light"] .va-start { color: #fff; background: linear-gradient(100deg, #16a34a, #0e9f8a 55%, #0789a6); }
html[data-theme="light"] .va-done-ico { color: #fff; }
html[data-theme="light"] .va-avatar { box-shadow: 0 10px 24px -10px rgba(51, 89, 224, 0.6); }

/* ---------- AI Assistant ---------- */
html[data-theme="light"] .aic { background: linear-gradient(180deg, #ffffff, #f4f7fd); }
html[data-theme="light"] .aic-shell::before {
  background: radial-gradient(70% 35% at 50% 0%, rgba(51, 89, 224, 0.08), transparent 70%);
}
html[data-theme="light"] .aic-msg--ai .aic-bubble { background: #f1f5fd; border-color: var(--line); }
html[data-theme="light"] .aic-bubble strong { color: var(--text); }
html[data-theme="light"] .aic-msg.aic-sent .aic-bubble { background: rgba(22, 163, 74, 0.08); }
html[data-theme="light"] .aic-compose { background: #fff; }
html[data-theme="light"] .aic-send { color: #fff; background: linear-gradient(135deg, #06b6d4, #3359e0); }
html[data-theme="light"] .aic-card { background: #fff; box-shadow: var(--shadow-card); }
html[data-theme="light"] .aic-nudge { background: #fff; box-shadow: 0 18px 40px -18px rgba(11, 26, 63, 0.45); }
html[data-theme="light"] .aic-nudge::after { background: #fff; }
html[data-theme="light"] .aic-nudge-open strong { color: var(--text); }
html[data-theme="light"] .aic-backdrop { background: rgba(11, 26, 63, 0.25); }
html[data-theme="light"] .aic-launch .robot { filter: drop-shadow(0 12px 20px rgba(11, 26, 63, 0.3)); }
html[data-theme="light"] .rb-t1 { fill: #fff; }
html[data-theme="light"] .json { background: #0b1638; color: #9fe9f2; }

/* WhatsApp section */
html[data-theme="light"] .wa-kicker,
html[data-theme="light"] .wa-dot { color: #128c4b; background: rgba(37, 211, 102, 0.12); }
html[data-theme="light"] .wa-phone-wrap::before { background: radial-gradient(closest-side, rgba(37, 211, 102, 0.14), rgba(51, 89, 224, 0.08) 60%, transparent); }
