:root {
  color-scheme: dark;
}

.theme-toggle {
  position: relative;
  width: 39px;
  height: 39px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity .2s, transform .2s;
}

.theme-toggle-sun,
.theme-toggle[aria-pressed=true] .theme-toggle-moon {
  opacity: 0;
  transform: rotate(-35deg) scale(.6);
}

.theme-toggle-moon,
.theme-toggle[aria-pressed=true] .theme-toggle-sun {
  opacity: 1;
  transform: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

html[data-theme=light] {
  --bg: #f7f8fb;
  --panel: #fff;
  --panel2: #f0f2f7;
  --line: rgba(22, 27, 37, .13);
  --text: #161b25;
  --muted: #626a78;
  --green: #16855c;
  color-scheme: light;
}

body {
  transition: background-color .2s, color .2s;
}

html[data-theme=light] body:before {
  background-image: linear-gradient(rgba(22, 27, 37, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 27, 37, .02) 1px, transparent 1px);
}

html[data-theme=light] .site-header {
  background: rgba(247, 248, 251, .84);
}

html[data-theme=light] .site-nav a,
html[data-theme=light] .sign-in,
html[data-theme=light] .hero-lead,
html[data-theme=light] .feature-list,
html[data-theme=light] .price-card ul,
html[data-theme=light] .boundary-note {
  color: #4d5563;
}

html[data-theme=light] .site-nav a:hover,
html[data-theme=light] .sign-in:hover,
html[data-theme=light] .footer-links a:hover {
  color: #161b25;
}

html[data-theme=light] h1 span,
html[data-theme=light] h2 span {
  color: #727989;
}

html[data-theme=light] .hero-detail strong {
  color: #353b47;
}

html[data-theme=light] .section-tinted {
  background: linear-gradient(180deg, #f0f2f7, #f7f8fb);
}

html[data-theme=light] .app-window,
html[data-theme=light] .code-window,
html[data-theme=light] .dashboard,
html[data-theme=light] .cta-terminal {
  border-color: rgba(22, 27, 37, .15);
  background: #fff;
  box-shadow: 0 25px 70px rgba(32, 38, 50, .14);
}

html[data-theme=light] .window-bar,
html[data-theme=light] .code-tabs,
html[data-theme=light] .file-bar {
  background: #eef0f5;
  color: #626a78;
}

html[data-theme=light] .window-bar button,
html[data-theme=light] .copy-button,
html[data-theme=light] .feature-icon {
  background: #e7e9f0;
  color: #4d5563;
}

html[data-theme=light] .mail-list,
html[data-theme=light] .terminal-run,
html[data-theme=light] .smtp-log,
html[data-theme=light] .terminal-init,
html[data-theme=light] .routing > div,
html[data-theme=light] .address {
  background: #f3f4f8;
}

html[data-theme=light] .mail.active,
html[data-theme=light] .dash-list article.selected,
html[data-theme=light] .dash-nav nav a.active {
  background: #eeebff;
}

html[data-theme=light] pre,
html[data-theme=light] .terminal-init code {
  color: #353b47;
}

html[data-theme=light] .dash-nav .brand,
html[data-theme=light] .routing > strong {
  color: #252b36;
}

html[data-theme=light] .dash-list input {
  background: #f3f4f8;
  color: #252b36;
}

html[data-theme=light] table {
  background: #fff;
}

html[data-theme=light] tbody th {
  color: #353b47;
}

html[data-theme=light] .ours {
  background: #f0edff;
  color: #57449f;
}

html[data-theme=light] .inbound-card {
  background: linear-gradient(135deg, rgba(124, 92, 252, .1), #fff);
}

@media (max-width: 980px) {
  .nav-actions {
    display: flex;
    gap: 0;
  }

  .nav-actions a {
    display: none;
  }

  html[data-theme=light] .site-nav {
    background: #fff;
  }
}
