@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #0b0d12; --ink-2: #4a515e; --paper: #fff; --mist: #f5f7fa; --line: #e2e6ed;
  --blue: #2f6bff; --amber: #ffc83d; --green: #14804a;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #eef1f6; --ink-2: #a7aebc; --paper: #101318; --mist: #171b22; --line: #262c36; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.62 var(--sans);
  font-feature-settings: "kern","liga"; -webkit-font-smoothing: antialiased; }
.wrap { width: min(1080px, calc(100% - 44px)); margin-inline: auto; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
kbd { font: 600 12.5px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: var(--mist);
  border: 1px solid var(--line); box-shadow: 0 1.5px 0 var(--line); }
code { font: 13px var(--mono); background: var(--mist); padding: 2px 6px; border-radius: 5px; }

/* nav */
.nav { display: flex; align-items: center; gap: 22px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 640; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; }
.nav nav a { color: var(--ink-2); text-decoration: none; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-block; cursor: pointer; font: 600 14.5px/1 var(--sans); text-decoration: none;
  padding: 12px 18px; border-radius: 11px; border: 1px solid transparent; background: var(--blue); color: #fff;
  transition: filter .15s, transform .06s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.big { padding: 15px 24px; font-size: 16px; }
.btn.small { padding: 9px 13px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: default; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding: 56px 0 72px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 24px; } }
h1 { font: 400 clamp(40px, 5.6vw, 68px)/1.04 var(--display); letter-spacing: -0.012em; margin: 0 0 20px; }
.lede { color: var(--ink-2); font-size: 18px; margin: 0 0 26px; max-width: 56ch; }
.lede.small { font-size: 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 17px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--amber); }

.hero-shot { position: relative; margin: 0; }
.hero-shot img { border-radius: var(--radius); border: 1px solid var(--line); display: block;
  box-shadow: 0 24px 60px -28px rgba(10,20,50,.4); }
.frame { position: absolute; inset: 9%; pointer-events: none; }
.frame i { position: absolute; width: 24px; height: 24px; border: 3px solid var(--amber); }
.frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* sections */
section { padding: 62px 0; border-top: 1px solid var(--line); }
.hero { border: 0; }
h2 { font: 400 clamp(26px, 3.2vw, 36px)/1.15 var(--display); letter-spacing: -0.01em; margin: 0 0 18px;
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.num { font: 600 11.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--blue);
  background: rgba(47,107,255,.10); padding: 7px 9px; border-radius: 6px; }
h3 { margin: 10px 0 8px; font-size: 16.5px; letter-spacing: -0.01em; }

/* try */
.try-stage { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.try-stage.has-out { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 860px) { .try-stage.has-out { grid-template-columns: 1fr; } }
.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 34px 22px; text-align: center;
  background: var(--mist); cursor: pointer; }
.drop.over { border-color: var(--blue); background: #eaf0ff; }
.drop p { margin: 0; color: var(--ink-2); }
.drop img.preview { border-radius: 10px; margin-top: 14px; max-height: 260px; }
.try-out { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.try-head { display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; background: var(--mist); border-bottom: 1px solid var(--line); }
.meta { font: 12px var(--mono); color: var(--ink-2); }
.try-body { max-height: 330px; overflow: auto; padding: 4px; }
.try-body table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.try-body td { border-bottom: 1px solid var(--line); padding: 7px 10px; white-space: nowrap; }
.try-body tr:first-child td { font-weight: 650; background: var(--mist); }
.try-body pre { margin: 0; padding: 12px; white-space: pre-wrap; font: 13px/1.5 var(--mono); }
.try-actions { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.copied { font-size: 13px; color: var(--green); }
.hint { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }

/* cards */
.cards { list-style: none; counter-reset: c; margin: 26px 0 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cards li { counter-increment: c; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cards li::before { content: counter(c, decimal-leading-zero); font: 600 11.5px/1 var(--mono); color: var(--ink-2); }
.cards p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* tables split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split figure { margin: 0; }
.split figcaption { font: 600 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 10px; }
.split img { border-radius: 12px; border: 1px solid var(--line); }
.demo-table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.demo-table td { border-bottom: 1px solid var(--line); padding: 9px 12px; }
.demo-table tr:first-child td { font-weight: 650; background: var(--mist); }
.demo-table td:nth-child(n+2) { text-align: right; }

/* faq */
.faq { margin-top: 22px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--ink-2); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; color: var(--ink-2); max-width: 68ch; }

.install { text-align: center; }
.install h2 { justify-content: center; }
.install .cta-row { justify-content: center; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 30px 0 50px; color: var(--ink-2); font-size: 14px; }
.foot a { color: var(--ink-2); }

.simhint { margin: 0 0 22px; padding: 11px 14px; border-radius: 11px; font-size: 14.5px; color: var(--ink);
  background: rgba(255,200,61,.16);
  border: 1px solid rgba(255,200,61,.44); max-width: 56ch; }
.simhint kbd { margin-right: 2px; }
