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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --text: #f5f5f7;
    --text-muted: #86868b;
    --accent: #2997ff;
    --border: #333336;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  text-align: center;
  padding: 110px 22px 90px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  font-size: clamp(19px, 3vw, 26px);
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero .cta {
  display: inline-block;
  margin-top: 32px;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 980px;
  text-decoration: none;
  font-size: 17px;
  transition: opacity 0.2s;
}

.hero .cta:hover {
  opacity: 0.85;
}

/* Sections */
section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg-alt);
}

section h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

section p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 700px;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

section.alt .card {
  border: none;
}

.card .icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
}

/* Legal / text pages */
.page {
  padding: 64px 0 80px;
}

.page h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

.page h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.page p,
.page li {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 760px;
}

.page ul {
  padding-left: 24px;
  margin: 12px 0;
}

.page a {
  color: var(--accent);
  text-decoration: none;
}

.page a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

footer nav.footer-links {
  display: flex;
  gap: 20px;
  border: none;
  position: static;
  background: none;
  height: auto;
}

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

footer a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  nav ul {
    gap: 18px;
  }

  .hero {
    padding: 70px 22px 60px;
  }
}
