/* Marpora landing page. Dark by design: the light editor screenshots read as paper on a desk. */

:root {
  color-scheme: dark;

  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #121216;
  --surface-2: #17171c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f1ec;
  --muted: #a3a19a;
  --faint: #7d7b75;

  --violet: #8f8cff;
  --blue: #7cc4ff;
  --peach: #ffb38f;
  --rose: #ff8fb8;
  --accent: linear-gradient(100deg, #b3b1ff 0%, #ffc4a6 55%, #ff9fc3 100%);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --max-wide: 1240px;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; }
code, kbd { font-family: var(--mono); }

::selection { background: rgba(160, 156, 255, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: calc(var(--max-wide) + var(--gutter) * 2); }

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Room for the italic overhang without widening the line. */
  padding-right: 0.1em;
  margin-right: -0.1em;
}
.display--md { font-size: clamp(40px, 5.6vw, 76px); }

.lede {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 34em;
  text-wrap: pretty;
}
.lede strong { color: var(--text); font-weight: 500; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .num {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.45em;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: linear-gradient(#1d1d23, #141418);
  color: var(--text);
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1;
  vertical-align: 0.08em;
}
.kbd-group { display: inline-flex; gap: 4px; }

.inline-code {
  font-family: var(--mono);
  font-size: 0.5em;
  letter-spacing: -0.02em;
  padding: 0.08em 0.32em;
  border-radius: 0.22em;
  border: 1px solid var(--line-2);
  background: var(--surface);
  vertical-align: 0.14em;
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  --h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), border-color 0.25s;
}
.btn--sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 26px; font-size: 16px; }
.btn--primary {
  background: var(--text);
  color: #0b0b0d;
  box-shadow: 0 0 0 0 rgba(255, 196, 166, 0), 0 10px 30px -10px rgba(255, 190, 160, 0.35);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(255, 196, 166, 0.16), 0 18px 40px -12px rgba(255, 180, 150, 0.5);
}
.btn--ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  /* Opaque enough that bright screenshots under it never compete with the links. */
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  max-width: calc(var(--max-wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { border-radius: 7px; }
.nav__links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.icon-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(116px, 14vh, 148px);
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: -10% 0 auto 0;
  height: 1100px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 32% at 22% 30%, rgba(124, 116, 255, 0.28), transparent 70%),
    radial-gradient(34% 30% at 80% 26%, rgba(255, 160, 120, 0.2), transparent 70%),
    radial-gradient(50% 36% at 50% 72%, rgba(98, 170, 255, 0.14), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
.hero__copy { text-align: center; display: grid; justify-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13.5px;
}
.pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #141018;
  font-weight: 600;
  font-size: 12px;
}
.hero__title {
  font-size: clamp(52px, 9.4vw, 136px);
  max-width: 11.5em;
  margin-bottom: 28px;
}
.hero__title .word { display: inline-block; }
.hero__lede { margin-inline: auto; text-align: center; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.fineprint {
  margin-top: 18px;
  color: var(--faint);
  font-size: 13.5px;
}

.hero__stage {
  margin-top: clamp(48px, 6vw, 72px);
  perspective: 1800px;
}
.hero__window {
  transform-origin: 50% 0%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

/* ---------- macOS window frame ---------- */

.window {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 40px 120px -20px rgba(0, 0, 0, 0.8),
    0 30px 80px -40px rgba(140, 130, 255, 0.35);
}
.window__bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: #ececee;
  border-bottom: 1px solid #dcdce0;
}
.window--dark { background: #202124; }
.window--dark .window__bar { background: #2a2a2e; border-bottom-color: #1b1b1e; }
.window__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: #4a4a50;
}
.window--dark .window__title { color: #b5b5bb; }
.lights { display: inline-flex; gap: 8px; }
.lights i {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.window__shot { width: 100%; }

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  margin-top: clamp(24px, 4vw, 48px);
  padding-block: 22px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  color: var(--muted);
  white-space: nowrap;
  padding-right: 36px;
}
.marquee span::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: 36px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 8vw, 120px); position: relative; }
.section__head { margin-bottom: clamp(44px, 6vw, 72px); }
.section__head .display { margin-bottom: 22px; max-width: 13em; }
.section__head--center { text-align: center; display: grid; justify-items: center; }
.section__head--center .lede { text-align: center; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split__text { margin-bottom: 0; }
.split__text .display { max-width: 9.5em; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.card {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.055), transparent 45%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color 0.3s;
}
.card:hover { border-color: var(--line-2); }
.card--demo { grid-column: span 5; }
.card--shot { grid-column: span 7; }
.card--wide { grid-column: span 8; }
.card--keys { grid-column: span 4; }
.card__text { padding: 24px 28px 28px; margin-top: auto; }
.card__text h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 6px; }
.card__text p { color: var(--muted); font-size: 15.5px; }
.card__text code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}
.card__media { padding: 28px 28px 0; flex: 1; display: flex; align-items: center; }
.card__media img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.card__media--paper img { background: #fff; }

/* Syntax reveal demo */
.demo {
  margin: 28px 28px 0;
  padding: 28px 26px 32px;
  border-radius: 12px;
  background: #fbfbfa;
  color: #2c2d31;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", var(--sans);
  font-size: 17px;
  line-height: 1.7;
  min-height: 220px;
  flex: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}
.demo__h {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e3e3e6;
}
.demo strong { font-weight: 700; }
.demo .tok {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;
  color: #9a9ba3;
  font-family: var(--mono);
  font-size: 0.86em;
  transition: max-width 0.45s var(--ease), opacity 0.35s;
}
.demo__h .tok { font-size: 0.7em; vertical-align: 0.12em; }
.demo .tok.on { max-width: 2.2em; opacity: 1; }
.demo .w { position: relative; }
.demo .caret {
  position: absolute;
  top: 0.12em;
  bottom: 0.12em;
  width: 2px;
  margin-left: -1px;
  background: #3d6df2;
  border-radius: 1px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Keys card */
.keys { list-style: none; padding: 28px 28px 0; display: grid; gap: 10px; }
.keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.keys__label { font-size: 15px; }
.keys kbd { font-size: 13px; min-width: 30px; height: 28px; }

/* Theme compare */
.compare__stage {
  position: relative;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
  touch-action: pan-y;
  cursor: ew-resize;
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__top {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(160, 150, 255, 0.6);
  pointer-events: none;
}
.compare__handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(16, 16, 20, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.compare__handle span::before,
.compare__handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  border: solid #fff;
  border-width: 0 0 1.6px 1.6px;
}
.compare__handle span::before { left: 10px; transform: translateY(-50%) rotate(45deg); }
.compare__handle span::after { right: 10px; transform: translateY(-50%) rotate(-135deg); }
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.compare:has(.compare__range:focus-visible) .compare__handle span { outline: 2px solid var(--peach); outline-offset: 3px; }
.compare__labels {
  position: absolute;
  inset: auto 0 14px 0;
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}
.compare__labels span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.66);
  backdrop-filter: blur(8px);
  color: #f3f1ec;
  font-size: 12.5px;
  font-weight: 500;
}
.hint {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
}
.hint::before { content: "↔  "; }

/* AI */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel__head h3 { font-family: var(--serif); font-size: 36px; letter-spacing: -0.01em; line-height: 1; }
.panel > p { color: var(--muted); font-size: 15.5px; max-width: 32em; }
.panel kbd { font-size: 12px; }
.shot {
  margin: 8px 0 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.shot--light { background: #fff; }
.panel .shot { margin-top: auto; }

.ai-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  margin-top: 16px;
}
.providers, .prompt-file {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.providers__label, .prompt-file__caption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.providers ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.providers li {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14.5px;
  background: rgba(255, 255, 255, 0.02);
}
.providers__note { color: var(--muted); font-size: 15px; }
.prompt-file__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--muted);
}
.prompt-file__name strong { color: var(--text); font-weight: 500; }
.prompt-file .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.prompt-file__body {
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-left: 2px solid rgba(255, 196, 166, 0.6);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
}
.prompt-file__caption { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 14.5px; color: var(--muted); }

/* Agents */
.section--agents::before {
  content: "";
  position: absolute;
  inset: 10% 0 10% 40%;
  z-index: -1;
  background: radial-gradient(50% 50% at 60% 50%, rgba(120, 110, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.split--reverse .split__text { order: 0; }
.agents-media { display: grid; gap: 0; position: relative; }
.terminal {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background: #0c0c0f;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #141418;
  color: var(--faint);
  font-size: 12.5px;
}
.terminal__bar .lights i { width: 11px; height: 11px; }
.terminal__body { padding: 22px 22px 22px; display: grid; gap: 18px; }
.agents-media .terminal__body { padding-bottom: 64px; }
.cmd__label {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}
.cmd__label::before { content: "# "; }
.cmd__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cmd__row code {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #e9e7ff;
  overflow-wrap: anywhere;
}
.cmd__row .prompt { color: var(--peach); margin-right: 4px; }
.cmd__row--block {
  margin-top: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0c0c0f;
  align-items: center;
}
.copy {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: 500 12.5px var(--sans);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.copy:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.copy.is-done { color: #9be8b4; border-color: rgba(155, 232, 180, 0.4); }
.shot--float {
  width: 86%;
  margin: -40px -12px 0 auto;
  position: relative;
  z-index: 1;
  transform: rotate(-1.2deg);
}
.shot--float figcaption {
  padding: 10px 14px;
  background: #f4f4f5;
  border-top: 1px solid #e4e4e7;
  color: #3e3f45;
  font-size: 13px;
}

/* Slides */
.slides-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: end;
}
.slides-head .display { margin-bottom: 0; max-width: none; }
.slides-window { margin-inline: auto; }
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.facts li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts__k { display: inline-flex; gap: 4px; color: var(--text); font-family: var(--mono); font-size: 13px; }
.facts__k kbd { font-size: 12px; }

/* Files */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.tile__icon {
  width: 30px; height: 30px;
  margin-bottom: 28px;
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: 15px; }
.tile--export { grid-column: span 1; }
.formats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.formats li {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 12px;
}
.tile__note { font-size: 13.5px !important; }

/* Performance */
.section--perf {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(124, 116, 255, 0.12), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  padding: 8px clamp(16px, 3vw, 40px);
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat dt { color: var(--muted); font-size: 15.5px; }
.stat dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(76px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.stat__n {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__u { font-style: italic; font-size: 0.42em; margin-left: 0.08em; color: var(--muted); letter-spacing: 0; }
.footnote {
  margin-top: 56px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}
.footnote a { color: var(--muted); text-underline-offset: 3px; }
.footnote a:hover { color: var(--text); }

/* Install */
.split--install { align-items: start; }
.steps { list-style: none; display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.step__n {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
}
.step h3 { font-size: 19px; margin: 8px 0 6px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15.5px; }
.step p strong { color: var(--text); font-weight: 500; }
.step a { color: var(--text); text-underline-offset: 3px; }

/* Final CTA */
.cta {
  position: relative;
  padding-block: clamp(110px, 14vw, 200px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(36% 46% at 50% 60%, rgba(124, 116, 255, 0.26), transparent 70%),
    radial-gradient(30% 30% at 62% 40%, rgba(255, 160, 120, 0.16), transparent 70%);
  filter: blur(10px);
}
.cta__inner { display: grid; justify-items: center; }
.cta__icon {
  width: 96px; height: 96px;
  margin-bottom: 32px;
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(120, 110, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cta__title { font-size: clamp(64px, 12vw, 176px); margin-bottom: 20px; }
.cta .lede { text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 36px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.footer__made { color: var(--faint); font-size: 14px; margin-right: auto; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer__links a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    transform 1.1s var(--ease) var(--d, 0ms),
    filter 0.9s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.js .shot--float[data-reveal].is-in { transform: rotate(-1.2deg); }

.js [data-split] .word {
  opacity: 0;
  transform: translate3d(0, 0.4em, 0) rotate(2deg);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease) var(--d, 0ms),
    transform 1.2s var(--ease) var(--d, 0ms),
    filter 1s var(--ease) var(--d, 0ms);
}
.js [data-split].is-in .word { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .split__text .display { max-width: 12em; }
  .card--demo, .card--shot, .card--wide, .card--keys { grid-column: span 12; }
  .ai-grid, .ai-foot { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li { padding-bottom: 22px; }
  .slides-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__inner { height: 58px; gap: 12px; }
  .hero { padding-top: 112px; }
  .hero__title { font-size: clamp(46px, 13.4vw, 64px); }
  .eyebrow { font-size: 12.5px; gap: 8px; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero__cta .btn { width: 100%; }
  .window { border-radius: 10px; }
  .window__bar { height: 28px; padding: 0 10px; }
  .lights { gap: 6px; }
  .lights i { width: 9px; height: 9px; }
  .window__title { font-size: 11px; }
  .card__media, .keys { padding: 18px 18px 0; }
  .demo { margin: 18px 18px 0; padding: 20px 18px 22px; font-size: 15.5px; min-height: 0; }
  .demo__h { font-size: 25px; }
  .card__text { padding: 20px 20px 22px; }
  .panel { padding: 20px; }
  .panel__head h3 { font-size: 30px; }
  .providers, .prompt-file { padding: 20px; }
  .terminal__body { padding: 16px; }
  .cmd__row code { font-size: 12.5px; }
  .shot--float { width: 100%; margin-top: 16px; transform: none; }
  .js .shot--float[data-reveal].is-in { transform: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile__icon { margin-bottom: 24px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-top: 36px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .step h3 { margin-top: 0; }
  .cmd__row--block { flex-direction: column; align-items: stretch; }
  .cmd__row--block .copy { align-self: flex-end; }
  .compare__labels span { font-size: 11px; padding: 4px 9px; }
  .compare__handle span { width: 32px; height: 32px; }
  .footer__made { margin-right: 0; width: 100%; order: 2; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .marquee__track { animation: none; }
  .js [data-reveal], .js [data-split] .word { opacity: 1; transform: none; filter: none; }
  .js .shot--float[data-reveal] { transform: rotate(-1.2deg); }
  .demo .caret { animation: none; }
}

/* Split headings: each word carries the gradient, so it survives the per-word transforms. */
.js [data-split] em { background: none; }
.js [data-split] em .word {
  font-style: italic;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.1em;
  margin-right: -0.1em;
}

/* Themes header: title left, copy right. */
.themes-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: end;
}
.themes-head .display { margin-bottom: 0; }
.compare { max-width: var(--max); margin-inline: auto; }

/* Theme picker swatches in the slides facts. */
.swatches { gap: 6px !important; padding-top: 4px; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; background: #455a64; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.swatches i:nth-child(2) { background: #fff8e1; }
.swatches i:nth-child(3) { background: #f4f2ee; background: linear-gradient(135deg, #fff 50%, #0288d1 50%); }

@media (max-width: 1020px) {
  .themes-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .agents-media .terminal__body { padding-bottom: 16px; }
  .shot--float { margin: 16px 0 0; width: 100%; }
}

.demo__task { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: #6b6c72; }
.demo__check {
  flex: none;
  width: 15px; height: 15px;
  border-radius: 4px;
  background: #2f6df6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.stat__approx { font-size: 0.5em; color: var(--muted); margin-right: 0.04em; vertical-align: 0.2em; }
.providers__key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
}
.providers__key svg { color: var(--peach); flex: none; }
