/* Use Cases - Customer Support Page Styles */

/* CSS Variables for Use Cases Hero Section */
:root {
  /* Typography */
  --uc-badge-font-size: clamp(12px, 2.5vw, 14px);
  --uc-title-font-size: clamp(32px, 8vw, 64px);
  --uc-description-font-size: clamp(16px, 3.5vw, 18px);
  --uc-description-line-height: clamp(24px, 4.5vw, 27px);
  
  /* Spacing */
  --uc-badge-padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 24px);
  --uc-button-padding: clamp(16px, 4vw, 18px) clamp(12px, 3vw, 24px);
  --uc-element-gap: clamp(16px, 4vw, 24px);
  --uc-buttons-gap: clamp(10px, 2.5vw, 14px);
  --uc-buttons-margin: clamp(32px, 6vw, 44px);
  
  /* Colors */
  --uc-text-color: #1F1F1F;
  --uc-button-primary-bg: #1F1F1F;
  --uc-button-primary-color: #FFF;
  --uc-button-outline-color: #1F1F1F;
  --uc-button-outline-bg: transparent;
  
  /* Border Radius */
  --uc-button-radius: 50px;
  --uc-badge-radius: 999px;
  
  /* Font Family */
  --uc-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.use-cases-customer-support-page {
  overflow: hidden;
  background: #fff;
  color: var(--uc-text-color);
  font-family: var(--uc-font-family);
}

.uc-container {
  max-width: clamp(320px, 90vw, 1400px);
  margin: 0 auto;
  padding: 0;
}

/* Hero Section */
.uc-hero {
  background: #fff;
  color: var(--uc-text-color);
  padding: var(--uc-sections-gap) 0;
  position: relative;
}

.uc-hero__gradient-left,
.uc-hero__gradient-right {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(100px);
}

/* Left large soft gradient (cyan->violet) */
.uc-hero__gradient-left::before {
  content: "";
  position: absolute;
  width: clamp(200px, 40vw, 511.6px);
  height: 512.58px;
  left: -5%;
  top: 8%;
  border-radius: 50%;
  background: linear-gradient(93deg, #9AFFF7 0%, #7056F3 100%);
  opacity: 1;
  z-index: 0;
}

/* Right smaller gradient behind image (violet range) */
.uc-hero__gradient-right::before {
  content: "";
  position: absolute;
  width: clamp(200px, 40vw, 532.57px);
  height: 449.64px;
  right: -5%;
  bottom: -6%;
  border-radius: 50%;
  background: linear-gradient(90deg, #5E52F3 0%, #6056F3 100%);
  opacity: 1;
  transform: rotate(-155.84deg);
}

/* UC Hero Container styles moved to components.css */

.uc-hero__content {
  position: relative;
  z-index: 10;
}

.uc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--uc-badge-padding);
  background: var(--uc-button-outline-bg);
  border: 1px solid var(--uc-text-color);
  border-radius: var(--uc-badge-radius);
  font-size: var(--uc-badge-font-size);
  font-weight: 500;
  color: var(--uc-text-color);
  font-family: var(--uc-font-family);
  margin-bottom: var(--uc-element-gap);
}

.uc-hero__badge-icon {
  font-size: 1rem;
}

/* Hero title styles moved to components.css */

/* Hero subtitle styles moved to components.css */

.uc-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 40px 0;
}

.uc-hero__stat {
  text-align: center;
}

.uc-hero__stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #8272fe;
  margin-bottom: 8px;
}

.uc-hero__stat-label {
  font-size: 0.9rem;
  color: #b0b0b0;
  font-weight: 500;
}

/* UC Hero Actions styles moved to components.css */

.uc-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.uc-hero__visual img {
  width: clamp(300px, 50vw, 654px);
  height: clamp(350px, 60vw, 720px);
  object-fit: contain;
  border-radius: 16px;
  position: relative;
  z-index: 2;
}


/* Buttons */
.uc-btn {
  display: inline-block;
  padding: var(--uc-button-padding);
  border-radius: var(--uc-button-radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  font-family: var(--uc-font-family);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uc-btn--primary {
  background: var(--uc-button-primary-bg);
  color: var(--uc-button-primary-color);
  border-color: var(--uc-button-primary-bg);
}

.uc-btn--primary:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
  color: var(--uc-button-primary-color);
}

.uc-btn--outline {
  background: var(--uc-button-outline-bg);
  color: var(--uc-button-outline-color);
  border-color: var(--uc-button-outline-color);
}

.uc-btn--outline:hover {
  background: var(--uc-button-outline-color);
  color: var(--uc-button-primary-color);
  transform: translateY(-2px);
}

.uc-btn--large {
  padding: 20px 40px;
  font-size: 1.1rem;
}

/* Section Titles */
.uc-section__title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 24px;
  color: #222;
}

/* Problem Section */
.uc-problem {
  padding: 100px 0;
  background: #f8f9fa;
}

.uc-problem__description {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.uc-problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.uc-problem__item {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.uc-problem__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.uc-problem__icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.uc-problem__item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #222;
}

.uc-problem__item p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Solution Section */
.uc-solution {
  padding: 100px 0;
  background: #fff;
}

.uc-solution__description {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.uc-solution__workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.uc-solution__step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.uc-solution__step-number {
  width: 48px;
  height: 48px;
  background: #8272fe;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.uc-solution__step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #222;
}

.uc-solution__step-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Features Section */
.uc-features {
  padding: 100px 0;
  background: #f8f9fa;
}

.uc-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.uc-feature {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.uc-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.uc-feature__icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.uc-feature h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #222;
}

.uc-feature p {
  color: #666;
  line-height: 1.6;
  margin: 0 0 20px;
}

.uc-feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.uc-feature__list li {
  padding: 8px 0;
  color: #444;
  position: relative;
  padding-left: 24px;
}

.uc-feature__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 8px;
  color: #8272fe;
  font-weight: 700;
}

/* Results Section */
.uc-results {
  padding: 100px 0;
  background: #fff;
}

.uc-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.uc-result {
  background: #f8f9fa;
  padding: 32px;
  border-radius: 16px;
  border-left: 4px solid #8272fe;
}

.uc-result__company {
  font-size: 1.1rem;
  font-weight: 600;
  color: #8272fe;
  margin-bottom: 16px;
}

.uc-result__metric {
  margin-bottom: 20px;
}

.uc-result__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
}

.uc-result__label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.uc-result p {
  color: #444;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Implementation Section */
.uc-implementation {
  padding: 100px 0;
  background: #f8f9fa;
}

.uc-implementation__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.uc-implementation__step {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.uc-implementation__step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.uc-implementation__step-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.uc-implementation__step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #222;
}

.uc-implementation__step p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.uc-cta {
  padding: 100px 0;
  background: #000;
  background-image: url('../img/uc-cta-bg.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.uc-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.uc-cta__content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.uc-cta__title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
}

.uc-cta__subtitle {
  font-size: 1.3rem;
  color: #b0b0b0;
  margin: 0 0 40px;
  line-height: 1.6;
}

.uc-cta__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.uc-cta__benefits {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.uc-cta__benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b0b0b0;
  font-size: 0.9rem;
}

.uc-cta__benefit-icon {
  color: #8272fe;
}

/* Responsive Design */
/* UC Hero Container styles moved to components.css */

/* Hero title responsive styles moved to components.css */

.uc-hero__stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


@media (max-width: 768px) {
  /* .uc-hero {
    padding: 80px 0 60px;
  } */
  
  /* Hero title responsive styles moved to components.css */
  
  /* Hero subtitle responsive styles moved to components.css */
  
  .uc-hero__stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
/* UC Hero Actions responsive styles moved to components.css */  
  .uc-hero__actions .uc-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .uc-problem,
  .uc-solution,
  .uc-features,
  .uc-results,
  .uc-implementation,
  .uc-cta {
    padding: 80px 0;
  }
  
  .uc-section__title {
    font-size: 2.2rem;
  }
  
  .uc-problem__grid,
  .uc-solution__workflow,
  .uc-features__grid,
  .uc-results__grid,
  .uc-implementation__steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .uc-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .uc-cta__actions .uc-btn {
    width: 100%;
    max-width: 300px;
  }
  
  .uc-cta__benefits {
    flex-direction: column;
    gap: 16px;
  }
  /* .uc-hero__visual {
    padding-top: 60px;
  } */
  
  .uc-hero__hint--left {
    left: 0;
    bottom: 0;
  }
}

@media (max-width: 480px) {


  /* Hero title responsive styles moved to components.css */

  /* Hero subtitle responsive styles moved to components.css */

  .uc-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
  }

  .uc-section__title {
    font-size: 1.8rem;
  }
}

/* ============================================================
   CS-HERO — Customer Support Dark Hero (v2)
   ============================================================ */

/* Animated conic-gradient border via @property */
@property --cs-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes cs-border-spin {
  to { --cs-angle: 360deg; }
}

/* Smooth flowing sine wave */
@keyframes cs-wave-sine {
  from { transform: translateX(0); }
  to   { transform: translateX(-20px); }
}

@keyframes cs-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.38; transform: scale(0.65); }
}

@keyframes cs-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(105,88,237,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(105,88,237,0.15); }
}

.cs-hero {
  position: relative;
  background: #020308;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 80px 24px 0;
}

/* ---- Background SVG — bottom edge aligns with mid-button ---- */
.cs-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Height: covers from top to ~midpoint of buttons.
     At 1440px desktop: content (~badge+h1+subtitle+½button) ≈ 540px.
     SVG is 1920×1057; at 100vw its natural height = 55vw.
     We clip it to the content zone with mask. */
  height: clamp(380px, 52vw, 640px);
  z-index: 0;
  pointer-events: none;
}

.cs-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Fade bottom: the SVG's lower dark cap handles it naturally;
     mask ensures a hard clip right at button center */
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}

/* ---- Content wrapper ---- */
.cs-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  width: 100%;
}

/* Badge */
.cs-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 20px;
  border: 1px solid rgba(136, 136, 145, 0.65);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 28px;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

/* Headline */
.cs-hero__title {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 24px;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

/* Subtitle */
.cs-hero__subtitle {
  font-size: clamp(15px, 1.8vw, 17.5px);
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.55);
  max-width: 660px;
  margin: 0 0 48px;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

/* Actions row */
.cs-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}

/* ---- Buttons ---- */
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-sans, 'Roboto', sans-serif);
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* "SEE IT IN ACTION" — seamless flowing gradient border */
.cs-btn--action {
  color: #ffffff;
  background: #050508;
  border: none;
  position: relative;
  z-index: 0;
  isolation: isolate;
  min-height: 59px;
}

.cs-btn--action::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 52px;
  /* Seamless: 0deg and 360deg are the same color → no hard seam */
  background: conic-gradient(
    from var(--cs-angle),
    #6958ED   0deg,
    #8a75f0  45deg,
    #9AFFF7  90deg,
    #c0f5c0 135deg,
    #EDCF4B 180deg,
    #c0f5c0 225deg,
    #9AFFF7 270deg,
    #8a75f0 315deg,
    #6958ED 360deg
  );
  animation: cs-border-spin 4s linear infinite;
  z-index: -2;
}

.cs-btn--action::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 50px;
  background: #050508;
  z-index: -1;
}

.cs-btn--action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(105, 88, 237, 0.3);
  color: #ffffff;
}

/* "REQUEST YOUR DEMO" — plain white, no animation */
.cs-btn--demo {
  color: #0a0a0a;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  min-height: 59px;
}

.cs-btn--demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.18);
  color: #0a0a0a;
  background: rgba(255, 255, 255, 0.92);
}

/* Arrow circle: black bg, white arrow */
.cs-btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.cs-btn__arrow svg {
  color: #ffffff;
  stroke: #ffffff;
}

/* ============================================================
   Dashboard Cards — staircase layout
   ============================================================ */

.cs-hero__cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 1340px;
  padding: 0 16px;
  align-items: end; /* all cards share one bottom edge */
}

/* ---- Base card — glass morphism, transition-driven entrance ---- */
.cs-card {
  background: rgb(12 12 13 / 36%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 30px;
  padding: 24px;
  color: #ffffff;
  font-family: var(--font-sans);
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  will-change: transform, opacity;
}

/* Entrance triggered by JS — reveals card */
.cs-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover: lift + purple border glow (only after revealed) */
.cs-card.is-visible:hover {
  border-color: rgba(105, 88, 237, 0.38);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(105, 88, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Agent card: teal glow on hover */
.cs-card--agent.is-visible:hover {
  border-color: rgba(154, 255, 247, 0.28);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(154, 255, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Staircase via HEIGHT — center tallest, outer shortest.
   All share the same bottom edge (align-items: end on grid). */
.cs-card--agent  { min-height: 420px; }   /* center — tallest */
.cs-card--conv,
.cs-card--impact { height: 390px; }        /* 2nd tier */
.cs-card--perf,
.cs-card--intent { height: 355px; }        /* outer — shortest */

/* Side cards: column flex so chart / list fills remaining space */
.cs-card--perf,
.cs-card--conv,
.cs-card--impact,
.cs-card--intent {
  display: flex;
  flex-direction: column;
}

/* No margin-top — grid align-items: end handles vertical placement */
.cs-card--agent,
.cs-card--conv,
.cs-card--impact,
.cs-card--perf,
.cs-card--intent {
  margin-top: 0;
}

/* Card header */
.cs-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.cs-card__title {
  font-size: 10.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cs-card__period {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   Card 1 — Support Performance
   ============================================================ */

.cs-perf__metrics {
  /* NO flex: 1 — chart-wrap is a sibling and takes remaining space */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.cs-perf__label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.cs-perf__row--val {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.cs-perf__val {
  font-size: 28px;
  font-weight: 400;
  color: #fff;
  letter-spacing: normal;
  line-height: 1;
}

.cs-perf__val--sm { font-size: 20px; font-weight: 400; }

.cs-perf__delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cs-perf__delta--up   { color: #4ade80; }
.cs-perf__delta--down { color: #4ade80; }

.cs-perf__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0 0 14px;
}

.cs-perf__two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cs-perf__sub { display: flex; flex-direction: column; }

/* Chart wrapper — takes all remaining card height after metrics */
.cs-perf__chart-wrap {
  flex: 1;
  min-height: 90px;
  margin-top: 8px;
  /* Never clip — dots/glow extend slightly outside */
  overflow: visible;
}

.cs-perf__chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 90px;
  overflow: visible;
}

/* Line draw: 320px covers the new path length */
.cs-spark-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  transition: stroke-dashoffset 1.7s cubic-bezier(0.4, 0, 0.2, 1) 0.38s;
}
.cs-card--perf.is-visible .cs-spark-line { stroke-dashoffset: 0; }

/* Area fill fades in after line appears */
.cs-spark-fill {
  opacity: 0;
  transition: opacity 0.9s ease 1.0s;
}
.cs-card--perf.is-visible .cs-spark-fill { opacity: 1; }

/* Dots pop in after line completes */
.cs-spark-dot {
  opacity: 0;
  transition: opacity 0.25s ease 1.5s;
  transform-origin: center;
}
.cs-card--perf.is-visible .cs-spark-dot { opacity: 1; }

/* Last dot (teal) — slightly delayed, gentle pulse after reveal */
.cs-spark-dot--last {
  transition: opacity 0.3s ease 1.75s;
}
.cs-card--perf.is-visible .cs-spark-dot--last {
  opacity: 1;
  animation: cs-glow-pulse 2.5s ease-in-out 2.1s infinite;
}

/* ============================================================
   Card 2 — Live Conversations
   ============================================================ */

.cs-conv__count { line-height: 1; }

/* 128 chip — thin pill, near-white */
.cs-conv__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

.cs-conv__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: space-between;
}

.cs-conv__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.4s ease calc(var(--item-delay, 0ms) + 0.4s),
    transform 0.4s ease calc(var(--item-delay, 0ms) + 0.4s);
}

.cs-conv__item:last-child { border-bottom: none; }

.cs-conv__item--in,
.cs-card--conv.is-visible .cs-conv__item {
  opacity: 1;
  transform: translateX(0);
}

.cs-conv__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: rgb(183 182 192 / 11%);
  border: 1px solid rgb(105 88 237 / 49%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-conv__body {
  flex: 1;
  min-width: 0;
}

.cs-conv__name {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.cs-conv__time {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.28);
}

.cs-conv__msg {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.36);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live pulse dot */
.cs-conv__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: cs-live-pulse 2s ease-in-out infinite;
}

/* ============================================================
   Card 3 — AI Agent (center, tallest)
   ============================================================ */

.cs-card--agent {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border-color: rgba(105, 88, 237, 0.3);
  background: rgba(105, 88, 237, 0.06);
}

.cs-agent__img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Bottom info overlay */
.cs-agent__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(2, 3, 12, 0.95) 30%, rgba(2, 3, 12, 0.6) 70%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 28px 16px 16px;
  z-index: 3;
  margin: 10px;
  border-radius: 0 0 22px 22px;
}

.cs-agent__info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.cs-agent__label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.cs-agent__name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 1px;
}

.cs-agent__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 4px;
}

.cs-agent__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
  flex-shrink: 0;
  animation: cs-live-pulse 2.4s ease-in-out infinite;
}

/* Waveform — smooth flowing sine */
.cs-agent__wave {
  display: block;
  width: 100%;
  height: 28px;
  overflow: hidden;
}

/* The path extends -20px to 140px, SVG clips at 0-120 */
.cs-wave-sine {
  animation: cs-wave-sine 1.8s linear infinite;
  transform-origin: center;
}

/* ============================================================
   Card 4 — Automation Impact
   ============================================================ */

.cs-impact__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cs-impact__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Impact list fills remaining height */
.cs-card--impact .cs-impact__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Stroke-style icons, near-white */
.cs-impact__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-impact__body { flex: 1; min-width: 0; }

.cs-impact__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.36);
  display: block;
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}

.cs-impact__row {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.cs-impact__val {
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  letter-spacing: normal;
}

.cs-impact__always {
  font-size: 10.5px;
  color: #4ade80;
  font-weight: 600;
}

/* ============================================================
   Card 5 — Top Intentions
   ============================================================ */

.cs-intent__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.cs-intent__donut-wrap {
  width: 126px;
  height: 126px;
  flex-shrink: 0;
}

.cs-intent__donut { width: 100%; height: 100%; }

/* Donut segments start at 0 and animate in via JS */
.cs-donut-seg {
  transition: stroke-dasharray 0.9s cubic-bezier(0.4,0,0.2,1);
}

.cs-intent__legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cs-intent__leg-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-intent__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cs-intent__leg-label {
  flex: 1;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-intent__leg-pct {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1280px) {
  .cs-hero__cards { max-width: 100%; padding: 0 12px; }
}

@media (max-width: 1100px) {
  .cs-hero__cards {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start; /* stacked layout — no staircase on tablet */
  }

  .cs-card--perf   { grid-column: 1; grid-row: 1; height: auto; }
  .cs-card--conv   { grid-column: 1; grid-row: 2; height: auto; }
  .cs-card--agent  { grid-column: 2; grid-row: 1 / 3; min-height: 320px; }
  .cs-card--impact { grid-column: 3; grid-row: 1; height: auto; }
  .cs-card--intent { grid-column: 3; grid-row: 2; height: auto; }
}

@media (max-width: 820px) {
  .cs-hero { padding-top: 96px; }

  .cs-hero__cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
    align-items: start;
  }

  .cs-card--agent {
    grid-column: 1 / 3;
    grid-row: unset;
    min-height: 260px;
  }

  .cs-card--perf,
  .cs-card--conv,
  .cs-card--impact,
  .cs-card--intent {
    grid-column: unset;
    grid-row: unset;
    height: auto;
  }
}

@media (max-width: 580px) {
  .cs-hero { padding-top: 86px; padding-left: 14px; padding-right: 14px; }

  .cs-hero__title    { font-size: 32px; }
  .cs-hero__subtitle { font-size: 14px; margin-bottom: 36px; }

  .cs-hero__actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
  }

  .cs-btn { width: 100%; justify-content: center; }

  .cs-hero__cards { grid-template-columns: 1fr; }
  .cs-card--agent { grid-column: unset; min-height: 200px; }
  .cs-perf__two   { grid-template-columns: 1fr; }

  .cs-intent__inner { flex-direction: row; align-items: flex-start; }
  .cs-intent__donut-wrap { width: 90px; height: 90px; }
}

/* ============================================================
   SECTION 1 — The Shift (problem / war-room)
   ============================================================ */

.cs1-section {
  position: relative;
  background: #000;
  padding: 120px 0 100px;
  overflow: hidden;
}

.cs1-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Scroll Watermark ---- */
.cs-scroll-watermark {
  --wm-progress: 0;
  --wm-chars: 10;
  --wm-fit-size: calc(22vw - (var(--wm-chars) * 0.7vw));
  position: relative;
  display: block;
  height: calc(0.92em + 10px);
  margin-bottom: 80px;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
  font-family: var(--font-sans, 'Roboto', sans-serif);
  font-size: clamp(56px, min(13.5vw, var(--wm-fit-size)), 210px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
  color: rgba(255,255,255,0.045);
  contain: paint;
  /* Horizontal soft edges; vertical motion + opacity carry the “under the hero” read */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.cs-scroll-watermark__text {
  display: block;
  width: max-content;
  white-space: nowrap;
  transform: translate3d(
    calc(var(--wm-progress) * -0.06em),
    calc(var(--wm-progress) * -0.38em),
    0
  )
  scale(calc(1 - (var(--wm-progress) * 0.028)));
  opacity: calc(1 - (var(--wm-progress) * 0.55));
  will-change: transform, opacity;
}

.cs1-watermark,
.cs2-watermark,
.cs3-watermark,
.cs4-watermark,
.cs5-watermark,
.cs6-watermark {
  color: rgba(255,255,255,0.045);
}

/* ---- 3-col editorial header ---- */
.cs1-header {
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  gap: 60px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 72px;
}

.cs1-num {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid rgba(105,88,237,0.55);
}

.cs1-num-n {
  font-size: 22px;
  font-weight: 500;
  color: #C0C0C0;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-sans);
}

.cs1-num-l {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-top: 8px;
  font-weight: 400;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.cs1-title {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.1;
  color: #C0C0C0;
  margin: 0;
  font-family: var(--font-sans);
}

h2.cs1-title {
  color: #C0C0C0;
  font-weight: 500;
}

.cs1-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cs1-body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.42);
  margin: 0;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

/* ============================================================
   War-room card
   ============================================================ */
.cs1-warroom {
  position: relative;
  border-radius: 32px;
  background: linear-gradient(180deg, rgb(12 12 13) 0%, rgba(14, 10, 22, 0.5) 100%);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs1-warroom::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 28%);
  pointer-events: none;
}

.cs1-warroom.cs1-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glow orbs inside the card */
.cs1-wr-glow-r {
  position: absolute;
  top: -280px;
  right: -80px;
  width: 660px;
  height: 660px;
  /* background: radial-gradient(circle, rgba(239, 68, 68, 0.16), transparent 60%); */
  filter: blur(60px);
  pointer-events: none;
}

.cs1-wr-glow-l {
  position: absolute;
  bottom: -200px;
  left: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(105,88,237,0.16), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

/* ---- Top status bar ---- */
.cs1-wr-top {
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cs1-wr-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #FCA5A5;
  text-transform: uppercase;
}

@keyframes cs1-pulse-red {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.65); }
  100% { box-shadow: 0 0 0 14px rgba(239,68,68,0); }
}

.cs1-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
  animation: cs1-pulse-red 1.4s ease-out infinite;
}

.cs1-wr-title {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

.cs1-wr-time {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

.cs1-wr-seg {
  color: #ffffff;
  font-weight: 500;
}

/* ---- 3-col data grid ---- */
.cs1-wr-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 1fr;
  min-height: 520px;
  position: relative;
  z-index: 1;
}

.cs1-wr-col {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.cs1-wr-col:last-child { border-right: none; }

.cs1-wr-col-h {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

/* Tags */
.cs1-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.cs1-tag--red    { background: rgba(239,68,68,0.12);   color: #FCA5A5; }
.cs1-tag--yellow { background: rgba(251,191,36,0.12);  color: #FBBF24; }

/* Hero number */
.cs1-wr-hero-num {
  font-size: clamp(68px, 8vw, 112px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.45) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-shrink: 0;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

.cs1-wr-delta {
  font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #FCA5A5;
  -webkit-text-fill-color: #FCA5A5;
  font-weight: 500;
  letter-spacing: 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
}

.cs1-wr-hero-l {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

.cs1-wr-hero-l strong {
  color: #ffffff;
  font-weight: 600;
}

/* Avatar pile */
.cs1-avatar-pile {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.cs1-ap-stack {
  display: flex;
}

.cs1-ap-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #15102A;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
  flex-shrink: 0;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

.cs1-ap-av:first-child { margin-left: 0; }

.cs1-ap-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #15102A;
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-left: -10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Chart column stats */
.cs1-chart-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.cs1-chart-stat {
  display: flex;
  flex-direction: column;
}

.cs1-cstat-v {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

.cs1-cstat-d {
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #FCA5A5;
  font-weight: 500;
  margin-left: 5px;
}

.cs1-cstat-l {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* SVG chart */
.cs1-wr-chart-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 210;
  display: block;
  margin-top: auto;
  overflow: visible;
  flex-shrink: 0;
}

/* Top repeated issues */
.cs1-wr-issues {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cs1-wr-issue {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.024);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
}

.cs1-wr-issue-q {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

.cs1-wr-issue-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
  transition: width 0.8s ease;
}

.cs1-wr-issue-bar::after {
  content: '';
  display: block;
  height: 100%;
  border-radius: 2px;
  width: var(--w, 50%);
  background: linear-gradient(90deg, #EF4444, #FB7185);
  transition: width 1s cubic-bezier(0.4,0,0.2,1) 0.5s;
}

/* Yellow bars for medium-priority */
.cs1-wr-issue--med .cs1-wr-issue-bar::after {
  background: linear-gradient(90deg, #FBBF24, #FCD34D);
}

.cs1-wr-issue-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: rgba(255,255,255,0.32);
}

.cs1-wr-issue-ct {
  color: #ffffff;
  font-weight: 600;
  margin-right: 3px;
}

/* ---- Bottom KPI strip ---- */
.cs1-wr-bot {
  padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.cs1-wr-mini {
  display: flex;
  flex-direction: column;
}

.cs1-wr-mini-l {
  font-size: 10.5px;
  color: rgba(255,255,255,0.32);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cs1-wr-mini-v {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-top: 6px;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

.cs1-wr-mini-v--bad { color: #FCA5A5; }

.cs1-wr-mini-dim {
  font-size: 11px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
}

/* ============================================================
   Section 1 — Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .cs1-header {
    grid-template-columns: 200px 1fr 300px;
    gap: 40px;
  }
  .cs1-wr-grid {
    grid-template-columns: 1fr 1.3fr;
  }
  .cs1-wr-col:last-child {
    grid-column: 1 / -1;
    border-right: none;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
}

@media (max-width: 860px) {
  .cs1-header {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 48px;
    margin-bottom: 40px;
  }
  .cs1-wr-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cs1-wr-col {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 24px 24px;
  }
  .cs1-wr-col:last-child { border-bottom: none; }
  .cs1-wr-bot { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cs1-wr-hero-num { font-size: clamp(56px,12vw,80px); }
}

@media (max-width: 580px) {
  .cs1-section { padding: 80px 0 60px; }
  .cs1-wrap { padding: 0 20px; }
  .cs-scroll-watermark {
    --wm-fit-size: calc(20vw - (var(--wm-chars) * 0.56vw));
    height: calc(0.98em + 8px);
    margin-bottom: 48px;
    font-size: clamp(40px, min(17vw, var(--wm-fit-size)), 88px);
    letter-spacing: -0.06em;
  }
  .cs1-wr-top { padding: 14px 20px; gap: 12px; }
  .cs1-wr-col { padding: 20px; }
  .cs1-wr-bot { padding: 16px 20px; grid-template-columns: 1fr 1fr; gap: 16px; }
  .cs1-chart-stats { gap: 16px; }
}

/* ============================================================
   SECTION 2 — What Monobot Automates
   Bento grid with editorial 3-col header + watermark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   SECTION 2 — What Monobot Automates  (Figma-exact)
   ============================================================ */

.cs2-section {
  position: relative;
  background: #000;
  padding: 100px 0;
  overflow: hidden;
}

.cs2-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Watermark uses shared .cs-scroll-watermark styles */

/* ---- 3-col editorial header ---- */
.cs2-header {
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  gap: 60px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 64px;
}

.cs2-num {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid rgba(105,88,237,0.55);
}

.cs2-num-n {
  font-size: 22px;
  font-weight: 500;
  color: #C0C0C0;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-sans);
}

.cs2-num-l {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-top: 8px;
  font-weight: 400;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.cs2-title {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  color: #C0C0C0;
  margin: 0;
  font-family: var(--font-sans);
}

.cs2-body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.42);
  margin: 0;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

/* ---- Main flex container: left card + right 2×2 ---- */
.cs2-grid {
  display: flex;
  gap: 4px;
  align-items: stretch;
}

/* ---- Left hero card ---- */
.cs2-hero-card {
  width: 485px;
  height: 838px;
  flex-shrink: 0;
  background: #0c0c0e;
  border-radius: 10px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  position: relative;
  overflow: hidden;
}

/* bg-automation.svg: centered horizontally, anchored to bottom */
.cs2-hero-bg {
  position: absolute;
  width: 757px;
  height: 665px;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  pointer-events: none;
  user-select: none;
  display: block;
}

.cs2-hero-label {
  font-family: var(--font-sans, 'Roboto', sans-serif);
  font-size: 18px;
  font-weight: 400;
  color: #888891;
  line-height: normal;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.cs2-hero-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.cs2-hero-title {
  font-family: var(--font-sans, 'Roboto', sans-serif);
  font-size: 48px;
  font-weight: 500;
  color: #e9e8e8;
  line-height: normal;
  margin: 0;
}

.cs2-hero-desc {
  font-family: var(--font-sans, 'Roboto', sans-serif);
  font-size: 18px;
  font-weight: 400;
  color: #888891;
  line-height: 27px;
  margin: 0;
}

/* ---- Right side: 2 rows ---- */
.cs2-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cs2-row {
  flex: 1;
  display: flex;
  gap: 4px;
}

/* ---- Individual card ---- */
.cs2-card {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, rgb(12 12 13) 0%, rgba(21, 20, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, opacity;
}

.cs2-card.cs2-visible {
  opacity: 1;
  transform: translateY(0);
}

.cs2-card.cs2-visible:hover {
  border-color: rgba(192, 192, 192, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22),
              0 0 0 1px rgba(130, 114, 254, 0.08);
}

/* ---- Purple icon circle (60×60, filled) ---- */
.cs2-icon {
  width: 60px;
  height: 60px;
  border-radius: 50px;
  background: rgba(130, 114, 254, 0.14);
  border: 1px solid rgba(130, 114, 254, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs2-icon svg {
  width: 24px;
  height: 24px;
  fill: #C0C0C0;
  display: block;
}

/* ---- Card text block ---- */
.cs2-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs2-card h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 500;
  color: #c0c0c0;
  line-height: normal;
  margin: 0;
  letter-spacing: normal;
}

.cs2-card p {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: #888891;
  line-height: 20px;
  margin: 0;
}

/* ============================================================
   SECTION 2 — Responsive
   ============================================================ */

@media (max-width: 1200px) {
  .cs2-header { grid-template-columns: 200px 1fr 280px; gap: 40px; }
  .cs2-hero-card { width: 400px; height: auto; min-height: 838px; }
  .cs2-hero-title { font-size: 40px; }
  .cs2-card { padding: 36px; }
  .cs2-card h3 { font-size: 24px; }
}

@media (max-width: 1024px) {
  .cs2-header { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs2-body { grid-column: 1 / -1; }
  .cs2-hero-card { width: 340px; min-height: 700px; }
  .cs2-hero-title { font-size: 34px; }
  .cs2-hero-label { font-size: 16px; }
  .cs2-hero-desc { font-size: 16px; line-height: 24px; }
  .cs2-card { padding: 28px; }
  .cs2-card h3 { font-size: 22px; }
  .cs2-card p { font-size: 15px; line-height: 20px; }
}

@media (max-width: 860px) {
  .cs2-header { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; margin-bottom: 40px; }
  .cs2-grid { flex-direction: column; }
  .cs2-hero-card { width: 100%; height: auto; min-height: 340px; }
  .cs2-hero-bg { top: auto; bottom: 0; }
  .cs2-hero-title { font-size: 40px; }
  .cs2-cards { min-height: 480px; }
}

@media (max-width: 580px) {
  .cs2-section { padding: 72px 0; }
  .cs2-wrap { padding: 0 20px; }
  .cs2-hero-card { padding: 32px; gap: 32px; }
  .cs2-hero-title { font-size: 32px; }
  .cs2-hero-desc { font-size: 16px; line-height: 24px; }
  .cs2-row { flex-direction: column; }
  .cs2-card { padding: 28px; }
  .cs2-card h3 { font-size: 22px; }
  .cs2-text { gap: 16px; }
}

/* ============================================================
   SECTION 3 — How it works (Process)
   ============================================================ */

.cs3-section {
  position: relative;
  background: #000;
  padding: 100px 0 120px;
  overflow: hidden;
}

.cs3-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Watermark uses shared .cs-scroll-watermark styles */

/* ---- 3-col editorial header ---- */
.cs3-header {
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  gap: 60px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 72px;
}

.cs3-num-meta {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid rgba(105,88,237,0.55);
}

.cs3-num-meta__n {
  font-size: 22px;
  font-weight: 500;
  color: #C0C0C0;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-sans);
}

.cs3-num-meta__l {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-top: 8px;
  font-weight: 400;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.cs3-title {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  color: #C0C0C0;
  margin: 0;
  font-family: var(--font-sans);
}

.cs3-body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.42);
  margin: 0;
  font-family: var(--font-sans, 'Roboto', sans-serif);
}

/* ---- Accordion item ---- */
.cs3-acc-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  transition: background 0.35s ease, border-color 0.35s ease, border-radius 0.35s ease;
}

.cs3-acc-item--open {
  background: #0c0c0e;
  border-radius: 10px;
  border-bottom-color: #9980f5;
}

/* ---- Trigger row ---- */
.cs3-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

/* trigger always centered */

.cs3-acc-trigger:focus-visible {
  outline: 2px solid rgba(105,88,237,0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Number — Figma: 18px #c0c0c0 */
.cs3-acc-num {
  font-size: 18px;
  font-weight: 500;
  color: #c0c0c0;
  font-family: var(--font-sans);
  flex-shrink: 0;
  width: 52px;
  line-height: 1;
}

/* Name — Figma: 32px #c0c0c0 */
.cs3-acc-name {
  flex: 1;
  font-size: 32px;
  font-weight: 500;
  color: #c0c0c0;
  font-family: var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.cs3-acc-item--open .cs3-acc-name {
  color: #ffffff;
}

/* Toggle — plain +/−, no circle */
.cs3-acc-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s ease;
}

.cs3-acc-item--open .cs3-acc-toggle {
  color: rgba(255,255,255,0.75);
}

/* Vertical bar of + hides when open → becomes − */
.cs3-tog-v {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  transform-origin: center;
  transform-box: fill-box;
}

.cs3-acc-item--open .cs3-tog-v {
  transform: scaleY(0);
  opacity: 0;
}

/* ---- Collapsible panel (CSS grid trick for smooth height) ---- */
.cs3-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.48s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs3-acc-item--open .cs3-acc-panel {
  grid-template-rows: 1fr;
}

.cs3-acc-inner {
  overflow: hidden;
  min-height: 0;
}

/* ---- Panel body: image left + text right ---- */
.cs3-acc-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  padding: 0 44px 44px;

  /* Entrance animation */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.36s ease 0.14s, transform 0.36s ease 0.14s;
}

.cs3-acc-item--open .cs3-acc-body {
  opacity: 1;
  transform: translateY(0);
}

/* Visual — Figma: 397×248 rounded-30 */
.cs3-acc-visual {
  width: 397px;
  height: 248px;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.cs3-acc-visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Photo visual (item 001) — subtle glow pulse */
.cs3-vis-photo {
  animation: cs3-photo-glow 5s ease-in-out infinite;
}

.cs3-vis-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes cs3-photo-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(105,88,237,0.15); }
  50%       { box-shadow: 0 16px 48px rgba(105,88,237,0.38); }
}

/* Text — fills remaining space beside the visual */
.cs3-acc-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cs3-acc-text h3 {
  font-size: 24px;
  font-weight: 400;
  color: #c0c0c0;
  line-height: 1.25;
  margin: 0;
  font-family: var(--font-sans);
}

.cs3-acc-text p {
  font-size: 15px;
  color: #888891;
  line-height: 1.65;
  margin: 0;
  font-family: var(--font-sans);
}

/* ============================================================
   SECTION 3 — Responsive
   ============================================================ */

@media (max-width: 1200px) {
  .cs3-header { grid-template-columns: 200px 1fr 280px; gap: 40px; }
  .cs3-acc-name { font-size: 28px; }
}

@media (max-width: 1024px) {
  .cs3-header { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs3-header .cs3-body { grid-column: 1 / -1; }
  .cs3-acc-name { font-size: 26px; }
  .cs3-acc-trigger { padding: 36px; }
  .cs3-acc-body { padding: 0 36px 36px; }
  .cs3-acc-visual { width: 340px; height: 212px; }
}

@media (max-width: 768px) {
  .cs-scroll-watermark {
    --wm-fit-size: calc(21vw - (var(--wm-chars) * 0.55vw));
    font-size: clamp(48px, min(15vw, var(--wm-fit-size)), 120px);
  }

  .cs3-header { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; margin-bottom: 40px; }
  .cs3-acc-name { font-size: 22px; }
  .cs3-acc-trigger { padding: 28px 24px; gap: 20px; }
  .cs3-acc-body { flex-direction: column; align-items: flex-start; padding: 0 24px 32px; gap: 24px; }
  .cs3-acc-visual { width: 100%; max-width: 397px; height: auto; aspect-ratio: 397/248; border-radius: 20px; }
}

@media (max-width: 580px) {
  .cs3-section { padding: 72px 0 80px; }
  .cs3-wrap { padding: 0 20px; }
  .cs-scroll-watermark {
    --wm-fit-size: calc(20vw - (var(--wm-chars) * 0.56vw));
    height: calc(0.98em + 8px);
    margin-bottom: 48px;
    font-size: clamp(40px, min(17vw, var(--wm-fit-size)), 88px);
    letter-spacing: -0.06em;
  }
  .cs3-acc-num { font-size: 15px; width: 40px; }
  .cs3-acc-name { font-size: 19px; }
  .cs3-acc-trigger { padding: 22px 20px; gap: 16px; }
  .cs3-acc-body { padding: 0 20px 28px; gap: 24px; }
  .cs3-acc-text h3 { font-size: 20px; }
  .cs3-acc-text p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-scroll-watermark {
    --wm-progress: 0 !important;
  }

  .cs-scroll-watermark__text {
    transform: none;
    opacity: 1;
  }
}

/* ============================================================
   SECTION 4 — Knowledge Base
   ============================================================ */

.cs4-section {
  position: relative;
  background: #000;
  padding: 100px 0 120px;
  overflow: hidden;
}

.cs4-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---- Watermark: uses .cs-scroll-watermark (see Section 1) ---- */

/* ---- 3-col editorial header (same as cs2/cs3) ---- */
.cs4-header {
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  gap: 60px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 48px;
}

.cs4-num-meta {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid rgba(105,88,237,0.55);
}

.cs4-num-meta__n {
  font-size: 22px;
  font-weight: 500;
  color: #C0C0C0;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-sans);
}

.cs4-num-meta__l {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-top: 8px;
  font-weight: 400;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.cs4-title {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 500;
  line-height: 1.1;
  color: #C0C0C0;
  margin: 0;
  font-family: var(--font-sans);
}

.cs4-body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.42);
  margin: 0;
  font-family: var(--font-sans);
}

/* ---- Knowledge “ledger” card (technical / minimal) ---- */
.cs4-ledger {
  position: relative;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 16px;
  padding: clamp(30px, 4vw, 40px) clamp(24px, 3.5vw, 38px) clamp(36px, 5vw, 54px);
  min-height: 520px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 136, 254, 0.035) inset,
    0 32px 100px rgba(0,0,0,0.55),
    0 0 60px rgba(105, 88, 237, 0.055);
  opacity: 0;
  transform: translateY(18px);
  clip-path: inset(2% 1.5% round 16px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs4-ledger.cs4-visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 round 16px);
}

.cs4-ledger__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 30px;
  margin-bottom: 0;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cs4-ledger__fig {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.22);
  flex-shrink: 0;
}

.cs4-ledger__lead {
  flex: 1;
  min-width: min(100%, 220px);
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.34);
  max-width: 72ch;
}

.cs4-ledger__grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) minmax(180px, 260px);
  grid-template-rows: 1fr 1fr;
  gap: 34px clamp(52px, 9vw, 100px);
  align-items: center;
  position: relative;
  min-height: 320px;
  padding-top: 28px;
}

.cs4-ledger__cell {
  opacity: 0;
  position: relative;
  z-index: 2;
  transform: translateY(12px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs4-ledger.cs4-visible .cs4-ledger__cell--tl { opacity: 1; transform: translateY(0); transition-delay: 0.06s; }
.cs4-ledger.cs4-visible .cs4-ledger__cell--tr { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.cs4-ledger.cs4-visible .cs4-ledger__cell--bl { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.cs4-ledger.cs4-visible .cs4-ledger__cell--br { opacity: 1; transform: translateY(0); transition-delay: 0.26s; }

.cs4-ledger__cell--tl { grid-column: 1; grid-row: 1; align-self: center; }
.cs4-ledger__cell--tr { grid-column: 3; grid-row: 1; align-self: center; text-align: left; }
.cs4-ledger__cell--bl { grid-column: 1; grid-row: 2; align-self: center; }
.cs4-ledger__cell--br { grid-column: 3; grid-row: 2; align-self: center; text-align: left; }

.cs4-ledger__cell--tr .cs4-ledger__desc,
.cs4-ledger__cell--br .cs4-ledger__desc {
  margin-left: 0;
}

.cs4-ledger__diagram {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1 / span 2;
  justify-self: center;
  align-self: center;
  width: min(100%, 620px);
  max-width: 78%;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.14s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.cs4-ledger__diagram::before {
  content: '';
  position: absolute;
  width: min(28vw, 300px);
  aspect-ratio: 1 / 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -43%);
  background: radial-gradient(circle, rgba(105,88,237,0.14) 0%, rgba(105,88,237,0.045) 44%, rgba(105,88,237,0) 72%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  border-radius: 50%;
}

.cs4-ledger__diagram::after {
  content: '';
  position: absolute;
  width: min(20vw, 210px);
  height: 46px;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(130,114,254,0.16);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  border-radius: 50%;
}

.cs4-ledger.cs4-visible .cs4-ledger__diagram {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cs4-ledger__diagram--kb {
  min-height: 220px;
}

.cs4-ledger__svg,
.cs4-kb-anim-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 248px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cs4-ledger__label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
  margin-bottom: 12px;
  line-height: 1.35;
}

.cs4-ledger__desc {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.29);
  margin: 0;
  max-width: 31ch;
}

/* Wireframe diagram motion */
.cs4-wf-conn {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  opacity: 0;
  transition:
    stroke-dashoffset 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.24s,
    opacity 0.45s ease 0.18s;
}

.cs4-ledger.cs4-visible .cs4-wf-conn {
  stroke-dashoffset: 0;
  opacity: 1;
}

.cs4-kb-core,
.cs4-node,
.cs4-end-dot {
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs4-kb-core,
.cs4-node {
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(7px) scale(0.98);
}

.cs4-ledger.cs4-visible .cs4-kb-core,
.cs4-ledger.cs4-visible .cs4-node,
.cs4-ledger.cs4-visible .cs4-end-dot {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cs4-ledger.cs4-visible .cs4-kb-core { transition-delay: 0.28s; }
.cs4-ledger.cs4-visible .cs4-node { transition-delay: 0.34s; }
.cs4-ledger.cs4-visible .cs4-end-dot { transition-delay: 0.62s; }

@keyframes cs4-node-breathe {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(130,114,254,0)); }
  50%      { filter: drop-shadow(0 0 8px rgba(130,114,254,0.28)); }
}

.cs4-ledger.cs4-visible .cs4-node {
  animation: cs4-node-breathe 6.5s ease-in-out infinite;
}

.cs4-ledger.cs4-visible .cs4-node:nth-of-type(2) { animation-delay: 0.4s; }
.cs4-ledger.cs4-visible .cs4-node:nth-of-type(3) { animation-delay: 0.8s; }
.cs4-ledger.cs4-visible .cs4-node:nth-of-type(4) { animation-delay: 1.2s; }

@media (min-width: 769px) {
  .cs4-ledger__cell--tl,
  .cs4-ledger__cell--bl {
    padding-right: 14px;
  }

  .cs4-ledger__cell--tr,
  .cs4-ledger__cell--br {
    padding-left: 14px;
  }
}

/* ============================================================
   SECTION 4 — Responsive
   ============================================================ */

@media (max-width: 1200px) {
  .cs4-header { grid-template-columns: 200px 1fr 280px; gap: 40px; }
  .cs4-ledger__grid { gap: 28px 40px; }
}

@media (max-width: 1024px) {
  .cs4-header { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs4-header .cs4-body { grid-column: 1 / -1; }
  .cs4-ledger__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(260px, auto) auto;
    gap: 28px 28px;
    min-height: auto;
  }
  .cs4-ledger__diagram {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: min(100%, 560px);
    width: 92%;
  }
  .cs4-ledger__cell--tl { grid-column: 1; grid-row: 1; }
  .cs4-ledger__cell--tr { grid-column: 2; grid-row: 1; }
  .cs4-ledger__cell--bl { grid-column: 1; grid-row: 3; }
  .cs4-ledger__cell--br { grid-column: 2; grid-row: 3; }
  .cs4-ledger__svg {
    height: auto;
    min-height: 200px;
    max-height: 230px;
  }
}

@media (max-width: 768px) {
  .cs4-header { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; margin-bottom: 40px; }
  .cs4-ledger__grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .cs4-ledger__diagram { order: -1; max-width: 100%; margin: 0 auto 8px; }
  .cs4-ledger__svg { min-height: 180px; max-height: 210px; }
  .cs4-ledger__cell--tl,
  .cs4-ledger__cell--tr,
  .cs4-ledger__cell--bl,
  .cs4-ledger__cell--br {
    text-align: left;
  }
  .cs4-ledger__cell--tr .cs4-ledger__desc,
  .cs4-ledger__cell--br .cs4-ledger__desc {
    margin-left: 0;
  }
}

@media (max-width: 580px) {
  .cs4-section { padding: 72px 0 80px; }
  .cs4-wrap { padding: 0 20px; }
  .cs4-title { font-size: 28px; }
  .cs4-ledger { padding: 22px 18px 26px; border-radius: 14px; }
  .cs4-ledger__lead { font-size: 11px; }
  .cs4-ledger__label { font-size: 10px; letter-spacing: 0.1em; }
  .cs4-ledger__desc { font-size: 11px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cs4-ledger {
    transition: none;
    clip-path: none;
    opacity: 1;
    transform: none;
  }
  .cs4-ledger__cell,
  .cs4-ledger__diagram {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cs4-wf-conn {
    transition: none;
    stroke-dashoffset: 0 !important;
    animation: none !important;
  }
  .cs4-wf-chev {
    opacity: 1;
    transition: none;
  }
  .cs4-wf-pulse {
    animation: none;
    opacity: 0.65;
    transform: none;
  }
  .cs4-kb-anim-svg animate,
  .cs4-kb-anim-svg animateTransform {
    display: none;
  }
}
/* ============================================================
   SECTION 5 — Analytics
   ============================================================ */

.cs5-section {
  background: #000;
  padding: 100px 0 120px;
  overflow: hidden;
}

.cs5-wrap {
  max-width: clamp(320px, 90vw, 1400px);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* ---- 3-col editorial header ---- */
.cs5-header {
  display: grid;
  grid-template-columns: 220px 1fr 340px;
  gap: 60px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 48px;
}

.cs5-num-meta {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid rgba(105,88,237,0.55);
}

.cs5-num-meta__n {
  font-size: 22px;
  font-weight: 500;
  color: #C0C0C0;
  letter-spacing: -0.02em;
  line-height: 1;
  font-family: var(--font-sans);
}

.cs5-num-meta__l {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  margin-top: 8px;
  font-weight: 400;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.cs5-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  color: #C0C0C0;
  margin: 0;
  font-family: var(--font-sans);
}

.cs5-body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.42);
  margin: 0;
  font-family: var(--font-sans);
}

/* ---- Smart analytics grid (12-col bento, no gaps) ---- */
.cs5-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(172px, auto));
  gap: 12px;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.7s  cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs5-bento.cs5-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Metric card ---- */
.cs5-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.006)),
    #0c0c0e;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 16px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  min-height: 178px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  transition-delay: var(--card-delay, 0s), var(--card-delay, 0s), 0s, 0s;
}

.cs5-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.24;
  pointer-events: none;
}

.cs5-card::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 90px;
  right: -52px;
  bottom: -42px;
  border-radius: 50%;
  background: rgba(105,88,237,0.12);
  filter: blur(28px);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.cs5-bento.cs5-visible .cs5-card {
  opacity: 1;
  transform: translateY(0);
}

.cs5-card:hover {
  border-color: rgba(130,114,254,0.34);
  box-shadow: 0 24px 70px rgba(0,0,0,0.38);
}

.cs5-card:hover::after {
  opacity: 1;
}

.cs5-card--hero {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
  min-height: 356px;
}

.cs5-card--slot-a { grid-column: 6 / 9;  grid-row: 1; }
.cs5-card--slot-b { grid-column: 9 / 13; grid-row: 1; }
.cs5-card--slot-c { grid-column: 6 / 9;  grid-row: 2; }
.cs5-card--slot-d { grid-column: 9 / 13; grid-row: 2; }
.cs5-card--wide-chart { grid-column: 1 / 8; grid-row: 3; }
.cs5-card--slot-e { grid-column: 8 / 11; grid-row: 3; }
.cs5-card--slot-f { grid-column: 11 / 13; grid-row: 3; }

.cs5-metric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.cs5-metric > * {
  position: relative;
  z-index: 1;
}

.cs5-metric__top,
.cs5-metric__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cs5-metric__eyebrow,
.cs5-metric__foot {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cs5-metric__eyebrow {
  color: rgba(255,255,255,0.28);
}

.cs5-metric__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #8272FE;
  box-shadow: 0 0 16px rgba(130,114,254,0.65);
  flex-shrink: 0;
  animation: cs5-dot-pulse 2.4s ease-in-out infinite;
}

@keyframes cs5-dot-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(130,114,254,0.5); opacity: 0.85; }
  50%      { box-shadow: 0 0 22px rgba(130,114,254,0.9); opacity: 1; }
}

.cs5-metric__body {
  display: grid;
  gap: 14px;
  align-content: start;
}

.cs5-metric__body--stack {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: end;
  gap: 12px 16px;
}

.cs5-metric__body--hero {
  grid-template-columns: minmax(0, 0.85fr) minmax(200px, 1fr);
  align-items: center;
  gap: 20px 24px;
}

.cs5-metric__headline {
  min-width: 0;
}

.cs5-card--wide-chart .cs5-metric__body--stack {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.35fr);
  align-items: center;
}

.cs5-viz {
  min-width: 0;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cs5-card--hero .cs5-viz {
  min-height: 168px;
}

.cs5-card--wide-chart .cs5-viz {
  min-height: 84px;
}

.cs5-viz svg {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

/* ---- Coverage donut + legend ---- */
.cs5-viz__coverage {
  display: grid;
  grid-template-columns: minmax(88px, 120px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
}

.cs5-viz__donut {
  width: 100%;
  max-width: 120px;
  margin: 0 auto;
}

/* Donut base */
.cs5-donut-seg {
  fill: none;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Purple: 86% of 261px available → 225px, starts at top (-90°) */
.cs5-donut-seg--purple {
  stroke: #8272FE;
  stroke-width: 12;
  stroke-dasharray: 225 277;
  stroke-dashoffset: 225; /* hidden initially */
  transform: rotate(-90deg);
  transition-delay: 0.08s;
}

/* Teal: 10% → 26px, starts after purple + 5px gap → 210° */
.cs5-donut-seg--teal {
  stroke: #9AFFF7;
  stroke-width: 12;
  stroke-dasharray: 26 277;
  stroke-dashoffset: 26;
  transform: rotate(210deg);
  transition-delay: 0.26s;
}

/* Warn: 4% → 11px, starts after teal + 5px gap → 250° */
.cs5-donut-seg--warn {
  stroke: #FF9B8E;
  stroke-width: 12;
  stroke-dasharray: 11 277;
  stroke-dashoffset: 11;
  transform: rotate(250deg);
  transition-delay: 0.44s;
}

/* Animate in: reveal each arc from hidden → shown */
.cs5-bento.cs5-visible .cs5-donut-seg--purple { stroke-dashoffset: 0; }
.cs5-bento.cs5-visible .cs5-donut-seg--teal   { stroke-dashoffset: 0; }
.cs5-bento.cs5-visible .cs5-donut-seg--warn   { stroke-dashoffset: 0; }

.cs5-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs5-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.48);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.cs5-legend__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cs5-legend__dot--purple { background: #8272FE; box-shadow: 0 0 8px rgba(130, 114, 254, 0.5); }
.cs5-legend__dot--teal { background: #9AFFF7; box-shadow: 0 0 8px rgba(154, 255, 247, 0.35); }
.cs5-legend__dot--warn { background: #FF9B8E; }

/* ---- Status rows ---- */
.cs5-status-list,
.cs5-channel-list,
.cs5-intent-list,
.cs5-gap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.cs5-status-row,
.cs5-channel-row,
.cs5-intent-row {
  display: grid;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--row-i, 0) * 0.06s + 0.12s);
}

.cs5-bento.cs5-visible .cs5-status-row,
.cs5-bento.cs5-visible .cs5-channel-row,
.cs5-bento.cs5-visible .cs5-intent-row {
  opacity: 1;
  transform: translateX(0);
}

.cs5-status-row {
  grid-template-columns: 18px 1fr auto;
}

.cs5-status-row__icon {
  color: rgba(255, 255, 255, 0.32);
  display: flex;
}

.cs5-status-row__track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.cs5-status-row__fill {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--row-i, 0) * 0.07s + 0.2s);
}

.cs5-status-row--purple .cs5-status-row__fill { background: linear-gradient(90deg, #6B5CE0, #9B8CFF); }
.cs5-status-row--warn .cs5-status-row__fill { background: linear-gradient(90deg, #E07A6A, #FF9B8E); }
.cs5-status-row--muted .cs5-status-row__fill { background: rgba(255, 255, 255, 0.22); }

.cs5-bento.cs5-visible .cs5-status-row__fill { transform: scaleX(1); }

.cs5-status-row__label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.38);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
}

/* ---- Timeline (horizontal process flow) ---- */
.cs5-viz--timeline {
  justify-content: center;
  min-height: 88px;
}

.cs5-timeline {
  list-style: none;
  margin: 0;
  padding: 2px 4px 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  width: 100%;
}

.cs5-timeline::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 17px;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
  z-index: 0;
}

.cs5-bento.cs5-visible .cs5-timeline::before {
  transform: scaleX(1);
}

.cs5-timeline__step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs5-timeline__step:nth-child(1) { transition-delay: 0.18s; }
.cs5-timeline__step:nth-child(2) { transition-delay: 0.3s; }
.cs5-timeline__step:nth-child(3) { transition-delay: 0.42s; }

.cs5-bento.cs5-visible .cs5-timeline__step {
  opacity: 1;
  transform: translateY(0);
}

.cs5-timeline__node {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.cs5-timeline__step--active .cs5-timeline__node {
  width: 38px;
  height: 38px;
  margin-top: -2px;
  border-color: rgba(130, 114, 254, 0.65);
  background: rgba(130, 114, 254, 0.22);
  color: #D4CBFF;
  box-shadow:
    0 0 0 1px rgba(130, 114, 254, 0.25),
    0 0 22px rgba(130, 114, 254, 0.45),
    0 0 40px rgba(130, 114, 254, 0.18);
}

.cs5-timeline__label {
  display: block;
  font-size: 9px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  max-width: 72px;
}

.cs5-timeline__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cs5-timeline__step--active .cs5-timeline__label {
  color: rgba(255, 255, 255, 0.58);
}

.cs5-timeline__value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #9B8CFF;
  font-family: var(--font-sans);
  text-shadow: 0 0 18px rgba(155, 140, 255, 0.35);
}

/* ---- Branch flow ---- */
.cs5-viz--branch {
  gap: 6px;
}

.cs5-branch {
  width: 100%;
  max-height: 72px;
}

.cs5-branch__hub {
  fill: rgba(130, 114, 254, 0.2);
  stroke: rgba(130, 114, 254, 0.45);
  stroke-width: 1.2;
}

.cs5-branch__path {
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs5-branch__path--a {
  stroke: #9B8CFF;
  transition-delay: 0.12s;
}

.cs5-branch__path--b {
  stroke: rgba(255, 155, 142, 0.75);
  transition-delay: 0.22s;
}

.cs5-bento.cs5-visible .cs5-branch__path { stroke-dashoffset: 0; }

.cs5-branch__leaf--ai {
  fill: rgba(130, 114, 254, 0.35);
  stroke: #8272FE;
  stroke-width: 1.2;
}

.cs5-branch__leaf--human {
  fill: rgba(255, 155, 142, 0.15);
  stroke: #FF9B8E;
  stroke-width: 1.2;
}

.cs5-branch__pct {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 8px;
  fill: rgba(255, 255, 255, 0.75);
}

.cs5-branch__pct--warn { fill: #FF9B8E; }

.cs5-branch__labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.38);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---- Channel bars ---- */
.cs5-channel-row {
  grid-template-columns: 16px minmax(0, 1fr) 1.4fr 28px;
}

.cs5-channel-row__icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.cs5-channel-row__icon--voice::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px 2px 6px 6px;
}

.cs5-channel-row__icon--chat::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.cs5-channel-row__icon--msg::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px solid rgba(154, 255, 247, 0.55);
}

.cs5-channel-row__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs5-channel-row__track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cs5-channel-row__fill {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, #6B5CE0, #9B8CFF);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--row-i, 0) * 0.08s + 0.18s);
}

.cs5-bento.cs5-visible .cs5-channel-row__fill { transform: scaleX(1); }

.cs5-channel-row__pct {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-align: right;
}

/* ---- Source tiles ---- */
.cs5-source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.cs5-source-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 72px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
  transition-delay: calc(var(--tile-i, 0) * 0.07s + 0.1s);
}

.cs5-bento.cs5-visible .cs5-source-tile {
  opacity: 1;
  transform: translateY(0);
}

.cs5-source-tile--gap {
  border-style: dashed;
  border-color: rgba(255, 155, 142, 0.28);
  background: rgba(255, 155, 142, 0.04);
}

.cs5-source-tile__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(130, 114, 254, 0.14);
  border: 1px solid rgba(130, 114, 254, 0.22);
}

.cs5-source-tile--gap .cs5-source-tile__icon {
  background: transparent;
  border-color: rgba(255, 155, 142, 0.35);
}

.cs5-source-tile__label {
  font-size: 9px;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  line-height: 1.25;
}

.cs5-source-tile__check {
  color: #9AFFF7;
  display: flex;
}

/* ---- Intent bars ---- */
.cs5-intent-row {
  grid-template-columns: 16px minmax(0, 0.9fr) 1.2fr;
}

.cs5-intent-row__icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cs5-intent-row__icon--order { border-color: rgba(130, 114, 254, 0.35); }
.cs5-intent-row__icon--calendar { border-color: rgba(154, 255, 247, 0.3); }

.cs5-intent-row__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs5-intent-row__track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cs5-intent-row__fill {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, rgba(107, 92, 224, 0.9), #9B8CFF);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--row-i, 0) * 0.08s + 0.18s);
}

.cs5-bento.cs5-visible .cs5-intent-row__fill { transform: scaleX(1); }

/* ---- Gap list ---- */
.cs5-viz--gaps {
  gap: 8px;
}

.cs5-gap-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--row-i, 0) * 0.07s + 0.12s);
}

.cs5-bento.cs5-visible .cs5-gap-item {
  opacity: 1;
  transform: translateY(0);
}

.cs5-gap-item__icon {
  color: #FF9B8E;
  display: flex;
  margin-top: 1px;
}

.cs5-gap-item__text {
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.52);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.cs5-gap-cta {
  font-size: 10px;
  color: rgba(154, 255, 247, 0.65);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.02em;
}

/* Shared ring base (donut) */
.cs5-ring-base {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 12;
  fill: none;
}

/* ---- Reference polish pass: restore hierarchy and give each chart room ---- */
.cs5-bento {
  grid-template-rows: repeat(3, minmax(188px, auto));
  gap: 14px;
}

.cs5-card {
  min-height: 192px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.105);
  background:
    radial-gradient(circle at 88% 12%, rgba(130, 114, 254, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #0b0d12;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 22px 70px rgba(0, 0, 0, 0.42);
}

.cs5-card::before {
  opacity: 0.34;
  background-size: 28px 28px;
}

.cs5-card::after {
  opacity: 0.42;
  background: rgba(130, 114, 254, 0.16);
}

.cs5-card--hero {
  min-height: 396px;
}

.cs5-card--wide-chart {
  min-height: 196px;
}

.cs5-metric {
  gap: 18px;
}

.cs5-metric__eyebrow {
  color: rgba(255, 255, 255, 0.56);
  font-size: 10.5px;
  letter-spacing: 0.13em;
}

.cs5-metric__foot {
  color: rgba(255, 255, 255, 0.42);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.cs5-metric__label {
  margin-top: 8px;
  max-width: 23ch;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.68);
}

.cs5-metric__value {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-sans);
  font-size: clamp(40px, 4.1vw, 58px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 0 22px rgba(130, 114, 254, 0.22);
}

.cs5-metric__value span {
  color: rgba(155, 140, 255, 0.95);
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-left: 2px;
}

.cs5-card--hero .cs5-metric__value {
  font-size: clamp(70px, 7.6vw, 104px);
}

.cs5-metric__body--stack {
  grid-template-columns: minmax(112px, 0.68fr) minmax(180px, 1.32fr);
  align-items: center;
  gap: 18px;
}

.cs5-metric__body--hero {
  grid-template-columns: minmax(158px, 0.72fr) minmax(260px, 1.28fr);
  gap: 28px;
}

.cs5-card--wide-chart .cs5-metric__body--stack {
  grid-template-columns: minmax(190px, 0.62fr) minmax(430px, 1.38fr);
  gap: 30px;
}

.cs5-card--slot-f .cs5-metric__body--stack {
  grid-template-columns: 1fr;
  gap: 14px;
}

.cs5-card--slot-f .cs5-metric__headline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.cs5-card--slot-f .cs5-metric__value {
  grid-row: 1 / span 2;
}

/* ---- AI-RESOLVED card (slot-a): number + label inline, bars full width ---- */
.cs5-card--slot-a .cs5-metric__body--stack {
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.cs5-card--slot-a .cs5-metric__headline {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  flex-wrap: nowrap;
}

.cs5-card--slot-a .cs5-metric__value {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.cs5-card--slot-a .cs5-metric__value span {
  font-size: 0.55em;
  font-weight: 400;
}

.cs5-card--slot-a .cs5-metric__label {
  margin-top: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs5-card--slot-a .cs5-viz {
  min-height: auto;
  width: 100%;
  flex: 1;
}

.cs5-card--slot-a .cs5-status-list {
  width: 100%;
}

.cs5-card--slot-a .cs5-status-row {
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  background: rgba(255,255,255,0.035);
  border-radius: 9px;
  padding: 8px 10px;
}

.cs5-card--slot-a .cs5-status-row__track {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.cs5-card--slot-f .cs5-metric__label {
  margin-top: 2px;
}

.cs5-viz {
  min-height: 96px;
  justify-content: center;
}

.cs5-card--hero .cs5-viz {
  min-height: 230px;
}

.cs5-card--wide-chart .cs5-viz {
  min-height: 118px;
}

.cs5-viz__coverage {
  grid-template-columns: minmax(170px, 240px) minmax(130px, 1fr);
  gap: 24px;
  align-items: center;
}

.cs5-viz__donut {
  width: 100%;
  max-width: 240px;
  filter: drop-shadow(0 0 28px rgba(130, 114, 254, 0.32));
}

/* Legend percentage values */
.cs5-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs5-legend__pct {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.42);
  font-variant-numeric: tabular-nums;
}

/* stroke-width already set per-segment above */

.cs5-legend {
  gap: 12px;
}

.cs5-legend li,
.cs5-status-row__label,
.cs5-channel-row__label,
.cs5-channel-row__pct,
.cs5-intent-row__label,
.cs5-gap-item__text,
.cs5-gap-cta,
.cs5-branch__labels,
.cs5-timeline__label {
  color: rgba(255, 255, 255, 0.74);
}

.cs5-legend li {
  font-size: 11px;
}

.cs5-status-list {
  gap: 9px;
}

.cs5-status-row {
  grid-template-columns: 20px minmax(88px, 1fr) minmax(56px, auto);
  gap: 9px;
}

.cs5-status-row__icon {
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.07);
}

.cs5-status-row__track,
.cs5-channel-row__track,
.cs5-intent-row__track {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
}

.cs5-status-row__label {
  font-size: 10px;
  text-align: right;
}

.cs5-viz--timeline {
  min-height: 108px;
}

.cs5-timeline {
  padding: 4px 0 0;
}

.cs5-timeline::before {
  left: 13%;
  right: 13%;
  top: 21px;
  border-top-color: rgba(255, 255, 255, 0.22);
}

.cs5-timeline__node {
  width: 42px;
  height: 42px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.cs5-timeline__step--active .cs5-timeline__node {
  width: 48px;
  height: 48px;
  background: rgba(130, 114, 254, 0.35);
}

.cs5-timeline__label {
  font-size: 10.5px;
  max-width: 84px;
}

.cs5-timeline__step--active .cs5-timeline__label {
  color: rgba(255, 255, 255, 0.9);
}

.cs5-timeline__value {
  font-size: 14px;
  color: #9B8CFF;
}

.cs5-viz--branch {
  gap: 8px;
}

.cs5-branch {
  max-height: 100px;
  filter: drop-shadow(0 0 12px rgba(130, 114, 254, 0.18));
}

.cs5-branch__pct {
  font-size: 10px;
  fill: rgba(255, 255, 255, 0.9);
}

.cs5-branch__labels {
  font-size: 10px;
}

.cs5-channel-list,
.cs5-intent-list {
  gap: 10px;
}

.cs5-channel-row {
  grid-template-columns: 22px minmax(70px, 0.65fr) minmax(110px, 1.35fr) 34px;
  gap: 10px;
}

.cs5-channel-row__icon,
.cs5-intent-row__icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(130, 114, 254, 0.18);
  border-color: rgba(130, 114, 254, 0.28);
}

.cs5-channel-row__label,
.cs5-channel-row__pct,
.cs5-intent-row__label {
  font-size: 11px;
}

.cs5-source-grid {
  gap: 12px;
}

.cs5-source-tile {
  min-height: 90px;
  padding: 14px 8px 12px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
}

.cs5-source-tile__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.cs5-source-tile__label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.72);
}

.cs5-intent-row {
  grid-template-columns: 20px minmax(88px, 0.85fr) minmax(100px, 1.15fr);
  gap: 9px;
}

.cs5-gap-list {
  gap: 9px;
}

.cs5-gap-item {
  grid-template-columns: 18px 1fr;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 155, 142, 0.16);
}

.cs5-gap-item__text {
  font-size: 10.5px;
}

.cs5-gap-cta {
  color: rgba(155, 140, 255, 0.95);
  font-size: 10.5px;
}

/* ============================================================
   SECTION 5 — Responsive
   ============================================================ */

@media (max-width: 1200px) {
  .cs5-header { grid-template-columns: 200px 1fr 280px; gap: 40px; }
}

@media (max-width: 1024px) {
  .cs5-header { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs5-header .cs5-body { grid-column: 1 / -1; }
  .cs5-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(168px, auto);
  }
  .cs5-card--hero,
  .cs5-card--slot-a,
  .cs5-card--slot-b,
  .cs5-card--slot-c,
  .cs5-card--slot-d,
  .cs5-card--wide-chart,
  .cs5-card--slot-e,
  .cs5-card--slot-f {
    grid-column: auto;
    grid-row: auto;
    min-height: 168px;
  }
  .cs5-card--hero { grid-column: 1 / -1; min-height: 220px; }
  .cs5-card--wide-chart { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .cs5-header { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; margin-bottom: 40px; }
  .cs5-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .cs5-card { min-height: 164px; }
  .cs5-metric__body--stack,
  .cs5-metric__body--hero { grid-template-columns: minmax(0, 1fr) minmax(120px, 42%); }
  .cs5-card--hero .cs5-viz { min-height: 108px; }
}

@media (max-width: 560px) {
  .cs5-section { padding: 72px 0 80px; }
  .cs5-wrap { padding: 0 20px; }
  .cs5-title { font-size: 26px; }
  .cs5-bento { gap: 10px; }
  .cs5-card { padding: 16px; }
  .cs5-metric__value { font-size: 34px; }
  .cs5-card--hero .cs5-metric__value { font-size: 48px; }
}

@media (max-width: 420px) {
  .cs5-metric__body--stack,
  .cs5-metric__body--hero { grid-template-columns: 1fr; }
  .cs5-viz__coverage { grid-template-columns: 1fr; justify-items: start; }
  .cs5-viz { min-height: 82px; justify-content: flex-start; }
  .cs5-source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs5-source-tile:nth-child(4),
  .cs5-source-tile:nth-child(5) { grid-column: span 1; }
  .cs5-timeline__node { width: 30px; height: 30px; }
  .cs5-timeline__step--active .cs5-timeline__node { width: 34px; height: 34px; }
  .cs5-timeline__label { font-size: 8px; max-width: 64px; }
  .cs5-timeline__value { font-size: 12px; }
  .cs5-timeline::before { top: 15px; left: 10%; right: 10%; }
}

@media (prefers-reduced-motion: reduce) {
  .cs5-bento,
  .cs5-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .cs5-donut-seg,
  .cs5-branch__path,
  .cs5-status-row__fill,
  .cs5-channel-row__fill,
  .cs5-intent-row__fill,
  .cs5-timeline::before,
  .cs5-status-row,
  .cs5-channel-row,
  .cs5-intent-row,
  .cs5-timeline__step,
  .cs5-source-tile,
  .cs5-gap-item {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .cs5-bento.cs5-visible .cs5-donut-seg--purple { stroke-dashoffset: 83; }
  .cs5-bento.cs5-visible .cs5-donut-seg--teal { stroke-dashoffset: 210; }
  .cs5-bento.cs5-visible .cs5-donut-seg--warn { stroke-dashoffset: 248; }
  .cs5-bento.cs5-visible .cs5-status-row__fill,
  .cs5-bento.cs5-visible .cs5-channel-row__fill,
  .cs5-bento.cs5-visible .cs5-intent-row__fill { transform: scaleX(1); }
  .cs5-bento.cs5-visible .cs5-branch__path { stroke-dashoffset: 0; }
  .cs5-bento.cs5-visible .cs5-timeline::before { transform: scaleX(1); }
}

/* ============================================================
   SECTION 6 — Outcomes pillars (ref: 4-column editorial)
   ============================================================ */

.cs6-section {
  background: #000;
  padding: 100px 0 120px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cs6-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.cs6-header {
  max-width: 820px;
  padding-bottom: 48px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cs6-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-sans);
}

.cs6-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.38);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  max-width: 62ch;
}

.cs6-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 300px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cs6-pillars.cs6-visible {
  opacity: 1;
  transform: translateY(0);
}

.cs6-pillar {
  display: flex;
  flex-direction: column;
  padding: 36px 28px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--pillar-delay, 0s);
}

.cs6-pillars.cs6-visible .cs6-pillar {
  opacity: 1;
  transform: translateY(0);
}

.cs6-pillar:last-child {
  border-right: none;
}

.cs6-pillar__eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(130, 114, 254, 0.75);
  margin-bottom: 28px;
}

.cs6-pillar__title {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-sans);
  flex: 1;
}

.cs6-pillar__desc {
  margin: 0 0 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.32);
  max-width: 34ch;
}

.cs6-pillar__link {
  margin-top: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.36);
  text-decoration: none;
  transition: color 0.22s ease;
}

.cs6-pillar__link:hover {
  color: #9B8CFF;
}

@media (max-width: 1024px) {
  .cs6-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }

  .cs6-pillar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 220px;
  }

  .cs6-pillar:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }

  .cs6-pillar:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .cs6-section { padding: 72px 0 88px; }
  .cs6-wrap { padding: 0 20px; }
  .cs6-header { padding-bottom: 32px; }
  .cs6-pillars { grid-template-columns: 1fr; }
  .cs6-pillar,
  .cs6-pillar:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 0;
    padding: 28px 4px;
  }
  .cs6-pillar:last-child { border-bottom: none; }
}

/* ============================================================
   Section 5 — Visual polish: icons, branch, channels
   ============================================================ */

/* Status row: 4-col layout with status icon */
.cs5-status-row {
  grid-template-columns: 22px 1fr 16px auto !important;
  gap: 8px !important;
  align-items: center;
}

.cs5-status-row__status-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs5-status-ico--check { color: rgba(130,114,254,0.85); }
.cs5-status-ico--trend { color: rgba(251,146,60,0.85); }
.cs5-status-ico--clock { color: rgba(255,255,255,0.32); }

/* Branch wrap layout */
.cs5-branch-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: space-between;
  width: 100%;
  min-height: 100px;
}

.cs5-branch-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cs5-branch-hub__ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(130,114,254,0.12);
  border: 1px solid rgba(130,114,254,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(130,114,254,0.9);
}

.cs5-branch-hub__label {
  font-size: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: rgba(255,255,255,0.38);
  text-align: center;
  letter-spacing: 0.03em;
  max-width: 64px;
}

.cs5-branch-svg {
  flex: 1;
  min-width: 40px;
  max-width: 72px;
  height: 72px;
}

.cs5-branch-outcomes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.cs5-branch-outcome {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs5-branch-outcome__ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(130,114,254,0.15);
  border: 1px solid rgba(130,114,254,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(130,114,254,0.9);
  flex-shrink: 0;
}

.cs5-branch-outcome__ico--human {
  background: rgba(251,146,60,0.12);
  border-color: rgba(251,146,60,0.3);
  color: rgba(251,146,60,0.9);
}

.cs5-branch-outcome__pct {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1;
  font-family: var(--font-sans);
  letter-spacing: -0.04em;
}

.cs5-branch-outcome__pct--ai    { color: #8272FE; }
.cs5-branch-outcome__pct--human { color: #FB923C; }

.cs5-branch-outcome__lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  max-width: 80px;
  line-height: 1.3;
}

/* Channel row icons with colored circles */
.cs5-channel-row__icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs5-channel-row__icon--voice {
  background: rgba(154,255,247,0.12);
  color: #9AFFF7;
  border: 1px solid rgba(154,255,247,0.22);
}

.cs5-channel-row__icon--chat {
  background: rgba(130,114,254,0.14);
  color: #8272FE;
  border: 1px solid rgba(130,114,254,0.25);
}

.cs5-channel-row__icon--msg {
  background: rgba(74,222,128,0.1);
  color: #4ADE80;
  border: 1px solid rgba(74,222,128,0.2);
}

/* Intent row: 4-col icon + label + bar + pct */
.cs5-intent-row {
  grid-template-columns: 18px 1fr minmax(60px, 1.2fr) 28px !important;
  gap: 8px !important;
}

.cs5-intent-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
}

.cs5-intent-row__pct {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Source tile icon styling */
.cs5-source-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(130,114,254,0.7);
}

.cs5-source-tile--gap .cs5-source-tile__icon {
  color: rgba(255,255,255,0.25);
}

/* Check mark coloring */
.cs5-source-tile__check {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(130,114,254,0.8);
}

.cs5-source-tile--gap .cs5-source-tile__check {
  color: rgba(255,255,255,0.22);
}

/* Gap item icon */
.cs5-gap-item {
  grid-template-columns: 18px 1fr !important;
  gap: 8px !important;
}

.cs5-gap-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EDCF4B;
  flex-shrink: 0;
}

/* Robot face in donut */
.cs5-robot-face {
  opacity: 0;
  transition: opacity 0.5s ease 0.8s;
}

.cs5-bento.cs5-visible .cs5-robot-face {
  opacity: 1;
}

/* Stable coverage footer waveform */
.cs5-metric__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* Branch path animation */
@keyframes cs5-dash-move {
  to { stroke-dashoffset: -28; }
}

.cs5-branch__path--a,
.cs5-branch__path--b {
  animation: cs5-dash-move 1.8s linear infinite;
}

.cs5-branch__path--b {
  animation-delay: 0.9s;
}
