:root {
  --accent: #f29966;
  --accent-dark: #d97a46;
  --bg: #f7f2e9;
  --card: #ffffff;
  --text: #241c14;
  --text-secondary: #6b6055;
  --border: rgba(36, 28, 20, 0.08);
  --shadow: 0 4px 20px rgba(36, 28, 20, 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e12;
    --card: #1c1a20;
    --text: #f5efe6;
    --text-secondary: #b3aa9f;
    --border: rgba(245, 239, 230, 0.08);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 64px 0 48px;
}
.hero img.hero-icon {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero p.subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}
.badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}
.pill.primary {
  background: var(--accent);
  color: #241505;
  border-color: transparent;
}

/* Feature grid */
.section {
  padding: 56px 0;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section p.lead {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.card .icon {
  font-size: 1.9rem;
  display: inline-block;
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Belt / callout */
.belt {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.belt h2 { margin-top: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 32px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

/* Legal / doc pages */
.doc {
  padding: 48px 0 80px;
}
.doc .doc-header {
  margin-bottom: 40px;
}
.doc .doc-header img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 8px;
  font-weight: 800;
}
.doc .updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.doc-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}
.doc-body h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li {
  color: var(--text-secondary);
  font-size: 0.98rem;
}
.doc-body ul { padding-left: 20px; }
.doc-body strong { color: var(--text); }
.doc-body a { color: var(--accent-dark); }
.note {
  background: rgba(242, 153, 102, 0.12);
  border: 1px solid rgba(242, 153, 102, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 20px 0;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
