/* =========================================================================
   Kodexa.ai — site styles
   Forks ui_kits/website/site.css; extends for new components.
   ========================================================================= */

@import url("./tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.0025em;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ========================================================================
   Layout primitives
   ======================================================================== */
.container {
  max-width: 1456px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section-padding { padding-top: clamp(60px, 8vw, 96px); padding-bottom: clamp(60px, 8vw, 96px); }
.section-padding-sm { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.section-tint { background: color-mix(in srgb, var(--muted) 50%, var(--background)); }
.section-divider { border-top: 1px solid var(--border); }

/* ========================================================================
   Type
   ======================================================================== */
h1, h2, h3, h4 { letter-spacing: -.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; font-weight: 700; }
h2 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.05; font-weight: 700; }
h3 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; font-weight: 600; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; }
p  { margin: 0; line-height: 1.55; }

.lede {
  font-size: clamp(17px, 1vw + 12px, 21px);
  line-height: 1.5;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--chart-2), var(--chart-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.middot { color: var(--muted-foreground); padding: 0 .35em; }

/* ========================================================================
   Eyebrow
   ======================================================================== */
.eyebrow {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 9999px;
  padding: 4px;
  font-size: 12.5px;
  background: color-mix(in srgb, var(--background) 90%, transparent);
}
.eyebrow .pill {
  background: var(--muted); border-radius: 9999px;
  padding: 3px 12px; font-weight: 500;
  color: var(--foreground);
}
.eyebrow .copy { padding: 0 12px; color: var(--muted-foreground); }
.eyebrow.eyebrow-solo {
  padding: 3px 12px;
  text-transform: none;
  font-weight: 500;
  color: var(--muted-foreground);
}
.eyebrow-section {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 500; line-height: 1;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, opacity .15s, transform .15s;
  white-space: nowrap;
}
.btn-lg { height: 54px; padding: 0 24px; font-size: 16px; }
.btn-md { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn-outline {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border-color: var(--border);
  color: var(--foreground);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-outline:hover { background: var(--card); border-color: color-mix(in srgb, var(--foreground) 30%, var(--border)); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 500; font-size: 14.5px;
}
.btn-link:hover { opacity: .7; }
.btn-link svg, .btn-link i { width: 16px; height: 16px; transition: transform .2s; }
.btn-link:hover svg, .btn-link:hover i { transform: translateX(2px); }

/* ========================================================================
   Cards
   ======================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: box-shadow .2s, border-color .2s;
}
.card-hover:hover {
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}
.card-flat { box-shadow: none; }

/* Icon tiles */
.icon-tile {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-tile svg, .icon-tile i { width: 20px; height: 20px; }

/* ========================================================================
   Background effects
   ======================================================================== */
.dot-bg {
  background-image: radial-gradient(color-mix(in srgb, var(--foreground) 35%, transparent) 1.3px, transparent 1.3px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
}
.conic-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 9999px;
  filter: blur(120px); opacity: .18;
  background: conic-gradient(from 180deg, var(--primary), var(--chart-2), var(--chart-3), transparent);
  pointer-events: none;
}
.grid-lines {
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--foreground) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ========================================================================
   Header
   ======================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header__inner {
  display: flex; align-items: center; height: 4.5rem; gap: 24px;
}
.site-header__brand { display: inline-flex; align-items: center; }
.site-header__brand img { height: 22px; width: auto; }
.site-header__nav {
  display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center;
}
.site-header__nav a {
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  color: var(--foreground);
  transition: background .15s, color .15s, opacity .15s;
}
.site-header__nav a:hover { opacity: .65; }
.site-header__nav a.active {
  background: var(--primary); color: #fff; font-weight: 600;
}
.site-header__nav a.active:hover { opacity: 1; }
.site-header__actions { display: flex; gap: 10px; align-items: center; }
.dev-portal {
  font-size: 13px; color: var(--muted-foreground);
  display: inline-flex; align-items: center; gap: 4px;
}
.dev-portal:hover { color: var(--foreground); }
.dev-portal svg { width: 13px; height: 13px; }

@media (max-width: 1100px) {
  .site-header__nav { display: none; }
  .site-header__nav-mobile { display: flex; }
}
.site-header__menu-btn {
  display: none;
  width: 40px; height: 40px; border-radius: 8px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
@media (max-width: 1100px) {
  .site-header__menu-btn { display: inline-flex; }
  .dev-portal, .site-header__actions .btn-ghost { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; inset: 4.5rem 0 0 0;
  background: color-mix(in srgb, var(--background) 96%, transparent);
  backdrop-filter: blur(10px);
  z-index: 49;
  padding: 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px; font-weight: 500;
}
.mobile-menu a.active { background: var(--primary); color: #fff; }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 35%, var(--background));
}
.site-footer__inner { padding: 56px 1.5rem 32px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
.site-footer__brand img { height: 22px; margin-bottom: 16px; }
.site-footer__tagline {
  color: var(--muted-foreground);
  font-size: 14px; line-height: 1.55; max-width: 320px;
}
.site-footer__col h4 {
  font-size: 12px; font-weight: 600; margin-bottom: 14px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--foreground);
}
.site-footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer__col a { font-size: 13.5px; color: var(--muted-foreground); }
.site-footer__col a:hover { color: var(--foreground); }
.site-footer__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--muted-foreground);
  flex-wrap: wrap; gap: 12px;
}

/* ========================================================================
   Stats strip
   ======================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  overflow: hidden;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stats__item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
}
.stats__item:last-child { border-right: 0; }
@media (max-width: 700px) {
  .stats__item { border-right: 0; border-bottom: 1px solid var(--border); }
  .stats__item:last-child { border-bottom: 0; }
}
.stats__value {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  background: linear-gradient(180deg, var(--foreground), color-mix(in srgb, var(--foreground) 60%, var(--primary)));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stats__label { color: var(--muted-foreground); font-size: 14px; line-height: 1.4; }

/* ========================================================================
   Trust marquee
   ======================================================================== */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 48px;
  animation: scroll 30s linear infinite;
  align-items: center;
  padding-left: 24px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--card);
  font-size: 13.5px;
  color: var(--muted-foreground);
  white-space: nowrap;
}
.marquee__item svg { width: 14px; height: 14px; color: var(--primary); }

/* ========================================================================
   Solution / Pillar cards (large rows)
   ======================================================================== */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  padding: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.pillar:hover {
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}
@media (max-width: 900px) {
  .pillar { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
}
.pillar__tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  padding: 5px 10px; border-radius: 6px;
  margin-bottom: 18px;
}
.pillar__tag.tag-soon {
  color: var(--muted-foreground);
  background: var(--muted);
}
.pillar__title {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}
.pillar__subtitle {
  color: var(--muted-foreground);
  font-size: 16px;
  margin-bottom: 18px;
}
.pillar__body {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 22px;
}
.pillar__bullets {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.pillar__bullets li {
  font-size: 14.5px;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--foreground);
  line-height: 1.5;
}
.pillar__bullets li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 14px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.pillar__stats {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted-foreground);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 18px;
}

/* ========================================================================
   Two-column definition (Task / Activity)
   ======================================================================== */
.def-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .def-grid { grid-template-columns: 1fr; } }
.def-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.def-card__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary);
  width: fit-content;
}
.def-card__tag .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
.def-card__tag.status-running .dot {
  background: oklch(.65 .15 145);
  box-shadow: 0 0 0 4px color-mix(in srgb, oklch(.65 .15 145) 22%, transparent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, oklch(.65 .15 145) 30%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, oklch(.65 .15 145) 0%, transparent); }
}
.def-card__title {
  font-size: 18px; font-weight: 600; line-height: 1.3;
}
.def-card__meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--muted-foreground);
}
.def-card__steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13.5px;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}
.def-card__steps li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 6px;
  background: color-mix(in srgb, var(--muted) 60%, transparent);
  font-size: 12.5px; line-height: 1.4;
}
.def-card__steps li .step-num {
  font-variant-numeric: tabular-nums; color: var(--muted-foreground);
  width: 18px; flex-shrink: 0;
}
.def-card__steps li .step-kind {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px;
  flex-shrink: 0;
}
.def-card__steps li .step-kind i { width: 10px; height: 10px; }
.def-card__steps li .step-kind--api { background: color-mix(in srgb, oklch(.6 .15 230) 14%, transparent); color: oklch(.5 .18 230); }
.def-card__steps li .step-kind--ai { background: color-mix(in srgb, oklch(.6 .2 305) 14%, transparent); color: oklch(.5 .22 305); }
.def-card__steps li .step-kind--decision { background: color-mix(in srgb, oklch(.7 .14 70) 18%, transparent); color: oklch(.45 .14 70); }
.def-card__steps li .step-kind--task { background: color-mix(in srgb, oklch(.65 .15 145) 14%, transparent); color: oklch(.5 .18 145); }
.def-card__steps li .step-kind--auto { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }
.def-card__steps li .step-body { flex: 1; min-width: 0; }
.def-card__steps li.active {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border-left: 2px solid var(--primary);
  padding-left: 10px;
}
.def-card__desc { font-size: 14px; color: var(--muted-foreground); line-height: 1.55; }

/* ========================================================================
   Three-up grid (cards)
   ======================================================================== */
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .tri { grid-template-columns: 1fr; } }
.tri-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
}
.tri-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
}
.tri-card__tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 4px 8px; border-radius: 4px;
}
.tri-card__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.tri-card__body { color: var(--muted-foreground); font-size: 14.5px; line-height: 1.55; }

/* Quad grid */
.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .quad { grid-template-columns: 1fr; } }

/* ========================================================================
   Trust line block
   ======================================================================== */
.trust-line {
  text-align: center;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  max-width: 880px;
  margin: 0 auto;
  text-wrap: balance;
}
.trust-line strong { color: var(--primary); font-weight: 600; }

/* ========================================================================
   Closing CTA
   ======================================================================== */
.cta-block {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 72px);
  background: var(--card);
  overflow: hidden;
  text-align: center;
}
.cta-block::before {
  content: "";
  position: absolute;
  left: 50%; top: -180px;
  transform: translateX(-50%);
  width: 600px; height: 320px;
  background: var(--primary);
  opacity: .15;
  filter: blur(80px);
  pointer-events: none;
  border-radius: 9999px;
}
.cta-block > * { position: relative; }
.cta-block .cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========================================================================
   Hero common
   ======================================================================== */
.hero {
  position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero__bg .dot-bg { position: absolute; inset: 0; }
.hero__bg .conic-glow { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero__inner {
  position: relative;
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.hero__heading {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
  text-wrap: balance;
  margin: 18px 0 22px;
}
.hero__sub {
  font-size: clamp(16px, 1vw + 10px, 19px);
  line-height: 1.5;
  color: var(--muted-foreground);
  max-width: 680px;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__footer {
  font-size: 13px;
  color: var(--muted-foreground);
}
.hero--center { text-align: center; }
.hero--center .hero__sub { margin-left: auto; margin-right: auto; }
.hero--center .hero__ctas { justify-content: center; }

/* Hero with framed image */
.hero-image-frame {
  margin-top: clamp(40px, 6vw, 72px);
  border-radius: 14px;
  outline: 12px solid color-mix(in srgb, var(--foreground) 5%, transparent);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  max-width: 1180px;
  margin-inline: auto;
  aspect-ratio: 16/9;
  background: color-mix(in srgb, var(--foreground) 90%, var(--background));
  position: relative;
}
.hero-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-image-frame .corner-badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  color: var(--foreground);
}
.hero-image-frame .corner-badge .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: oklch(.65 .15 145);
}

/* ========================================================================
   Anchor diagram for product/knowledge inline diagram block
   ======================================================================== */
.code-flow {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  white-space: pre-wrap;
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: auto;
}

/* ========================================================================
   Animations
   ======================================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fadeUp { animation: fadeUp .6s ease-out both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }
.delay-5 { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .fadeUp { animation: none !important; opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ========================================================================
   Solutions index — solution cards
   ======================================================================== */
.solution-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.solution-card:hover {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
  box-shadow: var(--shadow-lg, 0 12px 28px -12px color-mix(in srgb, var(--primary) 12%, transparent));
}
.solution-card__body { padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.solution-card__head { display: flex; flex-direction: column; gap: 8px; }
.solution-card__head h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.02em; margin: 4px 0 0; }
.solution-card__sub { color: var(--muted-foreground); font-size: 15px; margin: 0; }
.solution-card__lede { color: var(--foreground); font-size: 16px; line-height: 1.6; margin: 0; opacity: .92; }
.solution-card__footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 4px;
}
.solution-card__stats { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13.5px; color: var(--muted-foreground); }
.solution-card__stats b { color: var(--foreground); font-weight: 600; }

.solution-card__visual {
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--accent, var(--primary)) 14%, var(--card)) 0%,
    var(--card) 65%);
  border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; min-height: 240px;
}
.solution-card__visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 18px 18px; color: color-mix(in srgb, var(--foreground) 14%, transparent);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
/* Solution mock visuals */
.sol-mock { position: relative; z-index: 1; width: 100%; padding: 22px 22px; color: var(--foreground); }
.sol-mock__chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.sol-mock__line {
  display: block; height: 5px; border-radius: 3px;
  background: color-mix(in srgb, var(--foreground) 14%, transparent);
}
.sol-mock__line--short { width: 55%; }
.sol-mock__amount {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--foreground);
  align-self: flex-end;
}

/* AP mock — 3 stacked docs converging into a match badge */
.sol-mock--ap { display: grid; place-items: center; min-height: 240px; }
.sol-mock--ap .sol-mock__doc {
  position: absolute;
  width: 150px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 6px;
}
.sol-mock--ap .sol-mock__doc--po { transform: translate(-46px, -32px) rotate(-6deg); }
.sol-mock--ap .sol-mock__doc--gr { transform: translate(0, -8px) rotate(2deg); z-index: 2; }
.sol-mock--ap .sol-mock__doc--inv { transform: translate(46px, 16px) rotate(7deg); z-index: 1; }
.sol-mock__match {
  position: absolute; bottom: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  padding: 6px 10px; border-radius: 9999px;
  background: oklch(.55 .18 145); color: #fff;
  box-shadow: 0 8px 22px -8px oklch(.55 .18 145 / .6);
  z-index: 3;
}
.sol-mock__match i { width: 12px; height: 12px; }

/* Spreading mock — financial statement w/ tabular rows + sparkline */
.sol-mock--spread { display: flex; flex-direction: column; gap: 10px; }
.sol-mock__statement {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; box-shadow: var(--shadow-sm);
  font-family: var(--font-mono); font-size: 10.5px;
}
.sol-mock__hd {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: var(--muted-foreground);
  padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sol-mock__std { color: var(--accent); font-weight: 600; }
.sol-mock__row {
  display: grid; grid-template-columns: 1fr 38px 38px 38px;
  gap: 4px; padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.sol-mock__row span { color: var(--muted-foreground); }
.sol-mock__row b { text-align: right; font-weight: 500; color: var(--foreground); }
.sol-mock__row--hi { color: var(--accent); }
.sol-mock__row--hi b { color: var(--accent); font-weight: 600; }
.sol-mock__row--total {
  border-top: 1px solid var(--border); margin-top: 3px; padding-top: 6px;
}
.sol-mock__row--total b { font-weight: 700; }
.sol-mock__spark {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  color: var(--accent); font-size: 10.5px; font-family: var(--font-mono);
}
.sol-mock__spark svg { width: 90px; height: 22px; }
.sol-mock__spark span { color: var(--muted-foreground); }

/* Claims mock — claim card + policy ref */
.sol-mock--claims { display: flex; flex-direction: column; gap: 10px; }
.sol-mock__claim, .sol-mock__policy {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
}
.sol-mock__claim { border-left: 3px solid var(--accent); }
.sol-mock__claim-hd, .sol-mock__policy-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sol-mock__claim-time { font-family: var(--font-mono); font-size: 10px; color: var(--muted-foreground); }
.sol-mock__claim-body { font-size: 11.5px; font-weight: 500; }
.sol-mock__steps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.sol-mock__step {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9.5px; font-family: var(--font-mono); letter-spacing: .04em;
  padding: 3px 6px; border-radius: 4px;
  background: color-mix(in srgb, var(--muted) 70%, transparent);
  color: var(--muted-foreground);
}
.sol-mock__step i { width: 10px; height: 10px; }
.sol-mock__step--done {
  background: color-mix(in srgb, oklch(.6 .2 145) 14%, transparent);
  color: oklch(.5 .18 145);
}
.sol-mock__step--active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.sol-mock__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: ops-pulse 1.6s ease-out infinite;
}
.sol-mock__policy-hd {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); justify-content: flex-start; gap: 6px;
}
.sol-mock__policy-hd i { width: 12px; height: 12px; }
.sol-mock__policy-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 10.5px; }
.sol-mock__policy-rows span { display: flex; flex-direction: column; }
.sol-mock__policy-rows em { color: var(--muted-foreground); font-style: normal; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.sol-mock__policy-rows b { font-family: var(--font-mono); font-size: 11px; font-weight: 600; }

.tag-live, .tag-soon {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 9999px; width: fit-content;
}
.tag-live {
  background: color-mix(in srgb, oklch(.65 .15 145) 12%, transparent);
  color: oklch(.55 .18 145);
  border: 1px solid color-mix(in srgb, oklch(.65 .15 145) 30%, transparent);
}
.tag-soon {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}

@media (max-width: 880px) {
  .solution-card { grid-template-columns: 1fr; }
  .solution-card__visual { border-left: 0; border-top: 1px solid var(--border); min-height: 180px; order: -1; }
  .solution-card__body { padding: 28px 24px; }
}

.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: opacity .2s ease;
}
.btn-link:hover { opacity: .8; }
.btn-link i { width: 16px; height: 16px; }

/* ========================================================================
   Cinematic hero v2 — Multi-lane production at scale
   Five Activity Plans running in parallel · Tasks landing · Knowledge captured
   ======================================================================== */
.cine { margin-top: 72px; }
.cine__stage {
  position: relative;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 4%, var(--card)) 0%, var(--card) 50%);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent),
    0 30px 80px -32px color-mix(in srgb, var(--primary) 38%, transparent),
    0 80px 140px -50px rgba(0,0,0,.22);
}
.cine__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--foreground) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--foreground) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 85%);
  opacity: .5; pointer-events: none;
}
.cine__halo {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -40%);
  width: 880px; height: 480px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), oklch(.6 .2 280), var(--primary));
  filter: blur(140px); opacity: .22;
  animation: cine-spin 26s linear infinite;
  pointer-events: none;
}
@keyframes cine-spin { to { transform: translate(-50%, -40%) rotate(360deg); } }

/* Top bar — LIVE indicator + counter */
.cine__topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  backdrop-filter: blur(8px);
}
.cine__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: oklch(.5 .18 145);
}
.cine__live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: oklch(.6 .2 145);
  box-shadow: 0 0 0 0 oklch(.6 .2 145 / .55);
  animation: cine-pulse 1.6s ease-out infinite;
}
.cine__live span { color: var(--muted-foreground); font-weight: 500; letter-spacing: .08em; }
@keyframes cine-pulse {
  0% { box-shadow: 0 0 0 0 oklch(.6 .2 145 / .55); }
  70% { box-shadow: 0 0 0 10px oklch(.6 .2 145 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(.6 .2 145 / 0); }
}
.cine__counter {
  display: flex; align-items: baseline; gap: 10px;
}
.cine__counter-value {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1;
  letter-spacing: -.01em; color: var(--foreground);
}
.cine__counter-label {
  font-size: 12px; color: var(--muted-foreground); letter-spacing: .02em;
}

/* Main grid: lanes + task queue */
.cine__main {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 260px;
  gap: 24px; padding: 24px;
}

/* Lanes */
.cine__lanes { display: flex; flex-direction: column; gap: 8px; }
.cine__lane {
  display: grid;
  grid-template-columns: 168px 1fr 92px;
  align-items: center; gap: 16px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.cine__lane:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--primary) 22%, transparent);
}
.cine__lane-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cine__lane-icon {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.cine__lane-icon i { width: 16px; height: 16px; }
.cine__lane-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cine__lane-name {
  font-size: 13px; font-weight: 600; color: var(--foreground);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cine__lane-rate {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-foreground);
  letter-spacing: .02em;
}

/* Track: where documents flow */
.cine__lane-track {
  position: relative; height: 32px; overflow: hidden;
  border-radius: 6px;
}
.cine__lane-line {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: color-mix(in srgb, var(--foreground) 10%, transparent);
}
.cine__lane-fill {
  position: absolute; left: 0; top: 50%; height: 2px; width: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    color-mix(in srgb, var(--primary) 60%, transparent) 50%,
    transparent 100%);
  transform: translateY(-50%);
  filter: drop-shadow(0 0 4px var(--primary));
  animation: cine-fill-sweep 3s linear infinite;
}
@keyframes cine-fill-sweep {
  0% { transform: translate(-100%, -50%); }
  100% { transform: translate(100%, -50%); }
}
.cine__lane--2 .cine__lane-fill { animation-duration: 4s; animation-delay: -.6s; }
.cine__lane--3 .cine__lane-fill { animation-duration: 3.4s; animation-delay: -1.2s; }
.cine__lane--4 .cine__lane-fill { animation-duration: 4.6s; animation-delay: -.3s; }
.cine__lane--5 .cine__lane-fill { animation-duration: 3.2s; animation-delay: -1.8s; }
.cine__lane--6 .cine__lane-fill { animation-duration: 5.2s; animation-delay: -2.4s; }

.cine__lane-step {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--card);
  border: 1.5px solid color-mix(in srgb, var(--foreground) 20%, transparent);
  z-index: 1;
}
.cine__lane-step--1 { left: 25%; }
.cine__lane-step--2 { left: 50%; }
.cine__lane-step--3 { left: 75%; }
.cine__lane-step--4 { left: 100%; transform: translate(-100%, -50%); }

/* Documents: tiny pills that race across the track */
.cine__doc {
  position: absolute; top: 50%; left: 0;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 12px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transform: translate(-110%, -50%);
  box-shadow: 0 2px 6px -2px color-mix(in srgb, var(--primary) 30%, transparent);
  animation: cine-doc-flow 3s linear infinite;
}
.cine__doc::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}
@keyframes cine-doc-flow {
  0% { transform: translate(-110%, -50%); opacity: 0; }
  6% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translate(calc(100vw), -50%); opacity: 0; }
}
/* Animate via track width using right edge instead of viewport */
@keyframes cine-doc-track {
  0% { left: -10%; opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
.cine__doc { animation-name: cine-doc-track; }
.cine__doc--a { animation-duration: 3.2s; animation-delay: 0s; }
.cine__doc--b { animation-duration: 3.2s; animation-delay: -1.1s; }
.cine__doc--c { animation-duration: 3.2s; animation-delay: -2.2s; }
.cine__lane--2 .cine__doc { animation-duration: 4.8s; }
.cine__lane--2 .cine__doc--a { animation-delay: -.4s; }
.cine__lane--2 .cine__doc--b { animation-delay: -2s; }
.cine__lane--2 .cine__doc--c { animation-delay: -3.6s; }
.cine__lane--3 .cine__doc { animation-duration: 4s; }
.cine__lane--3 .cine__doc--a { animation-delay: -.7s; }
.cine__lane--3 .cine__doc--b { animation-delay: -2.1s; }
.cine__lane--3 .cine__doc--c { animation-delay: -3.5s; }
.cine__lane--4 .cine__doc { animation-duration: 5.4s; }
.cine__lane--4 .cine__doc--a { animation-delay: -.2s; }
.cine__lane--4 .cine__doc--b { animation-delay: -2s; }
.cine__lane--4 .cine__doc--c { animation-delay: -3.8s; }
.cine__lane--5 .cine__doc { animation-duration: 3.6s; }
.cine__lane--5 .cine__doc--a { animation-delay: -.5s; }
.cine__lane--5 .cine__doc--b { animation-delay: -1.7s; }
.cine__lane--5 .cine__doc--c { animation-delay: -2.9s; }
.cine__lane--6 .cine__doc { animation-duration: 6.5s; }
.cine__lane--6 .cine__doc--a { animation-delay: -.8s; }
.cine__lane--6 .cine__doc--b { animation-delay: -3.2s; }
.cine__lane--6 .cine__doc--c { animation-delay: -5.2s; }

/* Step pulse when doc passes — pure CSS shimmer */
.cine__lane-step::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: cine-step-pulse 3s linear infinite;
}
.cine__lane-step--1::after { animation-delay: .4s; }
.cine__lane-step--2::after { animation-delay: 1.1s; }
.cine__lane-step--3::after { animation-delay: 1.8s; }
.cine__lane-step--4::after { animation-delay: 2.5s; }
.cine__lane--2 .cine__lane-step::after { animation-duration: 4.8s; }
.cine__lane--3 .cine__lane-step::after { animation-duration: 4s; }
.cine__lane--4 .cine__lane-step::after { animation-duration: 5.4s; }
.cine__lane--5 .cine__lane-step::after { animation-duration: 3.6s; }
.cine__lane--6 .cine__lane-step::after { animation-duration: 6.5s; }
@keyframes cine-step-pulse {
  0%, 12% { opacity: 0; transform: scale(.6); }
  16% { opacity: 1; transform: scale(1.5); border-color: var(--primary); }
  22%, 100% { opacity: 0; transform: scale(2); }
}

/* Lane tail — task counter + chip */
.cine__lane-tail {
  display: flex; align-items: center; gap: 6px;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}
.cine__lane-tail i { width: 12px; height: 12px; color: oklch(.5 .18 145); }
.cine__lane-tail-num { font-size: 13px; font-weight: 700; color: var(--foreground); }
.cine__lane-tail-lbl { font-size: 10.5px; color: var(--muted-foreground); font-family: var(--font-mono); letter-spacing: .04em; }

/* Side queue: tasks landing */
.cine__queue {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  background: color-mix(in srgb, oklch(.65 .15 145) 5%, var(--card));
  border: 1px solid color-mix(in srgb, oklch(.65 .15 145) 18%, var(--border));
  border-radius: 12px;
  position: relative; overflow: hidden;
}
.cine__queue-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: oklch(.45 .18 145);
}
.cine__queue-head span:last-child {
  font-weight: 500; color: var(--muted-foreground);
}
.cine__queue-cards {
  position: relative; height: 320px;
}
.cine__qcard {
  position: absolute; left: 0; right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid oklch(.55 .18 145);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, oklch(.55 .18 145) 30%, transparent);
  font-size: 12px;
  opacity: 0;
}
.cine__qcard-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: oklch(.45 .18 145);
}
.cine__qcard-time { color: var(--muted-foreground); font-weight: 500; }
.cine__qcard-title {
  font-size: 12.5px; font-weight: 600; color: var(--foreground); line-height: 1.3;
}
.cine__qcard-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted-foreground);
}
.cine__qcard-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, oklch(.55 .18 145) 18%, transparent);
  color: oklch(.4 .18 145); font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* One shared keyframe with phase offsets — guarantees no two cards land in the
   same slot at the same time. 16s cycle, 4 cards offset 25% each. */
.cine__qcard--1 { animation: cine-cycle 16s ease-in-out infinite; animation-delay: 0s; }
.cine__qcard--2 { animation: cine-cycle 16s ease-in-out infinite; animation-delay: -4s; }
.cine__qcard--3 { animation: cine-cycle 16s ease-in-out infinite; animation-delay: -8s; }
.cine__qcard--4 { animation: cine-cycle 16s ease-in-out infinite; animation-delay: -12s; }
@keyframes cine-cycle {
  0%, 1%   { top: -60px; opacity: 0; }
  3%, 24%  { top: 0;     opacity: 1; }
  26%, 49% { top: 78px;  opacity: 1; }
  51%, 74% { top: 156px; opacity: 1; }
  76%, 95% { top: 234px; opacity: 1; }
  98%      { top: 234px; opacity: 0; }
  100%     { top: -60px; opacity: 0; }
}

/* Bottom Knowledge ticker */
.cine__know {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px;
  overflow: hidden; white-space: nowrap;
}
.cine__know-chip {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: 10.5px;
  padding: 4px 10px; border-radius: 4px;
  /* solid (not transparent) so the marquee text behind is fully masked */
  background: color-mix(in srgb, var(--primary) 16%, var(--card));
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.cine__know-chip::after {
  /* soft fade from the chip's right edge into the ticker background, so the
     marquee can stream past without ever crashing into the chip text */
  content: '';
  position: absolute;
  top: -1px; bottom: -1px;
  left: 100%;
  width: 28px;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--primary) 5%, var(--card)) 0%,
    color-mix(in srgb, var(--primary) 5%, var(--card) / 0%) 100%
  );
  pointer-events: none;
}
.cine__know-chip i { width: 11px; height: 11px; }
.cine__know-stream {
  display: inline-flex; gap: 36px; min-width: max-content;
  animation: cine-stream 42s linear infinite;
  color: var(--foreground);
}
.cine__know-stream em {
  font-style: normal; color: var(--primary); font-weight: 600;
}
.cine__know-stream span { color: var(--muted-foreground); }
@keyframes cine-stream {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 920px) {
  .cine__main { grid-template-columns: 1fr; }
  .cine__queue { display: none; }
  .cine__lane { grid-template-columns: 140px 1fr 70px; gap: 10px; }
}
@media (max-width: 600px) {
  .cine__topbar { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .cine__main { padding: 14px; }
  .cine__lane { grid-template-columns: 1fr 60px; padding: 10px 12px; }
  .cine__lane-head { grid-column: 1 / -1; }
  .cine__lane-track { grid-column: 1 / 2; }
  .cine__lane-tail { grid-column: 2 / 3; }
  .cine__know { padding: 10px 14px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cine__halo, .cine__lane-fill, .cine__doc, .cine__lane-step::after,
  .cine__qcard, .cine__know-stream, .cine__live::before { animation: none !important; }
  .cine__qcard { opacity: 1; position: static; }
  .cine__queue-cards { height: auto; display: flex; flex-direction: column; gap: 10px; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

/* Utility */
.flex { display: flex; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; }
.mt-12 { margin-top: 48px; }
.text-center { text-align: center; }
.max-w-prose { max-width: 720px; }
.max-w-wide { max-width: 1100px; }

/* Section header pattern */
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 880px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { max-width: 720px; }
.section-head--center .lede { margin-inline: auto; }

/* ========================================================================
   Screenshot frame (passe-partout look from kodexa.ai)
   ======================================================================== */
.screenshot-frame {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--foreground) 5%, transparent),
              0 30px 60px -20px color-mix(in srgb, var(--primary) 15%, transparent),
              0 16px 30px -10px rgba(0,0,0,.10);
  overflow: hidden;
  outline: 8px solid color-mix(in srgb, var(--foreground) 4%, transparent);
  outline-offset: 0;
}
@media (max-width: 760px) { .screenshot-frame { outline-width: 4px; } }
.ss-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--muted) 50%, var(--card));
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted-foreground);
}
.ss-dot { width: 11px; height: 11px; border-radius: 50%; }
.ss-dot--r { background: #ff5f57; }
.ss-dot--y { background: #febc2e; }
.ss-dot--g { background: #28c840; }
.ss-title { margin-left: 10px; }
.ss-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--foreground);
  background: var(--background);
}
.ss-badge i { width: 12px; height: 12px; color: oklch(.55 .15 145); }

/* ========================================================================
   Library mock (Knowledge page)
   ======================================================================== */
.library-mock {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  min-height: 540px;
  background: var(--card);
  font-size: 13px;
}
@media (max-width: 1100px) { .library-mock { grid-template-columns: 200px 1fr; } .library-mock .lib__detail { display: none; } }
@media (max-width: 760px)  { .library-mock { grid-template-columns: 1fr; } .library-mock .lib__rail { display: none; } }
.lib__rail { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.lib__rail-head { padding: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.lib__search {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; background: var(--muted); border-radius: 6px;
  color: var(--muted-foreground); font-size: 12px;
}
.lib__search i { width: 14px; height: 14px; }
.lib__tabs { display: inline-flex; gap: 4px; background: var(--muted); border-radius: 6px; padding: 3px; font-size: 11.5px; font-weight:500;}
.lib__tabs span { padding: 4px 10px; border-radius: 4px; color: var(--muted-foreground); cursor: default; }
.lib__tabs .active { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-xs); }
.lib__list { list-style: none; margin: 0; padding: 6px; flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.lib__list li {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; color: var(--foreground);
  cursor: default;
}
.lib__list li b { margin-left: auto; color: var(--muted-foreground); font-weight: 500; font-size: 11.5px; }
.lib__list li.active { background: color-mix(in srgb, var(--primary) 9%, transparent); color: var(--foreground); }
.lib__list li.active b { color: var(--primary); font-weight: 600; }
.lib__centre { display: flex; flex-direction: column; min-width: 0; }
.lib__centre-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.lib__centre-head h3 { font-size: 17px; font-weight: 600; }
.lib__centre-head p { font-size: 12px; color: var(--muted-foreground); margin: 4px 0 0; }
.lib__centre-head p code { background: var(--muted); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }
.lib__actions { margin-left: auto; display: flex; gap: 8px; }
.btn-ghost {
  font-size: 12px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px; color: var(--foreground);
}
.btn-ghost i { width: 13px; height: 13px; }
.btn-primary-sm {
  font-size: 12px; padding: 6px 12px; background: var(--primary); color: #fff;
  border-radius: 6px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary-sm i { width: 13px; height: 13px; }
.lib__table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.lib__table th, .lib__table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.lib__table th { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); background: color-mix(in srgb, var(--muted) 30%, var(--card)); }
.lib__table td:last-child { text-align: right; color: var(--muted-foreground); width: 30px; }
.lib__table td i { width: 14px; height: 14px; }
.lib__table strong { font-weight: 600; }
.lib__table code { font-family: var(--font-mono); font-size: 11.5px; background: var(--muted); padding: 2px 6px; border-radius: 4px; }
.lib__sub { font-size: 11.5px; color: var(--muted-foreground); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.lib__sub i { width: 12px; height: 12px; color: var(--primary); }
.lib__row--selected { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.lib__row--selected td:first-child { box-shadow: inset 2px 0 0 var(--primary); }
.lib__row--proposal { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.lib__pill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 9999px; background: var(--primary); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.lib__pill--ok { background: color-mix(in srgb, oklch(.55 .15 145) 20%, transparent); color: oklch(.45 .15 145); }
.lib__detail { border-left: 1px solid var(--border); padding: 18px; display: flex; flex-direction: column; gap: 14px; background: color-mix(in srgb, var(--muted) 25%, var(--card)); }
.lib__detail-head { display: flex; align-items: center; gap: 8px; }
.lib__detail-id { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-foreground); margin-left: auto; }
.lib__detail h4 { font-size: 16px; font-weight: 600; }
.lib__detail-desc { font-size: 12.5px; color: var(--muted-foreground); line-height: 1.5; }
.lib__field span { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); margin-bottom: 6px; }
.lib__field pre {
  font-family: var(--font-mono); font-size: 11.5px;
  background: var(--background); border: 1px solid var(--border);
  padding: 10px 12px; border-radius: 6px; line-height: 1.5; margin: 0;
  white-space: pre-wrap; color: var(--foreground);
}
.lib__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 11.5px; }
.lib__meta span { display: block; color: var(--muted-foreground); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.lib__meta b { font-weight: 500; }
.lib__detail-actions { margin-top: auto; display: flex; gap: 8px; }
.lib__detail-actions .btn-ghost, .lib__detail-actions .btn-primary-sm { flex: 1; justify-content: center; }

/* ========================================================================
   Workflow mock + Studio mock
   ======================================================================== */
.wf-mock {
  display: grid; grid-template-columns: 320px 1fr;
  min-height: 540px; background: var(--card); font-size: 13px;
}
@media (max-width: 760px) { .wf-mock { grid-template-columns: 1fr; } }
.wf__rail { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.wf__rail-head { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 600; }
.wf__rail-head span { font-size: 11px; color: var(--muted-foreground); margin-left: auto; font-weight: 500; }
.wf__rail-filter { display: flex; padding: 6px 10px; border-bottom: 1px solid var(--border); gap: 4px; font-size: 11.5px; }
.wf__rail-filter span { padding: 3px 8px; border-radius: 4px; color: var(--muted-foreground); cursor: default; }
.wf__rail-filter .active { background: var(--muted); color: var(--foreground); font-weight: 500; }
.wf__queue { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.wf__queue li {
  padding: 11px 12px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--card); display: flex; flex-direction: column; gap: 5px;
  cursor: default;
}
.wf__queue li.active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); box-shadow: inset 2px 0 0 var(--primary); }
.wf__qtitle { font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 8px; }
.wf__qtitle .wf__status { font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wf__status--review { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.wf__status--exception { background: color-mix(in srgb, oklch(.65 .2 30) 18%, transparent); color: oklch(.45 .2 30); }
.wf__status--approval { background: color-mix(in srgb, oklch(.7 .15 80) 18%, transparent); color: oklch(.45 .15 80); }
.wf__qmeta { display: flex; gap: 8px; font-size: 11px; color: var(--muted-foreground); align-items: center; }
.wf__qmeta b { font-weight: 500; color: var(--foreground); }
.wf__main { display: flex; flex-direction: column; min-width: 0; }
.wf__main-head { padding: 12px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.wf__main-head h3 { font-size: 14px; font-weight: 600; }
.wf__main-head .wf__live {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px;
  color: oklch(.45 .15 145); font-weight: 600;
}
.wf__main-head .wf__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: oklch(.55 .15 145); }
.wf__main-head .wf__doc { margin-left: auto; font-size: 11.5px; color: var(--muted-foreground); font-family: var(--font-mono); }
.wf__steps { padding: 18px; display: flex; flex-direction: column; gap: 0; position: relative; }
.wf__step {
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 12px; padding: 10px 0; align-items: center; position: relative;
}
.wf__step::after {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: -8px;
  width: 1.5px; background: var(--border);
}
.wf__step:last-child::after { display: none; }
.wf__step-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--muted); border: 1px solid var(--border);
  position: relative; z-index: 1;
}
.wf__step-icon i { width: 14px; height: 14px; }
.wf__step--done .wf__step-icon { background: oklch(.55 .15 145); border-color: oklch(.55 .15 145); color: #fff; }
.wf__step--running .wf__step-icon { background: var(--primary); border-color: var(--primary); color: #fff; animation: spin 2s linear infinite; }
.wf__step--running .wf__step-icon i { animation: counterspin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterspin { to { transform: rotate(-360deg); } }
.wf__step--task .wf__step-icon { background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: var(--primary); color: var(--primary); }
.wf__step-name { font-weight: 500; font-size: 13px; }
.wf__step-detail { font-size: 11.5px; color: var(--muted-foreground); font-family: var(--font-mono); margin-top: 2px; }
.wf__step-time { font-size: 11.5px; color: var(--muted-foreground); font-family: var(--font-mono); }
.wf__step--running .wf__step-time { color: var(--primary); font-weight: 500; }
.wf__audit {
  border-top: 1px solid var(--border); padding: 12px 18px;
  display: flex; align-items: center; gap: 12px; font-size: 12px;
  background: color-mix(in srgb, var(--muted) 30%, var(--card));
  margin-top: auto;
}
.wf__audit i { width: 14px; height: 14px; color: var(--muted-foreground); }
.wf__audit a { color: var(--primary); font-weight: 500; }
.wf__audit .wf__count { margin-left: auto; padding: 3px 10px; border-radius: 9999px; background: var(--card); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; }

/* Studio Plan editor */
.studio-mock { background: var(--card); display: grid; grid-template-columns: 1fr 320px; min-height: 560px; }
@media (max-width: 1024px) { .studio-mock { grid-template-columns: 1fr; } .studio-mock .studio__inspector { border-left: 0; border-top: 1px solid var(--border); } }
.studio__canvas { padding: 28px; position: relative; background:
  radial-gradient(circle, color-mix(in srgb, var(--foreground) 8%, transparent) 1px, transparent 1.5px) 0 0 / 20px 20px,
  var(--card); }
.studio__toolbar {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; gap: 8px; align-items: center;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 9999px;
  padding: 6px 8px; font-size: 12px;
  z-index: 2;
}
.studio__toolbar > span { padding: 4px 10px; border-radius: 9999px; color: var(--foreground); }
.studio__toolbar > span.active { background: var(--primary); color: #fff; font-weight: 500; }
.studio__toolbar > span.divider { padding: 0; margin: 0 4px; border-left: 1px solid var(--border); height: 16px; }
.studio__toolbar .right { margin-left: auto; display: flex; gap: 6px; }
.studio__graph { margin-top: 56px; }
.studio__row {
  display: flex; align-items: center; gap: 0;
  padding: 14px 0;
}
.studio__node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 14px; border: 1.5px solid var(--border);
  background: var(--card); border-radius: 10px;
  min-width: 130px; text-align: center;
  font-size: 12px; font-weight: 500;
  position: relative;
}
.studio__node i { width: 18px; height: 18px; color: var(--primary); }
.studio__node small { font-size: 10.5px; color: var(--muted-foreground); font-weight: 400; }
.studio__node--selected { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.studio__node-badge {
  position: absolute; top: -10px; right: -10px;
  font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 4px;
  background: var(--primary); color: #fff; text-transform: uppercase; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.studio__node-badge i { width: 10px; height: 10px; color: #fff; }
.studio__edge { flex: 1; height: 1.5px; background: var(--border); position: relative; min-width: 24px; }
.studio__edge::after {
  content: ""; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 0; height: 0; border-left: 6px solid var(--border); border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.studio__inspector {
  border-left: 1px solid var(--border);
  padding: 18px;
  display: flex; flex-direction: column; gap: 16px;
  font-size: 12.5px;
  background: color-mix(in srgb, var(--muted) 20%, var(--card));
}
.studio__inspector h4 { font-size: 15px; font-weight: 600; }
.studio__field span { display: block; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); margin-bottom: 6px; }
.studio__field code, .studio__field pre {
  display: block; font-family: var(--font-mono); font-size: 11.5px;
  background: var(--background); border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 6px; line-height: 1.6; margin: 0;
}
.studio__field pre { white-space: pre-wrap; }
.studio__cta-row { display: flex; gap: 8px; margin-top: auto; }
.studio__cta-row .btn-ghost, .studio__cta-row .btn-primary-sm { flex: 1; justify-content: center; }

/* ========================================================================
   Tweaks (theme toggle)
   ======================================================================== */
.tweaks-panel {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  width: 240px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-foreground); margin-bottom: 10px;
}
.tweaks-panel .seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--muted); border-radius: 8px; padding: 4px;
}
.tweaks-panel .seg button {
  height: 32px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--foreground);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tweaks-panel .seg button.on {
  background: var(--background); color: var(--foreground);
  box-shadow: var(--shadow-xs);
}

/* ========================================================================
   Live operations — production-at-scale dashboard panel
   ======================================================================== */
.ops {
  position: relative;
  margin-top: 56px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 8%, transparent) inset,
    0 30px 80px -36px color-mix(in srgb, var(--primary) 26%, transparent),
    0 60px 120px -50px rgba(0,0,0,.18);
}
.ops__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
  border-bottom: 1px solid var(--border);
}
.ops__head-left { display: flex; align-items: center; gap: 14px; }
.ops__lights { display: inline-flex; gap: 6px; }
.ops__lights span {
  width: 10px; height: 10px; border-radius: 50%;
  background: color-mix(in srgb, var(--foreground) 15%, transparent);
}
.ops__title {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground);
}
.ops__title strong { color: var(--foreground); font-weight: 700; letter-spacing: .12em; }
.ops__head-right { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--muted-foreground); }
.ops__pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: oklch(.5 .18 145);
}
.ops__pulse::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: oklch(.6 .2 145);
  animation: ops-pulse 1.6s ease-out infinite;
}
@keyframes ops-pulse {
  0% { box-shadow: 0 0 0 0 oklch(.6 .2 145 / .55); }
  70% { box-shadow: 0 0 0 9px oklch(.6 .2 145 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(.6 .2 145 / 0); }
}
.ops__counter {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--foreground); letter-spacing: -.01em;
}

.ops__metabar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.ops__meta {
  padding: 18px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.ops__meta:last-child { border-right: none; }
.ops__meta-label {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.ops__meta-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2vw, 26px); letter-spacing: -.01em; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ops__meta-sub { font-size: 12px; color: var(--muted-foreground); }

.ops__table {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) 1fr 110px 130px 110px 110px;
  font-size: 13.5px;
}
.ops__row {
  display: contents;
}
.ops__th, .ops__td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.ops__th {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground);
  background: color-mix(in srgb, var(--muted) 60%, transparent);
}
.ops__row:last-child .ops__td { border-bottom: none; }
.ops__row:hover .ops__td { background: color-mix(in srgb, var(--primary) 3%, transparent); }

.ops__name {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; color: var(--foreground);
}
.ops__name-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ops__name-icon i { width: 16px; height: 16px; }
.ops__name-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted-foreground); margin-top: 2px; }

.ops__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.ops__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.ops__status--live {
  background: color-mix(in srgb, oklch(.6 .2 145) 14%, transparent);
  color: oklch(.45 .18 145);
}
.ops__status--live::before { background: oklch(.6 .2 145); animation: ops-pulse 1.6s infinite; }
.ops__status--pilot {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}
.ops__status--pilot::before { background: var(--primary); }
.ops__status--beta {
  background: color-mix(in srgb, var(--muted) 90%, transparent);
  color: var(--muted-foreground);
}
.ops__status--beta::before { background: var(--muted-foreground); }

.ops__throughput {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 16px; color: var(--foreground); letter-spacing: -.005em;
}
.ops__throughput small { display: block; font-size: 11px; font-weight: 400; color: var(--muted-foreground); letter-spacing: 0; margin-top: 2px; }

.ops__spark { width: 110px; height: 28px; }
.ops__spark path { fill: none; stroke: var(--primary); stroke-width: 1.6; }
.ops__spark--green path { stroke: oklch(.6 .2 145); }
.ops__spark-area { fill: url(#ops-spark-fill); opacity: .35; }

.ops__inflight {
  display: inline-flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--foreground);
}
.ops__inflight-bar {
  width: 6px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 30%, transparent));
  animation: ops-bar 1.4s ease-in-out infinite;
}
.ops__row:nth-child(2) .ops__inflight-bar { animation-delay: -.2s; }
.ops__row:nth-child(3) .ops__inflight-bar { animation-delay: -.5s; }
.ops__row:nth-child(4) .ops__inflight-bar { animation-delay: -.8s; }
.ops__row:nth-child(5) .ops__inflight-bar { animation-delay: -1.1s; }
.ops__row:nth-child(6) .ops__inflight-bar { animation-delay: -1.3s; }
@keyframes ops-bar {
  0%, 100% { transform: scaleY(.55); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.ops__tasks {
  display: flex; align-items: center; gap: 8px;
  font-variant-numeric: tabular-nums;
}
.ops__avatars { display: inline-flex; }
.ops__avatars span {
  width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, oklch(.55 .18 145) 18%, var(--card));
  color: oklch(.4 .18 145); font-size: 9.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
  margin-left: -7px;
}
.ops__avatars span:first-child { margin-left: 0; }
.ops__tasks-num { font-weight: 600; color: var(--foreground); }
.ops__tasks-label { font-size: 11.5px; color: var(--muted-foreground); }

.ops__ticker {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--primary) 4%, var(--card));
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--muted-foreground);
  overflow: hidden;
  white-space: nowrap;
}
.ops__ticker-label {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  font-weight: 700;
  color: oklch(.5 .18 145);
  letter-spacing: .12em;
  /* solid pill background so the marquee text behind is masked */
  padding: 4px 10px;
  border-radius: 4px;
  background: color-mix(in srgb, oklch(.5 .18 145) 12%, var(--card));
  border: 1px solid color-mix(in srgb, oklch(.5 .18 145) 28%, transparent);
}
.ops__ticker-label::after {
  /* fade from the label's right edge into the ticker background */
  content: '';
  position: absolute;
  top: -1px; bottom: -1px;
  left: 100%;
  width: 28px;
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--primary) 4%, var(--card)) 0%,
    color-mix(in srgb, var(--primary) 4%, var(--card) / 0%) 100%
  );
  pointer-events: none;
}
.ops__ticker-track {
  display: inline-flex; gap: 36px;
  animation: ops-ticker 38s linear infinite;
}
.ops__ticker-track span { color: var(--foreground); }
.ops__ticker-track em { color: var(--primary); font-style: normal; font-weight: 600; }
@keyframes ops-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .ops__metabar { grid-template-columns: repeat(2, 1fr); }
  .ops__meta:nth-child(2) { border-right: none; }
  .ops__meta { border-bottom: 1px solid var(--border); }
  .ops__meta:nth-last-child(-n+2) { border-bottom: none; }
  .ops__table { grid-template-columns: 1fr 110px 110px; }
  .ops__th--throughput, .ops__th--spark, .ops__th--inflight,
  .ops__td--throughput, .ops__td--spark, .ops__td--inflight { display: none; }
}
@media (max-width: 600px) {
  .ops__head-right .ops__counter, .ops__head-right .ops__pulse-label { display: none; }
  .ops__th, .ops__td { padding: 12px 14px; }
}

/* ============================================================================
   Plan flow — card-based process diagrams (Solutions pages)
   Replaces inline SVG flowcharts with the same visual language as the
   home cinematic and the solutions cards: rounded cards on a primary
   accent, lucide icons, Inter typography, soft shadows.
   ============================================================================ */
.plan-flow {
  max-width: 720px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.plan-trigger {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--muted) 70%, var(--card));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  text-align: left;
  max-width: 100%;
}
.plan-trigger__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.plan-trigger__icon svg { width: 14px; height: 14px; }
.plan-trigger__text { display: flex; flex-direction: column; line-height: 1.2; }
.plan-trigger__text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--foreground);
}
.plan-trigger__text span {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

/* Vertical connector rail with terminal arrow */
.plan-rail {
  align-self: center;
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in srgb, var(--border) 80%, transparent) 30%,
    var(--border) 100%);
  position: relative;
}
.plan-rail::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  transform: translate(-50%, 0) rotate(45deg);
}
.plan-rail--primary {
  background: linear-gradient(to bottom,
    transparent 0%,
    color-mix(in srgb, var(--primary) 60%, transparent) 30%,
    var(--primary) 100%);
}
.plan-rail--primary::after {
  border-color: var(--primary);
}

/* Step card */
.plan-step {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.plan-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 200px at 100% 0,
    color-mix(in srgb, var(--primary) 7%, transparent),
    transparent 60%);
  pointer-events: none;
}
.plan-step__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.plan-step__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.plan-step__head svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  margin-left: auto;
  opacity: 0.85;
}
.plan-step__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--foreground);
}
.plan-step__sub {
  position: relative;
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.plan-step--task {
  border-style: dashed;
  background: color-mix(in srgb, var(--primary) 6%, var(--card));
}
.plan-step--task .plan-step__tag {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
}
.plan-step--secondary {
  border-color: var(--border);
}
.plan-step--secondary::before { display: none; }
.plan-step--secondary .plan-step__tag {
  background: var(--muted);
  color: var(--muted-foreground);
}
.plan-step--secondary .plan-step__head svg { color: var(--muted-foreground); }
.plan-step--secondary .plan-step__title { color: var(--foreground); }

/* Branch fork above two-column row — bracket-style splitter */
.plan-fork {
  position: relative;
  align-self: stretch;
  height: 56px;
  margin-top: 4px;
}
.plan-fork::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 28px;
  border: 1.5px solid var(--border);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}
.plan-fork::after {
  content: '';
  position: absolute;
  top: -22px;
  left: 50%;
  width: 1.5px;
  height: 22px;
  background: var(--border);
  transform: translateX(-50%);
}
.plan-fork__labels {
  position: absolute;
  inset: 32px 12% 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}
.plan-fork__labels span {
  background: var(--background);
  padding: 0 8px;
  position: relative;
  top: -10px;
}

/* Two-column step row (the branch) */
.plan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-self: stretch;
}

/* Converge — small label arrow joining a single card back into the trunk */
.plan-merge {
  position: relative;
  align-self: stretch;
  height: 44px;
  margin-bottom: -8px;
}
.plan-merge::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 25%;
  height: 28px;
  border: 1.5px solid var(--primary);
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 16px;
}
.plan-merge::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: translate(-50%, 0) rotate(45deg);
}
.plan-merge__label {
  position: absolute;
  bottom: 14px;
  left: 32%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  background: var(--background);
  padding: 0 6px;
}

/* Final terminal pill */
.plan-final {
  align-self: center;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow:
    var(--shadow-primary-glow),
    0 14px 36px -10px color-mix(in srgb, var(--primary) 50%, transparent);
}
.plan-final svg { width: 16px; height: 16px; }
.plan-final__arrow { opacity: 0.7; padding: 0 2px; }

@media (max-width: 720px) {
  .plan-row { grid-template-columns: 1fr; gap: 14px; }
  .plan-fork { height: 32px; }
  .plan-fork::before { display: none; }
  .plan-fork__labels {
    inset: 0;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    padding: 0;
  }
  .plan-fork__labels span { background: transparent; top: 0; }
  .plan-merge { display: none; }
}
