:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --border: #d2d2d7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #1d1d1f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --accent: #2997ff;
    --border: #424245;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
nav.main { display: flex; gap: 20px; flex-wrap: wrap; }
nav.main a { color: var(--muted); font-size: 0.9rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 112px 0 96px; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.hero p.lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; opacity: 0.9; }

/* Sections */
section.block { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.15; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 640px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}
section.alt .card { border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 980px;
  padding: 2px 10px;
  margin-bottom: 12px;
}

/* Page content (legal, about, support) */
main.page { padding: 64px 0 80px; }
main.page h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.15; }
main.page .updated { color: var(--muted); margin: 0 0 40px; }
main.page h2 { font-size: 1.4rem; margin: 40px 0 12px; }
main.page ul { padding-left: 1.2em; }
main.page li { margin-bottom: 6px; }
address { font-style: normal; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 32px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
footer.site .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
