:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c1e21;
  --muted: #5b6270;
  --border: #e2e5ea;
  --accent: #0a5fd8;
  --accent-hover: #084cb0;
  --code-bg: #eef2f8;
  --max: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1e2125;
    --text: #e8eaed;
    --muted: #a0a6b0;
    --border: #30343a;
    --accent: #4a94ff;
    --accent-hover: #74adff;
    --code-bg: #262a30;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.hero img {
  width: 160px;
  height: 160px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  line-height: 1.15;
  margin: 1rem 0 0.5rem;
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.button {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover { background: var(--accent-hover); color: #fff; }
.button.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.button.secondary:hover { border-color: var(--accent); color: var(--text); }
.requirements {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Features */
section { padding: 2.5rem 0; }
section h2 {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
  text-align: center;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.languages {
  text-align: center;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 auto;
}

/* Shortcuts table */
.table-wrap { overflow-x: auto; }
table {
  border-collapse: collapse;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: 0; }
th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

/* Prose (privacy page) */
.prose {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 0;
}
.prose h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 0.25rem; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; text-align: left; }
.prose .meta { color: var(--muted); margin: 0 0 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

.button.disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  border-style: dashed;
  cursor: default;
}
