:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --border: #e5e5e8;
  --text: #17171a;
  --text-2: #74747c;
  --accent: #7567e8;
  --accent-soft: rgba(117, 103, 232, 0.1);
  --radius: 18px;
  --max: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --surface: #171a1f;
    --border: #2b2f36;
    --text: #f4f4f6;
    --text-2: #a7a9b0;
    --accent: #968bff;
    --accent-soft: rgba(150, 139, 255, 0.14);
  }
}

* {
  box-sizing: border-box;
}

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

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

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 22px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #5b4fd1);
  display: inline-block;
}

.nav a {
  color: var(--text-2);
  font-size: 14px;
  margin-left: 18px;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

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

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p.lead {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--text-2);
  font-size: clamp(17px, 2.6vw, 21px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Legal pages */
.doc {
  padding: 24px 0 72px;
}

.doc-inner {
  max-width: 740px;
  margin: 0 auto;
}

.doc h1 {
  font-size: clamp(30px, 6vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 8px 0 6px;
}

.doc .meta {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 32px;
}

.doc h2 {
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 36px 0 8px;
}

.doc p,
.doc li {
  color: var(--text);
  font-size: 16px;
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin: 6px 0;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}

.callout p {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-2);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links a {
  color: var(--text-2);
  margin-right: 20px;
}

.footer-links a:last-child {
  margin-right: 0;
}

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

@media (max-width: 520px) {
  .hero {
    padding: 48px 0 40px;
  }

  .nav a {
    margin-left: 12px;
  }
}
