:root {
  color: #17211b;
  background: #f5f2ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #17211b;
  --muted: #69726c;
  --paper: #f5f2ea;
  --paper-bright: #fffdf8;
  --green: #1e6b4d;
  --green-dark: #123d2e;
  --green-soft: #dce9df;
  --orange: #e7663c;
  --yellow: #efc65a;
  --line: rgb(23 33 27 / 0.15);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(23 33 27 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(23 33 27 / 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 64px 64px;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

.site-header,
main,
footer {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  justify-self: start;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  transform: rotate(45deg);
}

.brand-mark::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--orange);
  content: "";
  inset: 4px;
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a,
.header-action {
  color: #4d5751;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  color: var(--green);
}

.header-action {
  justify-self: end;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.55);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  gap: clamp(50px, 7vw, 96px);
  align-items: center;
  min-height: 710px;
  padding: 94px 0 104px;
}

.eyebrow,
.card-kicker,
.tour-label {
  margin: 0 0 17px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 26px;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(64px, 6.5vw, 96px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.062em;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 31px;
  color: #59635d;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action {
  color: #fff;
  background: var(--green);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgb(255 253 248 / 0.55);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: var(--paper-bright);
  transform: translateY(-2px);
}

.install-command {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #526058;
  background: rgb(255 253 248 / 0.55);
  font-size: 12px;
}

.install-command span {
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 900;
}

.install-command code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-code {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 18px;
  color: #edf6ef;
  background: #16231c;
  box-shadow: 24px 30px 0 #d7dfd6, 0 35px 80px rgb(20 35 26 / 0.2);
  transform: rotate(1deg);
}

.hero-code::after {
  position: absolute;
  right: -62px;
  bottom: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgb(239 198 90 / 0.11);
  content: "";
}

.window-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: #91a59a;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.window-bar > span:last-child {
  justify-self: end;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #607269;
}

.window-dots i:first-child {
  background: var(--orange);
}

.window-dots i:nth-child(2) {
  background: var(--yellow);
}

.hero-code pre {
  position: relative;
  z-index: 1;
  min-height: 474px;
  margin: 0;
  padding: 34px 38px;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.8;
  white-space: pre-wrap;
}

.syntax-call {
  color: #74d7a8;
}

.syntax-method {
  color: #f2cd76;
}

.syntax-string {
  color: #f29c82;
}

.syntax-number {
  color: #a9c8ff;
}

.syntax-comment {
  color: #748a7e;
}

.code-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 38px 18px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #a5b6ac;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.code-legend span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.code-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-create {
  background: #74d7a8;
}

.legend-control {
  background: #f2cd76;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip p {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 24px 22px;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.proof-strip p:first-child {
  padding-left: 0;
}

.proof-strip p:last-child {
  border-right: 0;
}

.proof-strip strong {
  margin-bottom: 5px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
}

.proof-strip span {
  color: var(--muted);
  font-size: 11px;
}

.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  gap: 48px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 44px;
}

.section-heading h2,
.outputs h2,
.final-cta h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 370px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.narrow-heading h2 {
  max-width: 690px;
}

.tour-card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-bright);
  box-shadow: 0 28px 80px rgb(33 49 39 / 0.1);
}

.tour-preview,
.theme-preview {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0b1110;
}

.tour-preview {
  aspect-ratio: 16 / 9;
  border-right: 1px solid var(--line);
}

.tour-preview::after,
.theme-preview::after {
  position: absolute;
  content: "";
  inset: 0;
}

.tour-preview iframe,
.theme-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.preview-action {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgb(9 20 15 / 0.82);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
}

.tour-copy {
  display: flex;
  padding: clamp(28px, 4vw, 52px);
  flex-direction: column;
  justify-content: center;
}

.tour-copy h3,
.capability-card h3 {
  margin-bottom: 13px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.tour-copy > p:not(.tour-label),
.capability-card > p,
.ai-card > div > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.check-list,
.signal-list {
  display: grid;
  gap: 11px;
  margin: 7px 0 25px;
  padding: 0;
  color: #4f5c54;
  font-size: 12px;
  list-style: none;
}

.check-list li::before {
  margin-right: 9px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.text-link {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.language-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-bright);
  box-shadow: 0 28px 75px rgb(29 45 35 / 0.1);
}

.language-source-panel,
.language-output-panel {
  min-width: 0;
}

.language-source-panel {
  color: #ecf7ef;
  background: #16231c;
}

.language-output-panel {
  border-left: 1px solid var(--line);
  background: #e7e4db;
}

.panel-bar {
  display: flex;
  min-height: 48px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: #8ea297;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-bar span:first-child {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.panel-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #74d7a8;
}

.panel-bar-light {
  border-color: var(--line);
  color: #657169;
  background: var(--paper-bright);
}

.panel-bar-light i {
  background: var(--orange);
}

.panel-bar a {
  color: var(--green);
  font-weight: 850;
  text-decoration: none;
}

.source-boundary {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 26px 0;
  padding: 10px 12px;
  border: 1px solid rgb(231 102 60 / 0.35);
  border-radius: 7px;
  color: #d7e6dc;
  background: rgb(231 102 60 / 0.08);
  font-size: 9px;
}

.source-boundary span {
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  background: var(--orange);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-boundary b {
  font-weight: 650;
}

.language-source-panel pre {
  min-height: 444px;
  margin: 0;
  padding: 25px 27px 18px;
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.65;
  white-space: pre-wrap;
}

.source-object,
.source-region {
  display: inline-block;
  margin-left: -7px;
  padding: 0 7px;
  border-radius: 3px;
}

.source-object {
  background: rgb(116 215 168 / 0.1);
  box-shadow: inset 2px 0 #74d7a8;
}

.source-region {
  background: rgb(242 205 118 / 0.1);
  box-shadow: inset 2px 0 #f2cd76;
}

.source-key {
  display: flex;
  gap: 17px;
  padding: 14px 26px 17px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  color: #92a49a;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-key span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.source-key i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.key-slide {
  background: var(--orange);
}

.key-object {
  background: #74d7a8;
}

.key-region {
  background: #f2cd76;
}

.language-preview {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 28px;
  border: 1px solid rgb(23 33 27 / 0.25);
  border-radius: 9px;
  background: #d3d2cc;
  box-shadow: 10px 12px 0 rgb(23 33 27 / 0.1);
}

.language-preview::after {
  position: absolute;
  content: "";
  inset: 0;
}

.language-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.result-caption {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 28px 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-bright);
}

.result-caption > div {
  display: flex;
  padding: 17px;
  flex-direction: column;
}

.result-caption > div:first-child {
  border-right: 1px solid var(--line);
}

.result-caption strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.result-caption span {
  color: var(--muted);
  font-size: 8px;
}

.language-mappings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mapping-card {
  display: flex;
  min-width: 0;
  min-height: 300px;
  padding: 28px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 253 248 / 0.68);
}

.mapping-heading {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
}

.mapping-heading > span {
  padding-top: 3px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.mapping-heading h3 {
  margin-bottom: 8px;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.mapping-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.mapping-heading code {
  font-size: 0.92em;
}

.boundary-sequence {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.boundary-sequence > i {
  height: 12px;
  padding-left: 15px;
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
}

.boundary-slide {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border-radius: 7px;
  color: #fff;
  background: var(--green-dark);
}

.boundary-slide b {
  overflow: hidden;
  margin-right: auto;
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boundary-slide span {
  padding: 4px 6px;
  border-radius: 4px;
  color: #9fb7a9;
  background: rgb(255 255 255 / 0.08);
  font-family: var(--mono);
  font-size: 7px;
}

.boundary-slide-next {
  background: var(--green);
}

.layout-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.layout-gallery > div {
  min-width: 0;
}

.layout-gallery figure {
  display: grid;
  gap: 4px;
  height: 70px;
  margin: 0 0 7px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.layout-gallery figure i {
  display: block;
  border-radius: 2px;
  background: var(--green-soft);
}

.layout-gallery code {
  display: block;
  overflow: hidden;
  color: #566259;
  font-size: 7px;
  text-align: center;
  text-overflow: ellipsis;
}

.layout-split {
  grid-template-columns: 2fr 3fr;
}

.layout-split i:last-child {
  background: #edd9cc;
}

.layout-grid-demo {
  grid-template-columns: repeat(3, 1fr);
}

.layout-grid-demo i:nth-child(2) {
  background: #edd9cc;
}

.layout-canvas-demo {
  position: relative;
  display: block !important;
}

.layout-canvas-demo i {
  position: absolute;
  width: 30px;
  height: 18px;
}

.layout-canvas-demo i:first-child {
  top: 8px;
  left: 7px;
}

.layout-canvas-demo i:nth-child(2) {
  top: 25px;
  right: 7px;
  background: #edd9cc;
}

.layout-canvas-demo i:last-child {
  bottom: 7px;
  left: 20px;
  width: 20px;
  height: 10px;
  background: var(--yellow);
}

.object-control-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.controlled-object {
  display: flex;
  min-height: 92px;
  padding: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--green-soft);
}

.controlled-object span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
}

.controlled-object strong {
  color: var(--green);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 35px;
}

.modifier-list {
  display: grid;
  gap: 5px;
}

.modifier-list code {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #536057;
  background: var(--paper-bright);
  font-size: 7px;
}

.capability-code {
  overflow: auto;
  max-width: 100%;
  margin: 22px 0 0;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 10px;
  color: #eaf4ed;
  background: #16231c;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: clamp(30px, 4.3vw, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-bright);
}

.capability-card h3 {
  max-width: 500px;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 500;
}

.capability-card > p:not(.card-kicker) {
  max-width: 520px;
}

.typesetting-card {
  background: #19352a;
}

.typesetting-card .card-kicker,
.typesetting-card h3 {
  color: #f8f4ea;
}

.typesetting-card > p:not(.card-kicker) {
  color: #b8c9bf;
}

.formula-stage {
  display: grid;
  gap: 15px;
  margin: 34px 0 8px;
  padding: 23px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 12px;
  color: #fbf5e6;
  background: rgb(0 0 0 / 0.12);
  text-align: center;
}

.formula-stage span {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
}

.formula-stage code {
  color: #92bca4;
  font-size: 9px;
}

.typesetting-card .capability-code {
  grid-column: auto;
  margin-top: 12px;
  background: rgb(0 0 0 / 0.17);
}

.layout-card {
  background: #e9ddbd;
}

.layout-demo {
  position: relative;
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 9px;
  height: 180px;
  margin-top: 36px;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #f9f4e6;
  box-shadow: 11px 11px 0 rgb(23 33 27 / 0.16);
}

.demo-left,
.demo-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgb(23 33 27 / 0.35);
  border-radius: 6px;
  color: #5a5c4f;
  font-family: var(--mono);
  font-size: 10px;
}

.demo-right {
  align-items: flex-start;
  padding-top: 22px;
}

.demo-right i {
  position: absolute;
  right: 17px;
  bottom: 18px;
  left: 17px;
  height: 28px;
  border-radius: 4px;
  background: var(--green);
}

.demo-right i:last-child {
  bottom: 54px;
  width: 54%;
  background: var(--orange);
}

.tailwind-card {
  background:
    radial-gradient(circle at 90% 12%, rgb(30 107 77 / 0.12), transparent 220px),
    var(--paper-bright);
}

.tailwind-card .capability-code {
  grid-column: auto;
  margin-top: 55px;
  padding: 27px;
  box-shadow: 11px 11px 0 var(--green-soft);
  font-size: 12px;
}

.ai-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  min-height: 680px;
  color: #fff;
  background: #db633d;
}

.ai-card .card-kicker,
.ai-card h3 {
  color: #fff8f3;
}

.ai-card > div > p {
  color: #ffe1d6;
}

.signal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
  margin-top: 24px;
  color: #fff4ed;
}

.signal-list li {
  padding-top: 10px;
  border-top: 1px solid rgb(255 255 255 / 0.28);
}

.ai-guide-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 28px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.ai-guide-link:hover {
  text-decoration: underline;
}

.ai-demo-column {
  display: grid;
  gap: 18px;
}

.prompt-card {
  padding: 28px;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 14px;
  color: #38231d;
  background: #fff8f1;
  box-shadow: 14px 14px 0 rgb(70 26 14 / 0.15);
  transform: rotate(1.5deg);
}

.ai-example-card {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 14px;
  color: var(--ink);
  background: #fff8f1;
  box-shadow: 14px 14px 0 rgb(70 26 14 / 0.15);
}

.ai-example-preview {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid #e8d5c9;
  background: #e7e5df;
}

.ai-example-preview::after {
  position: absolute;
  content: "";
  inset: 0;
}

.ai-example-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.ai-example-preview > span {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgb(21 37 28 / 0.86);
  font-size: 9px;
  font-weight: 800;
}

.ai-example-copy {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.ai-example-copy > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.ai-example-copy span {
  margin-bottom: 5px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ai-example-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-example-links {
  display: flex;
  gap: 8px;
}

.ai-example-links a {
  padding: 7px 9px;
  border: 1px solid #dfcbbf;
  border-radius: 999px;
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.prompt-card > span {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ai-card .prompt-card > p {
  margin: 17px 0 25px;
  color: #38231d;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.35;
}

.prompt-result {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
  background: #e9f1e9;
  font-size: 10px;
}

.prompt-result i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.prompt-result b {
  margin-left: auto;
  color: var(--green);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.theme-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper-bright);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.theme-card:hover {
  box-shadow: 0 20px 55px rgb(26 43 33 / 0.12);
  transform: translateY(-3px);
}

.theme-card-wide {
  grid-column: 1 / -1;
}

.theme-preview {
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}

.theme-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
}

.theme-copy span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-copy h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.theme-copy > a {
  display: grid;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  place-items: center;
  text-decoration: none;
}

.outputs {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.outputs h2 {
  margin-bottom: 27px;
}

.output-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.output-pipeline {
  display: grid;
  grid-template-columns: 0.8fr 54px 1fr;
  align-items: stretch;
}

.source-node,
.output-nodes > div {
  display: flex;
  min-width: 0;
  padding: 23px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-bright);
}

.source-node {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 10px 10px 0 var(--green-soft);
}

.source-node span,
.output-nodes span {
  margin-bottom: 18px;
  color: #8bc2a6;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.source-node strong,
.output-nodes strong {
  margin-bottom: 8px;
  font-size: 21px;
}

.source-node code,
.output-nodes small {
  overflow: hidden;
  color: #9eb3a7;
  font-family: var(--mono);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-line {
  position: relative;
}

.pipeline-line::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.pipeline-line i {
  position: absolute;
  right: 4px;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  transform: rotate(45deg);
}

.pipeline-line i:first-child {
  top: calc(17% - 3px);
}

.pipeline-line i:nth-child(2) {
  top: calc(50% - 3px);
}

.pipeline-line i:last-child {
  top: calc(83% - 3px);
}

.output-nodes {
  display: grid;
  gap: 8px;
}

.output-nodes > div {
  position: relative;
  padding: 17px 20px;
}

.output-nodes span {
  position: absolute;
  top: 13px;
  right: 14px;
  margin: 0;
  color: var(--orange);
}

.output-nodes strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.output-nodes small {
  color: var(--muted);
}

.final-cta {
  display: flex;
  min-height: 500px;
  padding: 90px 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.final-cta h2 {
  max-width: 850px;
  margin-bottom: 34px;
  font-size: clamp(54px, 7vw, 88px);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 45px 0 52px;
  color: var(--muted);
  font-size: 11px;
}

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

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

footer > div {
  display: flex;
  gap: 18px;
  justify-self: end;
}

footer > div a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  /* The in-page anchors are reachable by scrolling, but the documentation is a
     different destination, so it has to survive on a phone. */
  nav a:not(.nav-docs) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy-block {
    max-width: 760px;
  }

  .hero-code {
    max-width: 760px;
  }

  .tour-card,
  .outputs {
    grid-template-columns: 1fr;
  }

  .language-stage {
    grid-template-columns: 1fr;
  }

  .language-output-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .tour-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ai-card {
    grid-template-columns: 1fr;
  }

  .output-pipeline {
    max-width: 650px;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 30px, 1240px);
  }

  .site-header {
    min-height: 68px;
  }

  .header-action {
    padding: 8px 11px;
  }

  .hero {
    gap: 55px;
    padding: 67px 0 80px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .hero-code {
    box-shadow: 10px 14px 0 #d7dfd6;
    transform: none;
  }

  .hero-code pre {
    min-height: 0;
    padding: 25px 20px;
    font-size: 10px;
    line-height: 1.7;
  }

  .code-legend {
    padding: 14px 20px 16px;
  }

  .proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-strip p,
  .proof-strip p:first-child {
    padding: 18px 12px;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip p:nth-child(2) {
    border-right: 0;
  }

  .proof-strip p:nth-child(n + 3) {
    border-bottom: 0;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .section-heading h2,
  .outputs h2 {
    font-size: clamp(39px, 12vw, 55px);
  }

  .tour-copy {
    padding: 30px 24px 34px;
  }

  .preview-action {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .language-mappings,
  .capability-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .language-source-panel pre {
    min-height: 0;
    padding-inline: 20px;
    font-size: 9px;
  }

  .source-boundary {
    margin-inline: 20px;
  }

  .source-key {
    gap: 8px 14px;
    padding-inline: 20px;
    flex-wrap: wrap;
  }

  .language-preview {
    margin: 18px;
    box-shadow: 6px 7px 0 rgb(23 33 27 / 0.1);
  }

  .result-caption {
    grid-template-columns: 1fr;
    margin: 0 18px 18px;
  }

  .result-caption > div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mapping-card {
    min-height: 270px;
  }

  .capability-card {
    min-height: 0;
    padding: 32px 24px;
  }

  .ai-card,
  .theme-card-wide {
    grid-column: auto;
  }

  .signal-list {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    transform: none;
  }

  .output-pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline-line {
    height: 40px;
  }

  .pipeline-line::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: auto;
  }

  .pipeline-line i {
    right: auto;
    bottom: 5px;
    left: calc(50% - 3px);
    top: auto !important;
    transform: rotate(135deg);
  }

  .pipeline-line i:not(:last-child) {
    display: none;
  }

  .final-cta {
    min-height: 430px;
    padding-inline: 5px;
  }

  .final-cta h2 {
    font-size: clamp(48px, 15vw, 70px);
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  footer p {
    text-align: left;
  }

  footer > div {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
