:root {
  /* Product-specific color variants */
  --ink: rgba(15, 23, 42, 0.92);
  --ink-2: rgba(15, 23, 42, 0.7);
  --ink-3: rgba(15, 23, 42, 0.55);
  --bg0: #ffffff;
  --stroke: rgba(15, 23, 42, 0.1);
  --s-red: #f07171;
  --p-blue: #3f6cff;
  --b-green: #66d18f;
  --top-stack-h: 0px; /* JS fills */
}

/* ---------- STACKED STICKY (Ribbon + Header) ---------- */
.top-stack {
  position: sticky;
  top: 0;
  z-index: 10000;
}
.top-stack .waitlist-ribbon {
  position: relative;
  top: 0;
  z-index: 10001;
}
.top-stack .site-header {
  position: sticky;
  top: var(--top-stack-h);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* ---------- Page layout ---------- */
.pwrap {
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(41, 98, 255, 0.12),
      transparent 45%
    ),
    radial-gradient(
      circle at 82% 22%,
      rgba(123, 145, 255, 0.1),
      transparent 55%
    ),
    radial-gradient(
      circle at 50% 92%,
      rgba(41, 98, 255, 0.08),
      transparent 55%
    ),
    var(--bg0);
  color: var(--ink);
}

.p-hero {
  padding: 78px 10%;
}

.p-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.p-title {
  margin: 0 0 10px;
  letter-spacing: -0.045em;
  font-size: clamp(1.5rem, 3.8vw, 3.3rem);
  line-height: 1.05;
  width: fit-content;
}

.p-sub {
  margin: 2% 18px;
  color: var(--ink-2);
  font-weight: 650;
  max-width: 62ch;
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.p-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.p-meta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.74);
  font-weight: 850;
  backdrop-filter: blur(10px);
  font-size: clamp(0.5rem, 3vw, 2rem);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.dot--s {
  background: var(--s-red);
}
.dot--p {
  background: var(--p-blue);
}
.dot--b {
  background: var(--b-green);
}

/* ---------- Sections ---------- */
.section {
  padding: 3%;
}

.head {
  text-align: center;
  max-width: 92ch;
  margin: 0 auto 22px;
  color: var(--ink);
}

.head h2 {
  margin: 2% auto;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  width: fit-content;
}

.head p {
  margin: 0;
  color: var(--ink-2);
  font-weight: 650;
  line-height: 1.6;
}

.panel {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(
    180deg,
    rgba(41, 98, 255, 0.03),
    rgba(2, 6, 23, 0.01)
  );
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.08);
  overflow: hidden;
  padding: 18px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.blk {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06);
}
.blk::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(41, 98, 255, 0.18),
    transparent 60%
  );
  opacity: 0.35;
  pointer-events: none;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
  border: 1px solid rgba(41, 98, 255, 0.18);
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
  position: relative;
  z-index: 1;
}

.blk h3 {
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  color: rgba(15, 23, 42, 0.92);
}
.blk p,
.blk ul {
  position: relative;
  z-index: 1;
}
.blk p {
  margin: 0 0 10px;
  color: rgba(15, 23, 42, 0.68);
  font-weight: 650;
  line-height: 1.55;
}
.blk ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 650;
  line-height: 1.5;
}

/* ---------- Product cards ---------- */
.cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(2, 6, 23, 0.01);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
  min-height: 290px;
  color: var(--ink);
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 98, 255, 0.22);
  background: rgba(41, 98, 255, 0.03);
  box-shadow:
    0 18px 44px rgba(41, 98, 255, 0.12),
    0 12px 34px rgba(2, 6, 23, 0.07);
}

.label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 0.88rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.78);
}
.label--s,
.label--p,
.label--b {
  border-color: rgba(41, 98, 255, 0.22);
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
}

.logo {
  width: 46%;
  height: auto;
  display: block;
  margin: 10px 0 10px;
  object-fit: contain;
}

.card h3 {
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.92);
}
.card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
  font-weight: 650;
  line-height: 1.55;
}

/* Overlays */
.overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  z-index: 10;
}
.card:hover .overlay,
.card:focus-within .overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.card:hover > :not(.overlay),
.card:focus-within > :not(.overlay) {
  opacity: 0;
  transition: opacity 180ms ease;
}

.overlay--video .ov__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
}
.overlay--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease;
}
.card:hover .overlay--video video {
  transform: scale(1);
  filter: saturate(1.03) contrast(1.03) brightness(0.92);
}
.overlay--video .ov__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.08),
    rgba(15, 23, 42, 0.62)
  );
}
.overlay--video .ov__cta {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

.overlay--button {
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.06),
    rgba(15, 23, 42, 0.55)
  );
  border-radius: 18px;
}

.ctaLink {
  width: min(360px, 90%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2962ff, #4f7dff);
  color: white;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 55px rgba(41, 98, 255, 0.4);
  transform: translateY(6px);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-color: #2962ff;
}
.ctaLink::after {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.22),
    transparent
  );
  transform: translateX(-40%);
  transition: transform 600ms ease;
}
.card:hover .ctaLink {
  transform: translateY(0);
  box-shadow: 0 22px 70px rgba(41, 98, 255, 0.55);
}
.card:hover .ctaLink::after {
  transform: translateX(40%);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .p-hero {
    padding: 42px 0 24px;
  }
  .p-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .p-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
  }
  .p-sub {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    margin: 0 0 18px;
  }
  .two {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .section {
    padding: 2rem 0;
  }
  .funnelViz {
    min-height: 280px;
    height: min(380px, 50vw);
  }
  .playgroundAnim {
    min-height: 280px;
    height: min(380px, 50vw);
  }
}

@media (max-width: 520px) {
  .p-hero {
    padding: 32px 0 20px;
  }
  .p-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    line-height: 1.1;
  }
  .p-sub {
    font-size: 1rem;
    line-height: 1.5;
  }
  .blk {
    padding: 14px;
  }
  .tag {
    font-size: 0.8rem;
    padding: 5px 9px;
  }
  .blk h3 {
    font-size: 1.1rem;
  }
  .card {
    padding: 16px;
    min-height: 260px;
  }
  .funnelTag {
    font-size: 0.75rem;
    padding: 8px 12px;
  }
}

/* =========================
               Funnel container
            ========================= */
.funnelWrap {
  padding: 18px 0 0;
}

.funnelViz {
  position: relative;
  width: 100%;
  height: min(420px, 42vw);
  min-height: 300px;
  max-height: 460px;
  border-radius: 22px;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
}

.funnelViz__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Raw / Out pills */
.funnelViz__label {
  position: absolute;
  top: 14px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.72);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  z-index: 5;
  pointer-events: none;
}
.funnelViz__label--raw {
  top: 45%;
  left: 14px;
}
.funnelViz__label--out {
  right: 14px;
}

/* ✅ FIXED overlay labels (these sit ON TOP of the funnel) */
.funnelViz__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* IMPORTANT: your HTML uses class="funnelTag ..." */
.funnelTag {
  position: absolute;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.7);

  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.1);

  transform: rotate(-1deg) skewX(-6deg);
  transform-origin: left center;

  white-space: nowrap;
}

/* positions aligned to your 5 tunnel gates */
.funnelTag.f1 {
  left: 20%;
  top: 18%;
}
.funnelTag.f2 {
  left: 32%;
  top: 23%;
}
.funnelTag.f3 {
  left: 50%;
  top: 30%;
}
.funnelTag.f4 {
  left: 67%;
  top: 33%;
}
.funnelTag.f5 {
  left: 80%;
  top: 45%;
}

@media (max-width: 760px) {
  .funnelTag {
    font-size: 0.6rem;
    padding: 8px 12px;
    transform: none;
  }
  .funnelTag.f3 {
    display: none;
  }
}

.playgroundViz {
  position: relative;
  height: min(420px, 42vw);
  max-height: 460px;
  background: transparent;
}

#playgroundCanvas {
  position: absolute;
  inset: 0;
}

.playgroundOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pgLabel {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  font-weight: 800;
  color: rgba(15, 23, 42, 0.8);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
}

.pgLabel.center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 900;
  background: linear-gradient(135deg, #2962ff, #4f7dff);
  color: white;
}

/* Inputs */
.in1 {
  left: 14%;
  top: 30%;
}
.in2 {
  left: 12%;
  top: 58%;
}
.in3 {
  left: 28%;
  top: 78%;
}
.in4 {
  left: 32%;
  top: 18%;
}

/* Outputs */
.out1 {
  right: 16%;
  top: 30%;
}
.out2 {
  right: 12%;
  top: 54%;
}
.out3 {
  right: 26%;
  top: 78%;
}

.playgroundAnimWrap {
  padding: auto;
}

.playgroundAnim {
  position: relative;
  width: 100%;
  height: min(420px, 42vw);
  min-height: 320px;
  max-height: 520px;
  border-radius: 22px;
  background: inherit;
  overflow: hidden;
  isolation: isolate;
}

#pgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* center badge */
.pgCenterBadge {
  font-size: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2962ff, #4f7dff);
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 50px rgba(41, 98, 255, 0.28);
  z-index: 5;
  opacity: 1;
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

/* cards grid appears after collapse */
.pgCards {
  position: absolute;
  inset: 18px;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 600ms ease,
    transform 600ms ease;
  text-align: center;
  padding: 10%;
}

/* 2 rows on large screens */
.pgCard {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
  padding: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.78);
  min-height: 58px;

  opacity: 0;
  transform: translate(-12px, -12px) scale(0.98);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pgCards.is-in {
  opacity: 1;
  transform: translateY(0);
}

.pgCard.is-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* responsive */
@media (max-width: 980px) {
  .pgCards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   Bash Section
========================= */

.bash-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}

.bash-copy h3 {
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}

.bash-copy p {
  color: rgba(15, 23, 42, 0.68);
  font-weight: 650;
  line-height: 1.55;
}

.bash-list {
  margin: 14px 0 20px;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.72);
}

.bash-actions {
  margin-top: 10px;
}

/* Visual cards */

.bash-visual {
  display: grid;
  gap: 14px;
}

.bash-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  padding: 16px;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.08);
}

.bash-pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.8rem;
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
  border: 1px solid rgba(41, 98, 255, 0.22);
}

.bash-card h4 {
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}

.bash-card p {
  margin: 0 0 8px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.68);
}

.bash-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
}

/* Responsive */
@media (max-width: 980px) {
  .bash-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BASH SECTION (white/blue)
========================= */

.bashWrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 15%, rgba(41, 98, 255, 0.1), transparent 55%),
    radial-gradient(circle at 80% 55%, rgba(41, 98, 255, 0.06), transparent 60%);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.08);
  padding: 18px;
}

.bashNet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bashGrid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

@media (max-width: 980px) {
  .bashGrid {
    grid-template-columns: 1fr;
  }
}

.bashCard {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06);
}

.bashCardHead {
  margin-bottom: 12px;
}

.bashTitleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.bashPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(41, 98, 255, 0.18);
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
  font-weight: 900;
  font-size: 0.86rem;
}

.bashPillGhost {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.72);
}

.bashPillBlue {
  background: rgba(41, 98, 255, 0.1);
}
.bashPillGreen {
  background: rgba(102, 209, 143, 0.12);
  border-color: rgba(102, 209, 143, 0.22);
  color: rgba(47, 155, 94, 0.95);
}
.bashPillPurple {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.22);
  color: rgba(109, 40, 217, 0.9);
}

.bashCardTitle {
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(15, 23, 42, 0.92);
  margin-bottom: 6px;
}

.bashCardSub {
  color: rgba(15, 23, 42, 0.66);
  font-weight: 650;
  line-height: 1.55;
}

/* Live feed */
.bashFeed {
  display: grid;
  gap: 10px;
  min-height: 260px;
  padding-top: 6px;
}

.feedCard {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.05);
  transform: translateX(-10px);
  opacity: 0;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feedCard.is-in {
  transform: translateX(0);
  opacity: 1;
}

.feedTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.feedPill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  border: 1px solid rgba(41, 98, 255, 0.18);
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
}
.feedPill--green {
  border-color: rgba(102, 209, 143, 0.22);
  background: rgba(102, 209, 143, 0.12);
  color: rgba(47, 155, 94, 0.95);
}
.feedPill--purple {
  border-color: rgba(167, 139, 250, 0.22);
  background: rgba(167, 139, 250, 0.12);
  color: rgba(109, 40, 217, 0.92);
}
.feedPill--ghost {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: rgba(15, 23, 42, 0.7);
}

.feedTitle {
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.feedBody {
  color: rgba(15, 23, 42, 0.68);
  font-weight: 650;
  line-height: 1.5;
}

.feedMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.feedTag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(2, 6, 23, 0.02);
  color: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  font-size: 0.82rem;
}

/* Marketplace grid */
.bashMarket {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 980px) {
  .bashMarket {
    grid-template-columns: 1fr;
  }
}

.mTile {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.05);
}

.mTop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mIcon {
  font-size: 1.2rem;
}
.mName {
  font-weight: 950;
  letter-spacing: -0.02em;
}
.mDesc {
  color: rgba(15, 23, 42, 0.66);
  font-weight: 650;
  line-height: 1.45;
}

/* Loop diagram */
.bashLoop {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.loopNode {
  flex: 1 1 160px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.05);
  position: relative;
}

.loopNodeBash {
  border-color: rgba(41, 98, 255, 0.22);
  background: rgba(41, 98, 255, 0.06);
}

.loopName {
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.loopDesc {
  color: rgba(15, 23, 42, 0.66);
  font-weight: 650;
}

.loopArrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 900;
  padding: 0 4px;
}

/* Pulse animation on diagram nodes */
.loopNode.is-pulse {
  outline: 3px solid rgba(41, 98, 255, 0.25);
  outline-offset: 2px;
  box-shadow: 0 18px 44px rgba(41, 98, 255, 0.12);
}

/* Recommendation panel */
.recoBox {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.05);
}

.recoRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.recoStatNum {
  font-size: 1.7rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: rgba(15, 23, 42, 0.92);
}

.recoStatLbl {
  color: rgba(15, 23, 42, 0.62);
  font-weight: 700;
}

.recoTags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.recoTag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(41, 98, 255, 0.18);
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
  font-weight: 850;
  font-size: 0.82rem;
}

.recoList {
  display: grid;
  gap: 8px;
}

.recoItem {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(2, 6, 23, 0.02);
  padding: 10px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.72);
}

/* =========================
   Bash Flowchart (SVG)
========================= */

.bashFlow {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 18% 25%, rgba(41, 98, 255, 0.1), transparent 55%),
    radial-gradient(circle at 78% 55%, rgba(41, 98, 255, 0.06), transparent 60%);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.06);
  padding: 10px;
}

.bashFlowSvg {
  width: 100%;
  height: auto;
  display: block;
}

/* Base node style */
.flowNode rect {
  fill: rgba(255, 255, 255, 0.86);
  stroke: rgba(15, 23, 42, 0.1);
  stroke-width: 2;
}

.flowNode--startline rect {
  stroke: rgba(41, 98, 255, 0.22);
  fill: rgba(41, 98, 255, 0.06);
}

.flowNode--playground rect {
  stroke: rgba(41, 98, 255, 0.22);
  fill: rgba(41, 98, 255, 0.05);
}

.flowNode--bash rect {
  stroke: rgba(41, 98, 255, 0.26);
  fill: rgba(41, 98, 255, 0.07);
}

.flowNode--out rect {
  stroke: rgba(15, 23, 42, 0.1);
  fill: rgba(255, 255, 255, 0.86);
}

.flowGroupBox {
  fill: rgba(255, 255, 255, 0.75);
  stroke: rgba(15, 23, 42, 0.1);
  stroke-width: 2;
}

.flowTitle {
  font:
    900 18px Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
}

.flowSub {
  font:
    700 13px Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.66);
}

.flowGroupTitle {
  font:
    950 18px Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.86);
  letter-spacing: -0.02em;
}

.flowFoot {
  font:
    700 12px Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.55);
}

/* Paths */
.flowPath {
  fill: none;
  stroke: rgba(41, 98, 255, 0.55);
  stroke-width: 3;
  filter: url(#softGlow);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flowPath--soft {
  stroke: rgba(15, 23, 42, 0.35);
  stroke-width: 2.5;
}

.flowPath--loop,
.flowPath--loop2 {
  stroke: rgba(41, 98, 255, 0.45);
  stroke-width: 2.8;
  stroke-dasharray: 8 10;
}

/* Scroll-trigger animation */
.bashFlow.is-in .flowPath {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: flowDraw 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bashFlow.is-in .flowPath--loop,
.bashFlow.is-in .flowPath--loop2 {
  animation:
    flowDraw 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
    dashMove 2200ms linear infinite;
}

.bashFlow.is-in .flowNode rect {
  animation: nodePop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes flowDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -200;
  }
}

@keyframes nodePop {
  from {
    transform: scale(0.985);
    transform-origin: center;
    opacity: 0.75;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile: reduce text density a bit */
@media (max-width: 760px) {
  .flowTitle {
    font-size: 16px;
  }
  .flowSub {
    font-size: 12px;
  }
  .flowFoot {
    display: none;
  }
}

/* =========================
BASH — TECH DIAGRAM (white/blue)
Add to product.css (or your page <style>)
========================= */
.bashTechCard {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(
    180deg,
    rgba(41, 98, 255, 0.04),
    rgba(255, 255, 255, 0.7)
  );
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.08);
  padding: 18px;
  overflow: hidden;
}

.bashTechTop {
  margin-bottom: 10px;
}
.bashTechTitle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.bashTechPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(41, 98, 255, 0.18);
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
  font-weight: 900;
  font-size: 0.92rem;
}
.bashTechPillGhost {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(15, 23, 42, 0.7);
  font-weight: 850;
}
.bashTechSub {
  margin-top: 10px;
  color: rgba(15, 23, 42, 0.68);
  font-weight: 650;
  line-height: 1.55;
}

.bashDiagramWrap {
  margin-top: 12px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 30%, rgba(41, 98, 255, 0.1), transparent 55%),
    radial-gradient(circle at 78% 55%, rgba(41, 98, 255, 0.08), transparent 55%);
  overflow: hidden;
}

.bashDiagram {
  width: 100%;
  height: auto;
  display: block;
}

.node rect {
  fill: rgba(255, 255, 255, 0.78);
  stroke: rgba(15, 23, 42, 0.12);
  stroke-width: 1.2;
}

.node--bash rect {
  stroke: rgba(41, 98, 255, 0.22);
  fill: rgba(41, 98, 255, 0.08);
}

.engineBox {
  fill: rgba(255, 255, 255, 0.86);
  stroke: rgba(15, 23, 42, 0.1);
  stroke-width: 1.2;
}

.engineTitle {
  font:
    900 20px/1.1 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
}

.nodeTitle {
  font:
    950 20px/1 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
}
.nodeSub {
  font:
    700 15px/1 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.62);
}

.engineNodeBox {
  fill: rgba(255, 255, 255, 0.7);
  stroke: rgba(41, 98, 255, 0.18);
  stroke-width: 1.2;
}
.engineNodeTitle {
  font:
    900 17px/1 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.88);
  letter-spacing: -0.01em;
}
.engineNodeSub {
  font:
    700 13px/1 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.6);
}

.flow {
  fill: none;
  stroke: rgba(41, 98, 255, 0.4);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.95;
}

/* dashed feedback arrow */
.flow--fb {
  stroke: rgba(41, 98, 255, 0.28);
  stroke-dasharray: 10 10;
  stroke-width: 2.6;
}

/* reveal animation for strokes */
.bashTechCard.is-running .flow {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: bashDraw 1.35s ease forwards;
}
.bashTechCard.is-running .flow--loop {
  animation-delay: 0.18s;
}
.bashTechCard.is-running .flow--out {
  animation-delay: 0.32s;
}
.bashTechCard.is-running .flow--fb {
  animation-delay: 0.48s;
}

@keyframes bashDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* pulse engine nodes when running */
.bashTechCard.is-running [data-node="nlp"] .engineNodeBox,
.bashTechCard.is-running [data-node="reco"] .engineNodeBox,
.bashTechCard.is-running [data-node="rlhf"] .engineNodeBox {
  animation: bashPulse 1.6s ease-in-out infinite;
}
.bashTechCard.is-running [data-node="reco"] .engineNodeBox {
  animation-delay: 0.25s;
}
.bashTechCard.is-running [data-node="rlhf"] .engineNodeBox {
  animation-delay: 0.5s;
}

@keyframes bashPulse {
  0%,
  100% {
    filter: none;
  }
  50% {
    filter: drop-shadow(0 18px 30px rgba(41, 98, 255, 0.18));
  }
}

.diagramFoot {
  font:
    700 14px/1 ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  fill: rgba(15, 23, 42, 0.58);
}

/* Mobile tweaks */
@media (max-width: 820px) {
  .diagramFoot {
    display: none;
  }
}

/* OPTIONAL: add this (keeps your look, just makes the loop feel circular) */
.engineCycle {
  fill: none;
  stroke: rgba(41, 98, 255, 0.12);
  stroke-width: 2;
}

.engineLoopWrap {
  width: 30%;
  border-radius: 24px;
  overflow: hidden;
  margin: 40px 0;
}
.engineLoop {
  width: 100%;
  height: auto;
  display: block;
}

.eTitle {
  font:
    700 22px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: #0f172a;
  letter-spacing: -0.02em;
}
.eBody {
  font:
    500 14px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: #475569;
}
.eFoot {
  font:
    500 12.5px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: #64748b;
}

.bashDiagram .node rect {
  fill: rgba(255, 255, 255, 0.78);
  stroke: rgba(15, 23, 42, 0.1);
  stroke-width: 1.5;
}

.bashDiagram .nodeTitle {
  font:
    800 18px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
}

.bashDiagram .nodeSub {
  font:
    650 13px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: rgba(71, 85, 105, 0.95);
}

/* Flow arrows */
.bashDiagram .flow {
  fill: none;
  stroke: url(#arrowGrad_bash);
  stroke-width: 4;
  opacity: 0.95;
}

/* Engine container + nodes */
.bashDiagram .engineBox {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(41, 98, 255, 0.18);
  stroke-width: 2;
}

.bashDiagram .engineTitle {
  font:
    850 18px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.02em;
}

.bashDiagram .engineGuide {
  stroke: rgba(41, 98, 255, 0.16);
  stroke-width: 3;
}

.bashDiagram .engineArrow {
  fill: none;
  stroke: url(#arrowGrad_bash);
  stroke-width: 4;
  opacity: 0.95;
}

.bashDiagram .engineNodeBox {
  fill: rgba(255, 255, 255, 0.82);
  stroke: rgba(15, 23, 42, 0.1);
  stroke-width: 1.5;
}

.bashDiagram .engineNodeTitle {
  font:
    800 14px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: rgba(15, 23, 42, 0.9);
}

.bashDiagram .engineNodeSub {
  font:
    650 12px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: rgba(71, 85, 105, 0.95);
}

.bashDiagram .diagramFoot {
  font:
    650 13px Inter,
    system-ui,
    -apple-system,
    sans-serif;
  fill: rgba(71, 85, 105, 0.95);
}
