@font-face {
  font-family: Bricolage;
  src: url("./assets/bricolage-grotesque.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #20192c;
  --subtle: #5d5567;
  --line: #e0dbe4;
  --purple: #633bc4;
  --lime: #e9f6a4;
  --night: #241839;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
a:focus-visible, button:focus-visible { outline: 2px solid #815ded; outline-offset: 5px; }
.shell { width: min(100% - 88px, 1220px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; left: 12px; top: 12px; transform: translateY(-200%); background: var(--lime); padding: 10px 14px; border-radius: 6px; }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid var(--line); }
.masthead { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 13px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; }
.brand strong { color: var(--purple); font-weight: 750; }
.brand-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: var(--night); color: #eee4ff; flex: 0 0 auto; }
.brand-icon i { width: 17px; height: 13px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.brand-icon i::after { content: ""; position: absolute; inset: 3px auto auto 6px; border-left: 5px solid currentColor; border-block: 3px solid transparent; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); font-size: 13px; color: var(--subtle); font-weight: 540; }
nav a:hover { color: var(--purple); }
.repo-link { justify-self: end; white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 13px; font-weight: 650; }
.repo-link span, .text-action span { color: var(--purple); margin-left: 3px; }
.repo-link:hover { border-color: var(--purple); }
.arrow-out { display: inline-block; position: relative; width: 10px; height: 10px; flex: 0 0 10px; }
.arrow-out::before { content: ""; position: absolute; top: 0; right: 0; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; }
.arrow-out::after { content: ""; position: absolute; top: 8px; left: 1px; width: 11px; height: 1px; background: currentColor; transform: rotate(-45deg); transform-origin: left center; }

.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(26px, 4.5vw, 70px); padding-block: clamp(62px, 7vw, 105px) clamp(55px, 6vw, 88px); }
.hero-copy { min-width: 0; padding-bottom: 26px; }
.status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; border: 1px solid #e4dcea; border-radius: 100px; background: #f1ebf6; color: #4f386f; padding: 6px 10px; font-size: 11px; font-weight: 650; letter-spacing: .01em; }
.status > span { width: 7px; height: 7px; border-radius: 50%; background: #8663cf; }
h1, h2, h3 { font-family: Bricolage, system-ui, sans-serif; }
h1 { font-size: clamp(3.4rem, 6vw, 5.75rem); line-height: 1; font-weight: 690; letter-spacing: -.041em; margin: 20px 0 22px; }
h1 em { color: var(--purple); font-style: normal; }
.lead { max-width: 405px; font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.58; color: var(--subtle); }
.hero-actions { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.action { display: inline-flex; align-items: center; gap: 18px; border: 1px solid transparent; border-radius: 9px; padding: 12px 14px; font-size: 13px; font-weight: 700; }
.action-primary { background: var(--lime); border-color: #dbe994; }
.action-primary:hover { background: #dce98e; }
.text-action { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 650; }
.text-action:hover { text-decoration: underline; text-underline-offset: 4px; }

.viewer { background: #241a30; padding: 0 12px; border: 1px solid #3e2d4a; border-radius: 15px; color: #f5edf9; box-shadow: 0 20px 45px #36264a24, 0 2px 6px #20192c1a; }
.viewer-top, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.viewer-top { min-height: 45px; padding-inline: 2px; font-size: 11px; font-weight: 600; }
.viewer-top > span:first-child { display: flex; gap: 7px; align-items: center; }
.viewer-top i { width: 7px; height: 7px; border-radius: 50%; background: #d5ed85; box-shadow: 0 0 12px #d5ed8560; }
.mono { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .02em; }
.viewer-top .mono, .viewer-label { color: #c0b3ce; }
.view-image { position: relative; overflow: hidden; background: #302736; border-radius: 7px; }
#preview { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.reticle { position: absolute; top: 34%; left: 43%; width: 19%; height: 33%; color: #f2f8b9; pointer-events: none; background:
  linear-gradient(currentColor, currentColor) left top / 12px 1px,
  linear-gradient(currentColor, currentColor) left top / 1px 12px,
  linear-gradient(currentColor, currentColor) right top / 12px 1px,
  linear-gradient(currentColor, currentColor) right top / 1px 12px,
  linear-gradient(currentColor, currentColor) left bottom / 12px 1px,
  linear-gradient(currentColor, currentColor) left bottom / 1px 12px,
  linear-gradient(currentColor, currentColor) right bottom / 12px 1px,
  linear-gradient(currentColor, currentColor) right bottom / 1px 12px;
  background-repeat: no-repeat;
}
.frame-id { position: absolute; bottom: 9px; left: 9px; padding: 5px 7px; border-radius: 4px; color: #f7f1f8; background: #241a30e8; }
.viewer-bottom { min-height: 78px; padding-block: 9px; }
.strip { display: flex; gap: 7px; min-width: 0; }
.strip button { display: grid; text-align: center; justify-items: center; min-width: 0; width: clamp(55px, 6vw, 79px); gap: 3px; padding: 3px; border: 1px solid #65536f; border-radius: 5px; color: #e8deec; background: transparent; cursor: pointer; font: 9px var(--mono); white-space: nowrap; }
.strip button img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.strip button:hover, .strip button[aria-pressed="true"] { border-color: #e9f6a4; color: #f6ffcd; background: #50404a; }
.demo figcaption { margin-top: 12px; padding-left: 3px; font-size: 11px; color: var(--subtle); }
.demo figcaption span { color: var(--purple); font-size: 8px; margin-right: 3px; }

.method { border-top: 1px solid var(--line); padding-block: 42px 56px; scroll-margin-top: 24px; }
.section-head { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, .65fr); align-items: end; column-gap: 35px; margin-bottom: 26px; }
.eyebrow { text-transform: uppercase; font: 650 11px/1.3 var(--mono); letter-spacing: .11em; color: var(--purple); margin-bottom: 8px; }
.section-head .eyebrow { grid-column: 1 / -1; }
h2 { font-size: clamp(2.05rem, 4vw, 3.45rem); font-weight: 710; line-height: 1.04; letter-spacing: -.043em; }
.section-head > p:last-child { font-size: 14px; line-height: 1.54; color: var(--subtle); max-width: 390px; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; min-width: 0; background: #fffefa; border: 1px solid var(--line); border-radius: 11px; padding: 19px; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 6px; background: #ece5fa; color: #553497; margin-bottom: 14px; font: 650 11px var(--mono); }
.step-number::before { content: "0" counter(step); }
.steps h3 { font-size: 20px; font-weight: 720; letter-spacing: -.024em; }
.steps p { margin-top: 6px; color: var(--subtle); font-size: 13px; line-height: 1.56; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding-bottom: 55px; }
.feature { padding: clamp(23px, 4vw, 42px); border-radius: 13px; min-width: 0; scroll-margin-top: 24px; }
.feature h2 { font-size: clamp(2.05rem, 3.4vw, 3.25rem); max-width: 510px; }
.feature p:not(.eyebrow, .status) { margin-top: 14px; max-width: 480px; font-size: 14px; line-height: 1.59; }
.skill { background: #eee6fa; }
.skill p:last-child { color: #4d405b; }
.integration { background: var(--night); color: #fcf8ff; }
.integration .status { margin-bottom: 13px; color: #edf9b7; border-color: #67704b; background: #3c3d37; }
.integration .status span { background: #d5ed85; }
.integration p:not(.status) { color: #e2d7ed; }
.integration .text-action { margin-top: 17px; color: var(--lime); }
.integration .text-action span { color: inherit; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 74px; border-top: 1px solid var(--line); }
.footer .brand-icon { width: 29px; height: 29px; }

@media (max-width: 1060px) {
  .shell { width: min(100% - 56px, 1220px); }
  h1 { font-size: clamp(3rem, 6.4vw, 5rem); }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 36px); }
  .masthead { grid-template-columns: 1fr auto; min-height: 65px; gap: 9px; padding-block: 11px; }
  nav { grid-row: 2; grid-column: 1 / -1; gap: 18px; padding-block: 4px 0; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; padding-block: 43px 37px; }
  .hero-copy { padding-bottom: 4px; }
  h1 { font-size: clamp(3.08rem, 10vw, 5rem); margin-block: 14px 17px; }
  .section-head { grid-template-columns: 1fr; row-gap: 9px; }
  .section-head .eyebrow { margin-bottom: 0; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .method { padding-block: 32px; }
  .feature-grid { padding-bottom: 30px; }
}
@media (max-width: 350px) {
  h1 { font-size: 2.62rem; }
  .viewer-label { display: none; }
  .footer { align-items: flex-start; flex-direction: column; padding-block: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
