:root {
  --purple: #7c3aed;
  --pink: #ec4899;
  --ink: #1c1b1f;
  --muted: #5b5670;
  --bg: #ffffff;
  --bg-soft: #f7f5fb;
  --card: #ffffff;
  --border: #ece8f5;
  --radius: 18px;
  --maxw: 880px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece7f3;
    --muted: #b4adc6;
    --bg: #121016;
    --bg-soft: #191622;
    --card: #1d1a26;
    --border: #2c2838;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: grid; place-items: center;
}
.nav a { color: var(--muted); font-weight: 600; margin-left: 18px; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 72px 0 48px; }
.hero .disc {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--purple) 55%, transparent);
}
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.hero .tagline {
  font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 600;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 16px;
}
.hero p.sub { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff; font-weight: 700; padding: 14px 26px; border-radius: 14px;
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--purple) 60%, transparent);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: var(--bg-soft); color: var(--ink); box-shadow: none; border: 1px solid var(--border); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 24px 0 8px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.card .ic { font-size: 1.6rem; }
.card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

.note {
  margin: 32px 0; padding: 20px 22px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted);
}
.note strong { color: var(--ink); }

/* Legal / doc pages */
.doc { padding: 40px 0 60px; }
.doc h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: .95rem; }
.doc h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .lead { color: var(--muted); font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.site-footer .links a { color: var(--muted); margin-left: 16px; }
.site-footer .links a:first-child { margin-left: 0; }
