:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --bg: #f6f2ff;
  --bg-accent: #eee5ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #211a2d;
  --muted: #665e73;
  --primary: #5d35b1;
  --primary-strong: #45228d;
  --on-primary: #ffffff;
  --border: rgba(70, 50, 100, 0.16);
  --shadow: 0 20px 60px rgba(52, 31, 89, 0.16);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(141, 93, 246, 0.18), transparent 30rem),
    linear-gradient(145deg, var(--bg-accent), var(--bg));
  color: var(--text);
}
a { color: var(--primary); }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}
.brand img { border-radius: 13px; box-shadow: 0 8px 22px rgba(62, 35, 109, .2); }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}
.site-header nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a:focus-visible { color: var(--primary); }

.hero,
.legal-page,
.content-page {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: 68vh;
  padding: 64px 0 48px;
}
.hero-copy { max-width: 660px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--primary); }
.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.34rem);
  line-height: 1.65;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); background: var(--primary-strong); }
.button.secondary {
  border-color: var(--border);
  background: var(--surface-strong);
  color: var(--text);
}
.hero-card,
.share-card,
.feature,
.legal-page section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-card { padding: 26px; text-align: center; }
.hero-card img {
  width: 132px;
  height: 132px;
  border-radius: 31px;
  box-shadow: 0 18px 40px rgba(65, 37, 113, .24);
}
.hero-card strong { display: block; margin-top: 18px; font-size: 1.2rem; }
.hero-card p { color: var(--muted); line-height: 1.55; }

.share-card {
  width: min(100% - 32px, 760px);
  margin: 12px auto 52px;
  padding: clamp(22px, 5vw, 38px);
}
.share-card[hidden] { display: none; }
.share-card h2 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.share-card p { color: var(--muted); line-height: 1.6; }
.share-id {
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  overflow-wrap: anywhere;
}

.features {
  width: min(100% - 32px, 1040px);
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature { padding: 22px; box-shadow: 0 12px 38px rgba(52,31,89,.1); }
.feature h2 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; }

.legal-page,
.content-page { padding: 56px 0 70px; }
.legal-page h1,
.content-page h1 { font-size: clamp(2.25rem, 6vw, 4.4rem); }
.legal-page > .lead { max-width: 780px; }
.legal-page section {
  margin-top: 18px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 10px 34px rgba(52,31,89,.09);
}
.legal-page h2 { margin: 0 0 12px; font-size: 1.35rem; }
.legal-page p { margin: 0 0 12px; line-height: 1.68; }
.legal-page p:last-child { margin-bottom: 0; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 28px 20px 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 0; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .hero-card { max-width: 420px; }
  .features { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16121d;
    --bg-accent: #21172f;
    --surface: rgba(39, 32, 49, 0.92);
    --surface-strong: #282131;
    --text: #f5effd;
    --muted: #cbc1d6;
    --primary: #c6a7ff;
    --primary-strong: #d8c2ff;
    --on-primary: #2b1257;
    --border: rgba(224, 208, 246, 0.15);
    --shadow: 0 20px 60px rgba(0, 0, 0, .28);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
