:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --muted: #e2e8f0;
  --text: #0f172a;
  --subtle: #475569;
  --accent: #4f46e5;
  --border: #e2e8f0;
  --shadow: 0 20px 60px -32px rgba(15, 23, 42, 0.35);
}

:root.dark {
  --bg: #0f172a;
  --surface: #1e293b;
  --muted: #111827;
  --text: #e2e8f0;
  --subtle: #cbd5e1;
  --accent: #a78bfa;
  --border: #334155;
  --shadow: 0 20px 60px -32px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3 {
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
  color: var(--subtle);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--subtle);
}

li + li {
  margin-top: 0.35rem;
}

.container {
  width: min(1100px, 94vw);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section.muted {
  background: var(--muted);
}

.section-heading {
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 8px;
}

.tagline {
  max-width: 560px;
}

.site-header {
  padding: 64px 0 32px;
  background: var(--bg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.two-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.25);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.pill-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  background: var(--muted);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--border);
}

.feedback {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--text);
}

input,
select,
textarea,
button {
  font: inherit;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
}

textarea {
  resize: vertical;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px -18px rgba(79, 70, 229, 0.9);
}

button:hover {
  transform: translateY(-2px);
}

.muted .panel {
  box-shadow: none;
}

.stack {
  display: grid;
  gap: 18px;
}

.site-footer {
  padding: 32px 0 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--muted);
  transition: 0.3s;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: var(--surface);
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.toggle-label {
  color: var(--subtle);
  font-weight: 600;
}

@media (max-width: 700px) {
  .header-content,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    padding-top: 48px;
  }
}
