:root {
  color-scheme: light;
  --paper: #faf9f7;
  --ink: #1c1a29;
  --muted: #605d6d;
  --violet: #4a36a4;
  --hairline: #e6e2eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:not([hidden]) { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6c51d2; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: white;
  transform: translateY(-120%);
}
.skip-link:focus { top: 12px; transform: none; }
.topbar, .footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.topbar { min-height: 82px; border-bottom: 1px solid var(--hairline); }
.wordmark { display: inline-flex; gap: 8px; align-items: center; font-size: 19px; font-weight: 720; letter-spacing: -.055em; }
.wordmark img { display: block; flex-shrink: 0; }
.topbar nav { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 600; }
.nav-overview { color: var(--muted); }
.nav-overview:hover, .footer > a:last-child:hover { color: var(--violet); }
.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #dedbe4;
  border-radius: 9px;
  background: #fff;
}
.nav-download:hover { background: #f0ecfc; }

.hero { padding-top: clamp(56px, 7vw, 88px); text-align: center; }
.eyebrow { color: var(--violet); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-weight: 710; letter-spacing: -.055em; word-spacing: .035em; }
h1 { margin-top: 16px; font-size: clamp(49px, 7.5vw, 106px); line-height: 1.02; text-wrap: balance; }
h1 em { color: var(--violet); font-style: normal; }
.lead { max-width: 470px; margin: 20px auto 26px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; text-wrap: pretty; }
.download-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  border: 1px solid #2a1e61;
  border-radius: 10px;
  background: #2f225d;
  box-shadow: 0 4px 10px #33256a24, inset 0 1px 0 #ffffff28;
  color: white;
  font-size: 15px;
  font-weight: 650;
}
.download-button:hover { background: var(--violet); }
.download-button span { font-size: 19px; line-height: 1; }
.requirements { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.requirements span { margin-inline: 3px; }

.demo {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 24px;
  justify-items: center;
  min-width: 0;
  margin-top: 42px;
  padding: clamp(36px, 5vw, 68px) clamp(12px, 5vw, 64px) 25px;
  overflow: hidden;
  border: 1px solid #ddd5f4;
  border-radius: 22px;
  background: radial-gradient(ellipse at 85% 4%, #d7cdf8, transparent 62%), linear-gradient(135deg, #f1ecff, #e6dcfc);
}
.demo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(#8d79c94d 1px, transparent 1px) 0 0 / 18px 18px;
  mask-image: radial-gradient(ellipse at top, transparent 21%, black 97%);
}
.editor {
  width: min(100%, 692px);
  min-width: 0;
  border: 1px solid #dbd3ed;
  border-radius: 15px;
  background: #fff;
  text-align: left;
  box-shadow: 0 18px 45px #44337825, 0 2px 6px #44337812;
}
.editor-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ede9f4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e4dced; }
.editor-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  justify-self: end;
  color: var(--violet);
  font-size: 16px;
  font-weight: 750;
}
.editor-logo i { width: 2px; height: 14px; background: currentColor; }
.editor-text {
  min-height: 125px;
  padding: 30px clamp(16px, 4vw, 32px) 20px;
  font-size: clamp(19px, 3.2vw, 30px);
  font-weight: 530;
  letter-spacing: -.045em;
  line-height: 1.36;
}
.caret { display: inline-block; vertical-align: -.1em; width: 2px; height: 1em; background: #6d52c9; }
.suggestion { color: #635095; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px clamp(16px, 4vw, 32px); }
.editor-status { color: var(--muted); font-size: 12px; }
.accept-button {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e1d7f4;
  border-radius: 7px;
  background: #f4efff;
  color: #4b357c;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}
.accept-button:hover { background: #eae0ff; }
.examples { display: flex; gap: 3px; padding: 3px; border: 1px solid #e1d7f4; border-radius: 10px; background: #f7f3ffb8; }
.examples button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #504567;
  font-size: 13px;
  font-weight: 650;
}
.examples button:hover { color: var(--ink); background: #ffffffa6; }
.examples button[aria-pressed='true'] { border-color: #e1d7ee; background: #fff; color: var(--violet); box-shadow: 0 1px 2px #40325415; }

.features { margin-top: clamp(62px, 9vw, 116px); scroll-margin-top: 28px; }
.section-intro .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(37px, 5.2vw, 63px); line-height: 1.06; text-wrap: balance; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 25px; }
.feature { padding: clamp(18px, 2.7vw, 30px); border: 1px solid var(--hairline); border-radius: 14px; background: #fff; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #ede7fc; color: #4e398c; font-size: 25px; }
.context-icon { align-content: center; justify-items: start; gap: 3px; padding-inline: 10px; background: #e8eefc; color: #344a84; }
.context-icon i { width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.context-icon i:nth-child(2) { width: 13px; }
.chip-icon { background: #e5f1ec; color: #2c6151; }
.chip-icon i { width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 5px; }
.feature h3 { margin-top: 15px; font-size: 18px; letter-spacing: -.035em; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.65; }
kbd { font: inherit; font-weight: 700; color: var(--ink); }

.download-section { margin-top: clamp(48px, 7vw, 84px); scroll-margin-top: 28px; }
.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid #e2d9f3;
  border-radius: 18px;
  background: #f0eafa;
}
.download-panel h2 { font-size: clamp(36px, 4.7vw, 55px); }
.download-panel h2 + p { max-width: 410px; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.download-action { flex-shrink: 0; text-align: center; }
.footer { min-height: 82px; margin-top: 34px; border-top: 1px solid var(--hairline); }
.footer .wordmark { font-size: 16px; }
.footer > a:last-child { padding-block: 12px; color: var(--muted); font-size: 13px; font-weight: 600; }

@media (max-width: 770px) {
  .wrap { width: calc(100% - 40px); }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 490px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { min-height: 66px; }
  .topbar nav { gap: 0; }
  .nav-overview { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { margin-top: 13px; }
  .lead { margin-top: 16px; }
  .demo { margin-top: 30px; border-radius: 16px; }
  .editor-text { min-height: 100px; padding-top: 24px; }
  .download-panel { align-items: flex-start; flex-direction: column; }
  .download-action { text-align: left; }
}
