:root {
  color-scheme: light dark;
  --bg: #f4f2ee;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #2d6a4f;
  --accent-hover: #1b4332;
  --border: #d8d4cc;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --bg-elevated: #1e1e1e;
    --text: #ececec;
    --text-muted: #a3a3a3;
    --accent: #52b788;
    --accent-hover: #74c69d;
    --border: #333333;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.9em;
}

kbd {
  display: inline-block;
  padding: 0.15em 0.45em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  font-size: 0.85em;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo img {
  border-radius: 8px;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--accent);
}

/* Main */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero */

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 36em;
  margin: 0 auto 1.75rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.lead strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Screenshot */

.screenshot-wrap {
  margin: 0 0 4rem;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.screenshot-wrap img {
  display: block;
  width: 100%;
}

.screenshot-wrap figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Sections */

section h2 {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.features,
.download,
.shortcuts,
.build {
  margin-bottom: 3.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid li {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.feature-grid h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-grid p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.download-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.download-card table {
  width: 100%;
  border-collapse: collapse;
}

.download-card th,
.download-card td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.download-card tr:last-child td {
  border-bottom: none;
}

.download-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.shortcut-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.shortcut-list div {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.shortcut-list dt {
  margin: 0;
  flex-shrink: 0;
}

.shortcut-list dd {
  margin: 0;
  color: var(--text-muted);
}

.build pre {
  margin: 0 0 1rem;
  padding: 1.25rem;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.build code {
  font-size: 0.82rem;
  line-height: 1.5;
}

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

/* Footer */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.35rem 0;
}

.publisher {
  font-size: 0.82rem;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    text-align: left;
  }

  .hero-actions,
  .hero-note {
    justify-content: flex-start;
  }
}
