:root {
  --bg: #171b20;
  --panel: #20252c;
  --text: #d7dfe6;
  --muted: #95a5b4;
  --border: #3b4652;
  --button: #2a3038;
  --accent: #ffc58e;
  --accent-text: #2a1a0a;
  color-scheme: dark light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f7;
    --panel: #fff;
    --text: #202a35;
    --muted: #536575;
    --border: #c0cad4;
    --button: #e6ebf0;
    --accent: #8e4700;
    --accent-text: #fff;
  }
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--button);
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0.4em 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 24px;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.site-header nav, .site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-header nav a, .site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-header nav a:hover, .site-footer nav a:hover { color: var(--text); }

.hero { text-align: center; }
.hero-icon { display: block; margin: 0 auto; }
.lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--muted);
}
.note { color: var(--muted); font-size: 0.95rem; }
.screenshot, .feature img {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.3);
}
.hero .screenshot { margin: 40px auto 0; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 12px;
}
.button {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--button);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.button:hover { border-color: var(--accent); }
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}
.button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.features { display: grid; gap: 72px; }
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.feature p { color: var(--muted); }
@media (min-width: 860px) {
  .feature:has(img) { grid-template-columns: 2fr 3fr; }
  .feature:nth-child(odd):has(img) { grid-template-columns: 3fr 2fr; }
  .feature:nth-child(odd) img { order: -1; }
  .feature:not(:has(img)) { max-width: 720px; margin: 0 auto; text-align: center; }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.pillars > div, .platform {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.pillars h3 { margin-top: 0; }
.pillars p { margin-bottom: 0; color: var(--muted); }

.download { text-align: center; }
.download > p { max-width: 680px; margin-left: auto; margin-right: auto; color: var(--muted); }
.release-version { font-weight: 600; }
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
  text-align: left;
}
.platform { display: flex; flex-direction: column; gap: 10px; }
.platform h3 { margin: 0 0 4px; }
.platform.current { border-color: var(--accent); }
.platform .button { text-align: center; }
.hint { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }

.get-started { text-align: center; }
.get-started p { color: var(--muted); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }
