/* Backway — site. Same tokens as the dashboard (web/src/styles.css). */
:root {
  --frame: #5d5e58;
  --frame-deep: #4c4d48;
  --surface: #dbdad0;
  --card: #e7e6de;
  --card-hi: #efeee8;
  --white: #ffffff;
  --ink: #1f2120;
  --ink-2: #5b5c57;
  --ink-3: #8e8f88;
  --pill-off: #cfcec4;
  --dark: #2a2c2b;
  --accent: #eef23d;
  --accent-soft: rgba(238, 242, 61, 0.28);
  --line: #a9a89e;
  --hair: rgba(31, 33, 32, 0.1);
  --red: #c1342b;
  --green: #1f7103;
  --series: #6c6e00;
  --green-on-dark: #5cab4b;
  --red-on-dark: #cf4237;
  --sans: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(135deg, #efefef 0%, #dcdddf 55%, #cfd0d3 100%) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3,
p {
  margin: 0;
  font-weight: 400;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
.faint {
  color: var(--ink-3);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wrap {
  flex-wrap: wrap;
}
.center {
  justify-content: center;
  text-align: center;
}
.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
em {
  font-style: normal;
  background: var(--accent);
  border-radius: 0.3em;
  padding: 0 0.18em;
  font-weight: 400;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- pills, tags, dots ------------------------------------------------------ */

.pill {
  height: 42px;
  padding: 0 18px;
  border-radius: 21px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
  background: var(--pill-off);
  color: var(--ink-2);
  text-decoration: none;
  flex: none;
  transition:
    background 0.16s,
    color 0.16s,
    transform 0.12s;
}
.pill:hover {
  color: var(--ink);
}
.pill:active {
  transform: scale(0.97);
}
.pill.on {
  background: var(--white);
  color: var(--ink);
}
.pill.dark {
  background: var(--dark);
  color: #fff;
}
.pill.dark:hover {
  background: #000;
}
.pill.ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}
.pill.ghost:hover {
  background: rgba(255, 255, 255, 0.45);
}
.pill.lg {
  height: 50px;
  padding: 0 24px;
  border-radius: 25px;
  font-size: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--white);
  font-size: 11px;
  white-space: nowrap;
  flex: none;
}
.tag.plain {
  background: var(--pill-off);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--ink-3);
}
.dot.ok {
  background: var(--green);
}
.dot.busy {
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--ink);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: scale(0.6);
    opacity: 0.6;
  }
}
.node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 7px var(--accent-soft);
  flex: none;
  position: relative;
  z-index: 1;
}
.node.off {
  background: var(--white);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.35);
}
.node.sm {
  width: 38px;
  height: 38px;
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.eyebrow.light {
  color: #c9c8be;
}
.eyebrow.light::before {
  box-shadow: none;
}

/* ---- header ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 8px calc(var(--gutter) - 10px);
  border-radius: 34px;
  background: rgba(231, 230, 222, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px -22px rgba(40, 41, 36, 0.6);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: -1;
}
.nav.scrolled::before {
  opacity: 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 10px;
}
.links {
  display: flex;
  gap: 4px;
}
.links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 18px;
  transition:
    background 0.16s,
    color 0.16s;
}
.links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.nav-cta {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* ---- hero: the dashboard's frame ------------------------------------------------ */

main {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero {
  padding-top: 8px;
}
.frame {
  background: var(--frame);
  border-radius: 48px;
  padding: 10px;
  box-shadow:
    0 50px 90px -40px rgba(40, 41, 36, 0.55),
    0 12px 28px -18px rgba(40, 41, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.frame-top {
  height: 62px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 6px 0 0;
}
.titletab {
  position: relative;
  margin-left: 22px;
  height: 56px;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  padding: 0 38px 2px 28px;
  display: flex;
  align-items: center;
  font-size: 26px;
  letter-spacing: -0.015em;
}
.titletab::before,
.titletab::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 28px;
}
.titletab::before {
  left: -28px;
  background: radial-gradient(circle at 0 0, transparent 27.5px, var(--surface) 28px);
}
.titletab::after {
  right: -28px;
  background: radial-gradient(circle at 100% 0, transparent 27.5px, var(--surface) 28px);
}
.frame-pills {
  display: flex;
  gap: 6px;
  align-self: center;
}
.frame-pills .pill {
  background: rgba(255, 255, 255, 0.12);
  color: #e3e2d9;
  height: 38px;
}
.frame-pills .pill.on {
  background: var(--white);
  color: var(--ink);
}
.surface {
  background: var(--surface);
  border-radius: 38px;
}
.hero-surface {
  border-top-left-radius: 0;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(28px, 4vw, 44px);
  display: grid;
  gap: 44px;
}
.hero-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
  max-width: 820px;
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 300;
}
.lede {
  max-width: 58ch;
  color: var(--ink-2);
  line-height: 1.6;
  font-size: clamp(15px, 1.4vw, 17px);
}
.snippet {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: 23px;
  background: var(--card-hi);
  color: var(--ink);
  max-width: 100%;
  transition: background 0.16s;
}
.snippet:hover {
  background: var(--white);
}
.snippet .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snippet .prompt {
  color: var(--series);
}
.snippet .ic {
  color: var(--ink-2);
}
.snippet.dark {
  background: var(--dark);
  color: #ecebe3;
  width: 100%;
  justify-content: space-between;
}
.snippet.dark .ic {
  color: #b9b8ae;
}
.snippet.dark:hover {
  background: #000;
}

/* the project, drawn as in the dashboard */
.arch {
  position: relative;
  background: var(--card);
  border-radius: 30px;
  padding: 26px 24px 24px;
  overflow: hidden;
}
.arch .rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  height: 1px;
  background: linear-gradient(90deg, #dd4f43 0%, #c9b96a 18%, #86b765 42%, #a9bf6c 60%, #e2962f 80%, #86b765 100%);
}
.arch-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.acol {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding-left: 22px;
}
.acol::before {
  content: '';
  position: absolute;
  left: 43.5px;
  top: 44px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
  opacity: 0.7;
}
.acol .node {
  margin-bottom: 6px;
}
.acard {
  position: relative;
  margin-left: 40px;
  background: var(--card-hi);
  border-radius: 22px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
  box-shadow: 0 10px 22px -18px rgba(40, 41, 36, 0.5);
  animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.acard::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 24px;
  width: 18px;
  height: 1px;
  background: #77786f;
}
.acol:nth-child(2) .acard {
  animation-delay: 0.12s;
}
.acol:nth-child(3) .acard {
  animation-delay: 0.24s;
}
.acard.sub {
  background: var(--white);
}
.acard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.acard-head b {
  font-weight: 500;
  font-size: 16px;
}
.acard .mono {
  font-size: 12px;
}
.spark {
  height: 30px;
  margin-top: 6px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), var(--hair) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C12 20 18 12 28 14 S44 25 56 19 74 6 86 9 104 22 120 12 V30 H0Z' fill='%23eef23d' fill-opacity='.55'/%3E%3Cpath d='M0 22 C12 20 18 12 28 14 S44 25 56 19 74 6 86 9 104 22 120 12' fill='none' stroke='%236c6e00' stroke-width='1.3'/%3E%3C/svg%3E")
      center / 100% 100% no-repeat;
}
.spark.s2 {
  transform: scaleX(-1);
}
.vol {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--pill-off);
  border-radius: 10px;
  padding: 4px 8px;
  justify-self: start;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---- pillars ------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.pillar {
  background: var(--card);
  border-radius: 26px;
  padding: 18px 20px;
  display: grid;
  gap: 4px;
  text-decoration: none;
  transition:
    background 0.16s,
    transform 0.16s;
}
.pillar:hover {
  background: var(--card-hi);
  transform: translateY(-2px);
}
.pillar .ic {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 8px;
}
.pillar b {
  font-weight: 500;
  font-size: 17px;
}
.pillar span {
  color: var(--ink-2);
  font-size: 13px;
}

/* ---- feature sections ----------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) 0 0;
}
.feature.reverse .feature-copy {
  order: 2;
}
.feature-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}
h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.feature-copy p,
.band-head p {
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 52ch;
}
.checks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.checks .ic {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--white);
  stroke-width: 2;
}

.card {
  background: var(--card);
  border-radius: 30px;
  padding: 22px 24px;
  display: grid;
  gap: 10px;
  box-shadow: 0 30px 60px -44px rgba(40, 41, 36, 0.55);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.card-head b {
  font-weight: 500;
  font-size: 18px;
}

/* terminal */
.term {
  background: var(--dark);
  color: #dcdbd1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(20, 21, 20, 0.7);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #3b3d3c;
  font-size: 12px;
  color: #b9b8ae;
}
.lights {
  display: flex;
  gap: 6px;
}
.lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a4c4b;
}
.lights i:first-child {
  background: var(--accent);
}
.term pre {
  margin: 0;
  padding: 20px 22px 24px;
  font-size: 12.5px;
  line-height: 1.85;
  overflow-x: auto;
  white-space: pre;
}
.term .p {
  color: var(--accent);
}
.term .d {
  color: #77786f;
}
.term .y {
  color: var(--accent);
}
.term .ok {
  color: var(--green-on-dark);
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* variables */
.var {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  background: var(--card-hi);
  border-radius: 16px;
  padding: 12px 14px;
}
.var .k {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.var .v {
  color: var(--series);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resolved,
.dns {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--dark);
  color: #ecebe3;
  font-size: 12px;
}
.resolved .faint,
.dns .faint {
  color: #9a998f;
}
.resolved .mono,
.dns .mono {
  overflow-wrap: anywhere;
}

/* domains */
.domain {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-hi);
  border-radius: 16px;
  padding: 12px 14px;
}
.domain .mono {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.domain .ic {
  color: var(--series);
}

/* metrics */
.vital {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.vital .big {
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.vital .unit {
  color: var(--ink-2);
}
.chart {
  width: 100%;
  height: 120px;
  display: block;
}
.chart .area {
  fill: var(--accent);
  fill-opacity: 0.6;
}
.chart .line {
  fill: none;
  stroke: var(--series);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}
.loglines {
  display: grid;
  gap: 2px;
  background: var(--dark);
  color: #dcdbd1;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: 11.5px;
  line-height: 1.7;
  margin-top: 4px;
}
.loglines span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loglines i {
  font-style: normal;
  margin-right: 8px;
}
.loglines i.ok {
  color: var(--green-on-dark);
}
.loglines i.bad {
  color: var(--red-on-dark);
}

/* ---- bands: CI/CD, templates ---------------------------------------------------- */

.band,
.templates,
.install {
  margin-top: clamp(64px, 9vw, 120px);
}
.band {
  background: var(--card);
  border-radius: 40px;
  padding: clamp(28px, 4vw, 48px);
}
.band-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.band-head.center {
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}
.band-head.center p {
  max-width: 60ch;
}
.pipeline {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 19px;
  right: 19px;
  top: 19px;
  height: 1px;
  background: linear-gradient(90deg, #86b765, #a9bf6c 40%, #c9b96a 75%, #86b765);
}
.pipeline li {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding-right: 12px;
}
.pipeline .node {
  margin-bottom: 12px;
}
.pipeline li.last .node {
  background: var(--dark);
  color: var(--accent);
  box-shadow: 0 0 0 6px rgba(42, 44, 43, 0.15);
}
.pipeline b {
  font-weight: 500;
}
.pipeline span {
  color: var(--ink-2);
  font-size: 12.5px;
}

.tpl-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.tpl {
  height: 42px;
  padding: 0 18px;
  border-radius: 21px;
  background: var(--card);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.tpl::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--ink);
}
.tpl.accent {
  background: var(--dark);
  color: #fff;
}
.tpl.accent::before {
  display: none;
}
.imports {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.imp {
  background: var(--card);
  border-radius: 30px;
  padding: 22px 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.imp b {
  font-weight: 500;
  font-size: 18px;
}
.imp p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.55;
}
.imp .mono {
  margin-top: 6px;
  background: var(--card-hi);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* ---- self-hosted ---------------------------------------------------------------- */

.self {
  margin-top: clamp(64px, 9vw, 120px);
}
.self-card {
  background: var(--frame);
  color: #f1f0ea;
  border-radius: 48px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  gap: 22px;
  box-shadow: 0 50px 90px -40px rgba(40, 41, 36, 0.55);
}
.self-card h2 em {
  color: var(--ink);
}
.self-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.self-grid > div {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.self-grid .ic {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  margin-bottom: 6px;
}
.self-grid b {
  font-weight: 500;
  font-size: 17px;
}
.self-grid p {
  color: #c9c8be;
  font-size: 14px;
  line-height: 1.55;
}

/* ---- install ---------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 28px;
}
.step {
  background: var(--card);
  border-radius: 30px;
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.step .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 500;
}
.step b {
  font-weight: 500;
  font-size: 17px;
}

/* ---- footer ---------------------------------------------------------------- */

.foot {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: clamp(64px, 9vw, 110px) auto 0;
  padding: 26px var(--gutter) 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hair);
}
.foot .brand {
  font-size: 17px;
}
.foot .links {
  margin-left: auto;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--dark);
  color: #fff;
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 30;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- reveal on scroll ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- responsive ---------------------------------------------------------------- */

@media (max-width: 1020px) {
  .links {
    display: none;
  }
  .foot .links {
    display: flex;
  }
  .feature,
  .feature.reverse {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature.reverse .feature-copy {
    order: 0;
  }
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 26px;
  }
  .pipeline::before {
    display: none;
  }
  .imports,
  .self-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .arch-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .arch-cols .acol:nth-child(3) {
    display: none;
  }
}
@media (max-width: 640px) {
  .hide-sm {
    display: none !important;
  }
  .nav {
    gap: 12px;
  }
  .frame {
    border-radius: 34px;
    padding: 7px;
  }
  .frame-top {
    height: 52px;
  }
  .titletab {
    height: 46px;
    font-size: 20px;
    margin-left: 18px;
    padding: 0 26px 2px 22px;
  }
  .surface {
    border-radius: 28px;
  }
  .arch {
    padding: 22px 14px 16px;
  }
  .arch-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .arch-cols .acol:nth-child(2) {
    display: none;
  }
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .pipeline {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .var {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .band,
  .self-card {
    border-radius: 32px;
  }
  .foot .links {
    margin-left: 0;
  }
}
