:root {
  color-scheme: dark;
  --bg: #111417;
  --bg-deep: #0b0e10;
  --panel: #171b1f;
  --panel-raised: #1d2227;
  --line: #2a3036;
  --line-soft: rgba(234, 223, 201, 0.1);
  --ink: #f3ead8;
  --ink-soft: #b8b0a1;
  --ink-dim: #7f7a71;
  --copper: #c78b42;
  --copper-bright: #edae61;
  --cream: #eadfc9;
  --green: #81b29a;
  --red: #df765f;
  --max-width: 1240px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 32px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 70% -10%, rgba(199, 139, 66, 0.1), transparent 33%),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  content: "";
  pointer-events: none;
}

::selection {
  background: rgba(199, 139, 66, 0.32);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--bg-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid var(--line-soft);
  background: rgba(17, 20, 23, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: max-content;
  color: var(--cream);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.primary-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.primary-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 650;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
}

.header-setup {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cream);
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.header-setup:hover {
  border-color: rgba(199, 139, 66, 0.48);
  background: rgba(199, 139, 66, 0.08);
  transform: translateY(-1px);
}

.header-setup[data-copied="true"] {
  border-color: rgba(129, 178, 154, 0.38);
  color: #b9d2c5;
}

.header-copy-glyph {
  position: relative;
  width: 15px;
  height: 17px;
  flex: 0 0 auto;
}

.header-copy-glyph::before,
.header-copy-glyph::after {
  position: absolute;
  width: 8px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: "";
}

.header-copy-glyph::before {
  top: 1px;
  left: 2px;
  opacity: 0.58;
}

.header-copy-glyph::after {
  top: 5px;
  left: 6px;
  background: var(--bg);
}

.icon-button {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.icon-button img {
  display: block;
  width: 20px;
  height: 20px;
  opacity: 0.78;
  transition: opacity 160ms ease;
}

.icon-button:hover {
  border-color: rgba(199, 139, 66, 0.48);
  background: rgba(199, 139, 66, 0.08);
  transform: translateY(-2px);
}

.icon-button:hover img {
  opacity: 1;
}

.hero {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 104px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--copper-bright);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(58px, 7.2vw, 98px);
  font-weight: 740;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.hero-summary {
  max-width: 650px;
  margin: 26px auto 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  justify-content: center;
  margin-top: 27px;
}

.button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-width: 164px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 740;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:disabled {
  cursor: default;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cream);
  color: var(--bg-deep);
  box-shadow: 0 12px 40px rgba(234, 223, 201, 0.09);
}

.hero-copy-action {
  min-width: 294px;
}

.hero-copy-action[data-copied="true"] {
  background: #b9d2c5;
}

.hero-agent-hint {
  min-height: 18px;
  margin: 12px auto 0;
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.hero-agent-hint[data-state="success"] {
  color: #9fc0af;
}

.hero-agent-hint[data-state="error"] {
  color: var(--red);
}

.button-primary:hover {
  background: #fff6e4;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: rgba(199, 139, 66, 0.48);
  background: rgba(199, 139, 66, 0.08);
}

.hero-visual {
  position: relative;
  width: min(980px, 100%);
  min-width: 0;
  margin: 58px auto 0;
}

.hero-visual::before {
  position: absolute;
  z-index: -1;
  inset: 12% 4% -6%;
  border-radius: 50%;
  background: rgba(199, 139, 66, 0.17);
  content: "";
  filter: blur(90px);
}

.agent-demo {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  isolation: isolate;
}

.studio-capture {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(234, 223, 201, 0.18);
  border-radius: 18px;
  background: #0e1215;
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.05);
  transition:
    border-color 180ms ease,
    transform 220ms ease;
}

.agent-demo:hover .studio-capture {
  border-color: rgba(237, 174, 97, 0.28);
  transform: translateY(-4px);
}

.studio-capture::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 24%),
    linear-gradient(to top, rgba(8, 11, 13, 0.58), transparent 38%);
  content: "";
  pointer-events: none;
}

.studio-capture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-live {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(129, 178, 154, 0.2);
  border-radius: 7px;
  background: rgba(12, 16, 19, 0.78);
  color: #b1c9bb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.capture-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(129, 178, 154, 0.8);
}

.capture-scan {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(237, 174, 97, 0.8),
    transparent
  );
  opacity: 0;
  box-shadow: 0 0 18px rgba(237, 174, 97, 0.55);
}

.agent-demo[data-busy="true"] .capture-scan {
  opacity: 1;
  animation: capture-scan 1.7s ease-in-out infinite;
}

.agent-dock {
  position: absolute;
  z-index: 6;
  right: 3%;
  bottom: 0;
  left: 3%;
}

.agent-work-status {
  display: none;
  min-height: 38px;
  padding: 0 15px;
  margin: 0 14px -9px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #3c3f41;
  border-radius: 18px 18px 0 0;
  background: #262728;
  color: #9d9f9f;
  font-size: 9px;
}

.agent-work-status i {
  color: #b7b8b8;
  font-size: 16px;
  font-style: normal;
}

.agent-demo[data-busy="true"] .agent-work-status {
  display: flex;
}

.agent-composer {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto 22px 31px;
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid #444648;
  border-radius: 22px;
  background: #2b2c2d;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.agent-add,
.agent-send {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.agent-add {
  background: transparent;
  color: #f1f1ef;
  font-size: 21px;
  font-weight: 300;
}

.agent-composer textarea {
  display: block;
  width: 100%;
  min-height: 34px;
  max-height: 46px;
  padding: 7px 0 0;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f1ef;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 11px;
  line-height: 1.4;
}

.agent-composer textarea::placeholder {
  color: #858687;
}

.agent-model {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #f0f0ee;
  font-size: 9px;
  white-space: nowrap;
}

.agent-model b {
  color: #ededeb;
  font-weight: 600;
}

.agent-model em {
  padding: 1px 5px;
  border: 1px solid #4c4e50;
  border-radius: 5px;
  color: #aaaead;
  font-size: 8px;
  font-style: normal;
  font-weight: 550;
}

.agent-model i {
  color: #8b8d8d;
  font-size: 10px;
  font-style: normal;
}

.agent-mic {
  position: relative;
  width: 12px;
  height: 17px;
  margin: 0 auto;
  border: 1.5px solid #f0f0ee;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.agent-mic::before {
  position: absolute;
  top: -4px;
  left: 3px;
  width: 4px;
  height: 11px;
  border: 1.5px solid #f0f0ee;
  border-radius: 5px;
  content: "";
}

.agent-mic::after {
  position: absolute;
  bottom: -4px;
  left: 5px;
  width: 1.5px;
  height: 4px;
  background: #f0f0ee;
  content: "";
}

.agent-send {
  background: #f4f3ef;
  color: #202122;
}

.agent-send b {
  font-size: 13px;
}

.agent-send:disabled {
  cursor: default;
  opacity: 1;
}

.agent-demo[data-busy="true"] .agent-send b {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #202122;
  color: transparent;
}

.story-section {
  position: relative;
  padding: 80px 0 120px;
  overflow: clip;
  --story-progress: 0.3333;
}

.story-section::before {
  position: absolute;
  z-index: -1;
  inset: 10% 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 139, 66, 0.1), transparent 30%),
    radial-gradient(circle at 50% 78%, rgba(129, 178, 154, 0.055), transparent 28%);
  content: "";
  pointer-events: none;
}

.story-intro {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto 88px;
  text-align: center;
}

.story-intro .eyebrow {
  justify-content: center;
}

.story-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 6.2vw, 84px);
  font-weight: 730;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.story-intro > p:last-child {
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.story-track {
  position: relative;
  display: grid;
}

.story-axis {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  overflow: hidden;
  background: rgba(234, 223, 201, 0.08);
  transform: translateX(-50%);
}

.story-axis i {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: calc(var(--story-progress) * 100%);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--copper-bright) 8%,
    var(--copper-bright) 92%,
    transparent
  );
  box-shadow: 0 0 18px rgba(237, 174, 97, 0.42);
  transition: height 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-stage,
.story-chapters {
  grid-area: 1 / 1;
}

.story-stage {
  position: sticky;
  z-index: 1;
  top: var(--header-height);
  display: flex;
  height: calc(100svh - var(--header-height));
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}

.story-frame {
  position: relative;
  width: min(58vw, 760px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(234, 223, 201, 0.18);
  border-radius: 20px;
  background: #0e1215;
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.5),
    0 0 0 12px rgba(11, 14, 16, 0.28);
}

.story-frame::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 24%),
    linear-gradient(to top, rgba(8, 11, 13, 0.28), transparent 36%);
  content: "";
  pointer-events: none;
}

.story-media {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition:
    opacity 520ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-media[data-active="true"] {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.story-media img,
.story-mobile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-stage-meta {
  display: flex;
  width: min(58vw, 760px);
  justify-content: space-between;
  padding: 14px 4px 0;
  color: var(--ink-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-chapters {
  position: relative;
  z-index: 2;
}

.story-chapter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(520px, 1.45fr) minmax(220px, 1fr);
  align-items: center;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  pointer-events: none;
}

.story-copy {
  width: min(280px, 100%);
  pointer-events: auto;
}

html[data-motion="ready"] .story-copy {
  opacity: 0.28;
  transform: translateY(24px);
  transition:
    opacity 420ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-motion="ready"] .story-chapter[data-active="true"] .story-copy {
  opacity: 1;
  transform: translateY(0);
}

.story-chapter-left .story-copy {
  grid-column: 1;
  justify-self: end;
  text-align: right;
}

.story-chapter-right .story-copy {
  grid-column: 3;
  justify-self: start;
}

.story-copy > span {
  color: var(--copper-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 13px 0 0;
  color: var(--cream);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 690;
  letter-spacing: -0.05em;
  line-height: 1;
}

.story-copy p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.story-copy small {
  display: block;
  margin-top: 20px;
  color: var(--ink-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.story-mobile-media {
  display: none;
}

.guide-section {
  padding-top: 36px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(24, 27, 29, 0.52);
}

.guide-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 228px;
  padding: 28px;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.guide-card:last-child {
  border-right: 0;
}

.guide-card:hover {
  background: rgba(199, 139, 66, 0.07);
  transform: translateY(-2px);
}

.guide-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--copper-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-meta b {
  color: var(--ink-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: inherit;
  font-weight: 600;
}

.guide-copy {
  align-self: end;
  padding: 38px 0 22px;
}

.guide-copy strong {
  display: block;
  color: var(--cream);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.guide-copy p {
  max-width: 280px;
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.62;
}

.guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
}

.guide-link b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  color: var(--cream);
  font-size: 12px;
  font-weight: 500;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.guide-card:hover .guide-link b {
  background: rgba(199, 139, 66, 0.18);
  transform: translateX(2px);
}

@keyframes capture-scan {
  0% {
    top: 3%;
    opacity: 0;
  }

  12%,
  84% {
    opacity: 1;
  }

  100% {
    top: 97%;
    opacity: 0;
  }
}

.section {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0;
}

.quick-start-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 48px));
  padding: clamp(34px, 5vw, 68px);
  margin: 18px auto 88px;
  border: 1px solid rgba(199, 139, 66, 0.25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 18%, rgba(199, 139, 66, 0.12), transparent 34%),
    linear-gradient(120deg, rgba(199, 139, 66, 0.08), transparent 42%),
    rgba(21, 24, 27, 0.78);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.quick-start-copy .eyebrow {
  margin-bottom: 12px;
}

.quick-start-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1;
}

.quick-start-copy > p:not(.eyebrow) {
  max-width: 420px;
  margin: 15px 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.quick-start-control {
  min-width: 0;
}

.quick-start-steps {
  display: grid;
  padding: 0;
  margin: 0 0 14px;
  counter-reset: none;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
}

.quick-start-steps li {
  display: grid;
  min-width: 0;
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(234, 223, 201, 0.1);
  border-radius: 12px;
  background: rgba(9, 12, 14, 0.52);
  gap: 9px;
  grid-template-columns: 24px minmax(0, 1fr);
}

.quick-start-steps li > b {
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(199, 139, 66, 0.35);
  border-radius: 7px;
  color: var(--cream);
  font-size: 10px;
  place-items: center;
}

.quick-start-steps li > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.quick-start-steps strong {
  color: var(--ink);
  font-size: 11px;
}

.quick-start-steps small {
  margin-top: 3px;
  color: var(--ink-dim);
  font-size: 9px;
  line-height: 1.4;
}

.quick-start-action {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(234, 223, 201, 0.18);
  border-radius: 15px;
  background: #101316;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.quick-start-action:hover {
  border-color: rgba(237, 174, 97, 0.48);
  background: #15191c;
  transform: translateY(-2px);
}

.quick-start-action:disabled {
  cursor: default;
}

.quick-start-action > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.quick-start-action strong {
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
}

.quick-start-action small {
  margin-top: 3px;
  color: var(--ink-dim);
  font-size: 10px;
}

.agent-destinations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 11px;
  gap: 6px;
}

.agent-destinations-label {
  margin-right: 2px;
  color: #777b7c;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-destination {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px 4px 6px;
  border: 1px solid rgba(234, 223, 201, 0.12);
  border-radius: 999px;
  background: rgba(245, 245, 242, 0.035);
  color: #aaa79f;
  font-size: 9px;
  font-weight: 650;
  gap: 5px;
  line-height: 1;
}

.agent-destination img {
  width: 13px;
  height: 13px;
  opacity: 0.72;
}

.quick-start-action b {
  min-width: 58px;
  padding: 7px 10px;
  border: 1px solid rgba(199, 139, 66, 0.35);
  border-radius: 8px;
  background: rgba(199, 139, 66, 0.09);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.quick-start-action[data-copied="true"] b {
  border-color: rgba(129, 178, 154, 0.38);
  background: rgba(129, 178, 154, 0.1);
  color: #b9d2c5;
}

.copy-glyph {
  position: relative;
  width: 34px;
  height: 34px;
}

.copy-glyph::before,
.copy-glyph::after {
  position: absolute;
  width: 15px;
  height: 18px;
  border: 1px solid #b9b2a5;
  border-radius: 4px;
  content: "";
}

.copy-glyph::before {
  top: 5px;
  left: 6px;
}

.copy-glyph::after {
  top: 10px;
  left: 11px;
  background: #101316;
}

.quick-start-control > p {
  padding-left: 2px;
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.quick-start-control > p:empty {
  display: none;
}

.quick-start-control > p[data-state="success"] {
  color: #9fc0af;
}

.quick-start-control > p[data-state="error"] {
  color: var(--red);
}

.setup-disclosure {
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 10px;
}

.setup-disclosure summary {
  width: fit-content;
  cursor: pointer;
}

.setup-disclosure pre {
  max-height: 190px;
  padding: 14px;
  margin: 10px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 11, 13, 0.75);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 58px;
}

html[data-motion="ready"] [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-motion="ready"] [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > .hero-summary,
.hero-copy > .hero-actions,
.hero-copy > .hero-agent-hint,
.hero-visual {
  animation: hero-rise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > h1 {
  animation-delay: 70ms;
}

.hero-copy > .hero-summary {
  animation-delay: 140ms;
}

.hero-copy > .hero-actions {
  animation-delay: 210ms;
}

.hero-copy > .hero-agent-hint {
  animation-delay: 240ms;
}

.hero-visual {
  animation-delay: 280ms;
}

.section-heading h2,
.output-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.section-heading > p:last-child,
.output-copy > p {
  color: var(--ink-soft);
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 80px;
  align-items: end;
  max-width: none;
}

.split-heading > p {
  max-width: 480px;
  margin: 0 0 5px;
  color: var(--ink-soft);
}

.output-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.output-copy {
  position: sticky;
  top: calc(var(--header-height) + 60px);
}

.output-copy > p:not(.eyebrow) {
  max-width: 450px;
  margin: 28px 0;
}

.text-link {
  display: inline-flex;
  gap: 26px;
  align-items: center;
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  color: var(--copper-bright);
}

.format-grid {
  border-top: 1px solid var(--line);
}

.format-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 132px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line);
  transition:
    background 160ms ease,
    padding 160ms ease;
}

.format-card:hover {
  padding-inline: 18px;
  background: rgba(199, 139, 66, 0.045);
}

.format-card > span {
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.format-card strong {
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.format-card p {
  margin: 3px 0 0;
  color: var(--ink-dim);
  font-size: 12px;
}

.format-card b {
  color: var(--ink-dim);
  font-weight: 500;
}

.source-banner {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max-width), calc(100% - 48px));
  padding: 52px 0;
  margin: 0 auto;
  border-block: 1px solid var(--line-soft);
}

.source-banner .eyebrow {
  margin-bottom: 10px;
}

.source-banner h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.source-banner p:last-child {
  margin: 8px 0 0;
  color: var(--ink-dim);
  font-size: 13px;
}

.source-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.source-actions .button {
  gap: 12px;
  min-width: 0;
}

.source-actions img {
  width: 18px;
  height: 18px;
  filter: brightness(0.18);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 130px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 11px;
}

.footer-brand {
  color: var(--ink-soft);
}

.site-footer > p {
  margin: 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-self: end;
}

.footer-links a:hover {
  color: var(--cream);
}

.docs-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px) 180px;
  gap: clamp(36px, 5vw, 74px);
  align-items: start;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: 54px 0 120px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100svh - var(--header-height) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.docs-home {
  display: block;
  padding: 4px 2px 20px;
  border-bottom: 1px solid var(--line);
}

.docs-home span {
  display: block;
  color: var(--copper-bright);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-home b {
  display: block;
  margin-top: 3px;
  color: var(--cream);
  font-size: 18px;
  letter-spacing: -0.035em;
}

.docs-nav section {
  margin-top: 24px;
  margin-bottom: 25px;
}

.docs-nav h2 {
  margin: 0 0 7px;
  color: #73797c;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav a {
  display: block;
  padding: 6px 9px;
  margin-left: -9px;
  border-left: 1px solid transparent;
  border-radius: 0 6px 6px 0;
  color: #92979a;
  font-size: 11px;
  line-height: 1.4;
}

.docs-nav a:hover {
  color: var(--cream);
}

.docs-nav a[aria-current="page"] {
  border-left-color: var(--copper);
  background: rgba(199, 139, 66, 0.07);
  color: var(--cream);
}

.docs-mobile-nav {
  display: none;
}

.doc-article {
  min-width: 0;
}

.doc-breadcrumb {
  display: flex;
  gap: 8px;
  margin: 1px 0 20px;
  color: var(--ink-dim);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-breadcrumb a:hover {
  color: var(--copper-bright);
}

.doc-article > h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.doc-article h2 {
  padding-top: 30px;
  margin: 56px 0 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 28px;
  font-weight: 690;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.doc-article h3 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.doc-article h4 {
  margin: 28px 0 10px;
  color: var(--cream);
  font-size: 15px;
}

.doc-article p,
.doc-article li {
  color: #aaa79f;
  font-size: 14px;
  line-height: 1.78;
}

.doc-article p {
  margin: 14px 0;
}

.doc-article strong {
  color: var(--cream);
}

.doc-article a {
  color: var(--copper-bright);
  text-decoration: underline;
  text-decoration-color: rgba(237, 174, 97, 0.28);
  text-underline-offset: 3px;
}

.doc-article p:has(> a > img) {
  margin: 26px 0 18px;
}

.doc-article a:has(> img) {
  display: block;
  text-decoration: none;
}

.doc-article a > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  object-fit: cover;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.doc-article a:hover > img {
  border-color: rgba(199, 139, 66, 0.48);
  transform: translateY(-2px);
}

.doc-article ul,
.doc-article ol {
  padding-left: 24px;
}

.doc-article li {
  margin: 7px 0;
  padding-left: 4px;
}

.doc-article li::marker {
  color: var(--copper);
}

.doc-article blockquote {
  padding: 8px 0 8px 18px;
  margin: 24px 0;
  border-left: 2px solid var(--copper);
}

.doc-article blockquote p {
  color: var(--cream);
}

.doc-article code {
  padding: 2px 5px;
  border: 1px solid rgba(234, 223, 201, 0.1);
  border-radius: 5px;
  background: #171c20;
  color: #d7b98f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
}

.doc-article pre {
  position: relative;
  padding: 20px;
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1013;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.doc-article pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #c9c3b8;
  font-size: 11px;
  line-height: 1.75;
}

.copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #171b1f;
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 9px;
}

.copy-code:hover {
  color: var(--cream);
}

.doc-article table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 12px;
}

.doc-article th,
.doc-article td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-article th {
  background: var(--panel);
  color: var(--cream);
  font-weight: 670;
}

.doc-article td {
  color: var(--ink-soft);
}

.doc-article hr {
  height: 1px;
  margin: 45px 0;
  border: 0;
  background: var(--line);
}

.doc-end {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 70px;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 10px;
}

.doc-end a {
  color: var(--ink-soft);
  text-decoration: none;
}

.page-toc {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  max-height: calc(100svh - var(--header-height) - 70px);
  overflow: auto;
}

.page-toc p {
  margin: 0 0 12px;
  color: #71777b;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-toc a {
  display: block;
  padding: 4px 0;
  color: #73797c;
  font-size: 10px;
  line-height: 1.45;
}

.page-toc a:hover,
.page-toc a[aria-current="true"] {
  color: var(--cream);
}

.page-toc .toc-level-3 {
  padding-left: 10px;
}

.page-toc .toc-level-4 {
  padding-left: 20px;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(800px, calc(100% - 48px));
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
}

.not-found h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.not-found > p:not(.eyebrow) {
  color: var(--ink-soft);
}

@media (max-width: 1120px) {
  .hero {
    padding-top: 60px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero h1 {
    font-size: clamp(58px, 10vw, 92px);
  }

  .hero-visual {
    width: min(900px, 100%);
    margin-top: 48px;
  }

  .studio-capture {
    transform: none;
  }

  .docs-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 42px;
  }

  .page-toc {
    display: none;
  }

  .split-heading,
  .output-section,
  .quick-start-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .split-heading > p {
    max-width: 620px;
  }

  .output-copy {
    position: static;
  }
}

@media (max-width: 900px) {
  .story-section {
    padding: 70px 0 100px;
  }

  .story-intro {
    margin-bottom: 62px;
  }

  .story-track {
    display: block;
  }

  .story-axis,
  .story-stage {
    display: none;
  }

  .story-chapter {
    display: block;
    width: min(760px, calc(100% - 48px));
    min-height: 0;
    margin-bottom: 82px;
  }

  .story-chapter:last-child {
    margin-bottom: 0;
  }

  .story-mobile-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(234, 223, 201, 0.16);
    border-radius: 16px;
    background: #0e1215;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  }

  .story-copy,
  .story-chapter-left .story-copy,
  .story-chapter-right .story-copy {
    width: min(580px, 100%);
    margin: 25px auto 0;
    text-align: left;
  }

  html[data-motion="ready"] .story-copy {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }

  .primary-nav {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-setup {
    height: 34px;
    padding-inline: 9px;
    font-size: 10px;
  }

  .hero,
  .section,
  .quick-start-section,
  .site-footer,
  .docs-shell {
    width: min(100% - 32px, var(--max-width));
  }

  .hero {
    padding: 48px 0 78px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-summary {
    font-size: 15px;
  }

  .hero-visual {
    margin-top: 34px;
  }

  .agent-demo {
    min-height: 0;
  }

  .studio-capture {
    width: 100%;
  }

  .agent-dock {
    right: 2%;
    left: 2%;
  }

  .section {
    padding: 92px 0;
  }

  .quick-start-section {
    gap: 28px;
    padding: 24px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-card:last-child {
    border-bottom: 0;
  }

  .source-banner {
    width: min(100% - 32px, var(--max-width));
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .site-footer > p {
    text-align: left;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-self: start;
  }

  .docs-shell {
    display: block;
    padding-top: 24px;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-mobile-nav {
    display: block;
    margin-bottom: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
  }

  .docs-mobile-nav summary {
    display: flex;
    justify-content: space-between;
    padding: 11px 13px;
    color: var(--cream);
    cursor: pointer;
    font-size: 12px;
    font-weight: 680;
    list-style: none;
  }

  .docs-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .docs-mobile-nav[open] summary {
    border-bottom: 1px solid var(--line);
  }

  .docs-mobile-nav > div {
    max-height: 56vh;
    padding: 18px;
    overflow: auto;
  }

  .doc-article > h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .doc-article table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .studio-capture {
    border-radius: 12px;
  }

  .agent-dock {
    right: 1%;
    left: 1%;
  }

  .agent-composer {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 7px;
    min-height: 56px;
    border-radius: 18px;
  }

  .agent-add,
  .agent-send {
    width: 28px;
    height: 28px;
  }

  .agent-model,
  .agent-mic {
    display: none;
  }

  .agent-composer textarea {
    min-height: 32px;
    font-size: 11px;
  }

  .quick-start-section {
    padding: 18px;
  }

  .quick-start-action {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
  }

  .quick-start-action b {
    grid-column: 2;
    justify-self: start;
  }

  .quick-start-steps {
    grid-template-columns: 1fr;
  }

  .quick-start-steps li {
    min-height: 0;
  }

  .format-card {
    grid-template-columns: 32px 1fr auto;
  }

  .source-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .source-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
