/* ══════════════════════════════════════════════════════════════════
   PIX3L — THEME.CSS
   Shared light / dark mode toggle styles for all pages.
══════════════════════════════════════════════════════════════════ */

/* ── Body transition on theme switch ── */
body { transition: background-color 0.3s ease, color 0.3s ease; }

/* ── Theme Toggle Button (dark mode default) ── */
#theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65);
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease,
              transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
#theme-toggle:hover  { background: rgba(255,255,255,0.14); color: #fff; transform: scale(1.1); }
#theme-toggle:active { transform: scale(0.95); }
#theme-toggle:focus-visible { outline: 2px solid #FF1673; outline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE
   Applied when <html data-theme="light">
═══════════════════════════════════════════════════════════════ */

/* ── CSS variable overrides (crunch.html + any page using :root vars) ── */
html[data-theme="light"] {
  --color-bg:             #F2EFFF;
  --color-bg-mid:         #EAE4FF;
  --color-surface:        rgba(255,255,255,0.92);
  --color-surface-raised: rgba(255,255,255,0.97);
  --color-border:         rgba(161,0,255,0.10);
  --color-border-strong:  rgba(161,0,255,0.22);
  --color-text-primary:   #0D0020;
  --color-text-secondary: #5A5270;
  --dark-navy:            #F2EFFF;
  --navy-blue:            #EAE4FF;
}

/* ── Body ── */
html[data-theme="light"] body {
  background-color: #F2EFFF !important;
  color: #0D0020;
}

/* ── Scrollbar ── */
html[data-theme="light"] ::-webkit-scrollbar-track { background: #F2EFFF; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #C8BEFF; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #FF1635; }

/* ── Toggle button (light mode state) ── */
html[data-theme="light"] #theme-toggle {
  background: rgba(13,0,32,0.10);
  color: #0D0020;
  border: none;
}
html[data-theme="light"] #theme-toggle:hover {
  background: rgba(13,0,32,0.16);
  color: #0D0020;
}

/* ── Logos ── */
html[data-theme="light"] #nav-logo    { filter: brightness(0); }
html[data-theme="light"] #footer-logo { filter: brightness(0); }

/* ── Nav links ── */
html[data-theme="light"] .nav-link         { color: rgba(13,0,32,0.55) !important; }
html[data-theme="light"] .nav-link:hover   { color: #0D0020 !important; }

/* ── Hamburger bars ── */
html[data-theme="light"] #h1,
html[data-theme="light"] #h2,
html[data-theme="light"] #h3 { background-color: #0D0020 !important; }

/* ── Mobile drawer (hamburger-style pages) ── */
html[data-theme="light"] #mobile-drawer {
  background: rgba(242,239,255,0.97) !important;
  border-bottom-color: rgba(161,0,255,0.12) !important;
}

/* ── Slide-out drawer (agent pages) ── */
html[data-theme="light"] #drawer-panel {
  background: rgba(242,239,255,0.99) !important;
  border-left-color: rgba(161,0,255,0.12) !important;
}
html[data-theme="light"] #menu-btn,
html[data-theme="light"] #close-btn { color: rgba(13,0,32,0.6) !important; }

/* ── Buttons ── */
html[data-theme="light"] .btn-outline {
  color: #0D0020 !important;
  border-color: rgba(13,0,32,0.22) !important;
}
html[data-theme="light"] .btn-outline:hover {
  background: rgba(13,0,32,0.04) !important;
  border-color: rgba(13,0,32,0.40) !important;
}
html[data-theme="light"] .btn-ghost        { color: #0D0020 !important; border-color: rgba(13,0,32,0.22) !important; }
html[data-theme="light"] .btn-ghost:hover  { color: #0D0020 !important; background: rgba(13,0,32,0.04) !important; border-color: rgba(13,0,32,0.40) !important; }

/* ── Section / hero dark solid backgrounds → transparent ──
   Hero sections use absolute divs for background layers.
   Clearing the solid dark base lets the body #F2EFFF show through
   while the radial-gradient overlays (on separate divs) still render. ── */
html[data-theme="light"] section.grain > .absolute:first-child,
html[data-theme="light"] .grain > .absolute:first-child {
  background: transparent !important;
}
/* Fade-to-dark overlays: just reduce their opacity  */
html[data-theme="light"] section .absolute[style*="linear-gradient(to bottom"],
html[data-theme="light"] section .absolute[style*="linear-gradient(to top"] {
  opacity: 0.12 !important;
}

/* Sections with inline dark background colours */
html[data-theme="light"] section[style*="#000623"],
html[data-theme="light"] section[style*="#04001A"],
html[data-theme="light"] section[style*="#000947"] {
  background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 50%, #F2EFFF 100%) !important;
}

/* crunch.html hero-bg */
html[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(161,0,255,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(255,22,53,0.06) 0%, transparent 55%),
    #F2EFFF !important;
}
html[data-theme="light"] .hero-grid {
  background-image: radial-gradient(circle, rgba(161,0,255,0.15) 1px, transparent 1px) !important;
}

/* crunch.html nav (uses .nav + .scrolled class) */
html[data-theme="light"] .nav.scrolled {
  background: rgba(242,239,255,0.95) !important;
  border-bottom-color: rgba(161,0,255,0.10) !important;
}

/* ── Footer ── */
html[data-theme="light"] footer,
html[data-theme="light"] .footer {
  background: #EDE8FF !important;
  border-top-color: rgba(161,0,255,0.10) !important;
}
html[data-theme="light"] footer[style*="#000623"],
html[data-theme="light"] footer[style*="#04001A"] {
  background: #EDE8FF !important;
}
html[data-theme="light"] footer .border-t { border-top-color: rgba(161,0,255,0.08) !important; }
html[data-theme="light"] footer .font-mono { color: rgba(13,0,32,0.28) !important; }

/* ── Cards (all types) ── */
html[data-theme="light"] .service-card,
html[data-theme="light"] .product-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .pipeline-card,
html[data-theme="light"] .agent-card {
  background: linear-gradient(140deg, rgba(255,255,255,0.96) 0%, rgba(248,245,255,0.90) 100%) !important;
  border-color: rgba(161,0,255,0.10) !important;
  box-shadow: 0 4px 20px rgba(100,60,180,0.07) !important;
}
html[data-theme="light"] .service-card:hover,
html[data-theme="light"] .pipeline-card:hover {
  border-color: rgba(255,22,115,0.20) !important;
  box-shadow: 0 12px 36px rgba(100,60,180,0.10) !important;
}
html[data-theme="light"] .product-card:hover {
  border-color: rgba(255,22,53,0.20) !important;
  box-shadow: 0 16px 44px rgba(100,60,180,0.12) !important;
}
html[data-theme="light"] .agent-card:hover {
  border-color: rgba(161,0,255,0.25) !important;
  box-shadow: 0 16px 44px rgba(100,60,180,0.12) !important;
}
html[data-theme="light"] .stat-card:hover {
  box-shadow: 0 10px 36px rgba(100,60,180,0.10) !important;
}

/* crunch.html feature + pricing cards */
html[data-theme="light"] .feature-card {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(161,0,255,0.10) !important;
}
html[data-theme="light"] .feature-card:hover    { border-color: rgba(255,22,53,0.22) !important; }
html[data-theme="light"] .feature-card::before  { display: none; }
html[data-theme="light"] .pricing-card {
  background: rgba(255,255,255,0.94) !important;
  border-color: rgba(161,0,255,0.10) !important;
}
html[data-theme="light"] .pricing-card:hover    { border-color: rgba(161,0,255,0.22) !important; }
html[data-theme="light"] .pricing-card-featured {
  background: rgba(255,255,255,0.97) !important;
  border-color: rgba(255,22,53,0.25) !important;
}

/* Client tiles */
html[data-theme="light"] .client-tile {
  background: rgba(161,0,255,0.03) !important;
  border-color: rgba(161,0,255,0.10) !important;
}
html[data-theme="light"] .client-tile:hover {
  background: rgba(255,22,115,0.04) !important;
  border-color: rgba(255,22,115,0.16) !important;
}
html[data-theme="light"] .client-tile span { color: rgba(13,0,32,0.42) !important; }

/* Agent pages: tech chips, nav cards, cap pills */
html[data-theme="light"] .tech-chip,
html[data-theme="light"] .agent-nav-card {
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(161,0,255,0.10) !important;
  color: #0D0020 !important;
}
html[data-theme="light"] .agent-nav-card:hover {
  background: rgba(255,255,255,0.97) !important;
  border-color: rgba(161,0,255,0.25) !important;
}
html[data-theme="light"] .cap-pill {
  color: #FF1673 !important;
}

/* Tailwind text-white utility overrides for light mode */
html[data-theme="light"] .text-white        { color: #0D0020 !important; }
html[data-theme="light"] .text-white\/40    { color: rgba(13,0,32,0.38) !important; }
html[data-theme="light"] .text-white\/25    { color: rgba(13,0,32,0.22) !important; }

/* crunch.html: tech badges, demo panel */
html[data-theme="light"] .tech-badge {
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(161,0,255,0.12) !important;
}
html[data-theme="light"] .demo             { border-color: rgba(161,0,255,0.12) !important; }
html[data-theme="light"] .data-panel       { background: rgba(255,255,255,0.95) !important; border-color: rgba(161,0,255,0.10) !important; }
html[data-theme="light"] .data-panel-header { background: rgba(248,245,255,0.95) !important; border-bottom-color: rgba(161,0,255,0.10) !important; }

/* Shadows */
html[data-theme="light"] .shadow-card {
  box-shadow: 0 8px 40px rgba(100,60,180,0.12), 0 2px 10px rgba(100,60,180,0.06) !important;
}

/* ── Typography & text colors ── */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3 { color: #0D0020; }

/* Product card image headers stay white (over dark overlays) */
html[data-theme="light"] .product-card .h-44 h2 { color: #ffffff !important; }

/* Muted paragraph text */
html[data-theme="light"] .text-\[\#A3A3A3\] { color: #5A5270 !important; }
/* Vista-blue sub-headings */
html[data-theme="light"] .text-\[\#8599FF\] { color: #4A55C0 !important; }

/* crunch.html copy classes */
html[data-theme="light"] .section-headline   { color: #0D0020 !important; }
html[data-theme="light"] .section-sub        { color: #5A5270 !important; }
html[data-theme="light"] .feature-title      { color: #0D0020 !important; }
html[data-theme="light"] .feature-desc       { color: #5A5270 !important; }
html[data-theme="light"] .step-title         { color: #0D0020 !important; }
html[data-theme="light"] .step-desc          { color: #5A5270 !important; }
html[data-theme="light"] .pricing-tier       { color: #0D0020 !important; }
html[data-theme="light"] .pricing-num        { color: #0D0020 !important; }
html[data-theme="light"] .pricing-period     { color: #5A5270 !important; }
html[data-theme="light"] .pricing-desc       { color: #5A5270 !important; }
html[data-theme="light"] .pricing-feature    { color: #0D0020 !important; }
html[data-theme="light"] .philosophy-headline { color: #0D0020 !important; }
html[data-theme="light"] .philosophy-body    { color: #5A5270 !important; }
html[data-theme="light"] .philosophy-sig     { color: #5A5270 !important; }
html[data-theme="light"] .features     { background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 55%, #EAE4FF 100%) !important; }
html[data-theme="light"] .how          { background: linear-gradient(180deg, #EAE4FF 0%, #EDE8FF 50%, #EAE4FF 100%) !important; }
html[data-theme="light"] .philosophy   { background: linear-gradient(180deg, #EAE4FF 0%, #EDE8FF 100%) !important; }
html[data-theme="light"] .pricing      { background: linear-gradient(180deg, #EDE8FF 0%, #EAE4FF 50%, #F2EFFF 100%) !important; }
html[data-theme="light"] .cta-section  { background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 50%, #F2EFFF 100%) !important; }

/* crunch.html footer */
html[data-theme="light"] .footer-pix3l,
html[data-theme="light"] .footer-product { color: #0D0020 !important; }
html[data-theme="light"] .footer-links a { color: rgba(13,0,32,0.55) !important; }
html[data-theme="light"] .footer-copy    { color: rgba(13,0,32,0.28) !important; }

/* Hero body copy contrast */
html[data-theme="light"] #hero .relative.z-10 p,
html[data-theme="light"] header .relative.z-10 p { color: #2A1840 !important; }

/* Note: #contact white-text override is handled per-page in index.html
   since only that page's #contact has a near-opaque dark image overlay. */

/* ── AiX philosophy section (index.html #aix) ── */
html[data-theme="light"] #aix .grid.grid-cols-2 > div.rounded-xl {
  background: rgba(255,255,255,0.75) !important;
  border-color: rgba(161,0,255,0.16) !important;
  box-shadow: 0 4px 16px rgba(161,0,255,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] #aix .grid.grid-cols-2 > div.col-span-2 {
  background: transparent !important;
  box-shadow: none !important;
}
html[data-theme="light"] #aix .grid.grid-cols-2 > div .w-8 {
  background: rgba(161,0,255,0.10) !important;
}
html[data-theme="light"] #aix .font-display.font-semibold { color: #0D0020 !important; }
html[data-theme="light"] #aix .font-mono.text-\[\#A3A3A3\] { color: #5A5270 !important; }

/* Agent avatar ring borders */
html[data-theme="light"] .border-\[\#000623\] { border-color: #F2EFFF !important; }

/* Glassmorphism floating panels */
html[data-theme="light"] [style*="rgba(0,6,35,0.75)"] {
  background: rgba(242,239,255,0.88) !important;
  border-color: rgba(161,0,255,0.14) !important;
}

/* Scroll indicator */
html[data-theme="light"] #hero .absolute.bottom-8 > div    { border-color: rgba(13,0,32,0.18) !important; }
html[data-theme="light"] #hero .absolute.bottom-8 > div > div { background: rgba(13,0,32,0.28) !important; }

@media (prefers-reduced-motion: reduce) {
  body { transition: none !important; }
}

/* ══════════════════════════════════════════════════════════
   CASCADE.HTML — light mode section backgrounds
   Chained gradients: each section end-color = next section start-color
══════════════════════════════════════════════════════════ */

/* cascade.html — Hero v2 light mode */
html[data-theme="light"] .hero-v2-bg {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255,22,53,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(161,0,255,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(234,228,255,0.8) 0%, transparent 80%),
    #F2EFFF !important;
}
html[data-theme="light"] .hero-v2-image img { opacity: 0 !important; }
html[data-theme="light"] .hero-v2-grid {
  background-image: radial-gradient(circle, rgba(161,0,255,0.15) 1px, transparent 1px) !important;
}
html[data-theme="light"] .hero-v2-orb-red    { background: radial-gradient(circle, rgba(255,22,53,0.07) 0%, transparent 70%) !important; }
html[data-theme="light"] .hero-v2-orb-purple { background: radial-gradient(circle, rgba(161,0,255,0.07) 0%, transparent 70%) !important; }
html[data-theme="light"] .hero-v2-eyebrow    { color: #CC0055 !important; }
html[data-theme="light"] .hero-v2-sub        { color: rgba(0,9,71,0.65) !important; }
html[data-theme="light"] .hero-v2-tagline    { color: #5A5270 !important; }
html[data-theme="light"] .hero-v2-tagline strong { color: #0D0020 !important; }
html[data-theme="light"] .hero-v2-stats      { border-top-color: rgba(255,22,53,0.12) !important; }
html[data-theme="light"] .hero-v2-stat-num   { color: #0D0020 !important; }
html[data-theme="light"] .hero-v2-stat-label { color: #7A6A9A !important; }

/* Section chain: hero fades to #F2EFFF, then flows into visible lavender */
html[data-theme="light"] #overview  { background: linear-gradient(180deg, #F2EFFF 0%, #E4DCFF 55%, #DDD8FF 100%) !important; }
html[data-theme="light"] #pipeline  { background: linear-gradient(180deg, #DDD8FF 0%, #D8D2FF 50%, #DDD8FF 100%) !important; }
html[data-theme="light"] #agents    { background: linear-gradient(180deg, #DDD8FF 0%, #D8D2FF 50%, #DDD8FF 100%) !important; }
html[data-theme="light"] #features  { background: linear-gradient(180deg, #DDD8FF 0%, #D8D2FF 50%, #DDD8FF 100%) !important; }
html[data-theme="light"] #platforms { background: linear-gradient(180deg, #DDD8FF 0%, #E4DCFF 55%, #EDE8FF 100%) !important; }
html[data-theme="light"] #contact   { background: linear-gradient(180deg, #EDE8FF 0%, #E4DCFF 50%, #EDE8FF 100%) !important; }

/* ── Cards: light backgrounds ── */
html[data-theme="light"] .agent-card,
html[data-theme="light"] .pipeline-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .service-card {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(161,0,255,0.14) !important;
  box-shadow: 0 4px 20px rgba(161,0,255,0.07), 0 1px 4px rgba(0,0,0,0.05) !important;
}

/* Agent card image overlay: replace dark-navy bottom fade with subtle lavender */
html[data-theme="light"] .agent-card .agent-img-wrap::after {
  background: linear-gradient(to top, rgba(221,216,255,0.6) 0%, rgba(221,216,255,0.1) 40%, transparent 100%) !important;
}

/* Text inside cards */
html[data-theme="light"] .agent-card h3,
html[data-theme="light"] .pipeline-card h3,
html[data-theme="light"] .stat-card .text-white { color: #0D0020 !important; }

html[data-theme="light"] .agent-card .text-\[\#A3A3A3\],
html[data-theme="light"] .pipeline-card .text-\[\#A3A3A3\],
html[data-theme="light"] .stat-card .text-\[\#A3A3A3\],
html[data-theme="light"] .service-card .text-\[\#A3A3A3\] { color: #5A5270 !important; }

/* ── Agent nav cards (agent detail pages — Meet the Team footer) ── */
html[data-theme="light"] .agent-nav-card {
  color: #0D0020 !important;
  background: rgba(255,255,255,0.65) !important;
  border-color: rgba(161,0,255,0.14) !important;
}
html[data-theme="light"] .agent-nav-card:hover {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(161,0,255,0.28) !important;
}

/* ── Platform pills ── */
html[data-theme="light"] .platform-pill {
  color: #0D0020 !important;
  background: rgba(255,255,255,0.55) !important;
  border-color: rgba(161,0,255,0.14) !important;
}

/* crunch.html: unified transform card */
html[data-theme="light"] .transform-card {
  background: #fff !important;
  border-color: rgba(161,0,255,0.14) !important;
  box-shadow: 0 4px 40px rgba(100,60,180,0.08), 0 1px 8px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .tz-header {
  background: rgba(255,255,255,0.75) !important;
  border-bottom-color: rgba(161,0,255,0.10) !important;
}
html[data-theme="light"] .tz-engine {
  background: rgba(248,245,255,0.80) !important;
  border-top-color: rgba(255,94,8,0.12) !important;
  border-bottom-color: rgba(28,131,40,0.14) !important;
}
html[data-theme="light"] .tz-cmd       { color: rgba(13,0,32,0.38) !important; }
html[data-theme="light"] .tz-cmd-prompt { color: #1C8328 !important; }
html[data-theme="light"] .tz-cmd-flag  { color: #4A55C0 !important; }
html[data-theme="light"] .tz-cmd-file  { color: #0D0020 !important; }
html[data-theme="light"] .tz-step      { color: rgba(13,0,32,0.32) !important; }
html[data-theme="light"] .tz-step-key  { color: #4A55C0 !important; }
html[data-theme="light"] .tz-result    { color: rgba(13,0,32,0.45) !important; border-top-color: rgba(161,0,255,0.10) !important; }

/* crunch.html: pipeline steps + stack strip */
html[data-theme="light"] .pipeline-steps-label { color: #5A5270 !important; }
html[data-theme="light"] .pipeline-steps-grid { gap: var(--space-4) !important; }
html[data-theme="light"] .pipeline-steps-grid::before {
  background: linear-gradient(to right, rgba(161,0,255,0.08), rgba(161,0,255,0.25), rgba(161,0,255,0.08)) !important;
}
html[data-theme="light"] .pipeline-step {
  background: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(161,0,255,0.12) !important;
  border-radius: 12px !important;
  padding: 20px 16px !important;
  box-shadow: 0 4px 16px rgba(100,60,180,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .pipeline-step-num {
  background: rgba(161,0,255,0.08) !important;
  border-color: rgba(161,0,255,0.22) !important;
  color: #A100FF !important;
}
html[data-theme="light"] .pipeline-step-name { color: #0D0020 !important; }
html[data-theme="light"] .pipeline-step-desc { color: #5A5270 !important; }
html[data-theme="light"] .stack-strip { border-top-color: rgba(161,0,255,0.12) !important; }
html[data-theme="light"] .stack-chip {
  background: rgba(255,255,255,0.88) !important;
  border-color: rgba(161,0,255,0.14) !important;
  color: #0D0020 !important;
  box-shadow: 0 2px 8px rgba(100,60,180,0.06) !important;
}
html[data-theme="light"] .stack-chip:hover {
  border-color: rgba(161,0,255,0.28) !important;
  background: #fff !important;
}

/* Suppress dark side-fade overlays inside pipeline and features */
html[data-theme="light"] #pipeline .absolute img,
html[data-theme="light"] #features .absolute img { opacity: 0.03 !important; }
html[data-theme="light"] #pipeline .absolute[style*="to right"],
html[data-theme="light"] #features .absolute[style*="to right"] { opacity: 0.05 !important; }

/* ── Global nav links (light mode) ── */
html[data-theme="light"] .global-nav-link       { color: rgba(13,0,32,0.55) !important; }
html[data-theme="light"] .global-nav-link:hover  { color: #0D0020 !important; }
html[data-theme="light"] .global-nav-link.current { color: #0D0020 !important; }

/* ── Subnav (light mode) ── */
html[data-theme="light"] #subnav { border-image: linear-gradient(90deg, transparent, rgba(161,0,255,0.12) 20%, rgba(161,0,255,0.07) 50%, rgba(161,0,255,0.12) 80%, transparent) 1 !important; }
html[data-theme="light"] .subnav-link        { color: rgba(13,0,32,0.38) !important; }
html[data-theme="light"] .subnav-link:hover  { color: rgba(13,0,32,0.75) !important; }
html[data-theme="light"] .subnav-link.active { color: #FF1673 !important; }

/* ── Mobile drawer section label ── */
html[data-theme="light"] .drawer-label { color: rgba(13,0,32,0.35) !important; }

/* ══════════════════════════════════════════════════════════
   CASCADE-ARCHITECTURE.HTML — light mode
══════════════════════════════════════════════════════════ */

/* Hero background: swap dark base for lavender */
html[data-theme="light"] .arch-hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(161,0,255,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(255,22,53,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(234,228,255,0.7) 0%, transparent 80%),
    #F2EFFF !important;
}

/* Dot grid: use purple dots like crunch hero-grid */
html[data-theme="light"] .arch-hero-grid {
  background-image: radial-gradient(circle, rgba(161,0,255,0.15) 1px, transparent 1px) !important;
}

/* Orbs: reduce intensity for light bg */
html[data-theme="light"] .arch-hero-orb-red {
  background: radial-gradient(circle, rgba(255,22,53,0.07) 0%, transparent 70%) !important;
}
html[data-theme="light"] .arch-hero-orb-purple {
  background: radial-gradient(circle, rgba(161,0,255,0.07) 0%, transparent 70%) !important;
}

/* Badge pill */
html[data-theme="light"] .arch-hero-badge {
  border-color: rgba(161,0,255,0.22) !important;
  background: rgba(161,0,255,0.05) !important;
  color: #6B00CC !important;
}
html[data-theme="light"] .arch-hero-badge-divider {
  background: rgba(161,0,255,0.22) !important;
}

/* Tagline strong */
html[data-theme="light"] .arch-hero-tagline strong { color: #0D0020 !important; }

/* Stats bar */
html[data-theme="light"] .arch-hero-stats { border-top-color: rgba(161,0,255,0.12) !important; }
html[data-theme="light"] .arch-stat-num   { color: #0D0020 !important; }

/* Diagram nodes */
html[data-theme="light"] .node,
html[data-theme="light"] .output-node {
  background: rgba(255,255,255,0.88) !important;
  border-color: rgba(161,0,255,0.12) !important;
  box-shadow: 0 4px 16px rgba(100,60,180,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .node:hover,
html[data-theme="light"] .output-node:hover {
  border-color: rgba(161,0,255,0.28) !important;
  box-shadow: 0 8px 28px rgba(100,60,180,0.11) !important;
}
html[data-theme="light"] .node-title { color: #0D0020 !important; }
html[data-theme="light"] .node-sub   { color: #5A5270 !important; }

/* Arrow connectors */
html[data-theme="light"] .arrow-label {
  background: #F2EFFF !important;
  border-color: rgba(161,0,255,0.14) !important;
  color: #5A5270 !important;
}

/* Legend */
html[data-theme="light"] .legend-item { color: #5A5270 !important; }

/* Diagram wrapper background flow */
html[data-theme="light"] .diagram-wrapper {
  background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 50%, #EAE4FF 100%) !important;
}

/* ══════════════════════════════════════════════════════════════════
   AiX PHILOSOPHY PAGE — Light mode overrides
══════════════════════════════════════════════════════════════════ */

/* Hero */
html[data-theme="light"] .aix-hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(161,0,255,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(133,153,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(234,228,255,0.8) 0%, transparent 80%),
    #F2EFFF !important;
}
html[data-theme="light"] .aix-hero-grid {
  background-image: radial-gradient(circle, rgba(161,0,255,0.14) 1px, transparent 1px) !important;
}
html[data-theme="light"] .aix-hero-orb-purple {
  background: radial-gradient(circle, rgba(161,0,255,0.07) 0%, transparent 70%) !important;
}
html[data-theme="light"] .aix-hero-orb-blue {
  background: radial-gradient(circle, rgba(133,153,255,0.06) 0%, transparent 70%) !important;
}
html[data-theme="light"] .aix-hero-sub {
  color: rgba(0,9,71,0.65) !important;
}
html[data-theme="light"] .aix-hero-tagline {
  color: #5A5270 !important;
}
html[data-theme="light"] .aix-hero-tagline strong {
  color: #0D0020 !important;
}
html[data-theme="light"] .aix-hero-stats {
  border-top-color: rgba(161,0,255,0.14) !important;
}
html[data-theme="light"] .aix-stat-num {
  color: #0D0020 !important;
}
html[data-theme="light"] .aix-stat-label {
  color: #7A6A9A !important;
}
html[data-theme="light"] .aix-hero-eyebrow {
  color: #6B00CC !important;
}

/* Philosophy section */
html[data-theme="light"] .philosophy-section {
  background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 50%, #E8E2FF 100%) !important;
}
html[data-theme="light"] .philosophy-col-body {
  color: #5A5270 !important;
}
html[data-theme="light"] .philosophy-col-body strong {
  color: #0D0020 !important;
}

/* Principles section */
html[data-theme="light"] .principle-card {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(161,0,255,0.12) !important;
  box-shadow: 0 4px 16px rgba(100,60,180,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .principle-card:hover {
  background: rgba(255,255,255,0.95) !important;
  border-color: rgba(161,0,255,0.25) !important;
  box-shadow: 0 8px 32px rgba(100,60,180,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .principle-number {
  color: #9B8AB8 !important;
}
html[data-theme="light"] .principle-title {
  color: #0D0020 !important;
}
html[data-theme="light"] .principle-body {
  color: #5A5270 !important;
}

/* Principles section */
html[data-theme="light"] .principles-section {
  background: linear-gradient(180deg, #E8E2FF 0%, #E4DCFF 35%, #E8E2FF 70%, #EDE8FF 100%) !important;
}

/* Research section */
html[data-theme="light"] .research-section {
  background: linear-gradient(180deg, #EDE8FF 0%, #E8E2FF 40%, #EDE8FF 70%, #F2EFFF 100%) !important;
}
html[data-theme="light"] .research-method-group h4 {
  color: #6B00CC !important;
  border-bottom-color: rgba(161,0,255,0.14) !important;
}
html[data-theme="light"] .research-method-list li {
  color: #5A5270 !important;
}

/* CTA section */
html[data-theme="light"] .cta-section-heading {
  color: #0D0020 !important;
}
html[data-theme="light"] .cta-section-sub {
  color: #5A5270 !important;
}

/* Shared section labels + dividers */
html[data-theme="light"] .section-heading {
  color: #0D0020 !important;
}
html[data-theme="light"] .section-body {
  color: #5A5270 !important;
}

/* ═══════════════════════════════════════════════
   viki.html — light mode
═══════════════════════════════════════════════ */

/* Section gradient chain: hero (#F2EFFF) → who → features → how-it-works → tech-stack → contact → team */
html[data-theme="light"] #who-is-viki  { background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 55%, #E8E2FF 100%) !important; }
html[data-theme="light"] #features     { background: linear-gradient(180deg, #E8E2FF 0%, #E4DCFF 50%, #E8E2FF 100%) !important; }
html[data-theme="light"] #how-it-works { background: linear-gradient(180deg, #E8E2FF 0%, #EDE8FF 55%, #EDE8FF 100%) !important; }
html[data-theme="light"] #tech-stack   { background: linear-gradient(180deg, #EDE8FF 0%, #E8E2FF 50%, #E4DCFF 100%) !important; }
html[data-theme="light"] #contact      { background: linear-gradient(180deg, #E4DCFF 0%, #DDD8FF 40%, #E4DCFF 100%) !important; }
html[data-theme="light"] #team         { background: linear-gradient(180deg, #E4DCFF 0%, #EDE8FF 55%, #F2EFFF 100%) !important; }
html[data-theme="light"] footer[style*="000623"] { background: #F2EFFF !important; border-top-color: rgba(161,0,255,0.10) !important; }

/* Suppress dark radial glow overlays in each section */
html[data-theme="light"] #who-is-viki  .absolute,
html[data-theme="light"] #features     .absolute[style*="radial-gradient"],
html[data-theme="light"] #how-it-works .absolute[style*="radial-gradient"],
html[data-theme="light"] #tech-stack   .absolute[style*="radial-gradient"],
html[data-theme="light"] #contact      .absolute[style*="radial-gradient"] { opacity: 0.04 !important; }

/* Text: headings + body */
html[data-theme="light"] #who-is-viki h2,
html[data-theme="light"] #who-is-viki p:not([class*="cap-pill"]) { color: #0D0020 !important; }
html[data-theme="light"] #who-is-viki [style*="rgba(255,255,255,0.45)"] { color: #5A5270 !important; }

html[data-theme="light"] #features h2,
html[data-theme="light"] #features h3,
html[data-theme="light"] #features p:not([class*="cap-pill"]) { color: #0D0020 !important; }

html[data-theme="light"] #how-it-works h2,
html[data-theme="light"] #how-it-works h3,
html[data-theme="light"] #how-it-works p { color: #0D0020 !important; }

html[data-theme="light"] #tech-stack h2,
html[data-theme="light"] #tech-stack p { color: #0D0020 !important; }

html[data-theme="light"] #contact h2,
html[data-theme="light"] #contact p { color: #0D0020 !important; }

html[data-theme="light"] #team h2,
html[data-theme="light"] #team h3,
html[data-theme="light"] #team p { color: #0D0020 !important; }

/* Feature cards */
html[data-theme="light"] .feature-card {
  background: rgba(255,255,255,0.75) !important;
  border-color: rgba(161,0,255,0.15) !important;
  box-shadow: 0 4px 24px rgba(100,60,180,0.09), 0 1px 6px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .feature-card:hover {
  border-color: rgba(161,0,255,0.30) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 10px 40px rgba(100,60,180,0.13), 0 2px 8px rgba(0,0,0,0.05) !important;
}
html[data-theme="light"] .feature-card h3 { color: #0D0020 !important; }
html[data-theme="light"] .feature-card p  { color: #5A5270 !important; }

/* Workflow cards (how-it-works) */
html[data-theme="light"] .workflow-card {
  background: rgba(255,255,255,0.80) !important;
  border-color: rgba(161,0,255,0.14) !important;
  box-shadow: 0 4px 20px rgba(100,60,180,0.08), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .workflow-card p { color: #0D0020 !important; }
html[data-theme="light"] .workflow-card p:last-child { color: #5A5270 !important; }
html[data-theme="light"] .flow-num { color: rgba(161,0,255,0.5) !important; }

/* Tech chips */
html[data-theme="light"] .tech-chip {
  background: rgba(255,255,255,0.80) !important;
  border-color: rgba(161,0,255,0.14) !important;
  box-shadow: 0 3px 12px rgba(100,60,180,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .tech-chip p { color: #0D0020 !important; }
html[data-theme="light"] .tech-chip p:last-child { color: #5A5270 !important; }

/* Footer text */
html[data-theme="light"] footer .text-\[\#A3A3A3\],
html[data-theme="light"] footer [style*="color:#A3A3A3"],
html[data-theme="light"] footer [style*="opacity:0.6"] { color: #5A5270 !important; opacity: 1 !important; }
html[data-theme="light"] footer a { color: #5A5270 !important; }
html[data-theme="light"] footer a:hover { color: #0D0020 !important; }

/* ══════════════════════════════════════════════════════════════════
   BILL3.HTML — Light mode overrides
══════════════════════════════════════════════════════════════════ */

/* Hero */
html[data-theme="light"] .hero { background: linear-gradient(160deg, #F2EFFF 0%, #EDE8FF 50%, #E8E2FF 100%) !important; }
html[data-theme="light"] .hero-eyebrow { color: #6B00CC !important; }
html[data-theme="light"] .hero-headline { color: #0D0020 !important; }
html[data-theme="light"] .hero-headline .line-accent { color: #4A55C0 !important; -webkit-text-fill-color: #4A55C0 !important; }
html[data-theme="light"] .hero-sub { color: #5A5270 !important; }
html[data-theme="light"] .btn-secondary { color: #0D0020 !important; border-color: rgba(13,0,32,0.22) !important; }
html[data-theme="light"] .btn-secondary:hover { color: #0D0020 !important; border-color: rgba(13,0,32,0.45) !important; }

/* Hero mockup shell */
html[data-theme="light"] .mockup-shell {
  background: #fff !important;
  border-color: rgba(161,0,255,0.18) !important;
  box-shadow: 0 8px 40px rgba(100,60,180,0.14), 0 2px 10px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .mockup-topbar {
  background: rgba(242,239,255,0.95) !important;
  border-bottom-color: rgba(161,0,255,0.12) !important;
}
html[data-theme="light"] .mockup-title { color: rgba(13,0,32,0.38) !important; }
html[data-theme="light"] .timer-display { border-bottom-color: rgba(161,0,255,0.10) !important; }
html[data-theme="light"] .timer-label { color: rgba(13,0,32,0.45) !important; }
html[data-theme="light"] .timer-value { color: #0D0020 !important; }
html[data-theme="light"] .timer-client { color: rgba(13,0,32,0.45) !important; }
html[data-theme="light"] .recent-entry { border-bottom-color: rgba(161,0,255,0.08) !important; }
html[data-theme="light"] .entry-project  { color: rgba(13,0,32,0.45) !important; }
html[data-theme="light"] .entry-name     { color: #0D0020 !important; }
html[data-theme="light"] .entry-hours    { color: #0D0020 !important; }
html[data-theme="light"] .entry-item     { background: rgba(161,0,255,0.04) !important; border-color: rgba(161,0,255,0.12) !important; }
html[data-theme="light"] .entry-desc     { color: #0D0020 !important; }
html[data-theme="light"] .entry-meta     { color: rgba(13,0,32,0.45) !important; }
html[data-theme="light"] .entry-duration { color: #6B00CC !important; }

/* Section backgrounds */
html[data-theme="light"] .section-how     { background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 55%, #E8E2FF 100%) !important; }
html[data-theme="light"] .section-capture { background: linear-gradient(180deg, #E8E2FF 0%, #EDE8FF 55%, #E8E2FF 100%) !important; }
html[data-theme="light"] .section-agent   { background: linear-gradient(180deg, #E8E2FF 0%, #EDE8FF 55%, #F2EFFF 100%) !important; }
html[data-theme="light"] .section-cta     { background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 55%, #F2EFFF 100%) !important; }
html[data-theme="light"] .stats-bar {
  border-top-color: rgba(161,0,255,0.10) !important;
  border-bottom-color: rgba(161,0,255,0.10) !important;
}

/* Section text */
html[data-theme="light"] .section-label { color: #6B00CC !important; }
html[data-theme="light"] .section-title { color: #0D0020 !important; }
html[data-theme="light"] .section-sub   { color: #5A5270 !important; }
html[data-theme="light"] .stat-val      { color: #0D0020 !important; }
html[data-theme="light"] .stat-label    { color: rgba(13,0,32,0.38) !important; }

/* Step cards */
html[data-theme="light"] .step-card {
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(161,0,255,0.12) !important;
  box-shadow: 0 4px 20px rgba(100,60,180,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .step-card:hover {
  border-color: rgba(161,0,255,0.25) !important;
  box-shadow: 0 10px 36px rgba(100,60,180,0.12), 0 2px 8px rgba(0,0,0,0.05) !important;
}
html[data-theme="light"] .step-title { color: #0D0020 !important; }
html[data-theme="light"] .step-desc  { color: #5A5270 !important; }

/* Capture cards */
html[data-theme="light"] .capture-card {
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(161,0,255,0.12) !important;
  box-shadow: 0 4px 20px rgba(100,60,180,0.07), 0 1px 4px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .capture-card:hover {
  border-color: rgba(161,0,255,0.25) !important;
  box-shadow: 0 10px 36px rgba(100,60,180,0.12) !important;
}
html[data-theme="light"] .capture-title { color: #0D0020 !important; }
html[data-theme="light"] .capture-desc  { color: #5A5270 !important; }
html[data-theme="light"] .badge-timer   { background: rgba(255,22,53,0.08) !important;  border-color: rgba(255,22,53,0.18) !important; }
html[data-theme="light"] .badge-manual  { background: rgba(133,153,255,0.10) !important; border-color: rgba(133,153,255,0.20) !important; }
html[data-theme="light"] .badge-cal     { background: rgba(161,0,255,0.08) !important;  border-color: rgba(161,0,255,0.18) !important; }
html[data-theme="light"] .badge-idle    { background: rgba(255,94,8,0.08) !important;   border-color: rgba(255,94,8,0.18) !important; }

/* Agent section text */
html[data-theme="light"] .section-agent .section-title { color: #0D0020 !important; }
html[data-theme="light"] .section-agent .section-sub   { color: #5A5270 !important; }
html[data-theme="light"] .point-title { color: #0D0020 !important; }
html[data-theme="light"] .point-desc  { color: #5A5270 !important; }
html[data-theme="light"] .point-icon  { background: rgba(161,0,255,0.08) !important; border-color: rgba(161,0,255,0.14) !important; }

/* Invoice mockup */
html[data-theme="light"] .invoice-mockup {
  background: #fff !important;
  border-color: rgba(161,0,255,0.18) !important;
  box-shadow: 0 8px 40px rgba(100,60,180,0.12), 0 2px 10px rgba(0,0,0,0.05) !important;
}
html[data-theme="light"] .invoice-header {
  background: rgba(242,239,255,0.95) !important;
  border-bottom-color: rgba(161,0,255,0.10) !important;
}
html[data-theme="light"] .invoice-id          { color: rgba(13,0,32,0.38) !important; }
html[data-theme="light"] .invoice-client-name { color: #0D0020 !important; }
html[data-theme="light"] .invoice-client-email { color: rgba(13,0,32,0.42) !important; }
html[data-theme="light"] .invoice-lines       { border-color: rgba(161,0,255,0.10) !important; }
html[data-theme="light"] .invoice-line-head   { background: rgba(161,0,255,0.04) !important; border-bottom-color: rgba(161,0,255,0.08) !important; }
html[data-theme="light"] .invoice-line        { border-bottom-color: rgba(161,0,255,0.08) !important; }
html[data-theme="light"] .col-label           { color: rgba(13,0,32,0.38) !important; }
html[data-theme="light"] .col-val             { color: #0D0020 !important; }
html[data-theme="light"] .col-val-mono        { color: #5A5270 !important; }
html[data-theme="light"] .invoice-total {
  background: rgba(161,0,255,0.04) !important;
  border-color: rgba(161,0,255,0.14) !important;
}
html[data-theme="light"] .total-label  { color: #5A5270 !important; }
html[data-theme="light"] .total-amount { color: #0D0020 !important; }
html[data-theme="light"] .btn-edit {
  color: rgba(13,0,32,0.55) !important;
  border-color: rgba(13,0,32,0.18) !important;
}
html[data-theme="light"] .btn-edit:hover { color: #0D0020 !important; border-color: rgba(13,0,32,0.40) !important; }

/* CTA box */
html[data-theme="light"] .cta-box {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(161,0,255,0.16) !important;
  box-shadow: 0 8px 40px rgba(100,60,180,0.09), 0 2px 10px rgba(0,0,0,0.04) !important;
}
html[data-theme="light"] .cta-title { color: #0D0020 !important; }
html[data-theme="light"] .cta-sub   { color: #5A5270 !important; }

/* Architecture section (bill3.html) */
html[data-theme="light"] #architecture {
  background: linear-gradient(180deg, #F2EFFF 0%, #EDE8FF 55%, #F2EFFF 100%) !important;
  border-top-color: rgba(161,0,255,0.12) !important;
}
html[data-theme="light"] .arch-layer {
  background: rgba(255,255,255,0.75) !important;
  border-color: rgba(161,0,255,0.18) !important;
}
html[data-theme="light"] .arch-num    { color: rgba(13,0,32,0.35) !important; }
html[data-theme="light"] .arch-name   { color: #0D0020 !important; }
html[data-theme="light"] .arch-detail { color: rgba(13,0,32,0.40) !important; }

/* Footer: uses shared Tailwind classes + existing footer rules in theme.css */
