:root {
  --bg: #ffffff;
  --ink: #0b0b0c;
  --ink-soft: #2f3033;
  --muted: #707278;
  --line: #e7e8ea;
  --line-strong: #d4d6d9;
  --surface: #f6f7f8;
  --surface-2: #eef0f2;
  --accent: #1267e9;
  --accent-dark: #0c4fb5;
  --accent-soft: #edf4ff;
  --max: 1240px;
  --text-max: 760px;
  --header-h: 72px;
  --radius: 24px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Avenir Next", "Century Gothic", "Segoe UI Variable Display", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: #d7e7ff; color: var(--ink); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 999;
  padding: 10px 14px; background: var(--ink); color: white; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 110;
  transform-origin: left center; transform: scaleX(0); background: var(--accent);
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  background: color-mix(in srgb, white 90%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; }
.brand span { font-size: 17px; }
.nav { display: flex; justify-content: center; gap: 4px; }
.nav a, .nav .nav-group > button {
  position: relative; padding: 9px 12px; border: 0; background: transparent; color: var(--muted);
  border-radius: 999px; font-size: 14px; cursor: pointer; transition: color .2s ease, background .2s ease;
}
.nav a:hover, .nav a[aria-current="page"], .nav .nav-group > button:hover { color: var(--ink); background: var(--surface); }
.nav-group { position: relative; }
.nav-group > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-popover {
  position: absolute; left: 50%; top: calc(100% + 10px); width: 250px; transform: translate(-50%, 10px);
  opacity: 0; visibility: hidden; padding: 8px; border: 1px solid var(--line); background: white; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.08); transition: opacity .2s ease, transform .25s var(--ease), visibility .2s;
}
.nav-group:hover .nav-popover, .nav-group:focus-within .nav-popover { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-popover a { display: block; padding: 10px 12px; border-radius: 10px; }
.nav-popover small { display:block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 50%; cursor:pointer; }
.menu-toggle span { width: 16px; height: 1px; background: var(--ink); display:block; margin: 4px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: white; font-size: 14px; font-weight: 550; letter-spacing: -.01em;
  transition: transform .25s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: #25262a; }
.button.secondary { background: white; color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--surface); }
.button.accent { background: var(--accent); border-color: var(--accent); }
.button.accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.text { padding: 0; min-height: auto; border: 0; background: none; color: var(--ink); border-radius: 0; }
.button.text::after { content: "↗"; font-size: 14px; transition: transform .2s ease; }
.button.text:hover { transform:none; background:none; }
.button.text:hover::after { transform: translate(2px,-2px); }

main { overflow: clip; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), var(--text-max)); margin-left:auto; margin-right:auto; }
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section.soft { background: var(--surface); }
.section.black { background: var(--ink); color: white; border-top: 0; }
.section.black .muted, .section.black .eyebrow { color: #aeb1b7; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 56px; }
.section-head > div:first-child { max-width: 760px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 650; }
h1,h2,h3,h4,p { margin-top: 0; }
h1 { font-size: clamp(56px, 8.2vw, 118px); line-height: .92; letter-spacing: -.065em; font-weight: 600; }
h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.05em; font-weight: 570; }
h3 { font-size: 25px; line-height: 1.12; letter-spacing: -.035em; font-weight: 570; }
h4 { font-size: 16px; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 2vw, 24px); line-height: 1.45; letter-spacing: -.025em; color: var(--ink-soft); max-width: 760px; }
.muted { color: var(--muted); }
.kicker { font-size: 13px; color: var(--muted); }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; }

.hero { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding: 72px 0 52px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 44px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { margin-bottom: 30px; }
.hero .lede { max-width: 650px; margin-bottom: 34px; }
.hero-actions { display:flex; flex-wrap:wrap; gap: 10px; align-items:center; }
.hero-meta { display:flex; flex-wrap:wrap; gap: 10px 20px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.hero-visual { min-height: 620px; display:grid; place-items:center; position:relative; }
.hero-logo-wrap { width: min(100%, 590px); aspect-ratio: 1; display:grid; place-items:center; position:relative; }
.hero-logo-wrap::after { content:""; position:absolute; inset:auto 17% 11% 17%; height: 4%; background: rgba(0,0,0,.07); filter: blur(17px); border-radius:50%; }
.hero-logo { width: 100%; height: 100%; object-fit: contain; position:relative; z-index:1; will-change: transform; }
.hero-scroll { position:absolute; bottom: 26px; right:0; display:flex; align-items:center; gap:10px; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.12em; }
.hero-scroll::before { content:""; width:42px; height:1px; background:var(--line-strong); }

.statement { padding: 88px 0; }
.statement p { font-size: clamp(31px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.05em; max-width: 1120px; margin:0; }
.statement .dim { color:#b8bbc0; }

.feature-list { border-top:1px solid var(--line); }
.feature-row { display:grid; grid-template-columns: 70px minmax(240px,.8fr) minmax(0,1.2fr); gap: 26px; padding: 34px 0; border-bottom:1px solid var(--line); align-items:start; }
.feature-index { color:var(--muted); font-size:12px; padding-top:5px; }
.feature-row h3 { margin:0; }
.feature-row p { margin:0; color:var(--muted); max-width: 650px; }

.film-shell { position:relative; border:1px solid var(--line); border-radius: 28px; overflow:hidden; background:white; }
.film-shell video { width:100%; aspect-ratio:16/9; object-fit:cover; background:white; }
.film-overlay { position:absolute; inset:auto 30px 28px 30px; display:flex; justify-content:space-between; align-items:end; gap:20px; pointer-events:none; }
.film-overlay strong { font-size: clamp(24px,3vw,44px); line-height:1; letter-spacing:-.04em; max-width:520px; }
.film-overlay span { font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); }

.diagram { border:1px solid var(--line); border-radius: var(--radius); padding: 40px; background:white; }
.flow { display:grid; grid-template-columns: repeat(5,1fr); gap: 12px; align-items:center; }
.flow-step { position:relative; min-height: 170px; padding: 18px; background:var(--surface); border-radius:18px; display:flex; flex-direction:column; justify-content:space-between; }
.flow-step::after { content:""; position:absolute; top:50%; left:100%; width:12px; height:1px; background:var(--line-strong); }
.flow-step:last-child::after { display:none; }
.flow-step span { color:var(--muted); font-size:11px; }
.flow-step strong { font-size:18px; letter-spacing:-.025em; }
.flow-step i { width:8px; height:8px; border-radius:50%; background:var(--accent); display:block; }

.two-col { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,7vw,96px); align-items:start; }
.three-col { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.four-col { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.clean-card { min-height:220px; padding:26px; border:1px solid var(--line); border-radius:20px; background:white; display:flex; flex-direction:column; }
.clean-card .card-index { margin-bottom:auto; color:var(--muted); font-size:11px; }
.clean-card h3 { margin:34px 0 8px; }
.clean-card p { color:var(--muted); margin:0; font-size:14px; }
.clean-card.accent { background:var(--accent-soft); border-color:#d6e5ff; }

.logo-stage { position:relative; min-height: 520px; background:white; display:grid; place-items:center; border:1px solid var(--line); border-radius:28px; overflow:hidden; }
.logo-stage img { width:min(74%,540px); object-fit:contain; }
.logo-stage .stage-label { position:absolute; left:24px; top:20px; color:var(--muted); font-size:11px; letter-spacing:.08em; text-transform:uppercase; }

.page-hero { padding: 112px 0 72px; border-bottom:1px solid var(--line); }
.page-hero h1 { font-size: clamp(54px,7vw,92px); max-width: 1000px; margin-bottom:28px; }
.page-hero .lede { margin-bottom:0; }
.breadcrumb { display:flex; gap:8px; align-items:center; margin-bottom:30px; color:var(--muted); font-size:12px; }
.breadcrumb span { color:#b7b9bd; }

.metric-strip { display:grid; grid-template-columns: repeat(4,1fr); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.metric { padding:26px 0; border-right:1px solid var(--line); }
.metric:last-child { border-right:0; }
.metric strong { display:block; font-size:26px; letter-spacing:-.04em; }
.metric span { color:var(--muted); font-size:12px; }

.steps { counter-reset:step; border-top:1px solid var(--line); }
.step { counter-increment:step; display:grid; grid-template-columns: 80px .8fr 1.2fr; gap:26px; padding:36px 0; border-bottom:1px solid var(--line); }
.step::before { content: counter(step, decimal-leading-zero); color:var(--muted); font-size:12px; padding-top:4px; }
.step h3 { margin:0; }
.step p, .step ul { margin:0; color:var(--muted); }
.step code, code.inline { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; background:var(--surface); border:1px solid var(--line); padding:2px 6px; border-radius:6px; font-size:.87em; }

.codeblock { position:relative; padding:26px; border-radius:18px; background:#0d0e10; color:#f4f4f5; overflow:auto; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size:13px; line-height:1.65; }
.codeblock .comment { color:#8f949d; }

.download-panel { display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; }
.download-primary { padding:38px; border:1px solid var(--line); border-radius:24px; background:var(--surface); }
.download-primary h2 { font-size:42px; }
.download-meta { padding:30px; border:1px solid var(--line); border-radius:24px; }
.download-meta dl { margin:0; }
.download-meta div { display:flex; justify-content:space-between; gap:20px; padding:13px 0; border-bottom:1px solid var(--line); }
.download-meta div:last-child { border-bottom:0; }
.download-meta dt { color:var(--muted); }
.download-meta dd { margin:0; text-align:right; }

.model-table { width:100%; border-collapse:collapse; }
.model-table th, .model-table td { text-align:left; padding:18px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.model-table th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:550; }
.model-table td:first-child { padding-left:0; font-weight:550; }
.model-table th:first-child { padding-left:0; }
.model-table td:last-child, .model-table th:last-child { padding-right:0; }
.tag { display:inline-flex; min-height:26px; align-items:center; padding:0 9px; border-radius:999px; background:var(--surface); border:1px solid var(--line); color:var(--ink-soft); font-size:11px; white-space:nowrap; }

.docs-layout { width:min(calc(100% - 40px), var(--max)); margin:0 auto; display:grid; grid-template-columns: 250px minmax(0,1fr); gap:70px; padding:72px 0 120px; }
.docs-sidebar { position:sticky; top:calc(var(--header-h) + 30px); align-self:start; }
.docs-sidebar strong { font-size:12px; text-transform:uppercase; letter-spacing:.11em; }
.docs-sidebar nav { margin-top:14px; display:flex; flex-direction:column; gap:2px; }
.docs-sidebar a { padding:8px 10px; margin-left:-10px; color:var(--muted); border-radius:9px; font-size:13px; }
.docs-sidebar a:hover, .docs-sidebar a[aria-current="page"] { background:var(--surface); color:var(--ink); }
.docs-article { min-width:0; max-width:850px; }
.docs-article h1 { font-size:clamp(46px,6vw,76px); margin-bottom:24px; }
.docs-article h2 { font-size:34px; margin:64px 0 20px; scroll-margin-top:100px; }
.docs-article h3 { margin:34px 0 12px; }
.docs-article p, .docs-article li { color:var(--ink-soft); }
.docs-article ul, .docs-article ol { padding-left:22px; }
.docs-article li + li { margin-top:8px; }
.doc-note { margin:30px 0; padding:20px 22px; border-left:2px solid var(--accent); background:var(--accent-soft); border-radius:0 14px 14px 0; }
.doc-note strong { display:block; margin-bottom:4px; }
.doc-next { margin-top:70px; padding-top:28px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; }
.doc-next a { font-size:14px; }

.creator-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:80px; align-items:start; }
.creator-mark { position:sticky; top:calc(var(--header-h) + 40px); }
.creator-mark .logo-stage { min-height: 440px; }
.creator-links { display:flex; flex-wrap:wrap; gap:9px; margin-top:22px; }
.timeline { border-top:1px solid var(--line); }
.timeline-item { display:grid; grid-template-columns:120px 1fr; gap:24px; padding:24px 0; border-bottom:1px solid var(--line); }
.timeline-item time { color:var(--muted); font-size:12px; }
.timeline-item p { margin:6px 0 0; color:var(--muted); }

.thanks-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.thanks-person { min-height:220px; padding:26px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; }
.thanks-person .placeholder-badge { align-self:flex-start; font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:4px 7px; }
.thanks-person h3 { margin:auto 0 6px; }
.thanks-person p { margin:0; color:var(--muted); font-size:13px; }

.legal-list { border-top:1px solid var(--line); }
.legal-item { display:grid; grid-template-columns:240px 1fr; gap:50px; padding:34px 0; border-bottom:1px solid var(--line); }
.legal-item h3 { font-size:18px; margin:0; }
.legal-item p { margin:0; color:var(--muted); }

.cta { padding: 130px 0; text-align:center; }
.cta h2 { max-width:850px; margin:0 auto 26px; }
.cta p { max-width:600px; margin:0 auto 30px; color:var(--muted); }
.cta .hero-actions { justify-content:center; }

.site-footer { border-top:1px solid var(--line); padding:52px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.3fr repeat(3,.7fr); gap:50px; }
.footer-brand p { max-width:360px; color:var(--muted); font-size:13px; margin:14px 0 0; }
.footer-col strong { display:block; font-size:12px; margin-bottom:12px; }
.footer-col a { display:block; color:var(--muted); font-size:13px; padding:4px 0; }
.footer-col a:hover { color:var(--ink); }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; margin-top:50px; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }

.reveal { opacity:0; transform:translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in-view { opacity:1; transform:none; }
.reveal[data-delay="1"] { transition-delay:.08s; }
.reveal[data-delay="2"] { transition-delay:.16s; }
.reveal[data-delay="3"] { transition-delay:.24s; }
.reveal[data-delay="4"] { transition-delay:.32s; }

.route-transition { opacity:0; transform:translateY(8px); transition: opacity .25s ease, transform .3s var(--ease); }
.route-transition.ready { opacity:1; transform:none; }

.mobile-menu { display:none; }

@media (max-width: 1050px) {
  .nav { display:none; }
  .header-inner { grid-template-columns:auto 1fr auto; }
  .header-actions .button { display:none; }
  .menu-toggle { display:block; }
  .mobile-menu {
    position:fixed; inset:var(--header-h) 0 0; z-index:95; display:grid; align-content:start; padding:38px 20px 60px;
    background:white; opacity:0; visibility:hidden; transform:translateY(-12px); transition: opacity .25s ease, transform .35s var(--ease), visibility .25s;
    overflow:auto;
  }
  .mobile-menu.open { opacity:1; visibility:visible; transform:none; }
  .mobile-menu a { padding:15px 0; border-bottom:1px solid var(--line); font-size:24px; letter-spacing:-.03em; }
  .hero-grid { grid-template-columns:1fr; }
  .hero-visual { min-height: 520px; }
  .hero-copy { padding-top:20px; }
  .flow { grid-template-columns:1fr 1fr; }
  .flow-step::after { display:none; }
  .four-col { grid-template-columns:1fr 1fr; }
  .creator-grid { grid-template-columns:1fr; gap:50px; }
  .creator-mark { position:static; }
}

@media (max-width: 780px) {
  :root { --header-h: 64px; }
  .header-inner, .shell, .narrow, .docs-layout { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:80px 0; }
  .page-hero { padding:80px 0 56px; }
  .hero { padding:54px 0 42px; }
  .hero-visual { min-height:auto; }
  .hero-logo-wrap { width:min(100%,430px); }
  .hero-scroll { display:none; }
  .statement { padding:64px 0; }
  .section-head { align-items:start; flex-direction:column; margin-bottom:38px; }
  .feature-row { grid-template-columns:42px 1fr; }
  .feature-row p { grid-column:2; }
  .two-col, .three-col, .download-panel { grid-template-columns:1fr; }
  .four-col { grid-template-columns:1fr; }
  .flow { grid-template-columns:1fr; }
  .diagram { padding:20px; }
  .metric-strip { grid-template-columns:1fr 1fr; }
  .metric { border-bottom:1px solid var(--line); }
  .metric:nth-child(2) { border-right:0; }
  .metric:nth-child(3), .metric:nth-child(4) { border-bottom:0; }
  .step { grid-template-columns:42px 1fr; }
  .step p, .step ul, .step .codeblock { grid-column:2; }
  .docs-layout { grid-template-columns:1fr; gap:32px; padding-top:42px; }
  .docs-sidebar { position:static; overflow:auto; padding-bottom:14px; border-bottom:1px solid var(--line); }
  .docs-sidebar nav { flex-direction:row; min-width:max-content; }
  .docs-sidebar strong { display:none; }
  .thanks-grid { grid-template-columns:1fr; }
  .legal-item { grid-template-columns:1fr; gap:10px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; }
  .film-overlay { inset:auto 18px 16px 18px; }
  .film-overlay span { display:none; }
}

@media (max-width: 520px) {
  h1 { font-size: clamp(50px,16vw,72px); }
  h2 { font-size: clamp(36px,12vw,54px); }
  .hero-meta { gap:8px 12px; }
  .metric-strip { grid-template-columns:1fr; }
  .metric { border-right:0; border-bottom:1px solid var(--line) !important; }
  .metric:last-child { border-bottom:0 !important; }
  .footer-grid { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.001ms !important; transition-duration:.001ms !important; }
  .reveal, .route-transition { opacity:1 !important; transform:none !important; }
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
