:root {
  --bg: #fafafa;
  --fg: #171717;
  --muted: #666666;
  --line: #ebebeb;
  --card: #ffffff;
  --accent: #635bff;
  --accent-2: #4f46e5;
  --radius: 12px;
  --max: 1120px;
  --gutter: 24px;
  --nav: 64px;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--fg); color: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Nav — Linear/Vercel 64px bar */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav);
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  height: var(--nav);
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.02em;
}
.brand svg { width: 22px; height: 22px; border-radius: 6px; }
.brand sup { font-size: 0.55em; color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 24px;
  font-size: 14px; color: var(--muted);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); font-weight: 500; }

.nav-row .spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: opacity 0.15s, background 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: var(--fg); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: #fff; color: var(--fg); border: 1px solid var(--line); }
.btn-lg { height: 44px; padding: 0 18px; }

.menu-btn {
  display: none; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.menu-btn span { width: 14px; height: 1.5px; background: var(--fg); }

.drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.35); }
.drawer[hidden] { display: none; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 100%);
  background: #fff; padding: 20px; overflow: auto;
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer-list a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer-list .num { color: var(--muted); width: 28px; }

/* Hero */
.hero { padding: 72px 0 0; }
.hero-copy { max-width: 640px; }
.kicker {
  font-size: 13px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.02em; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.lede { font-size: 18px; color: var(--muted); margin-bottom: 28px; max-width: 36em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-media {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-top: 24px;
}
.stats > div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.stats dd { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Sections */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 32px; max-width: 560px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.15;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line);
}
.split h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.15;
  margin-bottom: 16px;
}
.split p { color: var(--muted); }
.split p + p { margin-top: 14px; }
.quote {
  margin-top: 24px; padding: 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: 16px; font-weight: 500;
}
.quote footer { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 400; }

.toolbar {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 32px;
}
.tabs { display: flex; gap: 4px; }
.tab {
  height: 32px; padding: 0 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.tab:hover { background: #fff; color: var(--fg); }
.tab[aria-pressed="true"] { background: var(--fg); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.15s;
}
.card:hover { border-color: #ccc; }
.card[hidden] { display: none; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 14px; }
.card .num { font-size: 12px; font-weight: 600; color: var(--accent); }
.card h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 6px; }
.card p { font-size: 13px; color: var(--muted); line-height: 1.45; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step .num { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

.cta {
  background: var(--fg);
  color: #fff;
  border-radius: 16px;
  padding: 56px;
}
.cta .kicker { color: #a5a5ff; }
.cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.15;
  margin-bottom: 12px; max-width: 14ch;
}
.cta p { color: #b4b4b4; margin-bottom: 24px; max-width: 40ch; }
.cta .btn-ghost { color: var(--fg); }

/* Inner pages */
.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0 96px;
  align-items: start;
}
.page img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line);
  position: sticky; top: 88px;
}
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--fg); }
.page h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
  margin: 8px 0 12px;
}
.page .summary { font-size: 18px; color: var(--muted); margin-bottom: 24px; }
.body p { color: var(--muted); }
.body p + p { margin-top: 14px; }

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.pager a {
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.pager a:hover { border-color: #ccc; }
.pager span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pager .next { text-align: right; }

.join {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  padding: 48px 0 96px; align-items: start;
}
.join h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
  margin-bottom: 12px;
}
.join-lede { color: var(--muted); margin-bottom: 24px; }
.join img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line); margin-bottom: 16px;
}
.offer { padding: 16px 0; border-top: 1px solid var(--line); }
.offer h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.offer p { font-size: 14px; color: var(--muted); }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: grid; gap: 16px;
}
.form h2 { font-size: 20px; font-weight: 600; }
.form .note { font-size: 13px; color: var(--muted); margin-top: -8px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.form input, .form textarea, .form select {
  width: 100%; border: 1px solid var(--line); background: var(--bg);
  border-radius: 8px; padding: 10px 12px;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}
.form-success { display: none; padding: 12px; border-radius: 8px; background: #ecfdf3; color: #067647; font-weight: 500; }
.form.is-sent .form-success { display: block; }
.form.is-sent .fields { display: none; }
.fields { display: grid; gap: 16px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  color: var(--muted); font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px;
}
.footer h2 { color: var(--fg); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer a:hover { color: var(--fg); }
.footer .brand { color: var(--fg); margin-bottom: 10px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px;
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split, .page, .join, .steps, .footer-grid, .pager, .stats, .toolbar {
    grid-template-columns: 1fr;
  }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: 0; }
  .page img { position: static; aspect-ratio: 16 / 10; }
  .pager .next { text-align: left; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .cta { padding: 32px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}
