:root {
  color-scheme: light dark;

  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #55585c;
  --border: #e2e2e2;
  --accent: #3d5afe;
  --accent-contrast: #ffffff;
  --code-bg: #f0f0f5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101114;
    --bg-elevated: #181a1f;
    --text: #f2f2f2;
    --text-muted: #a7abb3;
    --border: #2a2d33;
    --accent: #7b8cff;
    --accent-contrast: #0b0b0f;
    --code-bg: #1f2127;
  }
}

* {
  box-sizing: border-box;
}

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

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

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

header.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.brand .logo {
  font-size: 1.4rem;
}

nav.site-nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero .logo-large {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.hero p.tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

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

section h2 {
  font-size: 1.5rem;
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

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

.feature-card .icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

code, pre {
  background: var(--code-bg);
  border-radius: 6px;
}

code {
  padding: 2px 6px;
  font-size: 0.9em;
}

pre {
  padding: 16px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a {
  color: var(--text-muted);
  margin-right: 16px;
  text-decoration: none;
}

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

.policy h1 {
  margin-top: 48px;
}

.policy h2 {
  font-size: 1.2rem;
  margin-top: 36px;
}

.policy .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.summary-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}

.summary-box p {
  margin: 6px 0;
}

table.permissions {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.92rem;
}

table.permissions th,
table.permissions td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.permissions th {
  color: var(--text-muted);
  font-weight: 600;
}

