:root {
  color-scheme: dark;
  --paper: #101125;
  --paper-2: #18192c;
  --ink: #f2f1ff;
  --mute: #a3a4bc;
  --rule: #ffffff24;
  --link: #c5b5ff;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --chrome: #262638;
  --page: #171825;
  --surface: #25283a;
  --surface-rule: #393a54;
  --copy: #b8b7d0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: radial-gradient(ellipse 65% 600px at 50% 650px, #8b68db35, transparent 85%), linear-gradient(180deg, #070724, var(--paper) 1200px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.skip-link { position: fixed; top: -100px; left: 16px; background: var(--ink); color: var(--paper); z-index: 10; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand svg { width: 22px; height: 22px; }
.nav nav { display: flex; gap: 22px; font-size: 14px; color: var(--mute); }
.nav nav a:hover { color: var(--ink); }
.nav-source { color: var(--link); margin-left: auto; font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }

.hero { padding: 64px 0 48px; }
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--copy); max-width: 38em; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
}
.button:hover { background: #ffffff; }
.text-link { color: var(--link); font-size: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.text-link:hover { color: var(--mute); border-color: var(--mute); }
.reqs { margin: 16px 0 0; font-size: 13px; color: var(--mute); }

.product-section { padding-bottom: 24px; }
.demo-stage {
  background: #ffffff0b;
  border: 1px solid #baabff70;
  border-radius: 10px 10px 0 0;
  padding: 8px 8px 0;
  box-shadow: 0 -8px 44px #b69fff0c, 0 0 2px #d6c6ff18;
}

.browser-demo {
  display: flex;
  min-width: 0;
  height: 560px;
  overflow: hidden;
  background: var(--chrome);
  border-radius: 6px 6px 0 0;
}
.demo-sidebar {
  width: 216px;
  flex-shrink: 0;
  padding: 10px 12px;
  color: #c8c8c8;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  background: var(--chrome);
  transition: width .25s, padding .25s, opacity .2s, background .25s;
}
.window-bar { height: 28px; display: flex; gap: 6px; align-items: center; }
.window-bar > span:not(.sidebar-glyph) { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.window-bar > span:nth-child(2) { background: #febc2e; }
.window-bar > span:nth-child(3) { background: #28c840; }
.sidebar-glyph { margin-left: auto; font-size: 15px; color: #888; line-height: 1; }
.demo-address {
  height: 34px;
  border: 1px solid #ffffff10;
  border-radius: 6px;
  background: #ffffff0c;
  color: #b3b3b3;
  padding: 0 8px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.demo-address > span { font-size: 16px; }
.demo-address kbd { margin-left: auto; font-size: 9px; color: #777; }
.favorites { display: flex; gap: 6px; margin-top: 12px; }
.favorites > button {
  height: 40px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  background: #ffffff10;
  color: #ddd;
  border: 1px solid #ffffff08;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
}
.mail-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 2px;
  border-radius: 50%;
  background: #ff6158;
  vertical-align: super;
}
.calendar-icon { display: flex; flex-direction: column; font-size: 5px; line-height: 1.1; }
.calendar-icon b { font-size: 16px; font-weight: 500; }
.notes-icon { font-family: Georgia, serif; border: 1px solid; padding: 0 3px; font-size: 16px; }
.space-label { display: flex; gap: 7px; font-size: 10px; margin: 26px 4px 10px; color: #a0a0a0; }
.space-label > span:last-child { margin-left: auto; }
.tab {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  border-radius: 6px;
  color: #aeaeae;
  padding: 0 8px;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
.tab > span { font-size: 14px; }
.tab > span:last-child:not(:first-child) { margin-left: auto; }
.tab.active { background: #ffffff14; color: #eee; }
.tab:hover { background: #ffffff0d; }
.new-tab { margin-top: 6px; color: #7c7c7c; }
.new-tab kbd { margin-left: auto; font-size: 9px; }
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  color: #999;
}
.space-dots { display: flex; gap: 4px; }
.space-dots button { width: 26px; height: 26px; color: #8a8a8a; border-radius: 5px; font-size: 15px; }
.space-dots button.selected { background: #ffffff18; color: white; }
.browser-demo[data-space="work"] .demo-sidebar { background: #2d3834; }
.browser-demo[data-space="play"] .demo-sidebar { background: #38323f; }

.demo-page {
  min-width: 0;
  flex: 1;
  background: var(--page);
  position: relative;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.demo-toolbar {
  height: 34px;
  border-bottom: 1px solid #ffffff10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #9b9b95;
  padding: 0 14px;
}
.demo-toolbar > span:first-child { font-size: 15px; word-spacing: 10px; }
.demo-toolbar > span:first-child > span { opacity: .45; }
.demo-content { max-width: 460px; margin: auto; padding: 48px 28px 0; }
.tiny-label { font-size: 10px; letter-spacing: 0.12em; color: #999991; }
.demo-content h2 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 10px 0 8px;
  line-height: 1.05;
  color: var(--ink);
}
.demo-content > p { font-size: 13px; color: #8c8c86; margin: 0 0 24px; }
.inpage-search {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  color: #999991;
  background: var(--surface);
  border: 1px solid var(--surface-rule);
  border-radius: 6px;
  font-size: 12px;
}
.inpage-search kbd { font-size: 11px; }
.start-links { display: flex; gap: 10px; margin: 16px 0 24px; }
.start-links > button {
  display: flex;
  flex: 1;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--surface-rule);
  border-radius: 6px;
  padding: 12px;
  gap: 16px;
  color: var(--ink);
}
.start-links b { font-size: 18px; font-weight: 500; }
.start-links span { font-size: 11px; color: var(--mute); }
.recent-label { font-size: 10px; letter-spacing: 0.12em; color: #aaa99f; margin-bottom: 8px; }
.recent-link {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mute);
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-rule);
}
.demo-page-footer { margin-top: 28px; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.06em; color: #aaa99f; }
.split-document { display: none; }
.inline-command { display: none; }

.product-view[data-feature="sidebar"] .demo-sidebar { width: 0; padding-inline: 0; opacity: 0; overflow: hidden; }
.product-view[data-feature="split"] .demo-page { display: grid; grid-template-columns: 1fr 1fr; }
.product-view[data-feature="split"] .demo-toolbar { grid-column: 1 / -1; }
.product-view[data-feature="split"] .demo-content { padding: 28px 16px 0; }
.product-view[data-feature="split"] .demo-content h2 { font-size: 28px; }
.product-view[data-feature="split"] .split-document {
  display: block;
  background: #f2f1ec;
  color: #343b37;
  padding: 28px 18px;
  border-left: 3px solid #2a2a2a;
}
.split-document > span { font-size: 10px; letter-spacing: 0.1em; color: #92958a; }
.split-document h3 { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; margin-top: 24px; }
.split-document p { font-size: 12px; line-height: 1.6; color: #8e9185; }
.article-line { height: 4px; margin-top: 8px; background: #d8dad0; }
.article-line.short { width: 64%; }
.split-document blockquote { font-size: 14px; margin: 22px 0; border-left: 1px solid #aaa; padding-left: 10px; color: #747b6a; }
.product-view[data-feature="search"] .inline-command {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 88px;
  left: 8%;
  right: 8%;
  background: var(--surface);
  border: 1px solid var(--surface-rule);
  box-shadow: 0 16px 40px #0003;
  color: var(--ink);
  text-align: left;
  padding: 14px 16px;
}
.inline-command > span { font-size: 13px; padding: 10px 0; }
.inline-command > span:first-child { border-bottom: 1px solid var(--surface-rule); font-size: 14px; padding: 4px 0 12px; }
.inline-command kbd { float: right; font-size: 11px; color: var(--mute); }
.inline-command small { font-size: 11px; color: var(--mute); padding-top: 8px; }
.product-view[data-feature="search"] .demo-content { opacity: .28; }

.feature-bar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-top: 0;
  background: var(--paper-2);
  padding: 28px 24px 12px;
}
.feature-tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.feature-tabs button {
  font-size: 14px;
  color: var(--mute);
  padding: 4px 0;
}
.feature-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.feature-tabs button:hover { color: var(--ink); }
.feature-description h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.feature-description > p { margin: 0; font-size: 15px; color: var(--copy); max-width: 42em; }
.feature-description .feature-tip { margin-top: 8px; font-size: 13px; color: var(--mute); }
.feature-description .section-label, .feature-progress { display: none; }
.preview-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mute);
  padding: 10px 4px 0;
}

.details-section { padding: 88px 0 24px; }
.details-section h2, .source-section h2, .faq h2, .get-section h2 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}
.facts > div { padding: 22px 32px 22px 0; border-top: 1px solid var(--rule); }
.facts dt { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 15px; color: var(--copy); max-width: 34em; }

.source-section {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 64px;
  align-items: start;
  padding: 72px 0;
}
.source-section p { margin: 0 0 16px; font-size: 16px; color: var(--copy); max-width: 38em; }
.stack { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.stack li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.stack span { color: var(--mute); }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; padding: 24px 0 72px; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--copy); font-size: 15px; margin: 12px 24px 4px 0; }
.faq details a { border-bottom: 1px solid var(--ink); }

.get-section {
  padding: 36px 0 80px;
  border-top: 1px solid var(--rule);
}
.get-section p { margin: -12px 0 22px; font-size: 16px; color: var(--copy); max-width: 36em; }

footer {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 13px;
}
footer .brand { font-size: 15px; color: var(--ink); }
footer .brand svg { width: 18px; height: 18px; }
footer > div { display: flex; gap: 18px; margin-left: auto; }
footer a:hover { color: var(--ink); }
footer small { font-size: 12px; }

dialog {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  width: min(420px, calc(100% - 32px));
  padding: 20px;
  box-shadow: 0 24px 60px #0004;
}
dialog::backdrop { background: #07072499; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mute); margin-bottom: 16px; }
.dialog-header button { width: 28px; height: 28px; font-size: 18px; }
dialog label { display: block; font-size: 20px; font-weight: 500; margin-bottom: 12px; }
dialog input {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  font-size: 14px;
}
#search-results { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
#search-results button { display: flex; justify-content: space-between; background: var(--surface); border: 1px solid var(--rule); padding: 10px 12px; font-size: 14px; }
#search-results button:hover { background: var(--paper-2); }
#search-results p { font-size: 13px; color: var(--mute); }
.dialog-hint { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); margin: 12px 0 0; }

@media (max-width: 900px) {
  .feature-bar, .source-section, .faq, .facts { grid-template-columns: 1fr; }
  .feature-tabs { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .facts > div:nth-child(n) { padding-right: 0; }
}

@media (max-width: 760px) {
  .wrap, .hero { width: calc(100% - 32px); }
  .nav { height: 60px; gap: 16px; }
  .nav nav a:first-child { display: none; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 16px; }
  .demo-stage { padding: 6px 6px 0; border-radius: 8px 8px 0 0; }
  .browser-demo { height: 360px; }
  .demo-sidebar { width: 112px; padding: 8px 6px; }
  .window-bar { height: 22px; }
  .window-bar > span:not(.sidebar-glyph) { width: 7px; height: 7px; }
  .demo-address { height: 26px; font-size: 7px; }
  .demo-address kbd, .new-tab kbd { display: none; }
  .favorites { gap: 3px; margin-top: 8px; }
  .favorites > button { height: 26px; font-size: 12px; }
  .space-label { margin: 14px 2px 8px; font-size: 8px; }
  .tab { height: 24px; font-size: 7px; padding: 0 4px; gap: 4px; }
  .sidebar-bottom { height: 28px; }
  .space-dots button { width: 20px; height: 20px; font-size: 11px; }
  .demo-content { padding: 22px 12px 0; }
  .demo-content h2 { font-size: 24px; }
  .demo-content > p, .inpage-search, .recent-link, .start-links span { font-size: 8px; }
  .start-links { gap: 5px; }
  .start-links > button { padding: 8px; gap: 10px; }
  .feature-bar { padding: 20px 12px 8px; }
  .details-section, .source-section { padding: 48px 0 16px; }
  .faq { padding: 16px 0 48px; gap: 16px; }
  .get-section { padding: 28px 0 56px; }
  footer { flex-wrap: wrap; gap: 10px; padding: 20px 0; }
  footer > div { margin-left: 0; width: 100%; }
  .product-view[data-feature="split"] .demo-sidebar { width: 72px; }
  .product-view[data-feature="split"] .demo-content h2 { font-size: 16px; }
  .product-view[data-feature="split"] .split-document { padding: 16px 8px; }
  .split-document h3 { font-size: 14px; }
  .product-view[data-feature="search"] .inline-command { left: 4%; right: 4%; top: 64px; padding: 10px; }
}

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