/* Chatiyo × Chatbase — Persian RTL marketing page */

:root {
  /* Chatbase brand-v2 tokens (Firecrawl + CDP 2026-07-24) */
  --bg: #fafafa; /* bg-bg-surface-v2 ≈ oklch(0.985) */
  --fg: #09090b;
  --fg-muted: #71717a;
  --fg-subtle: #a1a1aa;
  --surface: #ffffff; /* raised */
  --surface-soft: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --primary: #09090b;
  --primary-fg: #ffffff;
  --stage: #2c41b3; /* hero panel bg-[#2c41b3] */
  --stage-fg: #ffffff;
  --stage-test: #f59e0b;
  --stage-deploy: #c026a0; /* Chatbase lifecycle Deploy panel magenta */
  --stage-optimize: #18181b;
  --accent-pink: oklch(0.5055 0.2115 345.78);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --container: 77.5rem; /* Chatbase max-w-[1240px] */
  --stage-w: 33rem; /* lg:w-[528px] */
  --stage-h: 45rem; /* lg:h-[720px] */
  --font: YekanBakh, Tahoma, ui-sans-serif, system-ui, sans-serif;
  --shadow-btn: 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-btn-secondary: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 22px 60px rgba(0, 0, 0, 0.22);
  --section-pad: 5rem;
  --header-h: 4rem;
}

/* ——— Reset ——— */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ——— Utilities ——— */

.container {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.text-muted {
  color: var(--fg-muted);
  font-weight: 500;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  min-height: 2.875rem; /* Chatbase ~46px */
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: none;
}

.btn:active {
  transform: scale(0.99);
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  min-height: 3rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: #18181b;
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow-btn-secondary);
}

.btn-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
}

.btn-white {
  background: #fff;
  color: var(--fg);
  border-color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-white:hover {
  background: #f4f4f5;
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-pill {
  border-radius: 999px;
  padding-inline: 1.25rem;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  height: 1.45rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3f3f46;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-login {
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #3f3f46;
}

.nav-login:hover {
  color: var(--fg);
}

.menu-toggle {
  display: inline-flex;
  padding: 0.5rem;
  border-radius: var(--radius);
}

.menu-toggle:hover {
  background: var(--surface-soft);
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.25rem;
}

.mobile-menu-inner a {
  padding: 0.75rem 0.5rem;
  font-weight: 500;
}

.mobile-menu-inner .btn {
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .nav-links,
  .nav-actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .brand {
    justify-self: start;
  }

  .nav-links {
    justify-self: center;
  }

  .nav-actions {
    justify-self: end;
  }
}

/* ——— Sections ——— */

.section {
  padding-block: var(--section-pad);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500; /* Chatbase desktop-h2-medium */
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lead {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* ——— Hero ——— */

.hero {
  padding-block: 0;
  background: var(--surface);
}

.hero-grid {
  display: grid;
  gap: 0;
  align-items: stretch;
}

.hero-copy {
  max-width: 40rem;
  padding: 2.75rem 1.5rem 2rem;
}

.hero-badge,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  width: fit-content;
  padding: 0.35rem 0.75rem 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-btn-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.hero-badge::before,
.hero-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--stage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--stage) 22%, transparent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 32.5rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem); /* Chatbase ~64px */
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--fg);
}

.hero-title-line {
  display: block;
  font-weight: 400;
}

.hero-rotator {
  font-weight: 600;
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.2em;
  min-width: 9ch;
}

.hero-rotator-word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.hero-rotator-word.is-active {
  transform: translateY(0);
  opacity: 1;
}

.hero-rotator-word.is-exit {
  transform: translateY(-110%);
  opacity: 0;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 31rem;
  font-size: 1.25rem; /* Chatbase 20px */
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero media: noisy gradient backdrops + multi-scene product reel */
.hero-stage {
  --hero-noise: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.80%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.35%22%2F%3E%3C%2Fsvg%3E");
  position: relative;
  width: 100%;
  aspect-ratio: 1056 / 1080;
  max-height: var(--stage-h);
  border-radius: 0;
  background:
    var(--hero-noise),
    linear-gradient(135deg, #1c71d8, #0971f0);
  overflow: hidden;
  box-shadow: none;
  animation: stage-in 0.65s ease both;
  transition: background 0.55s ease;
}

.hero-stage[data-theme="blue"] {
  background:
    var(--hero-noise),
    linear-gradient(135deg, #1c71d8, #0971f0);
}

.hero-stage[data-theme="magenta"] {
  background:
    var(--hero-noise),
    linear-gradient(135deg, #e41159, #eb143f);
}

.hero-stage[data-theme="green"] {
  background:
    var(--hero-noise),
    linear-gradient(130deg, #2ec27e, #26a269);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -55%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: rotate(45deg);
  opacity: 0.75;
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.4s ease;
  transform: translateY(10px) scale(0.985);
}

.hero-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.hero-card {
  width: min(92%, 22.5rem);
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-float);
}

.hero-card-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--fg);
}

.hero-source-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

.hero-source-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.hero-scene.is-active .hero-source-list li.is-in {
  opacity: 1;
  transform: none;
}

.hero-source-icon {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-source-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-source-meta strong {
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-source-meta .meta-url {
  direction: ltr;
  text-align: start;
}

.hero-source-meta span {
  font-size: 0.68rem;
  color: var(--fg-subtle);
}

.hero-source-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.18rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: 0.62rem;
  font-weight: 650;
}

.hero-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.hero-add-btn.is-in {
  opacity: 1;
  transform: none;
}

.hero-add-btn.is-hot {
  background: #27272a;
  border-color: #27272a;
}

.hero-proc-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

.hero-proc-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.hero-scene.is-active .hero-proc-list li.is-in {
  opacity: 1;
  transform: none;
}

.hero-proc-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 23, 42, 0.06);
}

.hero-proc-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-proc-icon--package {
  background: linear-gradient(145deg, #f5f9ff 0%, #d7e7ff 46%, #eef5ff 100%);
  color: #2563eb;
}

.hero-proc-icon--truck {
  background: linear-gradient(145deg, #fff8f1 0%, #ffe0c2 46%, #fff3e8 100%);
  color: #ea580c;
}

.hero-proc-icon--cart {
  background: linear-gradient(145deg, #f3fdf8 0%, #c7f5de 46%, #e9fbf2 100%);
  color: #059669;
}

.hero-proc-label {
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--fg);
}

.hero-toggle {
  position: relative;
  width: 2.35rem;
  height: 1.3rem;
  border-radius: 999px;
  background: #e4e4e7;
  transition: background 0.25s ease;
}

.hero-toggle::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  inset-inline-start: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: inset-inline-start 0.25s ease;
}

.hero-toggle.is-on {
  background: #22c55e;
}

.hero-toggle.is-on::after {
  inset-inline-start: calc(100% - 1.15rem);
}

.hero-ask-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(92%, 22.5rem);
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-float);
  color: var(--fg-subtle);
  font-size: 0.8125rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color 0.2s ease;
}

.hero-ask-bar.is-in {
  opacity: 1;
  transform: none;
}

.hero-ask-clip,
.hero-ask-mic {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #a1a1aa;
}

.hero-ask-bar > span:not(.hero-ask-send) {
  flex: 1;
  min-width: 0;
  color: var(--fg-subtle);
}

.hero-ask-send {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #18181b;
  color: #fff;
  flex-shrink: 0;
}

.hero-ask-send svg {
  width: 0.85rem;
  height: 0.85rem;
}

.hero-card--integrate {
  width: min(92%, 22.5rem);
  padding: 1.2rem;
  text-align: center;
}

.hero-integrate-title {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-integrate-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.hero-integrate-grid .hero-integration {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.hero-integrate-grid .hero-integration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.hero-scene.is-active .hero-integrate-grid .hero-integration.is-in {
  opacity: 1;
  transform: none;
}

.hero-pointer {
  position: absolute;
  z-index: 5;
  width: 25px;
  height: 31px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg viewBox='0 0 28 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 3.6v25.1c0 1.65 2 2.48 3.17 1.31l5.9-5.9h10.16c1.7 0 2.53-2.1 1.27-3.21L7.12 2.15C5.96 1.13 4 1.96 4 3.6Z' fill='%2318181b' stroke='%23fafafa' stroke-width='1.55' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transform-origin: 94% 56%;
  transition:
    left 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    transform 0.18s ease;
  transform: translate(-92%, -55%);
}

.hero-pointer.is-visible {
  opacity: 1;
}

.hero-pointer.is-press {
  transform: translate(-92%, -55%) scale(0.9);
}

@media (min-width: 900px) {
  .hero .container {
    max-width: none;
    width: min(100%, var(--container));
    padding-inline: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) var(--stage-w);
    min-height: var(--stage-h);
  }

  .hero-copy {
    padding: 5rem clamp(1.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-stage {
    width: var(--stage-w);
    height: var(--stage-h);
    max-height: none;
    aspect-ratio: auto;
    border-inline-start: 1px solid var(--border);
  }
}

@media (max-width: 899px) {
  .hero-stage {
    max-height: none;
    aspect-ratio: 1 / 0.98;
  }

  .hero-integrate-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
  }
}

/* ——— Trust grid ——— */

.trust {
  padding-block: 0;
  background: var(--surface);
}

.trust .container {
  padding-block: 2rem var(--section-pad);
}

.trust-label {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-subtle);
}

.trust-shell {
  position: relative;
}

.trust-frame {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
  background: var(--surface);
}

.trust-frame li {
  display: grid;
  place-items: center;
  height: 5rem; /* Chatbase h-20 ≈ 80px */
  min-height: 5rem;
  margin: -1px 0 0 -1px;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #52525b;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.trust-plus {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-pink);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.trust-plus--tl {
  top: 0;
  inset-inline-start: 0;
}

.trust-plus--tr {
  top: 0;
  inset-inline-start: 100%;
}

.trust-plus--bl {
  top: 100%;
  inset-inline-start: 0;
}

.trust-plus--br {
  top: 100%;
  inset-inline-start: 100%;
}

.trust-plus--tm {
  top: 0;
  inset-inline-start: 50%;
}

.trust-plus--bm {
  top: 100%;
  inset-inline-start: 50%;
}

.trust-plus--ml {
  top: 50%;
  inset-inline-start: 0;
}

.trust-plus--mr {
  top: 50%;
  inset-inline-start: 100%;
}

.trust-plus--mm {
  top: 50%;
  inset-inline-start: 50%;
}

/* 4-col: + at 25% / 50% / 75% on edges + mid row */
.trust-plus--t25,
.trust-plus--t75,
.trust-plus--b25,
.trust-plus--b75,
.trust-plus--m25,
.trust-plus--m75 {
  display: none;
}

@media (min-width: 700px) {
  .trust-frame {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-plus--tm {
    inset-inline-start: 50%;
  }

  .trust-plus--bm {
    inset-inline-start: 50%;
  }

  .trust-plus--mm {
    inset-inline-start: 50%;
  }

  .trust-plus--t25,
  .trust-plus--t75,
  .trust-plus--b25,
  .trust-plus--b75,
  .trust-plus--m25,
  .trust-plus--m75 {
    display: grid;
  }

  .trust-plus--t25 {
    top: 0;
    inset-inline-start: 25%;
  }

  .trust-plus--t75 {
    top: 0;
    inset-inline-start: 75%;
  }

  .trust-plus--b25 {
    top: 100%;
    inset-inline-start: 25%;
  }

  .trust-plus--b75 {
    top: 100%;
    inset-inline-start: 75%;
  }

  .trust-plus--m25 {
    top: 50%;
    inset-inline-start: 25%;
  }

  .trust-plus--m75 {
    top: 50%;
    inset-inline-start: 75%;
  }
}

/* ——— Capabilities ——— */

.capabilities {
  background: var(--surface);
}

.capabilities .section-title {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.cap-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
}

.cap-card {
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
  transition: background 0.25s ease;
}

.cap-card + .cap-card {
  border-top: 1px solid var(--border);
}

.cap-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  background: #f4f4f5; /* Chatbase stronger full-card hover flood */
}

.cap-card:hover .cap-cube {
  transform: rotateX(12deg) rotateZ(-12deg) scale(1.06);
}

.cap-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 18rem; /* taller like Chatbase feature band */
  border-bottom: 1px solid var(--border);
  background-color: #fafafa;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.cap-cube {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0.9rem;
  color: #fff;
  transform: rotateX(12deg) rotateZ(-18deg);
  box-shadow:
    10px 14px 0 rgba(0, 0, 0, 0.06),
    0 18px 36px rgba(0, 0, 0, 0.14);
  transition: transform 0.28s ease;
}

.cap-cube svg {
  width: 2.55rem;
  height: 2.55rem;
}

.cap-visual--support .cap-cube {
  background: linear-gradient(145deg, #ff8a65, #ff2d55);
}

.cap-visual--sales .cap-cube {
  background: linear-gradient(145deg, #60a5fa, #2c41b3);
}

.cap-visual--guide .cap-cube {
  background: linear-gradient(145deg, #fbbf24, #fb7185);
}

.cap-card h3 {
  margin: 1.15rem 1.25rem 0.4rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.cap-card > p {
  flex: 1;
  margin: 0 1.25rem 1rem;
  font-size: 0.925rem;
  color: var(--fg-muted);
}

.cap-chat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 1.15rem 1.15rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.cap-chat-user,
.cap-chat-bot {
  max-width: 92%;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.cap-chat-user {
  align-self: flex-start;
  border: 1px solid var(--border);
  background: var(--surface);
}

.cap-chat-bot {
  align-self: flex-end;
  background: #18181b;
  color: #fff;
}

@media (min-width: 900px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .cap-card + .cap-card {
    border-top: 0;
    border-inline-start: 1px solid var(--border);
  }
}

/* ——— Lifecycle ——— */

.lifecycle {
  padding-block: 0;
  scroll-margin-top: var(--header-h);
  background: var(--surface);
}

.lifecycle-grid {
  display: grid;
}

.lifecycle-copy {
  display: flex;
  flex-direction: column;
  padding: 4.5rem 1.5rem;
  background: var(--surface);
}

.lifecycle-copy .section-kicker {
  margin: 0 0 1rem;
  color: var(--fg-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.lifecycle-copy .section-title {
  max-width: 29rem;
  margin: 0 0 2.5rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
}

.lifecycle-tabs {
  display: flex;
  flex-direction: column;
  max-width: 31rem;
}

.lifecycle-step {
  position: relative;
  padding-inline-start: 1.5rem;
  border-inline-start: 1px solid var(--border);
}

.lifecycle-step::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: -2px;
  width: 3px;
  background: transparent;
  transition: background 0.25s ease;
}

.lifecycle-step.is-active::before {
  background: var(--stage);
}

.lifecycle-step[data-lifecycle-step="test"].is-active::before {
  background: var(--stage-test);
}

.lifecycle-step[data-lifecycle-step="deploy"].is-active::before {
  background: var(--stage-deploy);
}

.lifecycle-step[data-lifecycle-step="optimize"].is-active::before {
  background: var(--stage-optimize);
}

.lifecycle-tabs button {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0 0.75rem;
  text-align: start;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg-subtle);
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

.lifecycle-tabs button:hover {
  color: var(--fg);
}

.lifecycle-tabs button[aria-selected="true"] {
  color: var(--fg);
  font-weight: 600;
}

.lifecycle-number {
  min-width: 1.65rem;
  color: var(--fg-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  direction: ltr;
}

.lifecycle-step [role="tabpanel"] {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    padding 0.35s ease;
}

.lifecycle-step.is-active [role="tabpanel"] {
  max-height: 9rem;
  padding-bottom: 1.15rem;
  opacity: 1;
}

.lifecycle-step [role="tabpanel"] p {
  max-width: 28rem;
  margin: 0;
  padding-inline-start: 2.5rem;
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--fg-muted);
}

.lifecycle-cta {
  align-self: flex-start;
  margin-top: 1.5rem;
}

.lifecycle-stage {
  --lc-noise: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22200%22%20height%3D%22200%22%3E%3Cfilter%20id%3D%22n%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.80%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23n)%22%20opacity%3D%220.35%22%2F%3E%3C%2Fsvg%3E");
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  background:
    var(--lc-noise),
    linear-gradient(135deg, #2c41b3, #1e3a8a);
  isolation: isolate;
  transition: background 0.5s ease;
}

.lifecycle-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -55%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotate(45deg);
  opacity: 0.4;
  pointer-events: none;
}

.lifecycle-stage[data-lifecycle-stage="build"] {
  background:
    var(--lc-noise),
    linear-gradient(135deg, #2c41b3, #1e3a8a);
}

.lifecycle-stage[data-lifecycle-stage="test"] {
  background:
    var(--lc-noise),
    linear-gradient(135deg, #f59e0b, #d97706);
}

.lifecycle-stage[data-lifecycle-stage="deploy"] {
  background:
    var(--lc-noise),
    linear-gradient(135deg, #c026a0, #9d174d);
}

.lifecycle-stage[data-lifecycle-stage="optimize"] {
  background:
    var(--lc-noise),
    linear-gradient(145deg, #3f3f46, #18181b);
}

.lifecycle-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    transform 0.45s ease;
}

.lifecycle-visual.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lc-window {
  width: min(100%, 33rem);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: #18181b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.lc-window-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.5rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #e4e4e7;
  background: #fafafa;
}

.lc-window-bar > span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #d4d4d8;
}

.lc-window-bar b {
  margin-inline-start: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.lc-build-layout {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  min-height: 24rem;
}

.lc-mini-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.65rem;
  border-inline-end: 1px solid #e4e4e7;
  background: #fafafa;
}

.lc-mini-nav span {
  padding: 0.48rem 0.55rem;
  border-radius: 6px;
  color: #71717a;
  font-size: 0.62rem;
}

.lc-mini-nav span.is-current {
  background: #e9edff;
  color: var(--stage);
  font-weight: 700;
}

.lc-build-form {
  padding: 1.2rem;
}

.lc-build-form > label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.lc-textarea {
  min-height: 7.7rem;
  padding: 0.75rem;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 0.68rem;
  line-height: 1.7;
  color: #52525b;
}

.lc-typing-caret {
  display: inline-block;
  width: 1px;
  height: 0.8rem;
  margin-inline-start: 2px;
  vertical-align: middle;
  background: var(--stage);
  animation: caret-blink 0.8s step-end infinite;
}

.lc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.lc-form-row > span {
  padding: 0.55rem;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
}

.lc-form-row small,
.lc-form-row b {
  display: block;
  font-size: 0.58rem;
}

.lc-form-row small {
  margin-bottom: 0.18rem;
  color: #a1a1aa;
}

.lc-form-row b {
  font-weight: 600;
}

.lc-procedure-preview {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding: 0.6rem;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
}

.lc-check {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 6px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 800;
}

.lc-procedure-preview div {
  flex: 1;
}

.lc-procedure-preview b,
.lc-procedure-preview small {
  display: block;
  font-size: 0.58rem;
}

.lc-procedure-preview small {
  color: #a1a1aa;
}

.lc-procedure-preview i {
  padding: 0.18rem 0.4rem;
  border-radius: 99px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.52rem;
  font-style: normal;
}

.lc-float-chip,
.lc-score-card,
.lc-live-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: #18181b;
  color: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.25);
}

.lc-float-chip {
  inset-inline-end: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 6vw, 3.5rem);
  padding: 0.55rem 0.75rem;
  font-size: 0.65rem;
  animation: lc-float-in 0.45s 0.8s both;
}

.lc-float-chip i {
  color: #86efac;
  font-style: normal;
}

.lc-test-layout {
  display: grid;
  grid-template-columns: 8rem 1fr;
  min-height: 23rem;
}

.lc-test-settings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.7rem;
  border-inline-end: 1px solid #e4e4e7;
  background: #fafafa;
}

.lc-test-settings small {
  margin-top: 0.3rem;
  color: #a1a1aa;
  font-size: 0.55rem;
}

.lc-test-settings strong {
  font-size: 0.62rem;
}

.lc-slider {
  height: 0.25rem;
  margin-block: 0.35rem;
  border-radius: 99px;
  background: #e4e4e7;
}

.lc-slider i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--stage-test);
  animation: lc-slider-grow 1s 0.3s both;
}

.lc-source-pill {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem;
  border: 1px solid #e4e4e7;
  border-radius: 7px;
  font-size: 0.55rem;
}

.lc-source-pill b {
  color: #16a34a;
}

.lc-playground {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.lc-chat-bubble {
  max-width: 82%;
  padding: 0.58rem 0.7rem;
  border-radius: 11px;
  font-size: 0.64rem;
  line-height: 1.5;
}

.lc-chat-user {
  align-self: flex-start;
  background: #f4f4f5;
}

.lc-chat-answer {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.8rem;
  opacity: 0;
  animation: lc-message-in 0.4s 0.7s forwards;
}

.lc-agent-dot {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--stage);
}

.lc-chat-answer p {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.6;
}

.lc-product-answer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 1.45rem 0 0;
  padding: 0.55rem;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  opacity: 0;
  animation: lc-message-in 0.4s 1.25s forwards;
}

.lc-product-thumb {
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: linear-gradient(145deg, #fde68a, #fb7185);
}

.lc-product-answer div {
  flex: 1;
}

.lc-product-answer b,
.lc-product-answer small {
  display: block;
  font-size: 0.55rem;
}

.lc-product-answer small {
  color: #71717a;
}

.lc-product-answer em {
  color: var(--stage);
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 700;
}

.lc-test-input {
  margin-top: auto;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d4d4d8;
  border-radius: 99px;
  color: #a1a1aa;
  font-size: 0.58rem;
}

.lc-test-input span {
  float: left;
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #18181b;
  color: #fff;
}

.lc-score-card {
  inset-inline-start: clamp(1rem, 5vw, 3.5rem);
  bottom: clamp(1rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.15rem 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  animation: lc-float-in 0.45s 1.7s both;
}

.lc-score-card span {
  font-size: 0.55rem;
  color: #d4d4d8;
}

.lc-score-card strong {
  grid-row: span 2;
  font-size: 1.1rem;
}

.lc-score-card i {
  width: 4.5rem;
  height: 0.2rem;
  border-radius: 99px;
  background: linear-gradient(to left, #86efac 96%, #3f3f46 96%);
}

.lc-deploy-shell {
  width: min(100%, 31rem);
  padding: 1.25rem;
  border-radius: 16px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.lc-deploy-shell > p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.lc-channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.lc-channel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.6rem;
  padding: 0.7rem;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  opacity: 0;
  animation: lc-channel-in 0.35s forwards;
}

.lc-channel:nth-child(2) { animation-delay: 0.15s; }
.lc-channel:nth-child(3) { animation-delay: 0.3s; }
.lc-channel:nth-child(4) { animation-delay: 0.45s; }

.lc-channel.is-selected {
  border-color: #c026a0;
  box-shadow: 0 0 0 2px rgba(192, 38, 160, 0.12);
}

.lc-channel-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: #f4f4f5;
  color: #c026a0;
  font-size: 0.65rem;
  font-weight: 800;
}

.lc-channel b {
  font-size: 0.62rem;
}

.lc-channel small {
  color: #a1a1aa;
  font-size: 0.52rem;
}

.lc-channel > i {
  position: absolute;
  inset-block-start: 0.45rem;
  inset-inline-end: 0.5rem;
  color: #16a34a;
  font-size: 0.6rem;
  font-style: normal;
}

.lc-embed-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: #18181b;
  color: #d4d4d8;
  direction: ltr;
  font-family: ui-monospace, monospace;
  font-size: 0.5rem;
}

.lc-embed-code span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-embed-code b {
  color: #86efac;
  font-family: var(--font);
  direction: rtl;
}

.lc-live-badge {
  inset-inline-end: clamp(1rem, 5vw, 3.5rem);
  bottom: clamp(1rem, 5vw, 3rem);
  padding: 0.55rem 0.75rem;
  font-size: 0.65rem;
  animation: lc-float-in 0.45s 1s both;
}

.lc-live-badge i {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-inline-end: 0.25rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15);
}

.lc-analytics-window {
  background: #f7f7f8;
}

.lc-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.8rem;
}

.lc-metric-row > div {
  padding: 0.65rem;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  background: #fff;
}

.lc-metric-row small,
.lc-metric-row b,
.lc-metric-row em {
  display: block;
}

.lc-metric-row small {
  color: #71717a;
  font-size: 0.52rem;
}

.lc-metric-row b {
  margin-block: 0.15rem;
  font-size: 0.95rem;
}

.lc-metric-row em {
  color: #15803d;
  font-size: 0.48rem;
  font-style: normal;
}

.lc-analytics-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.5rem;
  padding: 0 0.8rem;
}

.lc-chart-card,
.lc-topics-card {
  padding: 0.7rem;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  background: #fff;
}

.lc-chart-card > span,
.lc-topics-card > span {
  font-size: 0.58rem;
  font-weight: 700;
}

.lc-chart {
  display: flex;
  align-items: end;
  gap: 0.3rem;
  height: 7rem;
  margin-top: 0.7rem;
  padding-top: 0.5rem;
  border-bottom: 1px solid #e4e4e7;
  background: repeating-linear-gradient(to bottom, #f4f4f5 0 1px, transparent 1px 2rem);
}

.lc-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#6366f1, #2c41b3);
  transform-origin: bottom;
  animation: lc-bar-grow 0.55s both;
}

.lc-chart i:nth-child(2) { animation-delay: 0.08s; }
.lc-chart i:nth-child(3) { animation-delay: 0.16s; }
.lc-chart i:nth-child(4) { animation-delay: 0.24s; }
.lc-chart i:nth-child(5) { animation-delay: 0.32s; }
.lc-chart i:nth-child(6) { animation-delay: 0.4s; }
.lc-chart i:nth-child(7) { animation-delay: 0.48s; }

.lc-topics-card p {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f4f4f5;
  font-size: 0.5rem;
}

.lc-topics-card p i {
  color: #71717a;
  font-style: normal;
}

.lc-insight {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0.8rem 0.8rem;
  padding: 0.6rem;
  border: 1px solid #ddd6fe;
  border-radius: 9px;
  background: #f5f3ff;
  opacity: 0;
  animation: lc-message-in 0.4s 0.9s forwards;
}

.lc-insight > span {
  color: #7c3aed;
}

.lc-insight p {
  flex: 1;
  margin: 0;
}

.lc-insight b,
.lc-insight small {
  display: block;
  font-size: 0.52rem;
}

.lc-insight small {
  color: #71717a;
}

.lc-insight em {
  color: #6d28d9;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 700;
}

.lc-stage-pointer {
  position: absolute;
  z-index: 5;
  width: 25px;
  height: 31px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg viewBox='0 0 28 34' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 3.6v25.1c0 1.65 2 2.48 3.17 1.31l5.9-5.9h10.16c1.7 0 2.53-2.1 1.27-3.21L7.12 2.15C5.96 1.13 4 1.96 4 3.6Z' fill='%2318181b' stroke='%23fafafa' stroke-width='1.55' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transform-origin: 94% 56%;
  transition:
    left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    transform 0.18s ease;
  transform: translate(-92%, -55%);
}

.lc-stage-pointer.is-visible {
  opacity: 1;
}

.lc-stage-pointer.is-press {
  transform: translate(-92%, -55%) scale(0.9);
}

@keyframes lc-float-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes lc-message-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

@keyframes lc-slider-grow {
  from { width: 12%; }
}

@keyframes lc-channel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes lc-bar-grow {
  from { transform: scaleY(0.05); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (min-width: 900px) {
  .lifecycle-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 45rem;
  }

  .lifecycle-copy {
    justify-self: end;
    width: min(100%, 38.75rem);
    max-width: none;
    margin-inline-start: auto;
  }

  .lifecycle-stage {
    min-height: 100%;
    align-self: stretch;
  }
}

@media (max-width: 899px) {
  .lifecycle-stage {
    min-height: 34rem;
  }

  .lifecycle-copy {
    padding-block: 4rem;
  }

  .lc-build-layout,
  .lc-test-layout {
    grid-template-columns: 6.5rem 1fr;
  }
}

@media (max-width: 520px) {
  .lifecycle-visual {
    padding: 1rem;
  }

  .lifecycle-stage {
    min-height: 31rem;
  }

  .lc-window {
    transform: scale(0.92);
    transform-origin: center;
  }

  .lc-build-layout,
  .lc-test-layout {
    min-height: 22rem;
  }

  .lc-channel-grid {
    grid-template-columns: 1fr;
  }

  .lc-channel:nth-child(n + 3) {
    display: none;
  }

  .lc-analytics-body {
    grid-template-columns: 1fr;
  }

  .lc-topics-card {
    display: none;
  }
}

/* ——— Suite ——— */

.suite {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.suite .section-title,
.suite .section-lead {
  max-width: 44rem;
}

.suite-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.suite-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 11rem;
  padding: 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  transition: background 0.2s ease;
}

.suite-card + .suite-card {
  border-top: 1px solid var(--border);
}

.suite-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  background: #fafafa;
}

.suite-kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.suite-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.suite-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.suite-viz {
  position: relative;
  height: 4.5rem;
  margin-top: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 10px,
      rgba(0, 0, 0, 0.04) 10px,
      rgba(0, 0, 0, 0.04) 11px
    );
  background-clip: padding-box;
}

.suite-viz::after {
  content: "";
  position: absolute;
  inset-block: 0.85rem;
  inset-inline-start: 0.75rem;
  width: 46%;
  border-radius: 4px;
  background: color-mix(in srgb, var(--stage) 14%, transparent);
}

@media (min-width: 700px) {
  .suite-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .suite-card {
    border-top: 0;
    grid-column: span 3;
  }

  .suite-card:nth-child(1),
  .suite-card:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .suite-card:nth-child(2),
  .suite-card:nth-child(4),
  .suite-card:nth-child(5) {
    border-inline-start: 1px solid var(--border);
  }

  .suite-card:nth-child(3) {
    grid-column: span 2;
  }

  .suite-card:nth-child(4) {
    grid-column: span 2;
  }

  .suite-card:nth-child(5) {
    grid-column: span 2;
  }

  .suite-card + .suite-card {
    border-top: 0;
  }
}

@media (min-width: 1000px) {
  .suite-card:nth-child(1) {
    grid-column: span 4;
    min-height: 14rem;
  }

  .suite-card:nth-child(2) {
    grid-column: span 2;
  }

  .suite-card:nth-child(3),
  .suite-card:nth-child(4),
  .suite-card:nth-child(5) {
    grid-column: span 2;
  }
}

/* ——— Deploy ——— */

.deploy {
  background: var(--surface);
}

.deploy-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.deploy-card {
  min-height: 10rem;
  padding: 1.75rem;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  transition: background 0.2s ease;
}

.deploy-card + .deploy-card {
  border-top: 1px solid var(--border);
}

.deploy-card:hover {
  transform: none;
  box-shadow: none;
  background: #fafafa;
}

.deploy-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.deploy-card p {
  margin: 0;
  color: var(--fg-muted);
}

@media (min-width: 800px) {
  .deploy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .deploy-card + .deploy-card {
    border-top: 0;
    border-inline-start: 1px solid var(--border);
  }
}

/* ——— Proof ——— */

.proof {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.proof-list {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.proof-list li {
  padding: 1.5rem 1.35rem;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--fg-muted);
}

.proof-list li + li {
  border-top: 1px solid var(--border);
}

.proof-list strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

@media (min-width: 900px) {
  .proof-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-list li + li {
    border-top: 0;
    border-inline-start: 1px solid var(--border);
  }
}

/* ——— FAQ ——— */

.faq-list {
  max-width: 42rem; /* Chatbase FAQ constrained width */
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 0;
  text-align: start;
  font-size: 1.02rem;
  font-weight: 600;
}

.faq-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-muted);
  transition: transform 0.2s ease;
}

.faq-icon.is-open {
  transform: rotate(45deg);
}

.faq-panel {
  max-width: 42rem;
  margin: 0 0 1.2rem;
  line-height: 1.75;
  color: var(--fg-muted);
  transition: opacity 0.2s ease;
}

/* ——— CTA ——— */
/* Chatbase final CTA: white bordered band on soft canvas, black primary button */

.cta {
  padding: var(--section-pad);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 7.5rem) clamp(1.5rem, 5vw, 5rem);
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  color: var(--fg);
  text-align: center;
}

.cta-pill {
  display: inline-flex;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  background: var(--bg);
}

.cta-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta-inner > p {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--fg-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .cta {
    padding-inline: 0;
  }

  .cta-inner {
    border-inline: 1px solid var(--border);
  }
}

/* ——— Footer ——— */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

#faq.section {
  background: var(--surface);
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-copy {
  max-width: 22rem;
  margin: 0.65rem 0 0;
  font-size: 0.925rem;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-enamad img,
.footer-zibal img {
  width: auto;
  max-height: 80px;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: start;
  }
}

/* ——— Diamond divider (Chatbase lattice band + center node) ——— */

.diamond-divider {
  position: relative;
  height: 4.5rem;
  margin-block: 0.5rem 1.5rem;
  border-block: 1px solid var(--border);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
  transform: none;
}

.diamond-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 50%;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.diamond-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 1;
}

/* ——— Motion ——— */

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes caret-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal[data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal[data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .lc-chat-answer,
  .lc-product-answer,
  .lc-channel,
  .lc-insight,
  .lc-float-chip,
  .lc-score-card,
  .lc-live-badge {
    opacity: 1;
    transform: none;
  }
}

/* ——— Legal / secondary pages ——— */

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.legal-page,
.blog-page {
  padding-block: 3rem 4rem;
  min-height: calc(100vh - var(--header-h) - 12rem);
}

.legal-doc,
.blog-index,
.blog-post {
  max-width: 42rem;
}

.legal-doc__eyebrow,
.blog-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.legal-doc h1,
.blog-index > h1,
.blog-post > h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--fg);
}

.legal-doc a,
.blog-prose a,
.blog-post__nav a,
.legal-doc__nav a {
  color: var(--stage);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-doc__nav,
.blog-post__nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.925rem;
}

/* ——— Blog ——— */

.blog-lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--fg-muted);
}

.blog-empty {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--fg-muted);
  background: var(--surface);
}

.blog-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.blog-card__link {
  display: block;
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.blog-card__version {
  font-weight: 600;
  color: var(--stage);
}

.blog-card__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.blog-card__summary {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

.blog-cover {
  width: 100%;
  margin: 0 0 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 22rem;
}

.blog-prose {
  font-size: 1.02rem;
  line-height: 1.75;
}

.blog-prose > *:first-child {
  margin-top: 0;
}

.blog-prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.blog-prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.blog-prose p {
  margin: 0 0 1rem;
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.35rem;
}

.blog-prose li {
  margin-bottom: 0.35rem;
}

.blog-prose img {
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.blog-prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface-soft);
}

.blog-prose pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.blog-prose pre code {
  padding: 0;
  background: none;
}

.blog-prose blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-inline-start: 3px solid var(--stage);
  color: var(--fg-muted);
}
