/* Colors from the project's own banner: a deep indigo ground and its lavender. */
:root {
  --night: #10121c;
  --tile: #171a2a;
  --tile-2: #1f2338;
  --line: rgba(210, 212, 236, 0.12);
  --text: #eeeef4;
  --text-2: #a9abc0;
  --text-3: #9295ad;
  --lavender: #a89ce4;
  --lavender-deep: #9184d9;
  --lavender-soft: #cbc3f3;
  --code-bg: #0b0e1a;
  --ok: #6fd69c;
  --gradient: linear-gradient(90deg, #9184d9, #a89ce4 45%, #d8d2f8);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --page: 1080px;
  --gutter: 22px;
  --nav-height: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 12px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--lavender);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  letter-spacing: 0;
}

pre code {
  font-size: 1em;
}


/* Code colors from Tapetum Quantum; plain text keeps the block's own #c8d3f5. */
pre .k {
  color: #cd8ff9;
}

pre .f {
  color: #8ab4ff;
}

pre .s {
  color: #4de0d0;
}

pre .n {
  color: #ff9f45;
}

pre .p {
  color: #8e97bc;
}

pre .x {
  color: #ff6e9c;
}

pre .c {
  color: #787fa7;
}

pre .i {
  font-style: italic;
}

pre .b {
  font-weight: 600;
}


p code,
li code,
td code {
  overflow-wrap: anywhere;
}

.wrap {
  width: min(var(--page), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.center {
  text-align: center;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--night);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Navigation */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 18, 28, 0.76);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  color: var(--text);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--night);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pill:hover {
  background: var(--lavender-soft);
  text-decoration: none;
}

.pill:active {
  transform: scale(0.98);
}

.pill-small {
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.pill-large {
  padding: 13px 26px;
  font-size: 17px;
}

.pill svg {
  width: 18px;
  height: 18px;
}

.pill-small svg {
  width: 14px;
  height: 14px;
}

/* Sponsoring sits beside the main action, never above it: an outline in place of a fill. */
.pill-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(206, 212, 232, 0.28);
  color: var(--text);
}

.pill-ghost:hover {
  background: rgba(206, 212, 232, 0.08);
}

.pill-ghost svg {
  color: var(--lavender);
}

.sponsor {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
  padding: 9px 18px;
  font-size: 15px;
}

.sponsor svg {
  width: 16px;
  height: 16px;
}

.more {
  white-space: nowrap;
}

/* A sentence long enough to be a link line may wrap; a short call to action may not. */
.note .more {
  white-space: normal;
}

.more::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.3em;
  border-top: 0.11em solid currentColor;
  border-right: 0.11em solid currentColor;
  transform: translateY(-0.06em) rotate(45deg);
}

/* Type */
.eyebrow {
  margin: 0 0 8px;
  color: var(--lavender-soft);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.011em;
}

.headline {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 64px);
  font-weight: 600;
  line-height: 1.0625;
  letter-spacing: -0.009em;
  text-wrap: balance;
}

.lede {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--text-2);
  font-size: clamp(19px, 2.2vw, 21px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: 0.011em;
  text-wrap: pretty;
}

.lede strong {
  color: var(--text);
  font-weight: 600;
}

.center .lede {
  margin-inline: auto;
}

.gradient {
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.feature-head {
  max-width: 880px;
}

.feature-head.center {
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.divider {
  width: min(var(--page), 100% - 2 * var(--gutter));
  height: 1px;
  margin: 0 auto;
  border: 0;
  background: var(--line);
}

/* Hero */
.hero,
.closing {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero {
  padding: 72px 0 40px;
}

.hero::before,
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(145, 132, 217, 0.2), rgba(145, 132, 217, 0));
}

.closing::before {
  background: radial-gradient(ellipse closest-side at 50% 42%, rgba(145, 132, 217, 0.17), rgba(145, 132, 217, 0));
}

.hero .wrap,
.closing .wrap {
  position: relative;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7.6vw, 80px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.tagline {
  margin: 16px 0 0;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.006em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 700px;
  margin: 22px auto 0;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 30px;
  margin-top: 34px;
}

.actions .more {
  font-size: 19px;
}

.requirements {
  margin: 18px 0 0;
  color: var(--text-3);
  font-size: 14px;
  letter-spacing: -0.016em;
}

.command {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: var(--tile);
  box-shadow: 0 0 0 1px var(--line);
}

.command code {
  overflow-x: auto;
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
}

.command code::before {
  content: "$ ";
  color: var(--lavender);
}

.copy {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--tile-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.copy:hover {
  background: #2a2f47;
}

.copy.done {
  background: var(--lavender);
  color: var(--night);
}


.statement {
  padding: 120px 0 40px;
}

.statement p {
  max-width: 880px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-align: center;
  text-wrap: balance;
}

.statement strong {
  color: var(--text);
  font-weight: 600;
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.tile {
  grid-column: span 2;
  padding: 34px 32px 36px;
  border-radius: 24px;
  background: var(--tile);
  text-align: center;
}

.tile.span-3 {
  grid-column: span 3;
}

.tile-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
}

.figure {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.tile h3 {
  margin: 22px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.009em;
}

.tile p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.53;
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips button {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.chips button:hover {
  box-shadow: inset 0 0 0 1px rgba(210, 212, 236, 0.24);
  color: var(--text);
}

.chips button:active {
  transform: scale(0.97);
}

.chips button[aria-pressed="true"] {
  background: var(--lavender);
  box-shadow: none;
  color: var(--night);
  font-weight: 600;
}


/* Code keeps its lines: a wrapped Python line would read as two statements, so a block wider than its box scrolls. */
.code pre {
  overflow-x: auto;
  white-space: pre;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.code pre:focus-visible {
  outline-offset: -3px;
}

.code pre {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  color: #c8d3f5;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0;
}


.code {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--code-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.code figcaption {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}


.table-wrap {
  max-width: 880px;
  margin: 48px auto 0;
  overflow-x: auto;
  border-radius: 18px;
  background: var(--tile);
  box-shadow: 0 0 0 1px var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}

th,
td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

td {
  color: var(--text);
}

td + td {
  color: var(--text-2);
}


/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 32px;
  border-radius: 18px;
  background: var(--tile);
  text-align: center;
}

.cards h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.26;
}

.cards p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.53;
}


/* Tested */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  text-align: center;
}

.stat {
  padding: 30px 32px 32px;
  border-radius: 24px;
  background: var(--tile);
}

.stat h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.stat p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.53;
}


.note {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--text-2);
  font-size: 15px;
}

/* Questions */
.faq {
  max-width: 820px;
  margin: 56px auto 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 14px;
  background: linear-gradient(var(--lavender), var(--lavender)) center / 100% 1.6px no-repeat,
    linear-gradient(var(--lavender), var(--lavender)) center / 1.6px 100% no-repeat;
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--text-2);
  line-height: 1.55;
}

/* Closing and footer */
.closing {
  padding: 140px 0 120px;
}

.closing .lede {
  margin-inline: auto;
}

.closing .actions {
  margin-top: 28px;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  background: #0b0d16;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

footer li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 10px;
  vertical-align: -1px;
  background: rgba(255, 255, 255, 0.18);
}

footer a {
  color: var(--text-2);
}

footer p {
  margin: 0 0 10px;
}

footer p a {
  text-decoration: underline;
  text-decoration-color: rgba(167, 172, 188, 0.45);
  text-underline-offset: 3px;
}

footer .maker {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
}

footer .maker + nav ul {
  margin-top: 8px;
}


/* Only moved, never faded, so every line keeps its full contrast before it scrolls in. Tiles side by side arrive
   one after the other. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    transform: translateY(24px);
    transition: transform 0.9s var(--ease-out);
  }

  .js .reveal.shown {
    transform: none;
  }

  .js :is(.highlights > :nth-child(2), .highlights > :nth-child(4), .stats > :nth-child(even), .patterns > :nth-child(2)) {
    transition-delay: 0.08s;
  }

  .js .highlights > :nth-child(5) {
    transition-delay: 0.16s;
  }

  .js .video.reveal {
    transition: transform 0.9s var(--ease-out), background-color 0.2s var(--ease);
  }

  .faq details[open] p {
    animation: unfold 0.4s var(--ease-out);
  }

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

  .video:hover .play {
    transform: scale(1.08);
  }

  @keyframes unfold {
    from {
      transform: translateY(-6px);
    }
  }
}

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

/* The hero's run: the workflow as n8n drew it, then what the QPU measured. */
.badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(168, 156, 228, 0.12);
  box-shadow: inset 0 0 0 1px rgba(168, 156, 228, 0.3);
  color: var(--lavender-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.install-label {
  margin: 30px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.install-label + .command {
  margin-top: 10px;
}

.command code::before {
  content: none;
}

.run {
  max-width: 1000px;
  margin: 56px auto 0;
}

.run-card {
  padding: 22px 26px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, #161a2c, #10131f);
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.run-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.run-meta {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
}

.flow,
.mini-flow {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 28px;
}

.flow li,
.mini-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #252a44, #1c2034);
  box-shadow: inset 0 0 0 1.5px var(--ok), 0 0 0 0 rgba(168, 156, 228, 0);
  color: var(--lavender);
}

.flow li:first-child .node,
.mini-flow .trigger .node {
  border-radius: 29px 14px 14px 29px;
}

.node > svg,
.trio svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A node that ran gets n8n's green check, set apart from the node by a ring of the card's color. */
.tick {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px #141728;
  color: #10131f;
}

.tick svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* As in n8n, a connection that carried data is green, and one that has not run stays gray. */
.flow li:not(:last-child)::after,
.mini-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  left: calc(50% + 29px);
  width: calc(100% - 58px);
  height: 2px;
  background: #3a4062;
}

.flow li:not(:last-child)::after {
  background: linear-gradient(var(--ok), var(--ok)) no-repeat 0 0 / 100% 100%, #3a4062;
}

.node-name {
  max-width: 120px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.3;
}

.result {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  height: 180px;
}

.hist div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.hist b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.hist i {
  display: block;
  width: min(56px, 100%);
  height: calc((100% - 46px) * var(--h) / 100);
  margin-top: 6px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #b3a8ee, var(--lavender-deep));
  transform-origin: bottom;
}

.hist i.low {
  background: #4a4f75;
}

.hist span {
  margin-top: 8px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0;
}

.summary {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
}

.summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.summary div:last-child {
  border-bottom: 0;
}

.summary dt {
  color: var(--text-2);
}

.summary dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0;
}

.run figcaption {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.run figcaption code {
  overflow-wrap: anywhere;
}

/* The run plays once, the way n8n shows an execution: each node runs, turns green and hands its data down the
   connection to the next, then the counts rise. It starts when the card comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .js .flow li {
    --at: calc(0.25s + var(--i, 0) * 0.46s);
  }

  .flow li:nth-child(2) {
    --i: 1;
  }

  .flow li:nth-child(3) {
    --i: 2;
  }

  .flow li:nth-child(4) {
    --i: 3;
  }

  .flow li:nth-child(5) {
    --i: 4;
  }

  .flow li:nth-child(6) {
    --i: 5;
  }

  .flow li:nth-child(7) {
    --i: 6;
  }

  .js .flow .node {
    animation: run 0.36s var(--at) both;
  }

  .js .flow .node > svg {
    animation: wake 0.2s var(--at) both;
  }

  .js .flow .tick {
    animation: pop 0.42s calc(var(--at) + 0.3s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .js .flow .tick path {
    stroke-dasharray: 12;
    animation: draw 0.26s calc(var(--at) + 0.4s) var(--ease-out) both;
  }

  .js .flow li:not(:last-child)::after {
    animation: carry 0.16s calc(var(--at) + 0.32s) linear both;
  }

  .js .hist i {
    animation: rise 0.9s calc(3.3s + var(--k, 0) * 0.08s) var(--ease-out) both;
  }

  .hist div:nth-child(2) i {
    --k: 1;
  }

  .hist div:nth-child(3) i {
    --k: 2;
  }

  .hist div:nth-child(4) i {
    --k: 3;
  }

  .js .run-card:not(.started) :is(.node, .node > svg, .tick, .tick path, .hist i),
  .js .run-card:not(.started) li::after {
    animation-play-state: paused;
  }

  @keyframes run {
    0% {
      box-shadow: inset 0 0 0 1.5px #3a4062, 0 0 0 0 rgba(168, 156, 228, 0.4);
    }

    25% {
      box-shadow: inset 0 0 0 1.5px var(--lavender), 0 0 0 0 rgba(168, 156, 228, 0.4);
    }

    85% {
      box-shadow: inset 0 0 0 1.5px var(--lavender), 0 0 0 10px rgba(168, 156, 228, 0);
    }
  }

  @keyframes wake {
    from {
      color: #5d6185;
    }
  }

  @keyframes pop {
    from {
      transform: scale(0);
    }
  }

  @keyframes draw {
    from {
      stroke-dashoffset: 12;
    }
  }

  @keyframes carry {
    from {
      background-size: 0 100%;
    }
  }

  @keyframes carry-down {
    from {
      background-size: 100% 0;
    }
  }

  @keyframes rise {
    from {
      transform: scaleY(0);
    }
  }
}

/* On a narrow screen the connections run down the page, so the data does too. */
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .js .flow li:not(:last-child)::after {
    animation-name: carry-down;
  }
}

/* The three entries as the n8n picker draws them: an action, a trigger with its rounded back, and a round tool. */
.trio {
  display: flex;
  gap: 16px;
}

.trio i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(180deg, #252a44, #1c2034);
  box-shadow: inset 0 0 0 1.5px var(--lavender-deep);
  color: var(--lavender);
}

.trio i:nth-child(2) {
  border-radius: 28px 14px 14px 28px;
}

.trio i:last-child {
  border-radius: 50%;
}

.trio svg {
  width: 28px;
  height: 28px;
}

/* Tabs: operations by resource, and the screenshots. */
.tabs {
  justify-content: center;
}

.tabs button {
  font-family: var(--font);
  font-size: 14px;
}

.tabs button span {
  margin-left: 4px;
  opacity: 0.75;
}

.js .panel:not(.active) {
  display: none;
}

.ops {
  margin-top: 52px;
}

.op-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.op-list li {
  padding: 20px 22px 22px;
  border-radius: 16px;
  background: var(--tile);
}

.op-list h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.op-list p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* The gate palette, sorted by what a Heron processor accepts. */
.gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.gate-group {
  padding: 24px 24px 26px;
  border-radius: 20px;
  background: var(--tile);
}

.gate-group h3 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.gate-group h3 span {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 400;
}

.gate-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.gate-group li code {
  display: block;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.native li code {
  background: rgba(111, 214, 156, 0.12);
  box-shadow: inset 0 0 0 1px rgba(111, 214, 156, 0.4);
  color: #a6e9c3;
}

.transpile li code {
  background: rgba(255, 179, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.38);
  color: #ffd29e;
}

.dropped li code {
  background: rgba(206, 212, 232, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
}

.gate-group p {
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}

.recipe {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 64px;
  text-align: left;
}

/* Beside its explanation only where the longest line, 81 characters, still fits. */
@media (min-width: 1100px) {
  .recipe {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr);
    gap: 36px;
    align-items: center;
  }
}

.recipe h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.recipe-text p {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.5;
}

.recipe-text strong {
  color: var(--text);
  font-weight: 600;
}

.identity {
  display: grid;
  gap: 6px;
}

.identity code {
  color: var(--text);
  font-size: 15px;
}

/* Long-running jobs: two workflows, the trigger options and what they guarantee. */
.patterns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.pattern {
  padding: 26px 26px 28px;
  border-radius: 22px;
  background: var(--tile);
}

.pattern-name {
  margin: 0;
  color: var(--lavender-soft);
  font-size: 15px;
  font-weight: 600;
}

.mini-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 300px;
  margin: 22px auto 0;
}

.mini-flow .node {
  box-shadow: inset 0 0 0 1.5px #3a4062;
}

.pattern > p:last-child {
  margin: 20px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.trigger-facts {
  max-width: 820px;
  margin: 48px auto 0;
}

.trigger-facts h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
}

.chips.static {
  justify-content: center;
}

.chips.static li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 14px;
}

.facts {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.facts li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
}

.facts strong {
  color: var(--text);
  font-weight: 600;
}

/* Questions an agent can answer, and the operation each one becomes. */
.asks {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 52px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.asks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.ask {
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 6px;
  background: var(--tile-2);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}

.answer {
  position: relative;
  margin: 0;
  padding-left: 30px;
  color: var(--lavender-soft);
  font-size: 15px;
  line-height: 1.4;
}

.answer::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--lavender-deep);
}

/* Screenshots */
.gallery {
  margin-top: 48px;
}

.shot {
  margin: 28px 0 0;
}

.shot a {
  display: block;
  border-radius: 14px;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.shot figcaption {
  max-width: 760px;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Watch and read */
.video {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 820px;
  margin: 48px auto 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--tile);
  color: var(--text);
  text-align: left;
  transition: background-color 0.2s var(--ease);
}

.video:hover {
  background: var(--tile-2);
  text-decoration: none;
}

.play {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--night);
  transition: transform 0.35s var(--ease-out), background-color 0.2s var(--ease);
}

.video:hover .play {
  background: var(--lavender-soft);
}

.play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.video strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.video strong + span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.45;
}

.articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.articles a {
  display: block;
  height: 100%;
  padding: 20px 22px 22px;
  border-radius: 18px;
  background: var(--tile);
  color: var(--text);
  transition: background-color 0.2s var(--ease), transform 0.35s var(--ease-out);
}

.articles a:hover {
  background: var(--tile-2);
  text-decoration: none;
}

.articles h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.articles p {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}

.brand {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

@media (max-width: 1068px) {
  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

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

  .tile,
  .tile.span-3 {
    grid-column: span 1;
  }

  .gates,
  .result {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On a narrow screen the workflow runs down the page, each node beside its name. */
@media (max-width: 760px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    max-width: 340px;
    margin-inline: auto;
  }

  .flow li {
    flex-direction: row;
    gap: 16px;
    text-align: left;
  }

  .flow .node {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .flow li:first-child .node {
    border-radius: 23px 12px 12px 23px;
  }

  .flow .node > svg {
    width: 22px;
    height: 22px;
  }

  .flow .node-name {
    max-width: none;
    margin-top: 0;
    font-size: 14px;
  }

  .flow li:not(:last-child)::after {
    top: 46px;
    left: 22px;
    width: 2px;
    height: 14px;
  }

  .op-list,
  .patterns,
  .articles {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Below 480px the name of the package and both buttons only fit with the heart alone, and below 360px without it:
   Sponsor is still at the end of the page and in the footer. */
@media (max-width: 480px) {
  .brand {
    font-size: 13px;
  }

  .nav .wrap {
    gap: 16px;
  }

  .nav-actions .label {
    display: none;
  }

  .nav-actions .pill-ghost {
    padding-inline: 9px;
  }
}

@media (max-width: 359px) {
  .nav-actions .pill-ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .command {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .statement {
    padding-top: 80px;
  }

  .highlights,
  .cards,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile {
    padding: 26px 24px 28px;
  }

  .figure {
    font-size: 54px;
  }

  .run-card {
    padding: 18px 16px 20px;
  }

  .hist {
    gap: 10px;
    height: 160px;
  }

  .asks li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .video {
    padding: 18px;
  }

  th,
  td {
    padding: 11px 12px;
    font-size: 14px;
  }

  /* A wrapped row would end on a divider, so on a phone the links are spaced instead. */
  footer ul {
    gap: 10px 22px;
  }

  footer li:not(:last-child)::after {
    content: none;
  }
}
