@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --ink: #0a0a0a;
  --ink-soft: #3d3d3a;
  --ink-faint: #76766f;
  --line: #e8e8e4;
  --radius: 20px;
  --orb: radial-gradient(circle at 30% 30%, #f6d5f7 0%, #fbe9d7 35%, #c9e9f6 70%, #e7e2fb 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #141413;
    --ink: #f5f5f2;
    --ink-soft: #c9c9c4;
    --ink-faint: #8b8b85;
    --line: #262624;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.dot { width: 22px; height: 22px; border-radius: 50%; background: var(--orb); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
nav.links { display: flex; gap: 22px; font-size: 15px; color: var(--ink-soft); }
nav.links a { text-decoration: none; }

.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero .orb {
  width: 220px; height: 220px; margin: 0 auto 40px; border-radius: 50%;
  background: var(--orb); filter: saturate(1.1);
  box-shadow: 0 30px 80px -20px rgba(160,140,220,.45);
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .hero .orb { animation: none; } }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 600; margin: 0 0 20px; }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-soft); max-width: 620px; margin: 0 auto 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none;
}
.pill:hover { color: var(--bg); opacity: .9; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { margin-top: 18px; font-size: 14px; color: var(--ink-faint); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 88px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; font-weight: 600; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.steps { counter-reset: s; display: grid; gap: 14px; padding: 0 0 96px; }
.steps li { list-style: none; counter-increment: s; display: flex; gap: 16px; align-items: baseline; font-size: 18px; }
.steps li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
h2.section { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; font-weight: 600; margin: 0 0 24px; text-align: center; }

.doc { padding: 56px 0 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc .meta { color: var(--ink-faint); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 44px 0 10px; font-weight: 600; }
.doc h3 { font-size: 18px; margin: 28px 0 6px; font-weight: 600; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.doc th { color: var(--ink); font-weight: 600; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-faint); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { text-decoration: none; }

@media (max-width: 640px) {
  nav.links { gap: 14px; font-size: 14px; }
  nav.links .hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  .hero .orb { width: 160px; height: 160px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
