/* ============================================================
   AIMA HOME — SMOKY LIGHT GLASS V1
   Visual-only. Preserves layout, motion, content and behavior.
   ============================================================ */

/* ---------- shared light tokens ---------- */
html[data-theme="light"]{
  --smoke-warm:#D8CCC4;
  --smoke-mid:#D3D9E2;
  --smoke-blue:#C6D8EF;
  --smoke-text:#26324A;
  --smoke-title:#202D45;
  --smoke-secondary:#52617A;
  --smoke-muted:#718096;
  --smoke-blue-accent:#4E78F5;
  --smoke-green:#4DA16D;
  --smoke-red:#B95764;
  color-scheme:light;
  background:#D3D9E2 !important;
}

/* ---------- canvas ---------- */
html[data-theme="light"] body{
  color:var(--smoke-text) !important;
  background:
    radial-gradient(circle at 2% 2%,rgba(232,207,191,.76),transparent 29%),
    radial-gradient(circle at 91% 4%,rgba(177,205,244,.70),transparent 31%),
    radial-gradient(circle at 72% 96%,rgba(191,211,239,.58),transparent 34%),
    linear-gradient(118deg,#D8CCC4 0%,#D3D9E2 44%,#C6D8EF 100%) !important;
  background-attachment:fixed !important;
}
html[data-theme="light"] body::before{
  opacity:.20 !important;
}
html[data-theme="light"] #field{
  opacity:.28 !important;
  mix-blend-mode:multiply;
}
html[data-theme="light"] .grain{
  opacity:.055 !important;
}
html[data-theme="light"] .cursor-glow{
  opacity:.42 !important;
}
html[data-theme="light"] .hero::before{
  background:radial-gradient(ellipse at center,rgba(109,140,255,.08),transparent 59%) !important;
}
html[data-theme="light"] .sheen-one{
  background:#B89B8D !important;
  opacity:.12 !important;
}
html[data-theme="light"] .sheen-two{
  background:#79AEF8 !important;
  opacity:.14 !important;
}

/* ---------- navigation ---------- */
html[data-theme="light"] .nav{
  background:
    linear-gradient(110deg,rgba(225,218,215,.42),rgba(197,216,239,.34)),
    rgba(210,220,233,.24) !important;
  border:1px solid rgba(255,255,255,.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 14px 38px rgba(68,83,108,.07) !important;
  backdrop-filter:blur(30px) saturate(126%) !important;
  -webkit-backdrop-filter:blur(30px) saturate(126%) !important;
}
html[data-theme="light"] .nav::after{
  opacity:.34 !important;
}
html[data-theme="light"] .brand-mark{
  background:
    linear-gradient(145deg,rgba(215,226,239,.44),rgba(188,207,230,.28)),
    rgba(202,216,232,.18) !important;
  border-color:rgba(255,255,255,.52) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),0 8px 22px rgba(68,83,108,.07) !important;
}
html[data-theme="light"] .brand-word,
html[data-theme="light"] .nav-links a,
html[data-theme="light"] .apps-trigger{
  color:#39465D !important;
}
html[data-theme="light"] .nav-links{
  background:rgba(198,213,232,.16) !important;
  border-color:rgba(255,255,255,.38) !important;
}
html[data-theme="light"] .nav-links a:hover{
  color:#202D45 !important;
  background:rgba(220,229,240,.36) !important;
}

/* apps + theme switch */
html[data-theme="light"] .apps-trigger,
html[data-theme="light"] .theme-switch,
html[data-theme="light"] .menu{
  background:
    linear-gradient(145deg,rgba(210,222,237,.34),rgba(188,207,230,.24)),
    rgba(201,215,232,.13) !important;
  border-color:rgba(255,255,255,.46) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 7px 18px rgba(68,83,108,.045) !important;
  backdrop-filter:blur(18px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(118%) !important;
}
html[data-theme="light"] .theme-btn{
  color:#718096 !important;
}
html[data-theme="light"] .theme-btn.is-active{
  color:#202D45 !important;
  background:linear-gradient(110deg,rgba(204,219,240,.58),rgba(173,198,233,.46)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.36),0 5px 14px rgba(70,88,118,.06) !important;
}

/* strong floating glass */
html[data-theme="light"] .apps-menu,
html[data-theme="light"] .mobile-nav{
  background:
    radial-gradient(circle at 5% 0%,rgba(228,211,201,.20),transparent 30%),
    radial-gradient(circle at 96% 2%,rgba(185,209,241,.24),transparent 31%),
    linear-gradient(145deg,rgba(197,213,233,.62),rgba(169,194,223,.48)),
    rgba(187,204,226,.36) !important;
  border:1px solid rgba(255,255,255,.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.44),
    0 28px 72px rgba(64,79,104,.16) !important;
  backdrop-filter:blur(34px) saturate(126%) !important;
  -webkit-backdrop-filter:blur(34px) saturate(126%) !important;
}
html[data-theme="light"] .apps-menu-head,
html[data-theme="light"] .apps-menu-foot{
  border-color:rgba(255,255,255,.30) !important;
}
html[data-theme="light"] .apps-menu-head strong,
html[data-theme="light"] .app-link b{
  color:#26324A !important;
}
html[data-theme="light"] .apps-menu-head small,
html[data-theme="light"] .apps-menu-head>span,
html[data-theme="light"] .app-link small,
html[data-theme="light"] .apps-menu-foot{
  color:#718096 !important;
}
html[data-theme="light"] .app-link{
  background:rgba(191,209,230,.18) !important;
  border-color:rgba(255,255,255,.36) !important;
}
html[data-theme="light"] .app-link:hover{
  background:rgba(210,225,241,.38) !important;
  border-color:rgba(255,255,255,.54) !important;
}
html[data-theme="light"] .app-link-icon{
  background:rgba(197,215,235,.34) !important;
  border-color:rgba(255,255,255,.40) !important;
  color:#4E78F5 !important;
}

/* ---------- hero ---------- */
html[data-theme="light"] .hero h1{
  color:#121827 !important;
}
html[data-theme="light"] .hero h1 .stroke{
  color:transparent !important;
  -webkit-text-stroke:2px rgba(49,64,90,.78) !important;
}
html[data-theme="light"] .eyebrow{
  color:#66758C !important;
}
html[data-theme="light"] .lead{
  color:#637289 !important;
}
html[data-theme="light"] .cta.primary{
  color:#17233A !important;
  background:linear-gradient(110deg,rgba(227,234,246,.96),rgba(174,196,248,.94) 64%,rgba(151,174,240,.95)) !important;
  border-color:rgba(255,255,255,.58) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.56),0 12px 30px rgba(66,90,157,.14) !important;
}
html[data-theme="light"] .cta.secondary{
  color:#39465D !important;
  background:
    linear-gradient(145deg,rgba(204,218,235,.33),rgba(183,203,226,.22)),
    rgba(194,210,229,.13) !important;
  border-color:rgba(255,255,255,.46) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32) !important;
  backdrop-filter:blur(18px) saturate(116%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(116%) !important;
}
html[data-theme="light"] .proof span,
html[data-theme="light"] .scroll-cue{
  color:#718096 !important;
}

/* hero intelligence glass */
html[data-theme="light"] .neural-hub{
  background:
    radial-gradient(circle at 35% 24%,rgba(255,255,255,.34),transparent 31%),
    linear-gradient(145deg,rgba(190,208,231,.46),rgba(164,191,222,.30)),
    rgba(184,203,226,.20) !important;
  border-color:rgba(255,255,255,.48) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 22px 62px rgba(64,79,104,.12),
    0 0 70px rgba(78,120,245,.06) !important;
  backdrop-filter:blur(26px) saturate(120%) !important;
  -webkit-backdrop-filter:blur(26px) saturate(120%) !important;
}
html[data-theme="light"] .neural-hub::before{
  opacity:.44 !important;
}
html[data-theme="light"] .neural-node{
  background:
    linear-gradient(145deg,rgba(199,215,233,.42),rgba(178,200,225,.28)),
    rgba(191,208,228,.17) !important;
  border-color:rgba(255,255,255,.48) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 10px 28px rgba(68,83,108,.07) !important;
  backdrop-filter:blur(22px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(118%) !important;
}
html[data-theme="light"] .neural-node b{color:#31405A !important}
html[data-theme="light"] .neural-node span{color:#718096 !important}
html[data-theme="light"] .neural-node>i{
  color:#52617A !important;
  background:rgba(184,205,230,.26) !important;
}
html[data-theme="light"] .neural-readout{color:#7A879A !important}

/* ---------- manifesto / shared section surfaces ---------- */
html[data-theme="light"] .manifesto,
html[data-theme="light"] .loop,
html[data-theme="light"] .principles{
  background:
    linear-gradient(145deg,rgba(194,210,229,.23),rgba(171,194,220,.15)),
    rgba(190,206,225,.08) !important;
  border-color:rgba(255,255,255,.32) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20) !important;
}
html[data-theme="light"] .manifesto p,
html[data-theme="light"] .section-top h2,
html[data-theme="light"] .loop-head h2{
  color:#26324A !important;
}
html[data-theme="light"] .manifesto p em,
html[data-theme="light"] .section-top h2 em,
html[data-theme="light"] .loop-head h2 em{
  color:#5F6E85 !important;
}
html[data-theme="light"] .manifesto-meta{
  color:#7A879A !important;
  border-color:rgba(255,255,255,.30) !important;
}

/* ---------- product tour ---------- */
html[data-theme="light"] .tour-product{
  background:
    radial-gradient(circle at 4% 5%,rgba(226,211,203,.16),transparent 31%),
    radial-gradient(circle at 96% 6%,rgba(183,208,239,.18),transparent 31%),
    linear-gradient(145deg,rgba(194,210,229,.34),rgba(171,194,220,.23)),
    rgba(188,205,225,.14) !important;
  border:1px solid rgba(255,255,255,.46) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    0 24px 64px rgba(68,83,108,.075) !important;
  backdrop-filter:blur(24px) saturate(118%) !important;
  -webkit-backdrop-filter:blur(24px) saturate(118%) !important;
}
html[data-theme="light"] .tour-product::after{
  opacity:.18 !important;
}
html[data-theme="light"] .tour-copy h3{color:#202D45 !important}
html[data-theme="light"] .tour-copy p{color:#65748A !important}
html[data-theme="light"] .tour-number,
html[data-theme="light"] .product-kicker{color:#7A879A !important}
html[data-theme="light"] .tour-points span,
html[data-theme="light"] .tour-tabs button{
  color:#5B6980 !important;
  background:rgba(195,213,233,.22) !important;
  border-color:rgba(255,255,255,.38) !important;
}
html[data-theme="light"] .tour-tabs button.is-active{
  color:#EAF0F8 !important;
  background:#26324A !important;
  border-color:#26324A !important;
}
html[data-theme="light"] .tour-signin{
  color:#31405A !important;
}
html[data-theme="light"] .tour-signin span{
  background:rgba(198,216,236,.28) !important;
  border-color:rgba(255,255,255,.40) !important;
}
html[data-theme="light"] .tour-browser{
  background:
    linear-gradient(145deg,rgba(204,218,235,.38),rgba(181,202,226,.24)),
    rgba(194,210,229,.15) !important;
  border-color:rgba(255,255,255,.44) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 18px 48px rgba(68,83,108,.09) !important;
}
html[data-theme="light"] .tour-browser-bar{
  background:rgba(191,209,230,.22) !important;
  border-color:rgba(255,255,255,.30) !important;
}
html[data-theme="light"] .browser-url{
  background:rgba(177,199,224,.22) !important;
  color:#718096 !important;
}

/* ---------- loop / principles ---------- */
html[data-theme="light"] .loop-step,
html[data-theme="light"] .principle{
  background:
    linear-gradient(145deg,rgba(194,211,231,.30),rgba(174,197,222,.20)),
    rgba(188,205,226,.11) !important;
  border-color:rgba(255,255,255,.40) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 10px 28px rgba(68,83,108,.05) !important;
}
html[data-theme="light"] .loop-step h3,
html[data-theme="light"] .principle h3{
  color:#26324A !important;
}
html[data-theme="light"] .loop-step p,
html[data-theme="light"] .principle p{
  color:#718096 !important;
}
html[data-theme="light"] .loop-step>span,
html[data-theme="light"] .principle>span,
html[data-theme="light"] .principle b{
  color:#7A879A !important;
}

/* ---------- contact ---------- */
html[data-theme="light"] .contact-shell{
  background:
    radial-gradient(circle at 5% 0%,rgba(228,211,201,.18),transparent 31%),
    radial-gradient(circle at 96% 0%,rgba(185,209,241,.20),transparent 32%),
    linear-gradient(145deg,rgba(193,210,231,.38),rgba(169,193,221,.26)),
    rgba(186,204,225,.16) !important;
  border-color:rgba(255,255,255,.46) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 24px 64px rgba(68,83,108,.08) !important;
}
html[data-theme="light"] .contact-copy h2{color:#202D45 !important}
html[data-theme="light"] .contact-copy h2 em{color:#65748A !important}
html[data-theme="light"] .contact-copy>p,
html[data-theme="light"] .contact-person span{color:#718096 !important}
html[data-theme="light"] .contact-person strong{color:#31405A !important}
html[data-theme="light"] .contact-email-link,
html[data-theme="light"] .contact-form{
  background:
    linear-gradient(145deg,rgba(198,214,233,.30),rgba(175,198,224,.20)),
    rgba(190,207,227,.11) !important;
  border-color:rgba(255,255,255,.40) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28) !important;
}
html[data-theme="light"] .contact-email-link b{color:#31405A !important}
html[data-theme="light"] .contact-email-link span,
html[data-theme="light"] .contact-email-link i,
html[data-theme="light"] .contact-form-top,
html[data-theme="light"] .contact-field>span,
html[data-theme="light"] .contact-form-foot p{color:#718096 !important}
html[data-theme="light"] .contact-field input,
html[data-theme="light"] .contact-field textarea{
  color:#31405A !important;
  background:
    linear-gradient(145deg,rgba(195,213,233,.34),rgba(172,196,223,.23)),
    rgba(188,207,229,.13) !important;
  border-color:rgba(255,255,255,.42) !important;
}
html[data-theme="light"] .contact-field input::placeholder,
html[data-theme="light"] .contact-field textarea::placeholder{color:#8F9CAF !important}
html[data-theme="light"] .contact-submit{
  color:#17233A !important;
  background:linear-gradient(110deg,rgba(227,234,246,.96),rgba(174,196,248,.94) 64%,rgba(151,174,240,.95)) !important;
  border-color:rgba(255,255,255,.58) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.56),0 10px 28px rgba(66,90,157,.13) !important;
}

/* ---------- dark crisp polish ---------- */
html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 16% 8%,rgba(77,95,166,.13),transparent 28%),
    radial-gradient(circle at 84% 18%,rgba(59,151,176,.10),transparent 29%),
    linear-gradient(120deg,#09111F 0%,#0B1726 48%,#09131F 100%) !important;
}
html[data-theme="dark"] #field{opacity:.64 !important}
html[data-theme="dark"] .grain{opacity:.06 !important}
html[data-theme="dark"] .cursor-glow{opacity:.34 !important}
html[data-theme="dark"] .hero::before{
  background:radial-gradient(ellipse at center,rgba(100,120,255,.10),transparent 60%) !important;
}
html[data-theme="dark"] .sheen-one{opacity:.10 !important}
html[data-theme="dark"] .sheen-two{opacity:.085 !important}
html[data-theme="dark"] .nav{
  background:rgba(8,13,24,.82) !important;
  backdrop-filter:blur(20px) saturate(116%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(116%) !important;
}
html[data-theme="dark"] .tour-product,
html[data-theme="dark"] .loop-step,
html[data-theme="dark"] .principle,
html[data-theme="dark"] .contact-shell{
  backdrop-filter:blur(16px) saturate(112%) !important;
  -webkit-backdrop-filter:blur(16px) saturate(112%) !important;
}

/* ---------- mobile ---------- */
@media(max-width:760px){
  html[data-theme="light"] body{
    background:
      radial-gradient(circle at 0% 0%,rgba(232,207,191,.68),transparent 34%),
      radial-gradient(circle at 100% 5%,rgba(177,205,244,.62),transparent 36%),
      linear-gradient(135deg,#D8CCC4 0%,#D3D9E2 50%,#C6D8EF 100%) !important;
  }
  html[data-theme="light"] .nav{
    background:
      linear-gradient(120deg,rgba(223,217,215,.48),rgba(198,217,239,.38)),
      rgba(207,218,232,.28) !important;
  }
  html[data-theme="light"] .mobile-nav{
    background:
      linear-gradient(145deg,rgba(198,214,233,.66),rgba(172,195,223,.54)),
      rgba(187,204,225,.40) !important;
  }
}

/* ============================================================
   SMOKY HOME PASS V2 — remaining sections + apps stacking
   ============================================================ */

/* Make the floating apps panel unambiguously escape the nav stack. */
.nav{
  overflow:visible !important;
}
.nav-actions,
.apps-menu-wrap{
  position:relative;
  z-index:220 !important;
}
.apps-menu{
  z-index:500 !important;
}

/* Ecosystem tiles */
html[data-theme="light"] .ecosystem{
  border-color:rgba(255,255,255,.30) !important;
}
html[data-theme="light"] .tile{
  background:
    linear-gradient(145deg,rgba(193,210,231,.30),rgba(171,194,220,.20)),
    rgba(188,205,225,.11) !important;
  border-color:rgba(255,255,255,.40) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 14px 36px rgba(68,83,108,.055) !important;
  backdrop-filter:blur(20px) saturate(116%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(116%) !important;
}
html[data-theme="light"] .tile:hover{
  border-color:rgba(255,255,255,.56) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 20px 48px rgba(68,83,108,.08) !important;
}
html[data-theme="light"] .tile-no,
html[data-theme="light"] .tile-label{color:#7A879A !important}
html[data-theme="light"] .tile h3{color:#26324A !important}
html[data-theme="light"] .tile p{color:#718096 !important}
html[data-theme="light"] .tile-arrow{
  color:#52617A !important;
  background:rgba(191,211,233,.26) !important;
  border-color:rgba(255,255,255,.42) !important;
}

/* System State / telemetry */
html[data-theme="light"] .telemetry,
html[data-theme="light"] .telemetry.system-state-card{
  background:
    linear-gradient(145deg,rgba(191,209,230,.34),rgba(170,194,220,.23)),
    rgba(186,203,224,.14) !important;
  border-color:rgba(255,255,255,.42) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 18px 50px rgba(68,83,108,.06) !important;
  backdrop-filter:blur(22px) saturate(116%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(116%) !important;
}
html[data-theme="light"] .system-state-card .telemetry-title,
html[data-theme="light"] .system-state-card .metric,
html[data-theme="light"] .telemetry-title,
html[data-theme="light"] .metric{
  background:
    linear-gradient(145deg,rgba(198,215,234,.27),rgba(175,198,223,.18)),
    rgba(189,207,227,.10) !important;
  border-color:rgba(255,255,255,.32) !important;
  color:#31405A !important;
}
html[data-theme="light"] .system-state-card .metric:hover{
  background:rgba(207,223,240,.30) !important;
}
html[data-theme="light"] .system-state-card .metric-copy>span,
html[data-theme="light"] .metric span{
  color:#31405A !important;
}
html[data-theme="light"] .system-state-card .metric-copy>small,
html[data-theme="light"] .metric small,
html[data-theme="light"] .system-state-card .telemetry-title>small{
  color:#718096 !important;
}
html[data-theme="light"] .system-state-card .metric-icon{
  background:rgba(188,209,232,.28) !important;
  border-color:rgba(255,255,255,.38) !important;
  color:#4E78F5 !important;
}

/* Finale and footer */
html[data-theme="light"] .finale{
  background:
    radial-gradient(ellipse at 50% 100%,rgba(121,174,248,.14),transparent 42%),
    linear-gradient(180deg,rgba(191,209,230,.12),rgba(171,194,220,.17)) !important;
}
html[data-theme="light"] .finale-sun{
  background:radial-gradient(circle at 50% 42%,rgba(121,174,248,.18),rgba(78,120,245,.08) 34%,transparent 68%) !important;
  filter:blur(4px) !important;
}
html[data-theme="light"] .finale-ring{
  border-color:rgba(82,97,122,.11) !important;
}
html[data-theme="light"] .finale h2{color:#202D45 !important}
html[data-theme="light"] .finale h2 em{color:#65748A !important}
html[data-theme="light"] .footer{
  color:#718096 !important;
  border-color:rgba(255,255,255,.32) !important;
}

/* Dark: keep section separation crisp without adding haze. */
html[data-theme="dark"] .telemetry.system-state-card,
html[data-theme="dark"] .tile,
html[data-theme="dark"] .finale,
html[data-theme="dark"] .contact-shell{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 16px 42px rgba(0,0,0,.14) !important;
}
