@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffaf5;
  --ink: #2b2849;
  --muted: #57516a;
  --line: #ded4e1;
  --white: #fff;
  --dark: #211d3d;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 5vw, 76px);
  --width: 1320px;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { line-height: 1.02; font-weight: 630; letter-spacing: -0.073em; }
h2 { font-size: clamp(2.5rem, 5.5vw, 5.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.14; font-weight: 630; letter-spacing: -0.035em; }
p { color: var(--muted); }
code, kbd, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; font-size: 0.9em; }
kbd {
  padding: 0.12rem 0.34rem;
  border: 1px solid #ccccc7;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.84em;
}

.wrap {
  width: min(var(--width), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font: 500 0.78rem/1.3 var(--mono);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 12px 16px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.section { padding-block: clamp(64px, 9vw, 128px); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 1.24rem;
  font-weight: 720;
  letter-spacing: -0.065em;
  text-decoration: none;
}
.brand img { border-radius: 7px; }
.site-header nav, .header-actions, .footer-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.3vw, 34px);
}
.header-actions { justify-self: end; }
.site-header nav a, .repo-link, .footer-links a {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 550;
  text-decoration: none;
}
.site-header nav a:hover, .repo-link:hover, .footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms, border-color 180ms, box-shadow 180ms, transform 180ms;
}
.button-dark { color: var(--white); background: #30274f; }
.button:hover { transform: translateY(-2px); }
.button-dark:hover { background: #47376f; box-shadow: 0 7px 16px #47376f36; }
.button-dark:focus-visible { outline-color: #30274f; }
.button-outline { border-color: #b8aaca; background: #fffaf6c7; }
.button-outline:hover { background: #fff; border-color: #746591; }
.button-small { min-height: 39px; padding-inline: 14px; }

.hero-shell {
  background:
    radial-gradient(ellipse at 90% 12%, #d8dfef 0%, transparent 56%),
    radial-gradient(ellipse at 62% 89%, #f8d5ce 0%, transparent 50%),
    linear-gradient(115deg, #fdfbf4 20%, #fef1e9 68%, #efe8f6);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(62px, 8vw, 112px);
}
.hero-copy { animation: enter-up 650ms both; }
.hero-kicker {
  padding: 7px 10px;
  border: 1px solid #bfb3d0;
  border-radius: 100px;
  color: #48406a;
  background: #fffaf6c7;
}
.capture-mark {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 4px;
}
.capture-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: #64509b;
}
.hero h1 {
  margin-block: 19px 21px;
  font-size: clamp(3.1rem, 5.2vw, 5.2rem);
}
.hero-description {
  max-width: 29rem;
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  line-height: 1.58;
  letter-spacing: -0.028em;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { margin-top: 15px; font-size: 0.9rem; }
.hero-art { animation: enter-up 850ms 100ms both; }
.hero-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 574 / 360;
  border: 1px solid #fffc;
  border-radius: clamp(14px, 2vw, 25px);
  background: #ddd1e9;
  box-shadow: 0 21px 48px #4d3c7038, 0 0 0 7px #ffffff60;
}
.hero-surface video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-toggle {
  position: absolute;
  right: 11px;
  bottom: 11px;
  min-height: 40px;
  padding: 5px 11px;
  border: 1px solid #ffffff70;
  border-radius: 100px;
  background: #292444;
  color: #fff;
  font-size: 0.81rem;
  font-weight: 650;
}
.hero-toggle:hover { background: #463a70; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.motion-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font: 0.75rem/1.5 var(--mono);
}

@keyframes enter-up {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-reveal { animation: enter-up 460ms ease-out both; }
@keyframes panel-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.showcase-panel[role="tabpanel"]:not([hidden]) > * {
  animation: panel-appear 240ms ease-out both;
}

.browser-strip { border-block: 1px solid var(--line); background: #fffaf9; }
.browser-strip-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.22fr 0.72fr 0.85fr;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding-block: 13px;
}
.browser-strip-inner strong { display: block; font-size: 0.98rem; font-weight: 650; }
.browser-strip-inner small { color: var(--muted); font-size: 0.83rem; }

.section-heading { margin-bottom: clamp(24px, 4.5vw, 58px); }
.section-heading h2 { margin-top: 12px; }
.split-heading {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: end;
  gap: clamp(22px, 7vw, 95px);
}
.split-heading > p { max-width: 29rem; padding-bottom: 3px; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.showcase {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}
.showcase-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.showcase-tabs button {
  position: relative;
  min-height: 55px;
  padding: 10px clamp(13px, 2.8vw, 34px);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 610;
  text-align: center;
}
.showcase-tabs button:is(:hover, [aria-selected="true"]) { color: var(--ink); background: #f0e8f6; }
.showcase-tabs button[aria-selected="true"]::after {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--ink);
  content: "";
}
.showcase-tabs button:focus-visible, .showcase-panel:focus-visible { outline-offset: -4px; }
.showcase-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.23fr);
  min-height: 390px;
}
.showcase-panel + .showcase-panel { border-top: 1px solid var(--line); }
.showcase-tabs:not([hidden]) ~ .showcase-panel { border-top: 0; }
.showcase-text { align-self: center; padding: clamp(23px, 4.5vw, 62px); }
.showcase-text h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.showcase-text p { max-width: 25rem; margin-top: 15px; }
.showcase-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 390px;
  height: 100%;
  padding: clamp(15px, 2.65vw, 38px);
  background: linear-gradient(135deg, #eee7f8, #fbece6);
}
.showcase-visual a, .motion-screens a {
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #c9bad8;
  border-radius: 8px;
  background: white;
}
.showcase-visual a:hover { border-color: #65528a; }
.pair-visual a { max-width: 62%; max-height: 332px; }
.pair-visual a:first-child { max-width: 34%; }
.style-visual a, .style-visual a:first-child,
.scan-visual a, .scan-visual a:first-child { max-width: 41%; }
.style-visual img, .scan-visual img { width: auto; max-height: 332px; }

.exports-section { border-block: 1px solid var(--line); background: linear-gradient(132deg, #efe9f7, #fff3ec 85%); }
.exports-layout, .install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  align-items: start;
  gap: clamp(25px, 5vw, 76px);
}
.formats article {
  display: grid;
  gap: 9px;
  padding-block: 23px;
  border-top: 1px solid #d1c4db;
}
.formats article:last-child { border-bottom: 1px solid #d1c4db; }
.formats p { max-width: 31rem; }
.formats a { font-weight: 620; color: var(--ink); }
.spec-card {
  padding: clamp(21px, 3.8vw, 48px);
  border: 1px solid #dbcde4;
  border-radius: 13px;
  background: var(--white);
}
.spec-card h3 { margin-block: 12px 10px; font-size: clamp(1.8rem, 3.5vw, 3.05rem); }
.file-card {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #faf5fc;
  font-size: 0.88rem;
}
.file-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
}
.file-title span { color: var(--muted); }
.file-card dl { padding: 3px 15px; }
.file-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.37fr) minmax(0, 0.63fr);
  gap: 12px;
  padding-block: 10px;
}
.file-card dl div + div { border-top: 1px solid var(--line); }
.file-card dt { font-weight: 650; }
.file-card dd { color: var(--muted); }

.motion-section {
  --muted: #dbd3e9;
  color: #fffaf6;
  background: radial-gradient(ellipse at 86% 12%, #493966, transparent 62%), var(--dark);
}
.motion-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 25px clamp(30px, 7vw, 105px);
}
.motion-copy h2 { margin-block: 13px 21px; }
.motion-copy > p:not(.eyebrow) { margin-top: 13px; max-width: 30rem; }
.motion-copy strong { color: #fffaf6; }
.motion-detail {
  margin-top: 22px;
  padding: 12px 0 12px 16px;
  border-left: 1px solid #a999c6;
}
.motion-visual {
  min-width: 0;
  border: 1px solid #80709c;
  border-radius: 13px;
  padding: clamp(13px, 2.5vw, 26px);
  background: #32294d;
}
.motion-screens {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: 12px;
}
.motion-screens a { max-height: clamp(180px, 28vw, 308px); background: #28223d; border-color: #8774a4; }
.motion-screens img { width: 100%; }
.motion-visual a:hover { border-color: #fffaf6; }
.filmstrip { display: block; overflow: hidden; margin-top: 13px; border: 1px solid #8f7bac; border-radius: 5px; }
.filmstrip img { width: 100%; }
.motion-support {
  grid-column: 1 / -1;
  padding-top: 17px;
  border-top: 1px solid #645678;
  font-size: 0.9rem;
}

.build-card { overflow: hidden; border: 1px solid #53446d; border-radius: 11px; background: #27213d; color: #fffaf6; }
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid #645678;
}
.code-toolbar h3 { font-size: 1rem; letter-spacing: -0.02em; }
.copy-button {
  min-height: 34px;
  padding: 4px 9px;
  border: 1px solid #8f7aa6;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 610;
}
.copy-button:hover { background: #645678; }
.build-card pre { margin: 0; padding: 19px 16px; white-space: pre-wrap; font-size: 0.98rem; }
.build-card pre:focus-visible { outline-offset: -3px; }
.copy-status { min-height: 2.6rem; padding: 0 16px 12px; color: #e2d9f0; font-size: 0.86rem; }
.install-options { min-width: 0; border-top: 1px solid var(--line); }
.install-options details { border-bottom: 1px solid var(--line); }
.install-options summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 32px 10px 0;
  font-weight: 650;
  list-style: none;
}
.install-options summary::-webkit-details-marker { display: none; }
.install-options summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  translate: 0 -50%;
  color: var(--muted);
  font: 1.2rem/1 var(--mono);
  content: "+";
}
.install-options details[open] summary::after { content: "−"; }
.install-options summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.install-options ol { margin: 0 0 15px; padding-left: 1.35rem; color: var(--muted); }
.install-options li + li { margin-top: 6px; }
.install-next { margin-top: 15px; }

.brand-banner { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; }
.brand-banner img { width: 100%; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding-block: 35px 41px;
}
.site-footer p { font-size: 0.85rem; }

@media (max-width: 1100px) {
  .desktop-break { display: none; }
}

@media (max-width: 800px) {
  .header-inner { min-height: 65px; grid-template-columns: 1fr auto; gap: 0 18px; padding-top: 12px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; min-height: 45px; gap: 23px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 13px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 44px; }
  .hero h1 { max-width: 41rem; font-size: clamp(2.4rem, 9.9vw, 5.5rem); text-wrap: wrap; }
  .desktop-break { display: revert; }
  .browser-strip-inner { grid-template-columns: 1fr 1fr; gap: 14px 16px; padding-block: 16px; }
  .split-heading, .motion-inner { grid-template-columns: 1fr; gap: 16px; }
  .showcase-panel { min-height: 0; grid-template-columns: 1fr; }
  .showcase-visual { min-height: 240px; }
  .exports-layout, .install-layout { grid-template-columns: 1fr; }
  .motion-visual { margin-top: 9px; }
  .motion-support { margin-top: 9px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(2.1rem, 10.6vw, 2.6rem); }
  .hero h1 { margin-block: 14px 16px; }
  .button { min-height: 44px; padding-inline: 11px; }
  .button-small { min-height: 38px; }
  .showcase-tabs button { flex: 1 1 30%; min-height: 52px; padding-inline: 6px; font-size: 0.83rem; }
}

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

.policy-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.policy { max-width: 740px; }
.policy h1 { margin-bottom: 12px; font-size: clamp(2.7rem, 7vw, 5.1rem); }
.policy h2 { margin-top: 36px; margin-bottom: 8px; font-size: 1.5rem; letter-spacing: -0.04em; }
.policy p + p { margin-top: 12px; }
