:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-card: #ffffff;
  --text: #24292f;
  --muted: #57606a;
  --border: #d0d7de;
  --accent: #0969da;
  --accent-strong: #0550ae;
  --shadow: 0 16px 48px rgba(140, 149, 159, 0.22);
  --code-bg: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #0d1117;
    --bg-soft: #161b22;
    --bg-card: #161b22;
    --text: #e6edf3;
    --muted: #8b949e;
    --border: #30363d;
    --accent: #58a6ff;
    --accent-strong: #79c0ff;
    --shadow: 0 16px 48px rgba(1, 4, 9, 0.55);
    --code-bg: #161b22;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-card: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --accent-strong: #79c0ff;
  --shadow: 0 16px 48px rgba(1, 4, 9, 0.55);
  --code-bg: #161b22;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-card: #ffffff;
  --text: #24292f;
  --muted: #57606a;
  --border: #d0d7de;
  --accent: #0969da;
  --accent-strong: #0550ae;
  --shadow: 0 16px 48px rgba(140, 149, 159, 0.22);
  --code-bg: #f6f8fa;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

.theme-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
}

.theme-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.theme-button:hover {
  color: var(--text);
}

.theme-button.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(1, 4, 9, 0.12);
}

.hero {
  padding: 72px 0 48px;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  max-width: 1040px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.lead {
  max-width: 860px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 20px;
}

.small-note,
.muted {
  color: var(--muted);
}

.small-note {
  margin-top: 18px;
  font-size: 14px;
}

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.badge-row a {
  display: inline-flex;
  line-height: 0;
}

.badge-row img {
  display: block;
  height: 20px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}

.button:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.hero-preview-wrap {
  width: 100%;
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

.hero-preview {
  display: block;
  width: 100%;
  height: auto;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-list div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.media-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.media-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

figure img {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.checklist {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.checklist li {
  margin: 8px 0;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--bg-soft);
}

.site-footer p {
  margin: 8px 0;
}

@media (max-width: 900px) {
  .hero,
  .grid.two,
  .grid.three,
  .feature-list,
  .media-grid.two,
  .media-grid.three {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  h1 {
    font-size: clamp(36px, 11vw, 54px);
  }
}
