/* Relay landing (Figma: AI SaaS Landing, v6). Same palette as the app. */
:root {
  --bg: #0b0b0b;
  --bg-2: #0f0f0f;
  --card: #131313;
  --card-2: #181818;
  --panel: #1b1b1b;
  --fg: #f4f4f4;
  --fg-2: #a3a6ab;
  --fg-3: #6f7277;
  --dim: #85888d;
  --line: rgba(237, 236, 236, 0.08);
  --line-2: rgba(237, 236, 236, 0.13);
  --light: #edecec;
  --amber: #e8a33d;
  --violet: #9e79f7;
  --teal: #4fb6a0;
  --blue: #4c7cf0;
  --cyan: #4ad8ec;
  --pink: #e86a8e;
  --green: #4ade80;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --frame: 1120px;
  --content: 1024px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
}

/* ---------- shared bits ---------- */
.ghost {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--light);
}
.i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.dim {
  color: var(--dim);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.dot-green,
.dot-violet {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}
.dot-violet {
  background: var(--violet);
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-light {
  background: var(--light);
  color: #0a0a0a;
}
.btn-light:hover {
  background: #fff;
}
.btn-dark {
  background: #121212;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-dark:hover {
  background: #1a1a1a;
  border-color: rgba(237, 236, 236, 0.22);
}
.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}
.btn.block {
  width: 100%;
}

/* ---------- nav: one floating pill ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 10px;
  border-radius: 18px;
  background: rgba(24, 24, 24, 0.82);
  border: 1px solid rgba(237, 236, 236, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 14px;
}
.nav-logo .ghost {
  width: 24px;
  height: 24px;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 14px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #a9acb1;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: var(--fg);
}
.nav-link .i {
  width: 14px;
  height: 14px;
}
.nav-login {
  margin-right: 4px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--light);
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover {
  background: #fff;
}
.nav-cta:active {
  transform: translateY(1px);
}
.nav-cta .i {
  width: 16px;
  height: 16px;
}
/* The Apple mark sits a touch high next to text. */
[data-os="mac"] [data-download] .i {
  margin-top: -2px;
}
/* Features: a three-column menu under the nav, opened by hover or click */
.nav-bar {
  position: relative;
}
.nav-dd.open .nav-link {
  color: var(--fg);
  background: rgba(237, 236, 236, 0.07);
}
.nav-dd .nav-link .i {
  transition: transform 0.2s;
}
.nav-dd.open .nav-link .i {
  transform: rotate(180deg);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(780px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px;
  background: rgba(17, 17, 17, 0.985);
  border: 1px solid rgba(237, 236, 236, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
/* An invisible bridge so the pointer can travel from the button to the menu. */
.nav-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-dd.open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mm-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 6px;
}
.mm-col + .mm-col {
  border-left: 1px solid rgba(237, 236, 236, 0.07);
}
.nav-menu a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 10px;
  border-radius: 12px;
  transition: background 0.15s;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(237, 236, 236, 0.05);
  outline: none;
}
.mm-ico {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(237, 236, 236, 0.06);
  border: 1px solid rgba(237, 236, 236, 0.18);
  box-shadow: inset 0 0 12px rgba(237, 236, 236, 0.05);
  color: var(--light);
  transition: background 0.15s, border-color 0.15s;
}
.nav-menu a:hover .mm-ico {
  background: rgba(237, 236, 236, 0.11);
  border-color: rgba(237, 236, 236, 0.36);
}
.mm-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mm-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 3px;
}
.mm-text span {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-3);
}

/* ---------- page frame: the thin guide lines and "+" marks ---------- */
.frame {
  max-width: var(--frame);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.section,
.hero,
.footer {
  position: relative;
}
.cross {
  position: absolute;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
.cross[style*="right"] {
  transform: translate(50%, -50%);
}
.cross::before,
.cross::after {
  content: "";
  position: absolute;
  background: rgba(237, 236, 236, 0.35);
}
.cross::before {
  left: 6px;
  top: 0;
  width: 1px;
  height: 13px;
}
.cross::after {
  top: 6px;
  left: 0;
  width: 13px;
  height: 1px;
}

/* ---------- hero ---------- */
.hero {
  margin: 0 auto;
  max-width: 880px;
  padding: 150px 24px 72px;
  text-align: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 1;
}
.hero-ghost {
  width: 0.84em;
  height: 0.84em;
  vertical-align: -0.1em;
  margin: 0 0.1em;
}
.lede {
  max-width: 480px;
  margin: 28px auto 0;
  color: var(--fg-2);
  font-size: 15.5px;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------- product mockup ---------- */
.showcase {
  position: relative;
  padding: 56px 24px 40px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, #101010 0%, var(--bg) 85%);
}
.glow {
  position: absolute;
  pointer-events: none;
}
.glow-amber {
  inset: -10% -20% auto;
  height: 520px;
  background: radial-gradient(48% 60% at 8% 70%, rgba(232, 163, 61, 0.16), transparent 70%),
    radial-gradient(48% 60% at 92% 70%, rgba(232, 163, 61, 0.12), transparent 70%),
    radial-gradient(35% 40% at 62% 0%, rgba(158, 121, 247, 0.16), transparent 70%);
}
.app {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: #0d0d0d;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-size: 13px;
}
.app-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.dots {
  display: flex;
  gap: 6px;
}
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}
.dots i:nth-child(2) {
  background: #febc2e;
}
.dots i:nth-child(3) {
  background: #28c840;
}
.app-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--fg-2);
}
.app-body {
  display: grid;
  grid-template-columns: 56px 232px 1fr;
  min-height: 640px;
}
.app-rail {
  border-right: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.av {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #171717;
  border: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg-2);
}
.av.on {
  background: #242424;
  color: var(--fg);
  border-color: var(--line-2);
}
.av.add {
  background: none;
  color: var(--fg-3);
}
.app-side {
  border-right: 1px solid var(--line);
  padding: 12px;
}
.tabs {
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: #151515;
  border: 1px solid var(--line);
}
.tab {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  border-radius: 7px;
  font-size: 12px;
  color: var(--fg-3);
}
.tab.on {
  background: var(--light);
  color: #0a0a0a;
  font-weight: 500;
}
.search {
  margin: 10px 0 14px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #141414;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-3);
}
.dept {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 14px 6px 6px;
}
.agent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--fg-2);
  border: 1px solid transparent;
}
.agent .ghost {
  width: 16px;
  height: 16px;
}
.agent.on {
  color: var(--fg);
  background: linear-gradient(90deg, rgba(232, 163, 61, 0.14), rgba(232, 163, 61, 0.05));
  border-color: rgba(232, 163, 61, 0.45);
}
.unread {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.app-chat {
  padding: 22px 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.msg-user {
  align-self: flex-end;
  background: var(--light);
  color: #0a0a0a;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
}
.msg-agent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.msg-agent > .ghost {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.msg-main {
  flex: 1;
  min-width: 0;
}
.msg-main p {
  color: var(--fg-sec, #d5d9e2);
  font-size: 13px;
}
.outliers {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  background: #111;
  max-width: 520px;
}
.outlier {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
}
.outlier.hot {
  background: #1b1b1b;
}
.outlier strong,
.concept strong {
  display: block;
  font-weight: 500;
  font-size: 12.5px;
}
.outlier small,
.concept small {
  color: var(--fg-3);
  font-size: 11px;
}
.thumb {
  position: relative;
  width: 104px;
  height: 58px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.thumb b {
  position: absolute;
  top: 5px;
  left: 5px;
  background: #fff;
  color: #0a0a0a;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}
.thumb em {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-style: normal;
  font-size: 9px;
  background: rgba(0, 0, 0, 0.75);
  padding: 0 4px;
  border-radius: 3px;
}
.t1 {
  background: radial-gradient(60% 80% at 70% 40%, #4a6fd6 0%, #1d2547 55%, #0f1324 100%);
}
.t2 {
  background: radial-gradient(70% 90% at 40% 40%, #b8792e 0%, #5a3818 60%, #26180b 100%);
}
.t3 {
  background: radial-gradient(70% 90% at 60% 30%, #8b4fd0 0%, #3e2363 60%, #1a0f2b 100%);
}
.t4 {
  width: 128px;
  height: 72px;
  background: radial-gradient(70% 90% at 45% 40%, #b0453b 0%, #5c211c 60%, #2a100d 100%);
}
.concept {
  display: flex;
  gap: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #141414;
}
.concept-btns {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.mini {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
}
.mini.light {
  background: var(--light);
  color: #0a0a0a;
  border-color: var(--light);
  font-weight: 500;
}
.voice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #141414;
}
.play {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--light);
  color: #0a0a0a;
}
.play .i {
  width: 11px;
  height: 11px;
}
.wave,
.art-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.wave {
  height: 18px;
}
.wave i,
.art-wave i {
  width: 2px;
  height: var(--h);
  border-radius: 1px;
  background: var(--light);
}
.art-wave i {
  width: 3px;
}
.ship-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.ship-pill .i {
  width: 12px;
  height: 12px;
}
.composer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.composer span:first-child {
  flex: 1;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #111;
  color: var(--fg-3);
  font-size: 12.5px;
}
.send {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--light);
  color: #0a0a0a;
}

/* ---------- powered by: part of the product band, right under the app ---------- */
.powered {
  position: relative;
  margin: 40px auto 0;
  /* Nudged a touch left of centre (an offset, so the scroll-in animation can't undo it). */
  left: -5px;
  text-align: center;
}
.powered p {
  font-size: 12px;
  font-weight: 500;
  color: rgba(237, 236, 236, 0.5);
}
.powered-logos {
  /* Equal gaps between logos (like the reference), with the middle logo dead centre:
     the outer columns share the leftover space and hug the middle one. */
  --gap: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: var(--gap);
  align-items: center;
  margin-top: 12px;
}
.powered-logos span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(237, 236, 236, 0.5);
  white-space: nowrap;
}
.powered-logos span:first-child {
  justify-self: end;
}
.powered-logos span:last-child {
  justify-self: start;
}
.powered-logos em {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-style: normal;
}
/* Faint dividers halfway across each gap, fading out at both ends. */
.powered-logos span + span::before {
  content: "";
  position: absolute;
  left: calc(var(--gap) / -2);
  top: -18px;
  bottom: -18px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(237, 236, 236, 0.12), transparent);
}
.powered-logos .mark {
  width: 16px;
  height: 16px;
}
.mark {
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}

/* ---------- sections ---------- */
.section {
  border-top: 1px solid var(--line);
  padding: 120px 24px;
  text-align: center;
}
.h2 {
  font-size: clamp(36px, 4.4vw, 50px);
  line-height: 1.08;
}
.h2.left {
  text-align: left;
}
.sub {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 14.5px;
}

/* pipeline */
.pipeline {
  list-style: none;
  margin: 52px auto 0;
  padding: 0;
  max-width: var(--content);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  text-align: left;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 14px;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 26px;
  height: 1px;
  background: var(--line-2);
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 2.5px);
  left: calc(100% + 10.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a3a3a;
  z-index: 1;
}
.step.done::after {
  background: rgba(232, 163, 61, 0.7);
}
.step.done::before {
  background: var(--amber);
}
.step.active {
  border-color: rgba(232, 163, 61, 0.65);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.06), 0 0 40px rgba(232, 163, 61, 0.16);
}
.step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step-head .ghost {
  width: 16px;
  height: 16px;
}
.step.active .mono {
  color: var(--amber);
}
.step-art {
  height: 68px;
  margin: 10px 0 14px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid var(--line);
}
.step strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}
.step small {
  font-size: 11.5px;
  color: var(--fg-3);
}
.art-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  padding: 10px 0;
}
.art-bars i {
  width: 11px;
  height: var(--h);
  background: #4a4a4a;
  border-radius: 2px;
}
.art-bars i.hi {
  background: var(--light);
}
.art-pack {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.pack-thumb {
  width: 54px;
  height: 32px;
  border-radius: 5px;
  background: #4a4a4a;
}
.pack-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pack-lines i {
  height: 4px;
  border-radius: 2px;
  background: var(--light);
}
.pack-lines i + i {
  width: 70%;
  background: #4a4a4a;
}
.art-script {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
}
.art-script i {
  height: 4px;
  border-radius: 2px;
  background: #4a4a4a;
}
.art-script i.hi {
  width: 60%;
  background: var(--amber);
}
.art-script i:nth-child(3) {
  width: 85%;
}
.art-script i:nth-child(4) {
  width: 70%;
}
.art-video {
  display: grid;
  place-items: center;
}
.play-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber);
  color: #0a0a0a;
}
.play-dot .i {
  width: 12px;
  height: 12px;
}

/* bento + cards */
.bento {
  margin: 52px auto 0;
  max-width: var(--content);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  text-align: left;
}
/* Rows alternate: wide + narrow, then narrow + wide. */
.bento > .card:nth-child(1),
.bento > .card:nth-child(4) {
  grid-column: span 7;
}
.bento > .card:nth-child(2),
.bento > .card:nth-child(3) {
  grid-column: span 5;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.card-art {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}
.card-text {
  padding: 22px 26px 26px;
  min-height: 118px;
}
.card-art {
  flex: 1;
}
.card-text h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-text p {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 13.5px;
  max-width: 420px;
}
.glow-left .card-art {
  background: radial-gradient(60% 80% at 30% 0%, rgba(232, 163, 61, 0.13), transparent 70%);
}
.glow-right .card-art {
  background: radial-gradient(60% 80% at 60% 0%, rgba(158, 121, 247, 0.14), transparent 70%);
}
.ui-panel {
  width: 100%;
  max-width: 370px;
  padding: 16px;
  border-radius: 12px;
  background: #171717;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.label.center {
  text-align: center;
}
.chips {
  display: flex;
  gap: 6px;
  margin: 10px 0 12px;
}
.chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--fg-2);
}
.chip.on {
  background: var(--light);
  color: #0a0a0a;
  border-color: var(--light);
  font-weight: 500;
}
.key-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #101010;
  border: 1px solid var(--line);
}
.key {
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.paste {
  font-size: 11px;
  color: var(--fg-3);
}
.ok-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.ok-pill .i {
  width: 12px;
  height: 12px;
}
.ch-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ch-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2b2f6b;
  font-size: 11px;
  font-weight: 600;
}
.ch-head strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.ch-head small {
  font-size: 11px;
  color: var(--fg-3);
}
.learn-row {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 7px;
}
.learn-row .mono {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.amber {
  color: var(--amber) !important;
}
.bar {
  height: 4px;
  border-radius: 2px;
  background: #2a2a2a;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #f0c27a, var(--amber));
}
.learn-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 300px;
  margin-top: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #151515;
  font-size: 11.5px;
  color: var(--fg-2);
}
.tag.dim {
  color: var(--fg-3);
}
.i.ok {
  width: 12px;
  height: 12px;
  color: var(--green);
}
.spin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* tools diagram */
.tools {
  justify-content: flex-start;
  padding-top: 22px;
}
/* Chips sit a fixed distance from the hub so their connector lines always meet it. */
.node.top {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--light);
}
.node.top::after {
  content: "";
  position: absolute;
  left: 2.5px;
  top: 6px;
  width: 1px;
  height: 27px;
  background: rgba(237, 236, 236, 0.22);
}
.tool-chip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: rgba(237, 236, 236, 0.22);
}
.tool-chip.l1::after,
.tool-chip.l2::after {
  left: 100%;
}
.tool-chip.r1::after,
.tool-chip.r2::after {
  right: 100%;
}
.relay-hub {
  position: relative;
  margin-top: 46px;
  width: 112px;
  height: 112px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #e2e2e2);
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 0 6px rgba(237, 236, 236, 0.06), 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.relay-hub .ghost {
  width: 26px;
  height: 26px;
}
.relay-hub strong {
  font-size: 13px;
  font-weight: 600;
}
.tool-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #151515;
  border: 1px solid var(--line-2);
  font-size: 12px;
  z-index: 1;
}
.tool-chip .ghost {
  width: 13px;
  height: 13px;
}
.tool-chip.l1,
.tool-chip.l2 {
  right: calc(50% + 56px + 28px);
}
.tool-chip.r1,
.tool-chip.r2 {
  left: calc(50% + 56px + 28px);
}
.tool-chip.l1,
.tool-chip.r1 {
  top: 102px;
}
.tool-chip.l2,
.tool-chip.r2 {
  top: 146px;
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}
.tool-row span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--fg-3);
}

/* 21 roles */
.roles {
  gap: 18px;
}
.ghost-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px 20px;
}
.ghost-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ghost-cell .ghost {
  width: 24px;
  height: 24px;
  opacity: 0.55;
}
.ghost-cell span {
  font-family: var(--mono);
  font-size: 8.5px;
  color: #3f4247;
}
.ghost-cell.lit .ghost {
  opacity: 1;
  filter: drop-shadow(0 0 8px currentColor);
}
.ghost-cell.lit span {
  color: var(--fg-2);
}

/* trio */
.trio {
  margin: 52px auto 0;
  max-width: var(--content);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.trio .card-art {
  min-height: 240px;
  padding: 24px;
}
.radar {
  justify-content: flex-end;
}
.radar-bars {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.radar-bars::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  border-top: 1px dashed rgba(237, 236, 236, 0.18);
}
.radar-bars i {
  flex: 1;
  background: #4a4a4a;
  border-radius: 1px;
}
.radar-bars i.out {
  background: var(--amber);
}
.radar-badge {
  position: absolute;
  top: -6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--amber);
  color: #0a0a0a;
  font-size: 10px;
  font-weight: 700;
}
.legend {
  display: flex;
  gap: 18px;
  align-self: flex-start;
  margin-top: 14px;
}
.legend .mono {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.sw {
  width: 7px;
  height: 7px;
  border-radius: 1px;
}
.sw.gray {
  width: 10px;
  height: 0;
  border-top: 1px dashed #777;
}
.sw.amber {
  background: var(--amber);
}
.approvals {
  gap: 8px;
  justify-content: center;
}
.ap-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #171717;
  border: 1px solid var(--line-2);
}
.ap-row span {
  flex: 1;
  min-width: 0;
}
.ap-row strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-row small {
  font-size: 10.5px;
  color: var(--fg-3);
}
.ap-row em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--fg-3);
}
.ap-row.faded {
  opacity: 0.45;
}
.voice-learn {
  gap: 16px;
}
.quote {
  padding: 14px 16px;
  border-radius: 10px;
  background: #171717;
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg-sec, #d5d9e2);
}
.mem {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--fg-3);
}
.mem .ghost {
  width: 13px;
  height: 13px;
}
.mem strong {
  color: var(--fg);
  font-weight: 500;
}

/* pricing */
.billing {
  position: relative;
  display: inline-flex;
  margin-top: 26px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #121212;
}
/* The white pill slides under whichever option is on. */
.billing-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.38s cubic-bezier(0.3, 0.9, 0.3, 1), width 0.38s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.billing button {
  position: relative;
  z-index: 1;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 0;
  background: none;
  color: var(--fg-3);
  cursor: pointer;
  transition: color 0.3s;
}
.billing button:hover {
  color: var(--fg-2);
}
.billing button.on {
  color: #0a0a0a;
}
/* Prices change with one even scroll: the old value slides out as the new one slides in. */
.price-pill b {
  position: relative;
  display: inline-block;
  height: 1.25em;
  line-height: 1.25em;
  overflow: hidden;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.roll-v {
  display: block;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}
.roll-v.leaving {
  position: absolute;
  left: 0;
  top: 0;
}
[data-annual] {
  transition: opacity 0.16s, transform 0.16s;
}
.swap-out {
  opacity: 0;
  transform: translateY(-3px);
}
.pricing-mark {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 18px;
}
.pricing .sub {
  margin-top: 10px;
}
.plans {
  margin: 34px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
}
.plan {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #141414;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.plan.pro {
  border-color: var(--line-2);
}
/* The painted band on top of each card (drawn in main.js). */
.plan-art {
  position: relative;
  height: 104px;
  background: #1c1c1c;
  overflow: hidden;
}
.plan-art .paint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.plan-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-head h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--fg-2);
  background: rgba(237, 236, 236, 0.07);
  border: 1px solid rgba(237, 236, 236, 0.08);
  white-space: nowrap;
}
.price-pill b {
  color: var(--fg);
  font-weight: 600;
}
.price-pill.hot {
  color: #f6c98a;
  background: rgba(232, 163, 61, 0.12);
  border-color: rgba(232, 163, 61, 0.3);
}
.price-pill.hot b {
  color: #ffd9a0;
}
.plan-pitch {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  min-height: 44px;
}
.plan-get {
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-3);
}
.plan ul {
  list-style: none;
  margin: 12px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.plan li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #c9ccd1;
}
.plan li .i {
  width: 17px;
  height: 17px;
  margin-top: 0.5px;
  color: var(--fg-3);
}
.plan.pro li .i {
  color: var(--amber);
}
.plan-btn {
  margin-top: auto;
  width: 100%;
  height: 44px;
  border-radius: 12px;
}
.plan-btn.btn-dark {
  background: #262626;
  border-color: rgba(237, 236, 236, 0.08);
}
.plan-btn.btn-dark:hover {
  background: #2e2e2e;
}
.plan-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--fg-3);
}

/* faq */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  max-width: calc(var(--content) + 48px);
  margin: 0 auto;
  text-align: left;
  border-top: 1px solid var(--line);
}
.faq-wrap {
  max-width: none;
  padding-left: calc((100% - var(--content)) / 2);
  padding-right: calc((100% - var(--content)) / 2);
}
.faq-intro p {
  margin: 18px 0 22px;
  color: var(--fg-2);
  font-size: 14px;
  max-width: 260px;
}
.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq details {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f0f0f;
  transition: background 0.3s, border-color 0.3s;
}
.faq details.is-open {
  background: #181818;
  border-color: var(--line-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 500;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* The + is two bars; opening shrinks the vertical one away so it becomes a −. */
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  --bar: var(--fg-2);
  background:
    linear-gradient(var(--bar), var(--bar)) center / 9px 1.6px no-repeat,
    linear-gradient(var(--bar), var(--bar)) center / 1.6px 9px no-repeat,
    #222;
  transition: background-size 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.faq details.is-open summary::after {
  --bar: #0a0a0a;
  background:
    linear-gradient(var(--bar), var(--bar)) center / 9px 1.6px no-repeat,
    linear-gradient(var(--bar), var(--bar)) center / 1.6px 0 no-repeat,
    var(--light);
  transform: rotate(180deg);
}
/* Answers slide open and closed (heights animated in main.js); the text eases in. */
.faq details {
  overflow: hidden;
}
.faq details p {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.faq details:not(.is-open) p {
  opacity: 0;
  transform: translateY(-4px);
}
.faq details p {
  padding: 0 22px 20px;
  color: var(--fg-2);
  font-size: 13.5px;
  max-width: 560px;
}

/* closing */
.closing {
  padding-top: 96px;
  padding-bottom: 96px;
}
.cta-card {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 72px 24px;
  border-radius: 18px;
  background: #121212;
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta-ghosts {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}
.cta-ghosts .ghost {
  width: 20px;
  height: 20px;
}
.dots-art {
  position: absolute;
  top: 70px;
  bottom: 70px;
  width: 80px;
  background-image: radial-gradient(circle, rgba(237, 236, 236, 0.75) 1.5px, transparent 1.9px);
  background-size: 10px 10px;
  opacity: 0.8;
}
/* A stepped ramp of bright dots over a faint field, mirrored on each side. */
.dots-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0.25;
}
.dots-art.left {
  left: 56px;
  -webkit-mask: linear-gradient(to top right, #000 48%, rgba(0, 0, 0, 0.18) 52%);
  mask: linear-gradient(to top right, #000 48%, rgba(0, 0, 0, 0.18) 52%);
}
.dots-art.right {
  right: 56px;
  -webkit-mask: linear-gradient(to top left, #000 48%, rgba(0, 0, 0, 0.18) 52%);
  mask: linear-gradient(to top left, #000 48%, rgba(0, 0, 0, 0.18) 52%);
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px calc((100% - var(--content)) / 2) 0;
  overflow: hidden;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}
.foot-logo .ghost {
  width: 20px;
  height: 20px;
}
.foot-brand p {
  margin-top: 14px;
  max-width: 260px;
  color: var(--fg-2);
  font-size: 13.5px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--fg-2);
}
.foot-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}
.foot-cols h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.foot-cols a {
  display: block;
  font-size: 13px;
  color: var(--fg-2);
  margin-bottom: 9px;
}
.foot-cols a:hover {
  color: var(--fg);
}
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: min(500px, 34vw);
  line-height: 0.74;
  letter-spacing: -0.065em;
  text-align: center;
  color: #1d1d1d;
  margin-top: 24px;
  height: 0.6em;
  overflow: hidden;
  user-select: none;
  border-bottom: 1px solid var(--line);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 30px;
  font-size: 12px;
  color: var(--fg-3);
}
.foot-bottom a:hover {
  color: var(--fg);
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .spin {
    animation: none;
  }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1060px) {
  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .step:nth-child(3)::after,
  .step:nth-child(3)::before {
    display: none;
  }
  .app-body {
    grid-template-columns: 56px 200px 1fr;
  }
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-logo {
    margin-right: auto;
  }
  .bento,
  .trio,
  .plans {
    grid-template-columns: 1fr;
  }
  .bento > .card:nth-child(n) {
    grid-column: auto;
  }
  .faq-wrap {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .app-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .app-rail,
  .app-side {
    display: none;
  }
  .section {
    padding: 88px 20px;
  }
  .dots-art {
    display: none;
  }
}
@media (max-width: 640px) {
  .nav-bar {
    width: 100%;
  }
  .hero {
    padding: 112px 16px 52px;
    border: 0;
  }
  .showcase {
    padding: 32px 12px 40px;
  }
  .app-chat {
    padding: 16px 14px;
  }
  .app-bar .mono {
    display: none;
  }
  .thumb {
    width: 84px;
    height: 48px;
  }
  .outlier strong {
    font-size: 12px;
  }
  .concept {
    flex-direction: column;
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .step::after,
  .step::before {
    display: none;
  }
  .powered-logos {
    --gap: 26px;
  }
  .powered-logos span {
    font-size: 13px;
    gap: 6px;
  }
  .powered-logos .mark {
    width: 14px;
    height: 14px;
  }
  .tool-chip.l2,
  .tool-chip.r2 {
    display: none;
  }
  .relay-hub {
    width: 88px;
    height: 88px;
    margin-top: 58px;
  }
  .tool-chip.l1 {
    right: calc(50% + 44px + 18px);
    top: 118px;
  }
  .tool-chip.r1 {
    left: calc(50% + 44px + 18px);
    top: 118px;
  }
  .tool-chip::after {
    width: 18px;
  }
  .node.top::after {
    height: 39px;
  }
  .tool-chip {
    padding: 5px 9px;
    font-size: 11px;
  }
  .ghost-grid {
    gap: 12px 12px;
  }
  .foot-cols {
    gap: 36px;
  }
  .foot-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .cross {
    display: none;
  }
}
