:root {
  --bg: #0a0a0b;
  --panel: #111113;
  --raised: #17171a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #ededef;
  --dim: #9a9aa3;
  --dimmer: #63636c;
  --accent: #b49df0;
  --ok: #6fcf97;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}
:not(pre) > code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--raised);
  color: #d7d7dc;
}
kbd {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
}
img,
video {
  display: block;
  width: 100%;
  height: auto;
}

main,
.nav,
.foot {
  position: relative;
  z-index: 1;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1340px;
  margin: 0 auto;
  padding: 14px 32px;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  font-size: 13px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--dim);
}
.nav nav a:hover {
  color: var(--text);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
}
.pill:hover {
  background: var(--raised);
}

/* ---------- hero ---------- */
h1 {
  position: relative;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.sub {
  position: relative;
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.65;
}
.cta {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn.primary {
  background: var(--text);
  color: #0a0a0b;
}
.btn.primary:hover {
  background: #fff;
}
.btn.ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn.ghost:hover {
  background: var(--raised);
}
.tiny {
  position: relative;
  margin: 18px 0 0;
  color: var(--dimmer);
  font-size: 12.5px;
}

/* Doc-type badges, the same colours as in the app. */
.badge {
  padding: 3px 7px;
  border-radius: 6px;
}
.badge.violet {
  background: rgba(154, 118, 208, 0.22);
  color: #c9b3f2;
}
.badge.teal {
  background: rgba(79, 179, 188, 0.2);
  color: #8fd6dc;
}
.badge.green {
  background: rgba(79, 174, 125, 0.2);
  color: #8fd3ad;
}
.badge.grey {
  background: rgba(126, 126, 136, 0.22);
  color: #bdbdc6;
}

/* A screenshot or recording in a window frame. */
.window {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

/* ---------- sections ---------- */
.band {
  border-top: 1px solid var(--line);
  padding: 96px 24px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
}
.wrap.narrow {
  max-width: 720px;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-align: center;
}
h2.left {
  text-align: left;
}
.eyebrow {
  margin: 0 0 14px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dimmer);
}
.eyebrow.center {
  text-align: center;
}
.lede {
  max-width: 620px;
  margin: 0 0 34px;
  color: var(--dim);
}
.lede.center {
  margin: 0 auto 44px;
  text-align: center;
}

.why h2 {
  text-align: left;
}
blockquote {
  margin: 28px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  color: #c9c9cf;
  font-size: 17px;
  line-height: 1.7;
}
blockquote p {
  margin: 0 0 16px;
}
cite {
  display: block;
  font: 13px var(--mono);
  font-style: normal;
  color: var(--dimmer);
}
cite a {
  color: var(--dim);
}
cite a:hover {
  color: var(--text);
}

.agents {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.agent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  background: var(--panel);
  font-size: 13.5px;
}
.agent:last-child {
  border-right: 0;
}
.agent b {
  font-weight: 500;
}
.agent code {
  color: var(--dimmer);
  font-size: 11px;
}

.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  color: var(--dim);
  font-size: 14px;
}
.checks li {
  position: relative;
  padding-left: 24px;
  margin: 9px 0;
}
.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
}
.checks.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 13px;
}
.checks.inline li {
  margin: 0;
}

.feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature.flip > :first-child {
  order: 2;
}
.feature .copy p {
  color: var(--dim);
  margin: 0;
}

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0d0d0f;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.term-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2f;
}
.term-bar span {
  margin-left: 8px;
  font: 11px var(--mono);
  color: var(--dimmer);
}
.terminal pre,
.install pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font: 12.8px/1.75 var(--mono);
  color: #d9d9de;
}
.prompt {
  color: var(--accent);
}
.dim {
  color: var(--dimmer);
}
.ok {
  color: var(--ok);
}
.link {
  color: #8fb8f0;
}

.pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.page-shot img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}
.page-shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.modes span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font: 12px var(--mono);
}

/* ---------- final call ---------- */
.final {
  border-top: 1px solid var(--line);
  padding: 130px 24px 120px;
  text-align: center;
}
.final h2 {
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.final .sub {
  margin-top: 18px;
}
.install {
  position: relative;
  max-width: 640px;
  margin: 36px auto 0;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #0d0d0f;
}
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--raised);
  color: var(--text);
  font: 12px var(--sans);
  cursor: pointer;
}
.copy-btn:hover {
  background: #222227;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 32px 40px;
  border-top: 1px solid var(--line);
  color: var(--dimmer);
  font-size: 12.5px;
}
.foot nav {
  display: flex;
  gap: 22px;
}
.foot a:hover {
  color: var(--text);
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature.flip > :first-child {
    order: 0;
  }
  .agents {
    grid-template-columns: repeat(3, 1fr);
  }
  .agent:nth-child(3) {
    border-right: 0;
  }
  .agent:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .pages {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .nav nav a:not(.pill) {
    display: none;
  }
  .agents {
    grid-template-columns: 1fr 1fr;
  }
  .agent {
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line);
  }
  .foot {
    flex-direction: column;
  }
}

/* Exceptions to the full-width media rule and the inline code chip. */
.brand img {
  width: 18px;
  height: 18px;
}
.agent code {
  padding: 0;
  border: 0;
  background: none;
  color: var(--dimmer);
}

/* ---------- hero: the headline inside a wireframe of the app ---------- */
.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 40px;
  text-align: center;
}
.hero-frame {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 36px;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 18%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 18%, transparent 62%);
}
.hf-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}
.hf-pane {
  display: flex;
  gap: 6px;
  padding: 9px 10px;
  border-right: 1px solid var(--line-strong);
}
.hf-pane:last-child {
  border-right: 0;
}
.hf-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--dimmer);
  font-size: 12.5px;
  white-space: nowrap;
}
.hf-tab.on {
  background: #1d1d22;
  color: #c9c9cf;
}
.hf-tab i {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(90, 159, 218, 0.2);
  color: #9cc6ee;
  font: 600 11px var(--mono);
  font-style: normal;
}
.hf-tab .badge,
.hero-toast .badge {
  padding: 1px 6px;
  font: 500 10px var(--mono);
}
.hf-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.hf-line.l1 {
  left: 33.33%;
}
.hf-line.l2 {
  left: 66.66%;
}
/* The right-hand pane splits below, over and over: the app's own move. */
.hf-split {
  position: absolute;
  left: 66.66%;
  right: 0;
  top: 21%;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(180, 157, 240, 0.6);
  transform-origin: left;
  animation: hf-split 6s ease-in-out infinite;
}
.hf-drop {
  position: absolute;
  left: calc(66.66% + 1px);
  right: 0;
  top: 21%;
  bottom: 0;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(180, 157, 240, 0.7);
  background: rgba(180, 157, 240, 0.07);
  color: var(--accent);
  font: 11px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: hf-drop 6s ease-in-out infinite;
}
@keyframes hf-split {
  0%,
  30% {
    transform: scaleX(0);
    opacity: 0;
  }
  45%,
  85% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}
@keyframes hf-drop {
  0%,
  8% {
    opacity: 0;
  }
  15%,
  32% {
    opacity: 1;
  }
  40%,
  100% {
    opacity: 0;
  }
}

/* A new-plan notification, as the app shows it, landing in the left pane. */
.hero-toast {
  position: absolute;
  left: 52px;
  top: 380px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 11px 11px 13px;
  border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line-strong));
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  background: #17171b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  text-align: left;
  animation: hero-toast 7s ease-in-out infinite;
}
.hero-toast p {
  margin: 0;
}
.ht-eyebrow {
  color: var(--accent);
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ht-title {
  margin-top: 2px !important;
  font-size: 13.5px;
  font-weight: 500;
}
.ht-detail {
  color: var(--dim);
  font-size: 11.5px;
}
.ht-doc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px !important;
  overflow: hidden;
  color: #c9c9cf;
  font-size: 12px;
  white-space: nowrap;
}
.ht-btn {
  flex: none;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent);
  color: #1a1030;
  font-size: 12.5px;
  font-weight: 500;
}
@keyframes hero-toast {
  0%,
  10% {
    opacity: 0;
    transform: translateY(14px);
  }
  18%,
  86% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}

.hero-copy {
  position: relative;
  padding-top: 170px;
}
.hero-copy h1 {
  text-shadow:
    0 0 40px var(--bg),
    0 0 80px var(--bg);
}
.hero-copy::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 120px;
  z-index: -1;
  width: min(760px, 100%);
  height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--bg) 40%, transparent 72%);
}

/* The real app, running in the page. */
.demo {
  position: relative;
  margin-top: 64px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.18);
}
.demo-window {
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(180, 157, 240, 0.08);
  text-align: left;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0d0d0f;
}
.demo-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2a2f;
}
.demo-url {
  margin: 0 auto;
  padding: 3px 40px;
  border-radius: 6px;
  background: var(--raised);
  color: var(--dimmer);
  font: 11.5px var(--mono);
}
/* Drawn at 125% and scaled to 80%, so the app has a laptop's worth of room. */
.demo-stage {
  height: 760px;
  overflow: hidden;
}
.demo-window iframe {
  display: block;
  width: 125%;
  height: 950px;
  border: 0;
  background: var(--bg);
  transform: scale(0.8);
  transform-origin: 0 0;
}
.demo-fallback {
  display: none;
}

@media (max-width: 900px) {
  .hf-tabs .hf-pane:nth-child(n + 2) .hf-tab:not(.on) {
    display: none;
  }
  .hero-toast {
    display: none;
  }
  .hero-copy {
    padding-top: 130px;
  }
  .demo-stage {
    display: none;
  }
  .demo-fallback {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hf-split,
  .hf-drop,
  .hero-toast {
    animation: none;
  }
}

/* The wireframe's tabs shrink with the page instead of widening it. */
.hf-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hf-pane {
  overflow: hidden;
}
@media (max-width: 600px) {
  .hero {
    padding: 0 16px 32px;
  }
  .hero-frame {
    left: 16px;
    right: 16px;
  }
  .hf-tab:not(.on) {
    display: none;
  }
}

/* Grid children may shrink below their content, so code blocks scroll inside. */
.feature > * {
  min-width: 0;
}
:not(pre) > code {
  overflow-wrap: anywhere;
}

/* The demo's title bar says it is live, in place of a caption above it. */
.demo {
  margin-top: 56px;
}
.demo-chrome {
  position: relative;
}
.demo-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 !important;
}
.try-it {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 3px 10px;
  border: 1px solid rgba(111, 207, 151, 0.35);
  border-radius: 999px;
  color: #a6e3bf;
  font: 500 11.5px var(--mono);
}
.try-it .live-dot {
  animation: live 1.8s ease-in-out infinite;
}
@keyframes live {
  50% {
    box-shadow: 0 0 0 5px rgba(111, 207, 151, 0.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .try-it .live-dot {
    animation: none;
  }
}
