/* === LIGHT THEME === */
html.light {
  --bg-void: #ffffff;
  --bg-deep: #f8fafb;
  --bg-surface: #f1f5f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f4f8f7;
  --border: rgba(45,212,168,0.12);
  --border-hover: rgba(45,212,168,0.3);
  --text: #0f1c18;
  --text-body: #3d5a4e;
  --text-dim: #7a9a8d;
  --red-dim: #dc3545;
  --red-bg: rgba(220,53,69,0.06);
  --red-border: rgba(220,53,69,0.12);
  --orange-soon: #d48800;
  --gradient-aurora: linear-gradient(135deg, #1a9a7a 0%, #0cc090 40%, #2bb0a8 70%, #0090b0 100%);
  --gradient-frost: linear-gradient(135deg, #1a9a7a 0%, #0090b0 100%);
}
html.light body { -webkit-font-smoothing: auto; }
html.light body::after { opacity: 0.02; }

/* Aurora blobs */
html.light .aurora-blob:nth-child(1) { background: rgba(45,212,168,0.06); }
html.light .aurora-blob:nth-child(2) { background: rgba(15,240,176,0.04); }
html.light .aurora-blob:nth-child(3) { background: rgba(0,180,216,0.05); }

/* Nav */
html.light nav { background: rgba(255,255,255,0.8); border-bottom-color: rgba(45,212,168,0.1); }
html.light nav.scrolled { background: rgba(255,255,255,0.95); border-bottom-color: rgba(45,212,168,0.15); }

/* Buttons */
html.light .btn-primary { color: #fff; background: #1a9a7a; }
html.light .btn-primary:hover { box-shadow: 0 8px 32px rgba(26,154,122,0.25), 0 0 0 1px rgba(26,154,122,0.3); }
html.light .nav-links a.btn-primary { color: #fff; }
html.light .btn-ghost { border-color: rgba(61,90,78,0.2); color: var(--text-body); }
html.light .btn-ghost:hover { border-color: #1a9a7a; color: #1a9a7a; }

/* Hero */
html.light .hero-glow { background: radial-gradient(circle, rgba(45,212,168,0.06) 0%, rgba(0,180,216,0.03) 40%, transparent 70%); }
html.light .circuit-pattern { opacity: 0.02; }

/* Cards - generic (feature, value, step, security, problem, deploy, channel) */
html.light .feature-card,
html.light .value-card,
html.light .step-card,
html.light .security-item,
html.light .channel-pill,
html.light .deploy-card {
  background: #fff;
  border-color: rgba(45,212,168,0.1);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
html.light .feature-card:hover,
html.light .value-card:hover,
html.light .step-card:hover,
html.light .deploy-card:hover {
  background: #f8fcfb;
  box-shadow: 0 16px 48px rgba(0,0,0,0.06), 0 0 40px rgba(45,212,168,0.04);
}
html.light .problem-card {
  background: rgba(220,53,69,0.04);
  border-color: rgba(220,53,69,0.1);
}

/* Icon backgrounds */
html.light .feature-icon,
html.light .value-icon,
html.light .security-icon { background: rgba(45,212,168,0.08); border-color: rgba(45,212,168,0.15); }
html.light .step-num { background: rgba(45,212,168,0.08); }
html.light .problem-icon { background: rgba(220,53,69,0.06); border-color: rgba(220,53,69,0.1); }

/* Dashboard preview */
html.light .dashboard-frame {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(45,212,168,0.08), 0 20px 60px rgba(0,0,0,0.08), 0 0 120px rgba(45,212,168,0.03);
}
html.light .dash-titlebar { background: rgba(241,245,244,0.8); }
html.light .dash-client-card { background: rgba(241,245,244,0.5); }
html.light .dash-toolbar { background: rgba(241,245,244,0.5); }
html.light .dash-row:hover { background: rgba(45,212,168,0.04); }
html.light .dash-footer { background: rgba(241,245,244,0.5); }

/* Terminal / deploy */
html.light .terminal-block { background: #1a1d23; }
html.light .deploy-detail { background: rgba(45,212,168,0.06); border-color: rgba(45,212,168,0.12); }

/* Before/After */
html.light .ba-item.bad { background: rgba(220,53,69,0.04); border-color: rgba(220,53,69,0.08); }
html.light .ba-item.good { background: rgba(45,212,168,0.05); border-color: rgba(45,212,168,0.1); }
html.light .ba-divider-arrow { background: #fff; }

/* Quote */
html.light .quote-block { background: rgba(45,212,168,0.02); }

/* Checklist */
html.light .checklist li { background: rgba(45,212,168,0.04); border-color: rgba(45,212,168,0.1); }

/* CTA */
html.light .cta-final-glow { background: radial-gradient(circle, rgba(45,212,168,0.06) 0%, transparent 65%); }

/* Footer */
html.light footer { background: #fff; }

/* === TOGGLE CONTROLS === */
.nav-toggles {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toggle-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
html.light .toggle-group {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
}
.toggle-group button {
  padding: 0.3rem 0.55rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1;
}
.toggle-group button.active {
  background: rgba(45,212,168,0.15);
  color: var(--aurora-1);
}
html.light .toggle-group button.active {
  background: rgba(26,154,122,0.12);
  color: #1a9a7a;
}
.toggle-group button:hover:not(.active) { color: var(--text-body); }
.toggle-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
html.light .toggle-sep { background: rgba(0,0,0,0.08); }

@media (max-width: 768px) {
  .nav-toggles { gap: 0.35rem; }
  .toggle-group button { padding: 0.25rem 0.4rem; font-size: 0.6rem; }
}

/* === MOBILE NAV (HAMBURGER) === */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 4px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-body);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(4,5,7,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
}
html.light .nav-mobile-menu {
  background: rgba(255,255,255,0.97);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-menu a:last-of-type { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--text); }
.nav-mobile-menu .nav-toggles {
  padding-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 580px) {
  .nav-links > a:not(.btn),
  .nav-links > .nav-toggles { display: none; }
  .nav-hamburger { display: flex; }
}
