/* ── Partner logo marquee ─────────────────────────────────────────── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  align-items: center;
  animation: marquee 36s linear infinite;
  width: max-content;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* ── Brand homepage hero (full-bleed chip graphic) ───────────────── */
#sima-revamp .sima-bhh-hero {
  --brand-hero-chrome-offset: var(--revamp-header-height, 5rem);
  margin-top: calc(-1 * var(--brand-hero-chrome-offset));
  height: 100svh;
  height: 100dvh;
  min-height: 520px;
  max-height: 100svh;
  max-height: 100dvh;
}

body.sima-has-announcement-bar #sima-revamp .sima-bhh-hero {
  --brand-hero-chrome-offset: calc(var(--revamp-header-height, 5rem) + var(--announcement-bar-height, 36px));
}

#sima-revamp .sima-bhh-hero-content {
  padding-top: var(--brand-hero-chrome-offset, var(--revamp-header-height, 5rem));
  padding-bottom: clamp(1.25rem, 3vh, 2.5rem);
  box-sizing: border-box;
}

#sima-revamp .sima-bhh-hero .brand-hero-graphic-wrap {
  position: absolute;
  top: var(--brand-hero-chrome-offset, var(--revamp-header-height, 5rem));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  #sima-revamp .sima-bhh-hero .brand-hero-graphic-wrap[data-brand-hero-img] {
    opacity: 1;
  }
}

#sima-revamp .sima-bhh-hero .brand-hero-graphic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right 62%;
  transform: scale(1.1);
  transform-origin: 76% 64%;
}

#sima-revamp .brand-hero-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  font-family: 'Roboto', sans-serif;
}
#sima-revamp .brand-hero-fade-x {
  background: linear-gradient(to right, #ffffff 28%, rgba(255, 255, 255, 0.7) 52%, transparent 75%);
}
#sima-revamp .brand-hero-fade-y {
  background: linear-gradient(to bottom, #ffffff 0%, transparent 12%, transparent 82%, #ffffff 100%);
}
@keyframes pill-shimmer {
  0%      { background-position: 200% center; }
  35%     { background-position: -200% center; }
  35.001% { background-position: 200% center; }
  100%    { background-position: 200% center; }
}
#sima-revamp .brand-hero-shimmer {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: pill-shimmer 6s linear infinite;
}

@media (max-height: 860px) {
  #sima-revamp .brand-hero-sub {
    font-size: clamp(14px, 1.2vw, 17px);
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  #sima-revamp .sima-bhh-hero {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    max-height: none;
  }
  #sima-revamp .sima-bhh-hero .sima-container-smaller,
  #sima-revamp .sima-bhh-hero-content {
    min-height: 100svh;
    min-height: 100dvh;
  }
  #sima-revamp .sima-bhh-hero-content {
    padding-bottom: 48px;
    justify-content: flex-end;
  }
  #sima-revamp .sima-bhh-hero .brand-hero-graphic {
    object-position: center bottom;
    transform: scale(1);
    transform-origin: center bottom;
    opacity: 0.65;
  }
  #sima-revamp .sima-bhh-promo-text {
    white-space: normal;
  }
}

/* ── Clamp font sizes (sections) ─────────────────────────────────── */
.section-h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #0B1220;
  font-family: 'Denim', sans-serif;
}
.section-h2-lg {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #0B1220;
  margin-bottom: 20px;
  font-family: 'Denim', sans-serif;
}
.testimonial-h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.04em;
  color: #0B1220;
  font-family: 'Denim', sans-serif;
}

/* Testimonial card — company logo slot (uploaded PNG/SVG scale inside) */
.testimonial-card-logo {
  display: block;
  width: auto;
  max-width: 150px;
  height: 38px;
  max-height: 38px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 18px;
}

/* ── Section divider ──────────────────────────────────────────────── */
.section-divider { height: 1px; background: #e5e5ea; }

/* ── Feature card hover ───────────────────────────────────────────── */
.feature-card-hw, .feature-card-sw {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.feature-card-hw:hover, .feature-card-sw:hover { transform: translateY(-4px); }
.feature-card-plain {
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 28px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.feature-card-plain:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.sima-bento-play-icon {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.sima-bento-play-icon__svg {
  display: block;
}

.feature-card-hw {
  background: #fff;
  border: 1.5px solid rgba(89,152,221,0.27);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 28px rgba(89,152,221,0.07);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.feature-card-sw {
  background: #fff;
  border: 1.5px solid rgba(164,204,45,0.27);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 4px 28px rgba(164,204,45,0.07);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ── Mini agent body calc height ──────────────────────────────────── */
.mini-agent-body {
  padding: 16px;
  background: #F9FAFB;
  height: calc(100% - 35px);
  overflow: hidden;
}

/* ── Partner logo filter ──────────────────────────────────────────── */
.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  overflow: hidden;
}
.partner-logo {
  display: block;
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  object-position: center center;
  filter: brightness(0) opacity(0.45);
}

/* ── Marquee gradient fades ───────────────────────────────────────── */
.marquee-fade-left {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 96px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to right, #fff, transparent);
}
.marquee-fade-right {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 96px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to left, #fff, transparent);
}

/* ── Log panel fade ───────────────────────────────────────────────── */
.log-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, #F9FAFB, transparent);
  pointer-events: none;
  z-index: 10;
}

/* ── Section padding (desktop base) ──────────────────────────────── */
.section-pad-80 { padding-top: 80px; padding-bottom: 80px; }
.section-pad-60 { padding-top: 60px; padding-bottom: 60px; }
.section-pad-96 { padding-top: 96px; padding-bottom: 96px; }

/* ── Testimonial carousel nav ─────────────────────────────────────── */
.testimonial-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #0B1220;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: box-shadow 0.2s;
}
.testimonial-nav-btn:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
#testimonial-prev { left: -52px; }
#testimonial-next { right: -52px; }

/* ── Testimonial carousel ─────────────────────────────────────────── */
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: grid; }
.testimonial-dot { transition: width 0.3s ease, background 0.3s ease; }

/* ── Performance chart ────────────────────────────────────────────── */
#chart-rows { transition: opacity 0.28s ease; }
.perf-bar { transition: width 0.4s ease-out, opacity 0.3s ease; }
.perf-chart-panel { min-width: 0; }
.chart-tab {
  flex: 1;
  font-size: 12px;
  font-family: 'Denim', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 0;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  color: #6e6e73;
  background: transparent;
  box-shadow: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.chart-tab.is-active {
  background: #fff;
  color: #0B1220;
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}
.chart-row { transition: opacity 0.28s ease; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (< 768px)
══════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Bento product cards: single column */
  .bento-grid { grid-template-columns: 1fr !important; }

  /* Split panels: single column; reverse panel restores natural source order */
  .split-panel { grid-template-columns: 1fr !important; gap: 32px !important; }
  .split-panel-reverse > *:first-child { order: 2; }
  .split-panel-reverse > *:last-child  { order: 1; }

  /* Industries grid: 2 cols instead of 3 so cards aren't postage-stamp sized */
  .industry-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Testimonials: inline prev/next below slide */
  .testimonial-nav-btn { position: static !important; transform: none !important; }
  .testimonial-carousel-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
  }
  .testimonial-carousel-wrap #testimonial-slides { grid-column: 1 / -1; grid-row: 1; }
  #testimonial-prev { grid-column: 1; grid-row: 2; left: auto; }
  #testimonial-next { grid-column: 3; grid-row: 2; right: auto; }
  .testimonial-slide { display: none; }
  .testimonial-slide.is-active { display: flex !important; flex-direction: column; gap: 20px; }

  /* Section padding */
  .section-pad-80 { padding-top: 56px !important; padding-bottom: 56px !important; }
  .section-pad-60 { padding-top: 44px !important; padding-bottom: 44px !important; }
  .section-pad-96 { padding-top: 64px !important; padding-bottom: 64px !important; }
  .section-divider-72 { margin: 40px 0 !important; }

  /* Prevent iOS rubber-band horizontal scroll */
  #sima-revamp { overscroll-behavior-x: none; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (768px–1023px)
══════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Bento product cards: single column at tablet too */
  .bento-grid { grid-template-columns: 1fr !important; }

  /* Split panels: equal columns, reduced gap */
  .split-panel {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }

  /* Industries grid: keep 3 cols at tablet — cards are ~110px, still readable */

  /* Testimonial nav buttons pulled inward */
  .testimonial-nav-btn { left: -24px !important; right: -24px !important; }
  #testimonial-next { right: -24px !important; }
  #testimonial-prev { left: -24px !important; }
}
@media (max-width: 500px) {
  .testimonial-nav-btn { display: none !important; }
}
