:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #1d5c9e;
  --accent-soft: #e4edf7;
  --border: #dde3ea;
  --link: #14487e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --text: #eef1f5;
    --muted: #a9b2bd;
    --accent: #6fa8dc;
    --accent-soft: #1e2a38;
    --border: #2b3440;
    --link: #8bc0ec;
  }
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

h1 {
  color: var(--accent);
  font-size: 1.8em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 4px;
}

h1.hero {
  border-bottom: none;
  padding-bottom: 0;
  text-align: center;
}

p.tagline {
  color: var(--muted);
  font-size: 1.05em;
  text-align: center;
}

h2 {
  color: var(--accent);
  margin-top: 1.6em;
  font-size: 1.05em;
  font-weight: 700;
}

p, li {
  color: var(--text);
}

ul.features {
  text-align: left;
  max-width: 560px;
  margin: 28px auto;
  padding-left: 1.2em;
}

ul.features li {
  margin-bottom: 0.8em;
}

ul {
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

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

.qa {
  margin-bottom: 1.2em;
}

.qa .q {
  font-weight: 600;
}

.qa .a {
  margin-top: 0.3em;
}

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

a:hover {
  text-decoration: underline;
}

nav.links {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

nav.links a {
  color: var(--link);
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

nav.links a:hover {
  background: var(--accent-soft);
}

nav.back {
  margin-top: 40px;
  text-align: center;
}

nav.back a {
  color: var(--link);
  font-weight: 600;
}

.lang-switch {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.lang-switch button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  font-weight: 500;
}

.lang-switch button.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.lang-switch button:hover:not(.active) {
  background: var(--accent-soft);
}

.updated {
  color: var(--muted);
  font-size: 0.95em;
}

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85em;
  color: var(--muted);
  text-align: center;
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

@media (max-width: 600px) {
  body {
    padding: 24px 16px 48px;
  }

  h1 {
    font-size: 1.5em;
  }

  nav.links {
    flex-direction: column;
  }

  nav.links a {
    width: 100%;
  }
}
