:root {
  --bg: #f8fafa;
  --surface: #ffffff;
  --violet: #7c3aed;
  --violet-deep: #2a1450;
  --violet-mid: #5b21b6;
  --violet-soft: #ede9fe;
  --fuchsia: #c026d3;
  --gold: #f59e0b;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

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

.wrap {
  width: min(1000px, calc(100% - 32px));
  margin-inline: auto;
}

.narrow { width: min(820px, calc(100% - 32px)); }

/* ── Header ─────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #6d28d9, var(--violet-deep));
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 16px rgba(42, 20, 80, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover { color: #fff; }

.site-nav a.active {
  color: #fff;
  border-color: var(--gold);
}

/* ── Hero ───────────────────────────────── */
.hero {
  background: radial-gradient(1200px 500px at 50% -10%, #3b1d6e 0%, var(--violet-deep) 55%, #1b0f33 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 84px) 0 clamp(40px, 7vw, 72px);
  text-align: center;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  letter-spacing: -1.2px;
  color: #fff;
}

.hero .tagline {
  margin: 8px 0 0;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 600;
  background: linear-gradient(90deg, #fde047, #fbbf24, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .sub {
  max-width: 640px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  color: #2a1450;
  background: linear-gradient(90deg, #fde047, #f59e0b);
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(245, 158, 11, 0.45); }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ── Sections ───────────────────────────── */
section.block {
  padding: clamp(36px, 6vw, 64px) 0;
}

.section-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  letter-spacing: -0.8px;
  color: var(--violet-deep);
}

.section-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 600px;
}

/* ── Steps ──────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-mid);
  font-weight: 800;
  margin-bottom: 10px;
}

.step h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--violet-deep); }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.feature .emoji { font-size: 1.6rem; }
.feature h3 { margin: 8px 0 6px; font-size: 1rem; color: var(--violet-deep); }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ── Privacy notice ─────────────────────── */
.notice {
  background: var(--violet-soft);
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.notice h3 { margin: 0 0 4px; color: var(--violet-deep); font-size: 1.1rem; }
.notice p { margin: 0; color: #4c1d95; font-size: 0.94rem; max-width: 640px; }

.notice .btn-ghost {
  color: var(--violet-deep);
  border-color: rgba(91, 33, 182, 0.35);
  background: #fff;
  white-space: nowrap;
}

/* ── Policy pages ───────────────────────── */
.policy {
  background: var(--surface);
  margin-top: 28px;
  margin-bottom: 40px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.policy h1 {
  margin: 0 0 6px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.6px;
  color: var(--violet-deep);
}

.policy h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.16rem;
  color: var(--violet);
  letter-spacing: -0.2px;
}

.updated {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.policy p { margin: 12px 0; }

.policy ul {
  margin: 10px 0;
  padding-left: 22px;
}

.policy li { margin: 6px 0; }

.policy a {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
}

.policy a:hover { border-bottom-color: var(--violet); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.94rem;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg);
  font-weight: 700;
  color: var(--violet-deep);
}

tbody tr:last-child td { border-bottom: none; }

strong { color: var(--text); }

/* ── Footer ─────────────────────────────── */
.site-footer {
  padding: 22px 0 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer a {
  color: var(--violet-mid);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover { text-decoration: underline; }

.fineprint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-inner { justify-content: center; }
  .site-nav { justify-content: center; width: 100%; }
  th, td { padding: 8px 9px; }
}
