/* Hero */

.hero {
  position: relative;
  height: min(820px, 92vh);
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 24), 64px);
  grid-auto-rows: 64px;
  justify-content: center;
  align-content: center;
}
.tile {
  position: relative;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background .9s, box-shadow .9s;
}
.tile.is-on {
  background: linear-gradient(160deg, rgba(61, 139, 255, .34), rgba(29, 79, 184, .18));
  box-shadow: inset 0 0 0 1px rgba(106, 168, 255, .65);
}
.tile span {
  position: absolute;
  left: 5px;
  color: var(--blue-hi);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .06em;
  opacity: 0;
  transition: opacity .6s;
}
.tile span:first-child { top: 6px; }
.tile span:last-child { bottom: 6px; color: #cfe0ff; }
.tile.is-on span { opacity: 1; }

.hero__card {
  position: absolute;
  inset: 0;
  width: min(720px, calc(100% - 32px));
  height: fit-content;
  margin: auto;
  padding: 56px 48px 44px;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .7);
  text-align: center;
}
.hero__tag {
  display: inline-block;
  margin-bottom: 22px;
  padding: 3px 12px;
  border: 1px solid var(--blue-lo);
  background: rgba(61, 139, 255, .08);
  color: var(--blue-hi);
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
}
.hero h1 {
  color: #fff;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.02em;
}
.hero h1 em { color: var(--blue-hi); font-weight: 400; }
.hero__sub {
  max-width: 500px;
  margin: 20px auto 30px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.4;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero__note { margin-top: 14px; color: var(--muted-dark); font-size: 15px; font-style: italic; }
.hero__controls { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; }
.hero__controls .btn { background: var(--ink); }

/* Logo strip */

.strip {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 120px;
}
.strip::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.strip__track {
  display: flex;
  gap: 72px;
  width: max-content;
  list-style: none;
  animation: strip 38s linear infinite;
}
.strip__track li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7d8cab;
  font-size: 30px;
  font-weight: 500;
  white-space: nowrap;
}
.strip__track small {
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}
@keyframes strip { to { transform: translateX(-50%); } }

/* How it works */

.how { padding-top: 96px; }
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
.how__grid h3 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.how__grid p {
  min-height: 54px;
  margin: 6px 0 22px;
  color: var(--muted-dark);
  font-size: 19px;
  line-height: 1.4;
}
.how__dots {
  height: 110px;
  margin-top: 80px;
  border-top: 1px solid var(--paper-line);
  background-image: radial-gradient(#c9d4ea 1.2px, transparent 1.3px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 45%);
}

.stage {
  position: relative;
  display: flex;
  align-items: center;
  height: 280px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
}
.stage__card {
  width: 86%;
  margin-left: 10%;
  background: #fff;
  border: 1px solid var(--paper-line);
  box-shadow: 0 12px 30px -12px rgba(16, 32, 80, .22);
}
.stage__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
}
.stage__head .icon { width: 16px; height: 16px; color: var(--blue); }
.stage__head--title { font-family: var(--serif); font-size: 17px; letter-spacing: 0; }
.stage__head--title .icon { width: 14px; height: 14px; }
.stage__body { padding: 20px; font-size: 19px; }
.stage__body--rule { border-bottom: 1px solid var(--paper-line); }
.stage__repo { display: flex; align-items: center; gap: 10px; }
.stage__repo .icon { width: 18px; height: 18px; color: var(--ink); }
.stage__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--paper-line);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 12px;
}

.mention { padding: 0 4px; background: var(--blue-wash); color: var(--blue-lo); }
.typing::after {
  content: "▍";
  margin-left: 2px;
  color: var(--blue);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.agents { position: relative; height: 120px; overflow: hidden; list-style: none; }
.agents li {
  position: absolute;
  top: 38px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  font-size: 19px;
  transition: transform .6s cubic-bezier(.6, 0, .2, 1), opacity .6s;
}
.agents__name {
  min-width: 150px;
  padding: 4px 16px;
  background: #fff;
  border: 1px solid var(--paper-line);
  text-align: center;
}
.agents__status { color: var(--muted-dark); font-size: 16px; opacity: 0; }
.agents li.is-active .agents__name { background: var(--paper-2); border-color: #b9c6e2; }
.agents li.is-active .agents__status { opacity: 1; }

.diff { display: flex; gap: 8px; margin-top: 12px; font-family: var(--mono); font-size: 13px; }
.diff span { padding: 2px 8px; border: 1px solid; }
.diff__add { color: #13795b; border-color: #8fd3b9; }
.diff__del { color: #c2364a; border-color: #f0a5b0; }
.diff__checks { color: var(--muted-dark); border-color: var(--paper-line) !important; }
.review-line { display: flex; align-items: center; gap: 8px; color: var(--blue-lo); font-size: 17px; }

/* Integrations */

.connect { padding: 110px 0; }
.board { margin-top: 60px; border: 1px solid var(--line); }
.board__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
}
.board__label .icon { width: 22px; height: 22px; color: var(--blue-hi); }
.board__caption {
  padding: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 20px;
}
.board__pair { display: grid; grid-template-columns: 1fr 1fr; }
.board__pair > div { min-width: 0; }
.board__pair > div + div { border-left: 1px solid var(--line); }
.board__pair .wash { display: grid; place-items: center; height: 300px; }
.board__pair--text { border-top: 1px solid var(--line); }
.board__pair--text .board__label { border-bottom: 0; }
.board__pair--text p { padding: 16px 18px; color: var(--muted); font-size: 18px; line-height: 1.4; }
.handle { color: var(--blue-hi); font-family: var(--mono); font-size: 15px; }

.request {
  overflow-x: auto;
  padding: 16px 18px 0;
  color: #c7d4f0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre;
}
.request__verb { margin-right: 8px; padding: 1px 6px; background: var(--blue); color: #fff; }

.console {
  display: grid;
  grid-template-columns: 200px 1fr 230px;
  width: min(1000px, 92%);
  height: 420px;
  margin: 48px auto 0;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-bottom: 0;
  box-shadow: 0 -20px 80px -20px rgba(0, 0, 0, .6);
  font-family: var(--mono);
  font-size: 11.5px;
}
.console__runs { padding: 14px 10px; border-right: 1px solid var(--panel-rule); color: var(--panel-muted); }
.console__runs h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 4px 8px;
  color: #c7d4f0;
  font-size: 10.5px;
  font-weight: 500;
}
.console__runs h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--blue-hi);
  border-radius: 50%;
}
.console__runs h4 + ul + h4 { margin-top: 18px; }
.console__runs ul { list-style: none; }
.console__runs li { padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__runs li.is-active { background: rgba(22, 34, 65, .5); color: #e3ebff; }

.console__code { position: relative; overflow: hidden; padding: 14px 0; color: #9fb0d4; }
.console__code ol { list-style: none; counter-reset: ln 11; }
.console__code li {
  display: flex;
  gap: 16px;
  padding: 1px 16px;
  line-height: 1.75;
  white-space: pre;
  counter-increment: ln;
}
.console__code li::before { content: counter(ln); width: 18px; color: #46557a; text-align: right; }
.console__code li.is-changed { background: rgba(61, 139, 255, .13); box-shadow: inset 2px 0 0 var(--blue); }
.console__input {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  background: #0d1428;
  border: 1px solid #23325a;
  color: #56658a;
}
.tk-key { color: #8fb6ff; }
.tk-str { color: #ffd28a; }
.tk-fn { color: #7fe3d0; }
.tk-cmt { color: #56658a; }

.console__files { padding: 14px 10px; border-left: 1px solid var(--panel-rule); color: var(--panel-muted); }
.console__files h4 { margin: 4px 8px 10px; color: #6f80a6; font-size: 10px; font-weight: 500; letter-spacing: .14em; }
.console__files ul { list-style: none; }
.console__files li { display: flex; justify-content: space-between; padding: 5px 8px; border: 1px solid transparent; }
.console__files li.is-active { border-color: #33467a; color: #e3ebff; }
.console__files span { color: var(--green); }

/* Insights */

.insights { padding: 110px 0; border-top: 1px solid var(--line-soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border: 1px solid var(--line); }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat dt { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.stat dd { margin-top: 10px; color: #fff; font-size: 56px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat dd small { color: var(--muted); font-size: 24px; }
.stat p { margin-top: 4px; color: var(--green); font-family: var(--mono); font-size: 12px; }

.chart {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 28px 24px 20px;
  border: 1px solid var(--line);
  border-top: 0;
}
.chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 220px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--line);
}
.chart__bar { display: flex; flex: 1; flex-direction: column-reverse; gap: 1px; }
.chart__bar i { display: block; transform-origin: bottom; }
.chart__axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 10.5px;
}
.chart__key { display: flex; flex-direction: column; gap: 14px; font-size: 18px; list-style: none; }
.chart__key li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.chart__key span { display: flex; align-items: center; gap: 10px; }
.chart__key span::before { content: ""; width: 10px; height: 10px; background: var(--swatch); }
.chart__key b { color: var(--muted); font-family: var(--mono); font-size: 13px; font-weight: 500; }

/* Machines */

.machines { padding: 110px 0; border-top: 1px solid var(--line-soft); }
.machines__body { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border: 1px solid var(--line); }
.machines .wash { display: grid; place-items: center; min-height: 400px; }

.tabs { border-right: 1px solid var(--line); }
.tab { display: block; width: 100%; padding: 22px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.tab:last-child { border-bottom: 0; }
.tab__title,
.tab__text { display: block; }
.tab__title { color: var(--muted); font-family: var(--mono); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.tab__text {
  max-width: 440px;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.4;
  transition: max-height .5s, margin .5s;
}
.tab__progress { display: none; height: 2px; margin-top: 16px; background: var(--line); }
.tab__progress i { display: block; width: 0; height: 100%; background: var(--blue); }
.tab.is-active { background: var(--ink-2); }
.tab.is-active .tab__title { color: #fff; }
.tab.is-active .tab__text { max-height: 140px; margin-top: 16px; }
.tab.is-active .tab__progress { display: block; }

.vm {
  display: grid;
  grid-template-columns: 42% 58%;
  width: 86%;
  min-height: 260px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  font-family: var(--mono);
  font-size: 11.5px;
}
.vm h4 { margin: 2px 0 12px; color: #6f80a6; font-size: 10px; font-weight: 500; letter-spacing: .14em; }
.vm ul + h4 { margin-top: 18px; }
.vm__setup { padding: 18px 16px; border-right: 1px solid var(--panel-rule); }
.vm__setup ul { list-style: none; }
.vm__setup li { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: #d5def3; opacity: .4; transition: opacity .4s; }
.vm__setup li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #4a5d8f;
  border-radius: 50%;
  color: transparent;
  font-size: 8px;
}
.vm__setup li.is-done { opacity: 1; }
.vm__setup li.is-done::before { background: var(--blue); border-color: var(--blue); color: #fff; }

.vm__status { padding: 14px; }
.vm__window { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--panel-line); }
.vm__bar { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--panel-rule); color: var(--panel-muted); font-size: 10.5px; }
.vm__rows { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; color: #c7d4f0; }
.vm__row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; padding-left: 70px; }
.vm__row > span:first-child { position: absolute; top: 6px; left: 0; color: #6f80a6; font-size: 9.5px; letter-spacing: .12em; }
.vm__chip { padding: 3px 8px; border: 1px solid #33467a; opacity: 0; transform: translateY(4px); transition: .4s; }
.vm__chip.is-shown { opacity: 1; transform: none; }

/* Use cases */

.uses { padding: 110px 0; border-top: 1px solid var(--line-soft); }
.uses__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border: 1px solid var(--line); }
.use {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
}
.use:last-child { border-right: 0; }
.use blockquote { font-size: 24px; font-style: italic; line-height: 1.3; }
.use blockquote::before {
  content: "\201C";
  margin-right: 4px;
  color: var(--blue);
  font-size: 48px;
  font-style: normal;
  line-height: 0;
  vertical-align: -18px;
}
.use figcaption { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.use figcaption b { display: block; margin-bottom: 2px; color: #fff; font-weight: 500; }

/* FAQ */

.faq { padding: 110px 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; margin-top: 20px; }
.faq__intro p { max-width: 340px; margin: 20px 0 28px; color: var(--muted-dark); font-size: 20px; }
.faq__list { border-top: 1px solid var(--paper-line); }
.faq__item { border-bottom: 1px solid var(--paper-line); }
.faq__item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  font-size: 24px;
  font-weight: 500;
  text-align: left;
}
.faq__item button::after { content: "+"; color: var(--blue-lo); font-family: var(--mono); font-size: 18px; transition: transform .3s; }
.faq__item.is-open button::after { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height .4s; }
.faq__answer p { padding: 0 40px 24px 0; color: var(--muted-dark); font-size: 19px; }

/* Closing CTA */

.closing { position: relative; overflow: hidden; padding: 120px 0; border-bottom: 1px solid var(--line-soft); text-align: center; }
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  opacity: .8;
}
.closing > * { position: relative; }
.closing h2 { font-size: clamp(44px, 6.4vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.closing h2 em { color: var(--blue-hi); font-weight: 400; }
.closing p { margin: 18px 0 32px; color: var(--muted); font-size: 21px; }
.closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Footer */

.site-footer { padding: 64px 0 32px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer__grid > div > p { max-width: 280px; margin-top: 12px; color: var(--muted); font-size: 17px; }
.site-footer h5 { margin-bottom: 14px; color: var(--muted-dark); font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.site-footer ul a { color: var(--muted); font-size: 17px; }
.site-footer ul a:hover { color: #fff; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 12px;
}
.status { display: flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Responsive */

@media (max-width: 1020px) {
  .how__grid { grid-template-columns: 1fr; gap: 56px; }
  .how__grid p { min-height: 0; }
  .console { grid-template-columns: 1fr; height: 360px; }
  .console__runs,
  .console__files { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .chart { grid-template-columns: 1fr; }
  .machines__body { grid-template-columns: 1fr; }
  .tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .uses__grid { grid-template-columns: 1fr; }
  .use { border-right: 0; border-bottom: 1px solid var(--line); }
  .use:last-child { border-bottom: 0; }
  .faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hero__card { padding: 44px 20px 32px; }
  .hero__controls { display: none; }
  .board__pair { grid-template-columns: 1fr; }
  .board__pair > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .vm { grid-template-columns: 1fr; width: 92%; }
  .vm__setup { border-right: 0; border-bottom: 1px solid var(--panel-rule); }
  .stat dd { font-size: 42px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
