.op-parse {
  --op: var(--blue);
  --op-soft: var(--blue-soft);
  --op-line: var(--blue-line);
}
.op-extract {
  --op: var(--amber);
  --op-soft: var(--amber-soft);
  --op-line: var(--amber-line);
}
.op-index {
  --op: var(--teal);
  --op-soft: var(--teal-soft);
  --op-line: var(--teal-line);
}
.op-generate {
  --op: var(--green);
  --op-soft: var(--green-soft);
  --op-line: var(--green-line);
}
.transform-home .hero {
  padding: 112px 0 120px;
}
.transform-home h1 {
  font-size: clamp(45px, 6.2vw, 76px);
}
.transform-home .intro {
  max-width: 690px;
  font-size: 18px;
}
.transform-home .hero > .eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.beta-label {
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
}
.hero-demo {
  margin: 80px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.demo-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.demo-toolbar span:last-child {
  letter-spacing: 0;
}
.hero-flow {
  display: grid;
  grid-template-columns: 1fr 118px 1fr;
  align-items: start;
  gap: 28px 24px;
  padding: 52px 48px 44px;
  background-image: radial-gradient(#dcd5e1 1px, transparent 1px);
  background-size: 18px 18px;
}
.demo-source {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: center;
  grid-column: 1;
  grid-row: 1 / span 3;
  height: 100%;
}
.demo-artifact {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: center;
}
.file-label {
  font-family: monospace;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.output-label {
  color: var(--op);
}
.file-label span {
  font-family: Inter, sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
}
.scan-page {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 12px 32px rgb(45 28 49 / 12%);
}
.clean-page {
  background: #fff;
  color: #2b2530;
  padding: 18px 20px;
  border-radius: 3px;
  border: 1px solid var(--op-line);
  box-shadow: 0 12px 32px rgb(45 28 49 / 10%);
}
.clean-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.clean-kicker {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.clean-no {
  font-family: monospace;
  font-size: 11px;
  color: var(--op);
}
.clean-title {
  display: block;
  font-family: 'Season Mix', Georgia, serif;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 400;
  line-height: 1.25;
  margin-top: 14px;
}
.clean-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}
.clean-meta b {
  font-weight: 500;
  color: #2b2530;
}
.clean-section {
  display: block;
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.clean-fields {
  margin: 8px 0 0;
  display: grid;
  gap: 5px;
}
.clean-fields > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.clean-fields > div:last-child {
  border-bottom: 0;
}
.clean-fields dt {
  color: var(--muted);
}
.clean-fields dd {
  margin: 0;
  text-align: right;
}
.json-card {
  border: 1px solid var(--op-line);
  border-radius: 5px;
  background: var(--op-soft);
  padding: 14px 16px;
}
.json-card pre {
  margin: 0;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.7;
  color: #7a4d15;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.flow-lane {
  display: grid;
  align-self: center;
  justify-items: center;
  gap: 6px;
  color: var(--op);
  font-size: 9px;
  letter-spacing: 1px;
}
.lane-arrow {
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
}
.ask-card {
  border: 1px solid var(--op-line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgb(45 28 49 / 10%);
}
.ask-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.ask-mark {
  display: block;
  width: 14px;
  height: 14px;
}
.format-chips {
  display: flex;
  gap: 6px;
}
.format-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-family: monospace;
  font-size: 10px;
  color: var(--muted);
}
.format-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.format-chip.word svg {
  color: #2b579a;
}
.format-chip.ppt svg {
  color: #c43e1c;
}
.ask-name {
  color: var(--ink);
  font-weight: 500;
  font-size: 11px;
}
.ask-scope {
  margin-left: auto;
  font-family: monospace;
  font-size: 9px;
}
.ask-question {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.ask-answer {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
}
.ask-citation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 9px;
  border: 1px solid var(--op-line);
  border-radius: 20px;
  background: var(--op-soft);
  color: var(--op);
  font-family: monospace;
  font-size: 9px;
}
.ask-citation svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.operation-heading {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
}
.transform-home .api-title {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: Inter, Arial, sans-serif;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.15;
  margin: 0;
}
.api-title svg {
  flex-shrink: 0;
  color: var(--op);
  width: 30px;
  height: 30px;
}
.operation-heading > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 16px;
}
.operation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.operation-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 64px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
  min-width: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.operation-copy > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 360px;
}
.operation-diagram {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  min-width: 0;
}
.code-sheet,
.source-sheet,
.source-formats,
.index-shelf,
.document-batch {
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.diagram-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.code-sheet pre {
  font-family: monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--op);
  margin: 12px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.down-arrow {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 22px;
  padding: 8px;
}
.format-row,
.data-row {
  display: flex;
  gap: 6px;
  min-height: 44px;
}
.format-row span,
.data-row span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 4px;
  background: var(--op-soft);
  border: 1px solid var(--op-line);
  border-radius: 5px;
  font-size: 11px;
  color: var(--op);
}
.format-row svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.fmt-word svg {
  color: #2b579a;
}
.fmt-ppt svg {
  color: #c43e1c;
}
.source-formats {
  display: grid;
  align-content: space-between;
}
.input-row {
  display: flex;
  gap: 6px;
}
.input-row span {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-subtle);
  font-family: monospace;
  font-size: 12px;
  color: var(--muted);
}
.index-shelf {
  display: grid;
  align-content: space-between;
}
.index-stack {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  align-items: end;
}
.index-stack i {
  height: 62px;
  border-radius: 3px 3px 0 0;
  background:
    repeating-linear-gradient(color-mix(in srgb, var(--op) 32%, transparent) 0 2px, transparent 2px 6px),
    var(--surface-subtle);
  border: 1px solid var(--op-line);
}
.index-stack i:nth-child(2n) {
  height: 74px;
}
.search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 5px;
  background: var(--op-soft);
  border: 1px solid var(--op-line);
  color: var(--op);
  font-size: 11px;
}
.search-query {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
}
.search-query svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.search-result strong {
  font-weight: 500;
}
.source-lines {
  display: grid;
  gap: 5px;
  margin: 14px 0 10px;
}
.source-lines i {
  height: 3px;
  width: 80%;
  background: color-mix(in srgb, var(--op) 62%, transparent);
}
.source-lines i:last-child {
  width: 60%;
}
.source-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  width: 70%;
}
.source-table i {
  height: 10px;
  background: color-mix(in srgb, var(--op) 28%, transparent);
}
.document-batch {
  display: grid;
  gap: 7px;
  font-family: monospace;
  font-size: 10px;
}
.document-batch span {
  padding: 5px 8px;
  border-left: 2px solid color-mix(in srgb, var(--op) 45%, transparent);
  background: var(--surface-subtle);
}
.document-batch .selected-field {
  color: var(--op);
  border-color: var(--op);
}
.extracted-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 5px;
  background: var(--op-soft);
  border: 1px solid var(--op-line);
  font-family: monospace;
  font-size: 11px;
  color: var(--op);
}
.operation-diagram figcaption {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  padding-top: 16px;
  line-height: 1.6;
}
.embed-feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
  margin-top: 48px;
  padding: 64px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.embed-copy h3 {
  font-family: 'Season Mix', Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  margin: 22px 0 18px;
}
.embed-copy > p:not(.number) {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.editor-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}
.editor-types li {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 11px;
}
.embed-diagram {
  margin: 0;
  min-width: 0;
}
.app-window {
  border: 1px solid #c9c1cd;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-titlebar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.app-dots {
  font-size: 7px;
  letter-spacing: 1px;
  color: #81747e;
}
.react-label {
  margin-left: auto;
  color: var(--accent);
}
.app-workspace {
  display: flex;
  padding: 15px;
  gap: 15px;
}
.app-sidebar {
  width: 62px;
  flex-shrink: 0;
  font-size: 8px;
  color: var(--muted);
  padding-top: 5px;
}
.app-sidebar i {
  display: block;
  background: #c9c1cd;
  width: 80%;
  height: 4px;
  margin-top: 15px;
  border-radius: 2px;
}
.embedded-editor {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface-subtle);
}
.editor-toolbar,
.editor-status {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  font-size: 8px;
  color: var(--accent);
  background: var(--accent-soft);
}
.editor-stage {
  padding: 22px 18px;
}
.editor-page {
  background: #eee9e3;
  color: #3f343c;
  min-height: 148px;
  padding: 14px;
  position: relative;
}
.editor-page > span {
  font-size: 6px;
  letter-spacing: 1px;
}
.editor-page strong {
  display: block;
  font-family: 'Season Mix', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  outline: 1px solid #ad2283;
  padding: 4px;
  margin-top: 12px;
  position: relative;
}
.editor-page strong::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  right: -3px;
  bottom: -3px;
  background: white;
  border: 1px solid #ad2283;
}
.editor-page-lines {
  width: 48%;
  margin-top: 22px;
}
.editor-page-lines i {
  display: block;
  height: 3px;
  background: #9c9099;
  margin-top: 6px;
}
.editor-shape {
  position: absolute;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #b765a3;
  right: 24px;
  bottom: 18px;
}
.embed-diagram figcaption {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-top: 14px;
}
.small-features {
  margin-top: 112px;
}
.small-features .operation-heading {
  border-bottom: 1px solid var(--line);
}
.small-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
}
.small-feature-grid h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
}
.small-feature-grid h3::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--plum);
}
.small-feature-grid li:nth-child(5n + 1) h3::before {
  background: var(--blue);
}
.small-feature-grid li:nth-child(5n + 2) h3::before {
  background: var(--amber);
}
.small-feature-grid li:nth-child(5n + 3) h3::before {
  background: var(--teal);
}
.small-feature-grid li:nth-child(5n + 4) h3::before {
  background: var(--green);
}
.small-feature-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.closing-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 112px 0 64px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.closing-cta h2 {
  font-size: 34px;
  margin: 16px 0;
}
.closing-cta p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
}
.closing-cta .button {
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .embed-feature,
  .operation-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px;
  }
  .operation-copy > p {
    max-width: 540px;
  }
  .operation-diagram {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }
  .embed-diagram {
    width: 100%;
  }
  .operation-heading {
    align-items: center;
  }
  .hero-flow {
    padding: 28px 24px;
    gap: 20px 14px;
    grid-template-columns: 1fr 62px 1fr;
  }
  .clean-page {
    padding: 14px;
  }
  .ask-card {
    padding: 14px;
  }
  .json-card {
    padding: 12px;
  }
  .small-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
  .operation-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .transform-home .api-title {
    font-size: 34px;
    gap: 16px;
    letter-spacing: -1px;
  }
  .api-title svg {
    width: 26px;
    height: 26px;
  }
  .embed-feature {
    padding: 24px;
  }
  .embed-copy h3 {
    font-size: 32px;
  }
  .app-workspace {
    padding: 10px;
  }
  .app-sidebar {
    display: none;
  }
  .app-dots {
    display: none;
  }
  .editor-stage {
    padding: 14px 10px;
  }
  .editor-toolbar {
    flex-wrap: wrap;
  }
  .transform-home .hero {
    padding: 64px 0 80px;
  }
  .transform-home h1 {
    font-size: 46px;
  }
  .transform-home .intro {
    font-size: 16px;
  }
  .hero-demo {
    margin-top: 40px;
  }
  .hero-flow {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .clean-title {
    font-size: 20px;
  }
  .demo-source,
  .demo-artifact {
    grid-column: 1;
    grid-row: auto;
  }
  .flow-lane {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  .lane-arrow {
    display: inline-block;
    transform: rotate(90deg);
    font-size: 24px;
  }
  .demo-toolbar {
    padding: 14px;
    font-size: 8px;
  }
  .operation-heading {
    display: block;
    padding-bottom: 32px;
  }
  .small-features {
    margin-top: 72px;
  }
  .small-feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }
  .operation-card {
    padding: 24px;
  }
  .operation-grid {
    gap: 32px;
  }
  .embed-feature {
    margin-top: 32px;
  }
  .operation-diagram {
    padding: 16px;
  }
  .code-sheet pre {
    font-size: 10px;
  }
  .code-sheet,
  .source-sheet,
  .document-batch {
    padding: 14px;
  }
  .operation-card .operation-diagram {
    width: 100%;
  }
  .closing-cta {
    display: block;
    margin-top: 72px;
    padding-top: 40px;
  }
  .closing-cta h2 {
    font-size: 32px;
  }
  .closing-cta .button {
    margin-top: 16px;
  }
}
