/* Vikas Labs light/dark theme */
:root {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d14;
  --surface: rgba(24, 24, 35, .82);
  --surface-solid: #171722;
  --text: #f7f5ff;
  --muted: #aaa8bb;
  --line: rgba(255,255,255,.10);
  --navy: #f7f5ff;
  --shadow: 0 22px 70px rgba(0,0,0,.34);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.78);
  color: var(--text);
  box-shadow: 0 7px 22px rgba(28,26,65,.08);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(28,26,65,.13);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(143,24,240,.25);
  outline-offset: 3px;
}

.theme-toggle-icon {
  font-size: 19px;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

html[data-theme="dark"] .site-header {
  background: rgba(13,13,20,.78);
  border-bottom-color: rgba(255,255,255,.07);
}

html[data-theme="dark"] .site-nav {
  color: #c5c3d4;
}

html[data-theme="dark"] .nav-cta {
  background: #f4f1ff;
  color: #17131f !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(28,28,41,.88);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(28,28,41,.82);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 8px 25px rgba(0,0,0,.20);
}

html[data-theme="dark"] .feature-card {
  background: rgba(29,28,41,.72);
  border-color: rgba(255,255,255,.09);
}

html[data-theme="dark"] .floating-badge {
  background: rgba(28,27,40,.92);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}

html[data-theme="dark"] .apps-section {
  background: linear-gradient(180deg, transparent, rgba(41,30,66,.40) 20%, rgba(13,13,20,.08) 90%);
}

html[data-theme="dark"] .app-card {
  background: rgba(24,24,35,.90);
  border-color: rgba(255,255,255,.08);
}

html[data-theme="dark"] .app-visual {
  background: radial-gradient(circle at 50% 50%, rgba(255,181,54,.12), rgba(44,35,28,.78) 44%, rgba(28,23,42,.82) 100%);
}

html[data-theme="dark"] .app-icon-wrap {
  background: rgba(31,30,41,.90);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 28px 55px rgba(0,0,0,.28);
}

html[data-theme="dark"] .pill-soft {
  background: #252532;
  color: #b7b5c7;
}

html[data-theme="dark"] .app-tagline {
  color: #e9e7f2;
}

html[data-theme="dark"] .app-features span {
  color: #b9b7c8;
}

html[data-theme="dark"] .principle-card,
html[data-theme="dark"] .content-card {
  background: rgba(24,24,35,.88);
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 15px 45px rgba(0,0,0,.22);
}

html[data-theme="dark"] .info-box {
  background: rgba(143,24,240,.12);
  border-color: rgba(173,92,255,.17);
}

html[data-theme="dark"] .footer-bottom {
  color: #858395;
}

html[data-theme="dark"] .page-glow-a {
  opacity: .65;
  background: radial-gradient(circle, rgba(236,11,152,.14), rgba(104,38,231,.06) 70%, transparent 72%);
}

html[data-theme="dark"] .page-glow-b {
  opacity: .65;
  background: radial-gradient(circle, rgba(48,174,255,.10), rgba(143,24,240,.06) 68%, transparent 70%);
}

@media (max-width: 760px) {
  .nav-wrap {
    gap: 12px;
  }

  .nav-controls {
    margin-left: auto;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  html[data-theme="dark"] .site-nav {
    background: rgba(20,20,30,.98);
    border-color: rgba(255,255,255,.09);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
  }
}
