:root {
  color-scheme: light;
  --page: #f5f3ed;
  --surface: #ffffff;
  --surface-soft: #eeece5;
  --ink: #171923;
  --muted: #61636c;
  --line: #d8d5cc;
  --accent: #7357ff;
  --accent-strong: #4d33da;
  --code: #20222d;
  --code-ink: #f8f7f3;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow: 0 24px 60px rgba(25, 27, 38, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.container { width: min(calc(100% - 40px), 1080px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }

.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; transition: opacity .35s ease, transform .35s ease; }
.brand-mark.is-changing { animation: brand-avatar-change .62s ease; }

@keyframes brand-avatar-change {
  0% { opacity: .35; transform: scale(.82) rotate(-7deg); }
  65% { opacity: 1; transform: scale(1.06) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .88rem; }

.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 34px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-underline-offset: 3px; }

.hero { padding: clamp(64px, 10vw, 116px) 0 clamp(58px, 8vw, 96px); }

.eyebrow { margin: 0 0 20px; color: var(--accent-strong); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

.hero h1 { max-width: 900px; margin: 0; font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .96; letter-spacing: -.065em; }

.hero > p:not(.eyebrow) { max-width: 760px; margin: 26px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.68; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 20px; background: var(--surface); font-size: .9rem; font-weight: 780; text-decoration: none; }
.button-primary { border-color: var(--ink); background: var(--ink); color: var(--page); }
.button:hover { transform: translateY(-1px); }

.section-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; }
.section-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: var(--surface); color: var(--muted); font-size: .8rem; text-decoration: none; }

.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: end; gap: 40px; margin-bottom: 34px; }
.section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.7; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; background: var(--surface); }
.card h3 { margin: 0; font-size: 1.22rem; letter-spacing: -.025em; }
.card p, .card li { color: var(--muted); line-height: 1.66; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card a { color: var(--accent-strong); font-weight: 720; text-underline-offset: 3px; }

.prose { max-width: 780px; }
.prose p, .prose li { color: var(--muted); line-height: 1.75; }
.prose h3 { margin: 40px 0 10px; font-size: 1.35rem; }
.prose a { color: var(--accent-strong); text-underline-offset: 3px; }

pre { max-width: 100%; overflow-x: auto; border-radius: var(--radius-sm); padding: 20px; background: var(--code); color: var(--code-ink); font-size: .86rem; line-height: 1.65; box-shadow: var(--shadow); }
:not(pre) > code { border-radius: 6px; padding: .14em .4em; background: var(--surface-soft); font-size: .9em; }

.callout { border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 20px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--muted); line-height: 1.65; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.55; }
th { background: var(--surface-soft); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 760; }
.faq p { margin-bottom: 0; color: var(--muted); line-height: 1.66; }

.cta { margin: 76px 0; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: clamp(30px, 6vw, 64px); background: var(--ink); color: var(--page); }
.cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.8rem); letter-spacing: -.05em; }
.cta p { max-width: 650px; margin: 16px 0 0; opacity: .72; line-height: 1.65; }
.cta .button { border-color: color-mix(in srgb, var(--page) 30%, transparent); background: var(--page); color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: .82rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-underline-offset: 3px; }

@media (max-width: 760px) {
  .container { width: min(calc(100% - 24px), 1080px); }
  .header-inner { min-height: 64px; }
  .nav a:not(:last-child) { display: none; }
  .hero { padding-top: 54px; }
  .hero h1 { overflow-wrap: anywhere; }
  .section { padding: 60px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .brand-mark.is-changing { animation: none; }
}
