:root {
  --bg: #ffffff;
  --fg: #16191c;
  --muted: #5a6570;
  --primary: #2196F3;
  --secondary: #03DAC6;
  --border: #e6eaee;
  --card: #f5f8fb;
  --max-width: 1040px;
  --max-width-text: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1418;
    --fg: #eef2f5;
    --muted: #9aa7b2;
    --primary: #4fb2ff;
    --secondary: #35e8d3;
    --border: #23292f;
    --card: #171d22;
  }
}

* { box-sizing: border-box; }

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

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

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

.wrap-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

header.site a.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

header.site a.brand img {
  width: 30px;
  height: 30px;
}

header.site a.brand span { color: var(--primary); }

/* Hero */
.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 3.5rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%);
}

.hero h1 {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

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

.cta-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-primary:hover { opacity: 0.92; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

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

/* Legal / text pages */
h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  letter-spacing: -0.01em;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

p, li { color: var(--fg); }
ul { padding-left: 1.25rem; }

code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.9em;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

footer.site .legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

footer.site .copyright {
  color: var(--muted);
  font-size: 0.85rem;
}
