/* ============================================================
   mastra.ai — local rebuild
   Tokens lifted verbatim from the live site (see data/page.json).
   ============================================================ */

@font-face {
  font-family: "Greed";
  src: url("assets/Greed.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GeistMono";
  src: url("assets/GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --bg:        #020202;
  --bg-1:      hsl(0 0% 16%);
  --bg-2:      #161616;
  --bg-3:      #121212;
  --bg-4:      #0d0d0d;
  --bg-5:      #141414;
  --bg-6:      #171717;
  --bg-7:      #1a1a1a;
  --bg-9:      #0a0a0a;
  --bg-10:     #0f0f0f;
  --bg-11:     #292929;
  --bg-12:     #080808;

  --primary:   #18fb6f;
  --primary-2: #18fb6f33;
  --foreground:#d9d9d9;
  --text-1:    #999;
  --text-2:    #fff;
  --text-3:    #939393;
  --text-4:    #a9a9a9;
  --text-5:    #e6e6e6;
  --text-6:    #f5f5f5;
  --text-7:    #707070;
  --text-8:    #5c5c5c;

  --border-1:  #343434;
  --border-2:  #424242;
  --border-3:  #2c2c2c;
  --border-soft:#34343473;
  --border-antigrid: #161616;

  /* layout */
  --radius:    16px;
  --radius-sm: 8px;
  --layout-1:  1120px;
  --layout-2:  1328px;
  --pad:       28px;

  /* type */
  --font-sans: "Greed", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "GeistMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv02", "cv11";
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem; background: var(--bg-2);
  padding: .5rem 1rem; border-radius: 8px; z-index: 100;
}

/* ----- Top promo banner ----- */
.banner {
  background: var(--bg-2);
  border-bottom: 2px solid var(--border-antigrid);
  font-size: 14px;
  color: var(--text-4);
}
.banner__inner {
  max-width: var(--layout-2);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.banner__chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
}
.banner__chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.85); }
}
.banner__title { color: var(--text-2); font-weight: 500; font-size: 14px; }
.banner__cta {
  color: var(--text-2);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 1px;
  transition: border-color .15s;
}
.banner__cta:hover { border-color: var(--primary); }
.banner__meta { margin-left: auto; color: var(--text-7); font-size: 13px; }

/* ----- Nav ----- */
.nav {
  position: sticky; top: 0;
  background: rgba(2,2,2,.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
  z-index: 50;
}
.nav__inner {
  max-width: var(--layout-2);
  margin: 0 auto;
  height: 64px;
  padding: 0 var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2);
  letter-spacing: -.01em;
}
.nav__brand-word { font-weight: 600; font-size: 18px; }

.nav__primary { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav__menu-btn,
.nav__link {
  background: none; border: 0;
  color: var(--text-4);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s;
}
.nav__menu-btn:hover,
.nav__link:hover,
.nav__menu-btn[aria-expanded="true"] {
  color: var(--text-2);
  background: var(--bg-3);
}
.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-top: 1px;
  transition: transform .15s;
}
.nav__menu-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; }

@media (max-width: 880px) {
  .nav__primary, .nav__actions { display: none; }
  .nav__toggle {
    display: inline-flex;
    background: none; border: 0; margin-left: auto;
    padding: 8px; gap: 4px; flex-direction: column;
  }
  .nav__toggle span {
    width: 22px; height: 2px; background: var(--text-2); border-radius: 2px;
  }
}

/* Mega menus */
.megamenu {
  position: absolute; left: 0; right: 0;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-1);
  box-shadow: 0 24px 32px -16px rgba(0,0,0,.6);
}
.megamenu[hidden] { display: none; }
.megamenu__inner {
  max-width: var(--layout-2);
  margin: 0 auto;
  padding: 28px var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.megamenu__col { display: flex; flex-direction: column; gap: 4px; }
.megamenu__eyebrow {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-7);
  margin-bottom: 8px;
}
.megamenu__item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; margin: 0 -12px;
  border-radius: 8px;
}
.megamenu__item:hover { background: var(--bg-5); }
.megamenu__item strong { color: var(--text-2); font-weight: 500; font-size: 14px; }
.megamenu__item span { color: var(--text-7); font-size: 13px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--primary);
  color: #032311;
}
.btn--primary:hover { background: #1cff7a; }
.btn--ghost {
  background: var(--bg-3);
  color: var(--text-2);
  border-color: var(--border-1);
}
.btn--ghost:hover { background: var(--bg-5); border-color: var(--border-2); }

/* ----- Inline command ----- */
.cmd {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 10px 12px 10px 14px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color .15s, background .15s;
}
.cmd:hover { border-color: var(--border-3); background: var(--bg-5); }
.cmd__prompt { color: var(--text-7); }
.cmd code { background: none; padding: 0; }
.cmd__copy {
  display: inline-flex; padding: 4px;
  border-radius: 6px;
  color: var(--text-7);
}
.cmd:hover .cmd__copy { color: var(--text-2); }
.cmd.is-copied { border-color: var(--primary); }
.cmd.is-copied .cmd__copy { color: var(--primary); }
.cmd--lg { padding: 14px 18px; font-size: 16px; }

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .42;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative;
  max-width: var(--layout-2);
  margin: 0 auto;
  padding: 88px var(--pad) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 540px;
}
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px;
}
.hero__h1 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--text-2);
  font-weight: 500;
}
.hero__lede {
  margin: 0;
  max-width: 540px;
  color: var(--text-4);
  font-size: 18px;
  line-height: 1.5;
}
.hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-top: 8px;
}

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  display: grid;
  place-items: center;
}
.hero__art-img {
  position: relative; z-index: 2;
  width: 78%; height: auto;
  filter: drop-shadow(0 22px 64px rgba(24, 251, 111, .18));
}
.orbit {
  position: absolute; inset: 0;
  border: 1px dashed var(--border-1);
  border-radius: 50%;
  animation: spin 32s linear infinite;
  pointer-events: none;
}
.orbit--1 { inset: 8%;  animation-duration: 26s; }
.orbit--2 { inset: -2%; animation-duration: 38s; animation-direction: reverse; opacity: .6; }
.orbit--3 { inset: 16%; animation-duration: 22s; opacity: .5; }
.orbit::before {
  content: ""; position: absolute;
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  top: -4px; left: 50%;
  box-shadow: 0 0 16px var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 56px var(--pad) 64px;
    min-height: 0;
  }
  .hero__art { display: none; }
}

/* ----- Logo marquee ----- */
.logos {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 0;
  overflow: hidden;
  background: var(--bg-12);
}
.logos__track {
  display: flex; gap: 64px;
  align-items: center;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.logos__track:hover { animation-play-state: paused; }
.logos__track svg {
  height: 28px; width: auto;
  color: var(--text-7);
  opacity: .85;
  transition: color .2s, opacity .2s;
}
.logos__track svg:hover { color: var(--text-2); opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----- Section block ----- */
.block {
  max-width: var(--layout-1);
  margin: 0 auto;
  padding: 96px var(--pad);
  display: flex; flex-direction: column; gap: 40px;
}
.block__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.block__head--center { text-align: center; align-items: center; margin-inline: auto; }
.block__eyebrow {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.block__title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--text-2);
  font-weight: 500;
}
.block__lede { margin: 0; color: var(--text-4); font-size: 17px; max-width: 560px; }
.block__head--center .block__lede { margin-inline: auto; }

.inline-link { color: var(--text-2); border-bottom: 1px solid var(--border-2); }
.inline-link:hover { border-color: var(--primary); }

.block__row { display: grid; gap: 18px; }
.block__row--feature {
  grid-template-columns: 1.4fr 1fr;
}
.block__row--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) {
  .block__row--feature, .block__row--two { grid-template-columns: 1fr; }
}

/* ----- Cards ----- */
.card {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
  overflow: hidden;
}
.card__head { display: flex; flex-direction: column; gap: 6px; }
.card__title {
  margin: 0; color: var(--text-2);
  font-size: 22px; font-weight: 500; letter-spacing: -.01em;
}
.card__lede { margin: 0; color: var(--text-4); font-size: 14.5px; }

.card__art {
  border-top: 1px solid var(--border-1);
  margin: 0 -28px -28px;
  padding: 28px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-9));
  flex: 1;
  display: grid; place-items: center;
}
.card__art img { max-height: 280px; width: auto; }
.card__art--world { padding: 0; background: var(--bg-9); }
.card__art--world img { max-height: 320px; width: 100%; object-fit: cover; }

/* code pane */
.codepane {
  border: 1px solid var(--border-1);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-12);
  flex: 1;
  display: flex; flex-direction: column;
}
.codepane__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-9);
  border-bottom: 1px solid var(--border-1);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-7);
}
.codepane__bar .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--bg-11);
}
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }
.codepane__file { margin-left: 8px; }

.codepane__pre {
  margin: 0;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-5);
  line-height: 1.55;
  overflow: auto;
  flex: 1;
}
.codepane__pre code { display: block; white-space: pre; }
.tok-kw { color: #c084fc; }
.tok-str { color: #18fb6f; }
.tok-fn  { color: #f5f5f5; }
.tok-num { color: #f59e0b; }
.tok-cmt { color: var(--text-7); font-style: italic; }
.tok-id  { color: #67e8f9; }
.tok-pn  { color: var(--text-7); }

/* ----- Primitive tabs (icon → label on hover, click swaps code) ----- */
.prim {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .prim { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .prim { grid-template-columns: repeat(2, 1fr); } }

.prim-tab {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-4));
  border: 1px solid var(--border-1);
  border-radius: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-4);
  transition:
    border-color .25s ease,
    background    .25s ease,
    transform     .25s ease,
    box-shadow    .25s ease;
  overflow: hidden;
}
.prim-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 0%, rgba(24,251,111,.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}
.prim-tab:hover, .prim-tab[aria-selected="true"] {
  border-color: var(--border-3);
  transform: translateY(-2px);
}
.prim-tab:hover::before, .prim-tab[aria-selected="true"]::before { opacity: 1; }
.prim-tab[aria-selected="true"] {
  border-color: rgba(24,251,111,.45);
  box-shadow: 0 0 0 1px rgba(24,251,111,.1), 0 18px 40px -22px rgba(24,251,111,.5);
}
.prim-tab__icon {
  width: 38px; height: 38px;
  color: var(--text-3);
  transition: color .25s ease, opacity .2s ease, transform .25s ease;
}
.prim-tab:hover .prim-tab__icon,
.prim-tab[aria-selected="true"] .prim-tab__icon {
  opacity: 0;
  transform: scale(.6);
}
.prim-tab__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -.005em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease .05s, transform .25s ease .05s, color .2s ease;
  pointer-events: none;
}
.prim-tab:hover .prim-tab__label,
.prim-tab[aria-selected="true"] .prim-tab__label {
  opacity: 1;
  transform: translateY(0);
}
.prim-tab[aria-selected="true"] .prim-tab__label { color: var(--primary); }

/* ============================================================
   Productionize section — scroll-reactive arc visualization
   ============================================================ */
.productionize { position: relative; }
.prod-arc-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  margin-bottom: -120px;
  pointer-events: none;
  display: grid;
  place-items: start center;
  --arc-progress: 0;          /* set by app.js on scroll, 0 → 1 */
  --arc-rotate: -90deg;       /* rotated by progress */
  --arc-scale:  .96;
}
.prod-arc {
  width: min(720px, 88vw);
  height: auto;
  overflow: visible;
  transform: rotate(calc(-90deg + var(--arc-progress) * 90deg)) scale(var(--arc-scale));
  transform-origin: 50% 100%;
  transition: transform .12s linear;
}
.prod-arc__axes line {
  stroke: var(--border-1);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: calc(.2 + var(--arc-progress) * .6);
  transition: opacity .12s linear;
}
.prod-arc__ring {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px currentColor);
  stroke-dasharray: 1000;
  stroke-dashoffset: calc(1000 - var(--arc-progress) * 1000);
  transition: stroke-dashoffset .12s linear;
}
.prod-arc__ring--prod      { color: var(--primary); stroke: currentColor; }
.prod-arc__ring--staging   { color: #f59e0b; stroke: currentColor; }
.prod-arc__ring--prototype { color: #f59e0b; stroke: currentColor; opacity: .85; }

.prod-arc__rlabel {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: currentColor;
  opacity: calc(var(--arc-progress) * 1);
  transition: opacity .15s linear;
}
.prod-arc__rlabel--prod      { color: var(--primary); }
.prod-arc__rlabel--staging   { color: #f59e0b; }
.prod-arc__rlabel--prototype { color: #f59e0b; }

.prod-arc__star { color: inherit; }
.prod-arc__star--prod      { color: var(--primary); }
.prod-arc__star--staging   { color: #f59e0b; }
.prod-arc__star--prototype { color: #f59e0b; }

.prod-arc__label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-7);
  opacity: calc(.4 + var(--arc-progress) * .6);
  transition: opacity .15s linear;
  white-space: nowrap;
}
.prod-arc__label--prompts     { top: 8px;   left: calc(50% - 28px); }
.prod-arc__label--experiments { top: 64px;  right: calc(50% - 220px); }
.prod-arc__label--evals       { top: 350px; right: calc(50% - 290px); }
.prod-arc__label--obs         { top: 350px; left:  calc(50% - 320px); }

@media (max-width: 1024px) {
  .prod-arc-wrap { height: 320px; margin-bottom: -90px; }
  .prod-arc__label--experiments { right: calc(50% - 160px); }
  .prod-arc__label--evals       { top: 270px; right: calc(50% - 220px); }
  .prod-arc__label--obs         { top: 270px; left:  calc(50% - 250px); }
}
@media (max-width: 720px) {
  .prod-arc-wrap { display: none; }
}

/* ============================================================
   Eval chart — interactive 2-series stepped line chart
   ============================================================ */
.evalchart {
  border: 1px solid var(--border-1);
  border-radius: 12px;
  background: var(--bg-12);
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex; flex-direction: column;
}
.evalchart__legend {
  position: absolute;
  top: 16px; left: 16px;
  display: flex; flex-direction: column;
  gap: 4px;
  background: rgba(15,15,15,.92);
  border: 1px solid var(--border-1);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-2);
  z-index: 2;
  pointer-events: none;
  transition: transform .08s linear;
  --tx: 0px;
  transform: translateX(var(--tx));
}
.evalchart__name {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2); font-weight: 500;
  margin-bottom: 4px;
}
.evalchart__name svg { width: 14px; height: 14px; color: var(--primary); }
.evalchart__series {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-4);
}
.evalchart__series strong {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.evalchart__series .bar {
  width: 3px; height: 12px; border-radius: 2px;
}
.evalchart__series--green  .bar { background: var(--primary); }
.evalchart__series--orange .bar { background: #f59e0b; }

.evalchart__svg {
  margin-top: auto;
  width: 100%;
  height: 220px;
  cursor: crosshair;
}
.evalchart__grid line { stroke: var(--border-1); stroke-width: 1; opacity: .35; }
.evalchart__line {
  fill: none;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px currentColor);
}
.evalchart__line--green  { color: var(--primary); stroke: currentColor; }
.evalchart__line--orange { color: #f59e0b; stroke: currentColor; }
.evalchart__dot {
  filter: drop-shadow(0 0 6px currentColor);
  transition: cx .08s linear, cy .08s linear;
}
.evalchart__dot--green  { fill: var(--primary); color: var(--primary); }
.evalchart__dot--orange { fill: #f59e0b; color: #f59e0b; }
.evalchart__cursor {
  stroke: var(--border-2);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity .12s linear, x1 .08s linear, x2 .08s linear;
}
.evalchart.is-tracking .evalchart__cursor { opacity: 1; }

/* ----- Trace card ----- */
.trace {
  border: 1px solid var(--border-1);
  border-radius: 12px;
  background: var(--bg-12);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
}
.trace__row {
  display: grid;
  grid-template-columns: 1.4fr 2.2fr auto;
  align-items: center;
  gap: 12px;
}
.trace__name { color: var(--text-4); }
.trace__row--root .trace__name { color: var(--text-2); }
.trace__bar {
  position: relative;
  height: 8px;
  background: var(--bg-7);
  border-radius: 4px;
  overflow: hidden;
}
.trace__bar::after {
  content: "";
  position: absolute;
  left: var(--off);
  width: var(--len);
  top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--primary), #0fa84a);
  border-radius: 4px;
}
.trace__row--root .trace__bar::after {
  background: linear-gradient(90deg, var(--primary), var(--primary));
  opacity: .9;
}
.trace__dur { color: var(--text-7); font-variant-numeric: tabular-nums; }

/* ----- Deployments card ----- */
.deployments {
  border: 1px solid var(--border-1);
  border-radius: 12px;
  background: var(--bg-12);
  flex: 1;
  display: flex; flex-direction: column;
}
.dep-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-1);
  font-size: 13px;
  color: var(--text-4);
}
.dep {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-1);
}
.dep:last-child { border-bottom: 0; }
.dep--ghost { opacity: .4; }
.dep__meta { display: flex; flex-direction: column; gap: 2px; }
.dep__name { color: var(--text-2); font-size: 14px; font-weight: 500; }
.dep__sha {
  color: var(--text-7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .01em;
}
.dep__pr {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-4);
}
.dep__pr::before {
  content: "";
  width: 11px; height: 11px;
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: inset 0 0 0 2px var(--bg-12);
  opacity: .55;
}
.dep__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-7);
  color: var(--text-4);
  border: 1px solid var(--border-1);
}
.dep__pill--ok       { color: var(--primary); border-color: var(--primary-2); background: rgba(24,251,111,.08); }
.dep__pill--deploying { color: #f59e0b; border-color: rgba(245,158,11,.32); background: rgba(245,158,11,.08); }
.dep__spinner {
  width: 8px; height: 8px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

/* ----- Flexible architecture (vertical agent → cloud diagram) ----- */
.flexarch {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  flex: 1;
  align-items: stretch;
}
.flexarch__col {
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
  gap: 32px;
}
.flexarch__row {
  display: flex; flex-direction: column;
  gap: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--border-1);
}
.flexarch__label {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.flexarch__icons {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-4);
}
.flexarch__icons span { display: inline-grid; place-items: center; }

.flexarch__pipe {
  position: relative;
  width: 220px;
  display: flex; align-items: center; justify-content: center;
}
.flexarch__svg { width: 100%; height: 360px; }
.flexarch__pipe-line {
  stroke: var(--border-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  fill: none;
}
.flexarch__chip {
  fill: none;
  stroke: var(--border-1);
  stroke-width: 1;
}
.flexarch__hub-bg {
  fill: var(--bg-3);
  stroke: rgba(24,251,111,.45);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 24px rgba(24,251,111,.4));
}
.flexarch__hub-icon  { color: var(--primary); }
.flexarch__node {
  color: var(--text-3);
  opacity: .85;
}
.flexarch__deploy {
  position: absolute;
  bottom: 22px; right: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}
.flexarch__deploy::after {
  content: "";
  position: absolute;
  width: 14px; height: 18px;
  right: -16px; bottom: -14px;
  background:
    linear-gradient(135deg, transparent 0 50%, var(--text-2) 50% 60%, transparent 60%),
    linear-gradient(45deg,  transparent 0 50%, var(--text-2) 50% 60%, transparent 60%);
  -webkit-mask:
    polygon(0 0, 70% 50%, 35% 55%, 50% 100%, 35% 100%, 18% 60%, 0 70%);
}
.flexarch__deploy::after {
  /* Cursor glyph drawn with clip-path on a tiny div */
  content: "";
  width: 0; height: 0;
  border-left:  9px solid transparent;
  border-right: 0 solid transparent;
  border-top:   13px solid var(--text-2);
  position: absolute;
  right: -16px; bottom: -10px;
  transform: rotate(-32deg);
  background: none;
  -webkit-mask: none;
          mask: none;
  filter: drop-shadow(-1px 1px 0 var(--bg-9));
}
.flexarch__deploy:hover { border-color: var(--border-3); background: var(--bg-5); }

@media (max-width: 880px) {
  .flexarch { grid-template-columns: 1fr; }
  .flexarch__pipe { width: 100%; }
}

/* ----- Templates ----- */
.templates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .templates { grid-template-columns: 1fr; } }
.tpl {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s;
}
.tpl:hover { border-color: var(--primary-2); transform: translateY(-2px); }
.tpl__pill {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); width: fit-content;
}
.tpl__title { margin: 0; color: var(--text-2); font-size: 20px; font-weight: 500; }
.tpl__lede  { margin: 0; color: var(--text-4); font-size: 14px; flex: 1; }
.tpl__thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-1);
  background: var(--bg-12);
}
.tpl__thumb img { width: 100%; height: auto; display: block; }

/* ----- Learn cards ----- */
.learn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 880px) { .learn { grid-template-columns: 1fr; } }
.learn__card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.learn__card:hover { border-color: var(--primary-2); transform: translateY(-2px); }
.learn__cover {
  width: 180px; height: 100%; min-height: 180px;
  object-fit: cover; background: var(--bg-9);
}
.learn__cover--dark {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-9), var(--bg-3));
  color: var(--primary);
}
.learn__cover--dark svg { width: 64px; height: 64px; }
.learn__body { padding: 22px 22px 22px 0; display: flex; flex-direction: column; gap: 6px; }
.learn__pill { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.learn__title { margin: 0; color: var(--text-2); font-size: 20px; font-weight: 500; }
.learn__lede  { margin: 0; color: var(--text-4); font-size: 14px; flex: 1; }
.learn__cta   { color: var(--primary); font-size: 13px; }

/* ----- Ship section ----- */
.ship {
  max-width: var(--layout-1);
  margin: 0 auto;
  padding: 96px var(--pad);
  text-align: center;
  display: flex; flex-direction: column; gap: 32px; align-items: center;
}
.ship__title {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500; letter-spacing: -.025em;
  color: var(--text-2);
}
.ship__ctas { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* ----- FAQ ----- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  padding: 96px var(--pad);
  display: flex; flex-direction: column; gap: 32px;
}
.faq__title {
  margin: 0; text-align: center;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500; letter-spacing: -.02em; color: var(--text-2);
}
.faq__list {
  border-top: 1px solid var(--border-1);
}
.faq__item {
  border-bottom: 1px solid var(--border-1);
}
.faq__trigger {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none; border: 0;
  padding: 22px 4px;
  text-align: left;
  color: var(--text-2);
  font-size: 17px; font-weight: 500;
  transition: color .15s;
}
.faq__trigger:hover { color: var(--primary); }
.faq__icon {
  width: 16px; height: 16px;
  position: relative;
  flex: 0 0 16px;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s;
}
.faq__icon::before { left: 0; right: 0; top: 50%; height: 1.5px; transform: translateY(-50%); }
.faq__icon::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; transform: translateX(-50%); }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: translateX(-50%) scaleY(0); }

.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--text-4);
  font-size: 15.5px;
  line-height: 1.6;
}
.faq__panel-inner {
  padding: 0 4px 24px;
}

/* ----- Footer ----- */
.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-12);
  padding: 64px 0 36px;
}
.footer__inner {
  max-width: var(--layout-2);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.4fr 4fr;
  gap: 64px;
}
@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__home { width: fit-content; color: var(--text-2); }
.footer__byline { margin: 0; color: var(--text-7); font-size: 14px; max-width: 280px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-1);
  color: var(--text-4);
  transition: color .15s, border-color .15s;
}
.footer__social a:hover { color: var(--text-2); border-color: var(--border-3); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .footer__cols { grid-template-columns: repeat(2, 1fr); } }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 {
  margin: 0 0 4px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.footer__col a {
  font-size: 13.5px;
  color: var(--text-7);
}
.footer__col a:hover { color: var(--text-2); }

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-7);
  font-size: 12.5px;
  flex-wrap: wrap; gap: 12px;
}
.footer__status { display: inline-flex; align-items: center; gap: 8px; }
.dot--ok {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}
.footer__bottom a { color: var(--text-4); }
.footer__bottom a:hover { color: var(--text-2); }
