/*
 * RATEB public home — enterprise SaaS marketing surface
 * Register/pricing form styles preserved for home-page.js compatibility.
 */
@import url('../rateb-enterprise-tokens.css');

[id] {
  scroll-margin-top: 170px;
}

.ratib-home-domains-embed {
  margin-top: 4px;
}

.ratib-home-domains-embed__frame {
  display: block;
  width: 100%;
  min-height: min(720px, 85vh);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-radius, 14px);
  background: rgba(0, 0, 0, 0.25);
}

:root {
  /* Moderated palette: same hue families, lower saturation / calmer contrast site-wide */
  --r-bg-deep: #070b14;
  --r-bg: #0d1324;
  --r-surface: rgba(255, 255, 255, 0.032);
  --r-border: rgba(255, 255, 255, 0.082);
  --r-text: #dce3ef;
  --r-muted: #8d98aa;
  --r-accent: #7568b8;
  --r-accent-2: #d06838;
  --r-cyan: #1bb0cb;
  --r-green: #2fa880;
  --r-pink: #c94868;
  --r-yellow: #d9a428;
  --r-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-mono: "JetBrains Mono", ui-monospace, monospace;
  --r-radius: 14px;
  --r-radius-sm: 10px;
  --r-space: clamp(1rem, 3vw, 2rem);
  --r-max: 1540px;
  --ratib-pink: #c94868;
  --ratib-yellow: #d9a428;
  --ratib-dark: #1e293b;
  --ratib-darker: #0f172a;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.ratib-saas-home {
  margin: 0;
  min-height: 100vh;
  font-family: var(--r-font);
  background: var(--r-bg-deep);
  color: var(--r-text);
  -webkit-font-smoothing: antialiased;
}

.ratib-saas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ratib-saas-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 98, 200, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(214, 104, 56, 0.07), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(27, 176, 203, 0.05), transparent),
    linear-gradient(180deg, #070b14 0%, #0d1324 40%, #070b14 100%);
}

.ratib-saas-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 10%, transparent 70%);
  animation: ratibGridDrift 80s linear infinite;
}

@keyframes ratibGridDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(64px, 64px);
  }
}

.ratib-saas-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.34;
  animation: ratibOrbFloat 18s ease-in-out infinite;
}

.ratib-saas-bg__orb--a {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 15%;
  background: rgba(124, 98, 200, 0.22);
}

.ratib-saas-bg__orb--b {
  width: 360px;
  height: 360px;
  right: -100px;
  bottom: 10%;
  background: rgba(208, 104, 56, 0.12);
  animation-delay: -7s;
}

@keyframes ratibOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.05);
  }
}

.ratib-container {
  width: 100%;
  max-width: var(--r-max);
  margin: 0 auto;
  padding-left: var(--r-space);
  padding-right: var(--r-space);
}

/* Sticky site header: topbar + main nav stay visible while scrolling (not fixed — avoids gap/scroll bugs) */
.ratib-public-header-pin {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 200;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.98) 0%, rgba(5, 8, 22, 0.94) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ratib-public-header-pin .ratib-topbar {
  position: relative;
  z-index: 2;
}

.ratib-public-header-pin .ratib-nav-shell {
  position: relative;
  top: auto;
  z-index: 1;
}

/* Topbar — taller, glass, spectrum edge */
.ratib-topbar {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(5, 8, 22, 0.88) 100%),
    radial-gradient(ellipse 120% 180% at 0% 0%, rgba(27, 176, 203, 0.11), transparent 45%),
    radial-gradient(ellipse 100% 160% at 100% 0%, rgba(124, 98, 200, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 120% at 50% 100%, rgba(47, 168, 128, 0.08), transparent 55%);
  backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.ratib-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(27, 176, 203, 0.28) 0%,
    rgba(124, 98, 200, 0.32) 22%,
    rgba(212, 120, 160, 0.28) 48%,
    rgba(47, 168, 128, 0.32) 72%,
    rgba(217, 164, 40, 0.28) 100%
  );
  opacity: 0.85;
  pointer-events: none;
}

.ratib-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding-block: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.835rem;
}

.ratib-topbar__left,
.ratib-topbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.ratib-topbar__link {
  color: var(--r-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  margin: -0.35rem -0.45rem;
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.ratib-topbar__link[href^="tel:"] {
  color: rgba(165, 243, 252, 0.92);
}

.ratib-topbar__link[href^="tel:"]:hover {
  color: #ecfeff;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
}

.ratib-topbar__link[href*="customer-portal"] {
  color: rgba(253, 224, 200, 0.95);
}

.ratib-topbar__link[href*="customer-portal"]:hover {
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.18), rgba(249, 115, 22, 0.12));
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.45);
}

/* Isolate phone display from adjacent digit runs (Unicode bidi; Arabic OS / mixed numerals). */
.ratib-topbar__phone-text {
  unicode-bidi: isolate;
  direction: ltr;
}

.ratib-topbar__wa {
  color: #4ade80;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  margin: -0.35rem 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.ratib-topbar__wa:hover {
  color: #ecfdf5;
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.22);
  transform: translateY(-1px);
}

.ratib-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
  animation: ratibPulseDot 2s ease infinite;
}

@keyframes ratibPulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.ratib-topbar__lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--r-muted);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.ratib-lang {
  color: var(--r-muted);
  text-decoration: none;
  font-weight: 500;
}

.ratib-lang--active {
  color: #e0e7ff;
  font-weight: 600;
}

.ratib-lang:hover {
  color: #f8fafc;
}

.ratib-lang-sep {
  opacity: 0.4;
}

/* Main nav — glass band + spectrum wash (pinned with topbar via .ratib-public-header-pin) */
.ratib-nav-shell {
  position: relative;
  z-index: 50;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(11, 15, 35, 0.92) 0%, rgba(5, 8, 22, 0.78) 55%, rgba(5, 8, 22, 0.72) 100%),
    radial-gradient(ellipse 90% 120% at 15% -30%, rgba(124, 98, 200, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 100% at 85% -20%, rgba(27, 176, 203, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(200, 90, 130, 0.08), transparent 45%);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.ratib-nav-shell.is-scrolled {
  background:
    linear-gradient(180deg, rgba(5, 8, 18, 0.94) 0%, rgba(5, 8, 22, 0.9) 100%),
    radial-gradient(ellipse 80% 100% at 20% 0%, rgba(124, 98, 200, 0.12), transparent 45%);
  backdrop-filter: blur(24px) saturate(1.25);
  border-bottom-color: rgba(124, 98, 200, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.ratib-nav-shell__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 92px;
  padding-block: 0.55rem 0.65rem;
}

@media (min-width: 1100px) {
  .ratib-nav-shell__inner {
    align-items: center;
    min-height: 0;
    padding-block: 0.55rem;
    gap: 0.65rem 1.25rem;
  }
}

.ratib-nav__brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(20rem, 44vw);
}

.ratib-nav__brand-block--row {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}

.ratib-nav__brand-block--animated {
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  max-width: min(17.5rem, 42vw);
  min-width: 0;
  padding: 0.36rem 0.5rem 0.36rem 0.46rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(49, 46, 129, 0.28));
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.ratib-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--r-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ratib-nav__brand--animated-title {
  display: block;
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  padding: 0;
  border-radius: 0;
}

.ratib-nav__brand-profile {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  margin-left: 0;
  padding: 0.16rem 0.44rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(148, 163, 184, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ratib-nav__brand-profile:hover,
.ratib-nav__brand-profile:focus-visible {
  color: rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.ratib-nav__brand-profile.is-current {
  color: rgba(226, 232, 240, 0.95);
  background: rgba(139, 126, 200, 0.12);
  border-color: rgba(139, 126, 200, 0.28);
  box-shadow: none;
}

.ratib-nav__brand img {
  display: block;
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.35));
}

.ratib-nav__brand-text {
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .ratib-nav__brand-text {
    display: inline;
    font-size: 0.95rem;
    line-height: 1.1;
    max-width: 9.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.ratib-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--r-radius-sm);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), rgba(15, 23, 42, 0.9));
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.18);
}

.ratib-nav__toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--r-text);
  border-radius: 1px;
}

@media (min-width: 1100px) {
  .ratib-nav__toggle {
    display: none;
  }
}

.ratib-nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
}

/* Wide desktops: wrap to multiple rows — no horizontal scrollbar; links stay readable at full width. */
@media (min-width: 1100px) {
  .ratib-nav__menu {
    min-width: 0;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    row-gap: 0.3rem;
    column-gap: 0.35rem;
    overflow: visible;
    padding-bottom: 0;
  }
}

.ratib-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.52rem 0.75rem 0.52rem 0.55rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ratib-nav__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.28rem;
  line-height: 1;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.ratib-nav__glyph {
  width: 1.42rem;
  height: 1.42rem;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.ratib-nav__link--product-tour .ratib-nav__glyph {
  width: 1.52rem;
  height: 1.52rem;
}

.ratib-nav__link:hover .ratib-nav__icon {
  transform: scale(1.07) translateY(-1px);
}

.ratib-nav__label {
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .ratib-nav-shell .ratib-nav__platform-links {
    row-gap: 0.28rem;
    column-gap: 0.28rem;
  }

  .ratib-nav-shell .ratib-nav__platform-links .ratib-nav__link {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.32rem 0.52rem 0.32rem 0.38rem;
    gap: 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.38);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  }

  .ratib-nav-shell .ratib-nav__platform-links .ratib-nav__link:hover {
    border-color: rgba(124, 98, 200, 0.35);
    background: rgba(124, 98, 200, 0.1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  }

  .ratib-nav-shell .ratib-nav__platform-links .ratib-nav__icon {
    width: 2.08rem;
    height: 2.08rem;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .ratib-nav-shell .ratib-nav__platform-links .ratib-nav__glyph {
    width: 1.16rem;
    height: 1.16rem;
  }

  .ratib-nav-shell .ratib-nav__platform-links .ratib-nav__link--product-tour .ratib-nav__glyph {
    width: 1.22rem;
    height: 1.22rem;
  }
}

/* Nav semantic map (meaning → color): Platform · video media · agency · Features · Solutions · Programs (#programs) · Agencies · Tracking · Visibility · API · Contact · Partner */
@keyframes ratibSemanticPulse {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  }
  50% {
    filter: brightness(1.04) drop-shadow(0 0 10px var(--ratib-pulse, rgba(148, 163, 184, 0.28)));
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Subtle idle shimmer — calmer than full pulse on every icon */
  .ratib-nav-shell .ratib-nav__platform-links .ratib-nav__icon {
    animation: ratibSemanticPulse 5.5s ease-in-out infinite;
  }

  .ratib-nav__platform-links .ratib-nav__link:nth-child(1) .ratib-nav__icon {
    animation-delay: 0s;
  }
  .ratib-nav__platform-links .ratib-nav__link:nth-child(2) .ratib-nav__icon {
    animation-delay: 0.2s;
  }
  .ratib-nav__platform-links .ratib-nav__link:nth-child(3) .ratib-nav__icon {
    animation-delay: 0.4s;
  }
  .ratib-nav__platform-links .ratib-nav__link:nth-child(4) .ratib-nav__icon {
    animation-delay: 0.6s;
  }
  .ratib-nav__platform-links .ratib-nav__link:nth-child(5) .ratib-nav__icon {
    animation-delay: 0.8s;
  }
  .ratib-nav__platform-links .ratib-nav__link:nth-child(6) .ratib-nav__icon {
    animation-delay: 1s;
  }

  .ratib-nav__partner-icon {
    animation: ratibSemanticPulse 5.5s ease-in-out infinite;
    animation-delay: 1.1s;
    --ratib-pulse: rgba(245, 158, 11, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ratib-nav-shell .ratib-nav__platform-links .ratib-nav__icon,
  .ratib-nav__partner-icon {
    animation: none;
  }
}

/* Tab label tints at rest */
.ratib-nav__link:is([href="#platform"], [href$="#platform"]) .ratib-nav__label {
  color: #bae6fd;
}

.ratib-nav__link:is([href="#how-it-works"], [href$="#how-it-works"]) .ratib-nav__label {
  color: #a7f3d0;
}

.ratib-nav__link:is([href="#features"], [href$="#features"]) .ratib-nav__label {
  color: #e0e7ff;
}

.ratib-nav__link:is([href="#solutions"], [href$="#solutions"]) .ratib-nav__label {
  color: #ffedd5;
}

.ratib-nav__link:is([href="#programs"], [href$="#programs"]) .ratib-nav__label {
  color: #fef3c7;
}

.ratib-nav__link:is([href="#agencies"], [href$="#agencies"]) .ratib-nav__label {
  color: #dbeafe;
}

.ratib-nav__link:is([href="#tracking"], [href$="#tracking"]) .ratib-nav__label {
  color: #ccfbf1;
}

.ratib-nav__link:is([href="#operational"], [href$="#operational"]) .ratib-nav__label {
  color: #fef08a;
}

.ratib-nav__link:is([href="#api"], [href$="#api"]) .ratib-nav__label {
  color: #ecfccb;
}

.ratib-nav__link:is([href="#contact"], [href$="#contact"]) .ratib-nav__label {
  color: #fecdd3;
}

.ratib-nav__link--product-tour .ratib-nav__label {
  color: #fae8ff;
}

/* Per-section icon tiles + pulse hue (CSS var --ratib-pulse on each tile) */
.ratib-nav__link:is([href="#platform"], [href$="#platform"]) .ratib-nav__icon {
  --ratib-pulse: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.45), rgba(12, 74, 110, 0.78));
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.3);
}

.ratib-nav__link:is([href="#platform"], [href$="#platform"]):hover {
  color: #f0f9ff;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(8, 47, 73, 0.12));
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.2);
}

.ratib-nav__link:is([href="#how-it-works"], [href$="#how-it-works"]) .ratib-nav__icon {
  --ratib-pulse: rgba(52, 211, 153, 0.5);
  color: #ecfdf5;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.48), rgba(6, 78, 59, 0.72));
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 6px 22px rgba(52, 211, 153, 0.26);
}

.ratib-nav__link:is([href="#how-it-works"], [href$="#how-it-works"]):hover {
  color: #ecfdf5;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(6, 95, 70, 0.12));
  border-color: rgba(110, 231, 183, 0.45);
  box-shadow: 0 0 24px rgba(52, 211, 153, 0.18);
}

.ratib-nav__link:is([href="#features"], [href$="#features"]) .ratib-nav__icon {
  --ratib-pulse: rgba(99, 102, 241, 0.55);
  color: #eef2ff;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.52), rgba(49, 46, 129, 0.72));
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.28);
}

.ratib-nav__link:is([href="#features"], [href$="#features"]):hover {
  color: #eef2ff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(55, 48, 163, 0.12));
  border-color: rgba(165, 180, 252, 0.45);
  box-shadow: 0 0 26px rgba(99, 102, 241, 0.22);
}

.ratib-nav__link:is([href="#solutions"], [href$="#solutions"]) .ratib-nav__icon {
  --ratib-pulse: rgba(249, 115, 22, 0.5);
  color: #fff7ed;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.48), rgba(124, 45, 18, 0.62));
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 6px 22px rgba(249, 115, 22, 0.26);
}

.ratib-nav__link:is([href="#solutions"], [href$="#solutions"]):hover {
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(154, 52, 18, 0.12));
  border-color: rgba(253, 186, 116, 0.48);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.2);
}

/* Programs (#programs) — icon tile; label from CMS (default "Programs") */
.ratib-nav__link:is([href="#programs"], [href$="#programs"]) .ratib-nav__icon {
  --ratib-pulse: rgba(245, 158, 11, 0.55);
  color: #fffbeb;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.48), rgba(120, 53, 15, 0.68));
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.28);
}

.ratib-nav__link:is([href="#programs"], [href$="#programs"]):hover {
  color: #fffbeb;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(146, 64, 14, 0.14));
  border-color: rgba(253, 224, 71, 0.5);
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.22);
}

.ratib-nav__link:is([href="#agencies"], [href$="#agencies"]) .ratib-nav__icon {
  --ratib-pulse: rgba(59, 130, 246, 0.52);
  color: #eff6ff;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.48), rgba(23, 37, 84, 0.78));
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.28);
}

.ratib-nav__link:is([href="#agencies"], [href$="#agencies"]):hover {
  color: #eff6ff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(30, 58, 138, 0.12));
  border-color: rgba(147, 197, 253, 0.45);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}

.ratib-nav__link:is([href="#tracking"], [href$="#tracking"]) .ratib-nav__icon {
  --ratib-pulse: rgba(20, 184, 166, 0.52);
  color: #f0fdfa;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.48), rgba(15, 118, 110, 0.72));
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 6px 22px rgba(20, 184, 166, 0.26);
}

.ratib-nav__link:is([href="#tracking"], [href$="#tracking"]):hover {
  color: #f0fdfa;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(15, 118, 110, 0.12));
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 24px rgba(20, 184, 166, 0.2);
}

/* Visibility — CMS label often "Visibility"; section #operational */
.ratib-nav__link:is([href="#operational"], [href$="#operational"]) .ratib-nav__icon {
  --ratib-pulse: rgba(234, 179, 8, 0.48);
  color: #fefce8;
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.42), rgba(113, 63, 18, 0.62));
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 6px 22px rgba(234, 179, 8, 0.22);
}

.ratib-nav__link:is([href="#operational"], [href$="#operational"]):hover {
  color: #fefce8;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(113, 63, 18, 0.12));
  border-color: rgba(253, 224, 71, 0.48);
  box-shadow: 0 0 26px rgba(234, 179, 8, 0.2);
}

.ratib-nav__link:is([href="#api"], [href$="#api"]) .ratib-nav__icon {
  --ratib-pulse: rgba(163, 230, 53, 0.48);
  color: #f7fee7;
  background: linear-gradient(145deg, rgba(101, 163, 13, 0.52), rgba(28, 69, 17, 0.72));
  border-color: rgba(163, 230, 53, 0.5);
  box-shadow: 0 6px 22px rgba(132, 204, 22, 0.24);
}

.ratib-nav__link:is([href="#api"], [href$="#api"]):hover {
  color: #f7fee7;
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.16), rgba(63, 98, 18, 0.12));
  border-color: rgba(217, 249, 157, 0.45);
  box-shadow: 0 0 24px rgba(163, 230, 53, 0.18);
}

.ratib-nav__link:is([href="#contact"], [href$="#contact"]) .ratib-nav__icon {
  --ratib-pulse: rgba(251, 113, 133, 0.52);
  color: #fff1f2;
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.48), rgba(136, 19, 55, 0.68));
  border-color: rgba(253, 164, 175, 0.55);
  box-shadow: 0 6px 22px rgba(251, 113, 133, 0.26);
}

.ratib-nav__link:is([href="#contact"], [href$="#contact"]):hover {
  color: #fff1f2;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(159, 18, 57, 0.12));
  border-color: rgba(254, 205, 211, 0.48);
  box-shadow: 0 0 26px rgba(251, 113, 133, 0.22);
}

/* Infrastructure marketplace entry points (absolute URLs in chrome) */
.ratib-nav__link:is([href*="marketplace/index.php"]) .ratib-nav__icon {
  --ratib-pulse: rgba(167, 139, 250, 0.55);
  color: #f5f3ff;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.55), rgba(67, 56, 202, 0.65));
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.28);
}

.ratib-nav__link:is([href*="marketplace/index.php"]):hover {
  color: #f5f3ff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(67, 56, 202, 0.12));
  border-color: rgba(196, 181, 253, 0.45);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.22);
}

.ratib-nav__link:is([href*="client/services.php"]) .ratib-nav__icon {
  --ratib-pulse: rgba(56, 189, 248, 0.52);
  color: #f0f9ff;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.52), rgba(12, 74, 110, 0.68));
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.26);
}

.ratib-nav__link:is([href*="client/services.php"]):hover {
  color: #f0f9ff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(12, 74, 110, 0.12));
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 26px rgba(14, 165, 233, 0.2);
}

/* Demo / hero video band (#video) — same semantic family as video/pic */
.ratib-nav__link:is([href="#video"], [href$="#video"]) .ratib-nav__label {
  color: #fae8ff;
}

.ratib-nav__link:is([href="#video"], [href$="#video"]) .ratib-nav__icon {
  --ratib-pulse: rgba(217, 70, 239, 0.55);
  color: #fdf4ff;
  background: linear-gradient(145deg, rgba(192, 38, 211, 0.55), rgba(91, 33, 182, 0.62));
  border-color: rgba(232, 121, 249, 0.58);
  box-shadow: 0 6px 22px rgba(192, 38, 211, 0.32);
}

.ratib-nav__link:is([href="#video"], [href$="#video"]):hover {
  color: #fdf4ff;
  border-color: rgba(217, 70, 239, 0.45);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.28), rgba(76, 29, 149, 0.18));
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.28);
}

.ratib-nav__link:is([href="#video"], [href$="#video"]):hover .ratib-nav__icon {
  box-shadow: 0 8px 26px rgba(217, 70, 239, 0.42);
}

/* Registration (#register) — outreach / contact family */
.ratib-nav__link:is([href="#register"], [href$="#register"]) .ratib-nav__label {
  color: #fecdd3;
}

.ratib-nav__link:is([href="#register"], [href$="#register"]) .ratib-nav__icon {
  --ratib-pulse: rgba(251, 113, 133, 0.52);
  color: #fff1f2;
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.48), rgba(136, 19, 55, 0.68));
  border-color: rgba(253, 164, 175, 0.55);
  box-shadow: 0 6px 22px rgba(251, 113, 133, 0.26);
}

.ratib-nav__link:is([href="#register"], [href$="#register"]):hover {
  color: #fff1f2;
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(159, 18, 57, 0.12));
  border-color: rgba(254, 205, 211, 0.48);
  box-shadow: 0 0 26px rgba(251, 113, 133, 0.22);
}

/* video/pic — same pill geometry as other platform links; emphasis stays on the icon tile */
.ratib-nav__link--product-tour .ratib-nav__icon {
  --ratib-pulse: rgba(217, 70, 239, 0.55);
  color: #fdf4ff;
  background: linear-gradient(145deg, rgba(192, 38, 211, 0.55), rgba(91, 33, 182, 0.62));
  border-color: rgba(232, 121, 249, 0.58);
  box-shadow: 0 6px 22px rgba(192, 38, 211, 0.32);
}

.ratib-nav__link--product-tour {
  color: rgba(226, 232, 240, 0.92);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.ratib-nav__link--product-tour:hover {
  color: #fdf4ff;
  border-color: rgba(217, 70, 239, 0.45);
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.22), rgba(76, 29, 149, 0.12));
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.2);
}

.ratib-nav__link--product-tour:hover .ratib-nav__icon {
  box-shadow: 0 8px 26px rgba(217, 70, 239, 0.42);
}

.ratib-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hide header register CTA (removed from PHP; defensive for cached HTML / stale deploys). Partner Login (.ratib-btn--ghost) stays. */
.ratib-nav-shell .ratib-nav__cta > a.ratib-btn--primary {
  display: none !important;
}

/* Partner Login — partnership / trust (amber–gold), distinct from nav tabs */
.ratib-nav-shell .ratib-nav__cta .ratib-nav__partner-login.ratib-btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 1.15rem 0.58rem 0.52rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.38), rgba(69, 26, 3, 0.72));
  box-shadow:
    0 0 0 1px rgba(253, 224, 71, 0.12) inset,
    0 10px 32px rgba(245, 158, 11, 0.28);
}

.ratib-nav__partner-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  color: #fffbeb;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.35), rgba(120, 53, 15, 0.55));
  border: 1px solid rgba(253, 224, 71, 0.45);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.22);
}

.ratib-nav__partner-icon .ratib-nav__glyph {
  width: 1.28rem;
  height: 1.28rem;
}

.ratib-nav__partner-label {
  color: #fef3c7;
}

.ratib-nav-shell .ratib-nav__cta .ratib-nav__partner-login.ratib-btn--ghost:hover {
  color: #ffffff;
  border-color: rgba(253, 224, 71, 0.65);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.48), rgba(92, 46, 15, 0.78));
  box-shadow:
    0 0 0 1px rgba(254, 240, 138, 0.18) inset,
    0 14px 40px rgba(245, 158, 11, 0.38);
  transform: translateY(-1px);
}

.ratib-nav-shell .ratib-nav__cta .ratib-nav__partner-login.ratib-btn--ghost:hover .ratib-nav__partner-label {
  color: #ffffff;
}

.ratib-nav-shell .ratib-nav__cta .ratib-nav__partner-login.ratib-btn--ghost:hover .ratib-nav__partner-icon {
  border-color: rgba(254, 240, 138, 0.55);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

/* Current page (e.g. partner-portal-login): non-interactive Partner Login pill */
.ratib-nav-shell .ratib-nav__cta .ratib-nav__partner-login.ratib-btn--ghost.is-current {
  cursor: default;
  pointer-events: none;
  opacity: 0.96;
}

@media (max-width: 1099px) {
  .ratib-nav-shell__inner {
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
    padding-block: 0.65rem;
    gap: 0.5rem 0.65rem;
  }

  .ratib-nav__brand-block {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.25rem);
  }

  .ratib-nav__brand-text {
    display: none;
  }

  .ratib-nav__brand img {
    height: 34px;
    width: auto;
  }

  .ratib-nav__toggle {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }

  .ratib-nav__cta {
    display: flex;
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0 !important;
    margin-top: 0.15rem;
    justify-content: stretch;
  }

  .ratib-nav__cta > a,
  .ratib-nav__cta .ratib-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* ratib-mega-nav.css sets .ratib-nav-shell .ratib-nav__menu { display:flex } — override when closed */
  .ratib-nav-shell .ratib-nav__menu:not(.is-open) {
    display: none !important;
  }

  .ratib-nav-shell .ratib-nav__menu.is-open {
    display: flex !important;
    order: 4;
    flex: 1 0 100%;
    width: 100%;
    margin-top: 0.35rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    border-radius: var(--r-radius);
    background: linear-gradient(165deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(139, 92, 246, 0.28);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    max-height: min(70vh, 520px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ratib-nav-shell .ratib-nav__menu.is-open .ratib-nav__platform-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .ratib-nav-shell .ratib-nav__menu.is-open .ratib-nav__platform-links .ratib-nav__link {
    width: 100%;
    box-sizing: border-box;
  }
}

.ratib-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.ratib-btn--primary {
  background: linear-gradient(135deg, var(--r-accent) 0%, #6b52a8 50%, var(--r-accent-2) 140%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(116, 96, 176, 0.22);
}

.ratib-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(116, 96, 176, 0.28);
  color: #fff;
}

.ratib-btn--ghost {
  background: transparent;
  border-color: var(--r-border);
  color: var(--r-text);
}

.ratib-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--r-text);
}

.ratib-btn--outline {
  border-color: rgba(124, 98, 200, 0.32);
  color: var(--r-text);
  background: rgba(124, 98, 200, 0.06);
}

.ratib-btn--outline:hover {
  border-color: rgba(124, 98, 200, 0.52);
  background: rgba(124, 98, 200, 0.11);
  color: #fff;
}

.ratib-btn--lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.9375rem;
}

.ratib-main {
  position: relative;
  z-index: 10;
  overflow-x: clip;
  max-width: 100%;
}

/* Main column headings & metric emphasis — muted slate (not pure white on dark bg) */
.ratib-main .ratib-section__title {
  color: #d8e1ec;
}

.ratib-main .ratib-analytics-card h3 {
  color: #c6d0dc;
}

.ratib-main .ratib-metric__val {
  color: #dce5f0;
}

.ratib-main .ratib-trust-card h3,
.ratib-main .ratib-ai-card h3 {
  color: #cad6e4;
}

.ratib-main .ratib-api-strip__title {
  color: #d8e1ec;
}

.ratib-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-cyan);
  margin: 0 0 0.75rem;
}

.ratib-text-gradient {
  background: linear-gradient(135deg, #a89ede 0%, #d98456 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Full brand title — horizontal flex, animated mixed colors (hero + nav) */
.ratib-brand-full {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.28em 0.42em;
  max-width: 100%;
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.ratib-brand-full--hero {
  font-size: clamp(0.95rem, 2.2vw, 1.5rem);
  gap: 0.28em 0.42em;
  max-width: min(44rem, 100%);
  line-height: 1.14;
}

.ratib-brand-full--hero .ratib-brand-letter {
  font-size: clamp(1.15rem, 3vw, 1.75rem);
  line-height: 1.05;
}

.ratib-brand-full--hero .ratib-brand-full__word {
  font-size: clamp(0.88rem, 2.15vw, 1.38rem);
  font-weight: 650;
}

.ratib-brand-full--nav {
  font-size: clamp(0.58rem, 1.1vw, 0.72rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 100%;
}

/* Nav header — matches screenshot: RATEB + Company, then two-line expansion */
.ratib-brand-full--nav-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  width: 100%;
  max-width: 100%;
}

.ratib-brand-full--nav-stack .ratib-brand-full__head {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.42em;
  line-height: 1.05;
  padding-bottom: 0.05rem;
}

.ratib-brand-full--nav-stack .ratib-brand-full__rateb {
  gap: 0.05em;
}

.ratib-brand-full--nav-stack .ratib-brand-letter {
  font-size: clamp(1.02rem, 2.35vw, 1.28rem);
  font-weight: 800;
  line-height: 1;
}

.ratib-brand-full--nav-stack .ratib-brand-full__word--company {
  font-size: clamp(0.76rem, 1.5vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.015em;
}

.ratib-brand-full--nav-stack .ratib-brand-full__tagline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  line-height: 1.3;
}

.ratib-brand-full--nav-stack .ratib-brand-full__tagline-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.3em;
  font-size: clamp(0.58rem, 1.05vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.012em;
}

.ratib-brand-full--nav-stack .ratib-brand-full__tagline-row .ratib-brand-full__word {
  font-size: inherit;
  font-weight: inherit;
}

.ratib-brand-full--nav-stack .ratib-brand-full__word--amp {
  font-weight: 700;
  opacity: 0.9;
}

.ratib-brand-full__rateb {
  display: inline-flex;
  gap: 0.02em;
  flex-shrink: 0;
}

.ratib-brand-letter {
  font-weight: 800;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ratibBrandLetterPulse 4.5s ease-in-out infinite;
}

.ratib-brand-letter--r {
  background-image: linear-gradient(135deg, #ff6b6b, #ff9f43);
  animation-delay: 0s;
}

.ratib-brand-letter--a {
  background-image: linear-gradient(135deg, #feca57, #f1c40f);
  animation-delay: 0.35s;
}

.ratib-brand-letter--t {
  background-image: linear-gradient(135deg, #2ecc71, #1dd1a1);
  animation-delay: 0.7s;
}

.ratib-brand-letter--e {
  background-image: linear-gradient(135deg, #54a0ff, #5dade2);
  animation-delay: 1.05s;
}

.ratib-brand-letter--b {
  background-image: linear-gradient(135deg, #a29bfe, #9b59b6);
  animation-delay: 1.4s;
}

.ratib-brand-full__word {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 220%;
  animation: ratibBrandWordShift 7s ease-in-out infinite;
}

.ratib-brand-full__word--company {
  background-image: linear-gradient(120deg, #f6d365, #fda085, #f6d365);
  font-weight: 700;
}

.ratib-brand-full__word--w1 {
  background-image: linear-gradient(120deg, #c4b5fd, #a78bfa, #818cf8, #c4b5fd);
  animation-delay: 0s;
}

.ratib-brand-full__word--w2 {
  background-image: linear-gradient(120deg, #93c5fd, #60a5fa, #38bdf8, #93c5fd);
  animation-delay: 0.6s;
}

.ratib-brand-full__word--amp {
  background-image: linear-gradient(120deg, #fcd34d, #fbbf24, #fcd34d);
  animation-delay: 1.1s;
  font-weight: 800;
}

.ratib-brand-full__word--w3 {
  background-image: linear-gradient(120deg, #6ee7b7, #34d399, #2dd4bf, #6ee7b7);
  animation-delay: 1.6s;
}

.ratib-brand-full__word--w4 {
  background-image: linear-gradient(120deg, #fda4af, #fb7185, #f472b6, #fda4af);
  animation-delay: 2.1s;
}

.ratib-brand-full__word--w5 {
  background-image: linear-gradient(120deg, #e9d5ff, #d8b4fe, #c084fc, #e9d5ff);
  animation-delay: 2.6s;
}

@keyframes ratibBrandLetterPulse {
  0%,
  100% {
    filter: brightness(1) saturate(1);
    transform: translateY(0);
  }
  50% {
    filter: brightness(1.15) saturate(1.2);
    transform: translateY(-1px);
  }
}

@keyframes ratibBrandWordShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.ratib-nav__brand--stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 100%;
}

.ratib-nav__brand--stacked .ratib-nav__brand-logo {
  flex-shrink: 0;
}

.ratib-nav__brand--animated-title img,
.ratib-nav__brand--animated-title .ratib-nav__brand-logo,
.ratib-nav__brand--animated-title .ratib-nav__brand-text,
.ratib-nav__brand:has(.ratib-brand-full) img,
.ratib-nav__brand:has(.ratib-brand-full) .ratib-nav__brand-text {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

@media (max-width: 1099px) {
  .ratib-nav__brand-block--animated {
    max-width: min(19rem, 56vw);
    padding: 0.38rem 0.55rem 0.36rem;
  }

  .ratib-brand-full--nav-stack .ratib-brand-letter {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .ratib-brand-full--nav-stack .ratib-brand-full__word--company {
    font-size: clamp(0.72rem, 2.6vw, 0.88rem);
  }

  .ratib-brand-full--nav-stack .ratib-brand-full__tagline-row {
    font-size: clamp(0.56rem, 2.4vw, 0.68rem);
  }
}

@media (max-width: 599px) {
  .ratib-nav-shell__inner {
    min-height: 80px;
    padding-block: 0.45rem 0.5rem;
  }

  .ratib-nav__brand-block--animated {
    max-width: min(17rem, 68vw);
    gap: 0.28rem;
    padding: 0.32rem 0.48rem 0.3rem;
    border-radius: 12px;
  }

  .ratib-brand-full--hero {
    font-size: clamp(0.82rem, 3.6vw, 1.05rem);
    gap: 0.22em 0.32em;
  }

  .ratib-brand-full--nav-stack .ratib-brand-letter {
    font-size: 0.94rem;
  }

  .ratib-brand-full--nav-stack .ratib-brand-full__word--company {
    font-size: 0.7rem;
  }

  .ratib-brand-full--nav-stack .ratib-brand-full__tagline-row {
    font-size: 0.54rem;
    gap: 0.2em 0.3em;
  }

  .ratib-nav__brand-profile {
    font-size: 0.64rem;
    padding: 0.2rem 0.52rem;
  }
}

.ratib-nav__brand-block--animated .ratib-brand-full__tagline,
.ratib-nav__brand-block--animated .ratib-brand-full__word--w1,
.ratib-nav__brand-block--animated .ratib-brand-full__word--w2,
.ratib-nav__brand-block--animated .ratib-brand-full__word--w3,
.ratib-nav__brand-block--animated .ratib-brand-full__word--w4,
.ratib-nav__brand-block--animated .ratib-brand-full__word--w5,
.ratib-nav__brand-block--animated .ratib-brand-full__word--amp {
  display: none !important;
}

@media (min-width: 1100px) {
  .ratib-nav__brand-block--animated {
    max-width: 17.5rem;
    min-width: 0;
  }

  .ratib-brand-full--nav-stack .ratib-brand-letter {
    font-size: 1.28rem;
  }

  .ratib-brand-full--nav-stack .ratib-brand-full__word--company {
    font-size: 0.92rem;
  }

  .ratib-brand-full--nav-stack .ratib-brand-full__tagline-row {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ratib-brand-letter,
  .ratib-brand-full__word {
    animation: none;
  }
}

/* Hero */
.ratib-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}

.ratib-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .ratib-hero__grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.ratib-hero__title {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  max-width: min(44rem, 100%);
}

.ratib-hero__title .ratib-brand-full--hero {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.ratib-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--r-muted);
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.ratib-hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: #cbd5e1;
}

.ratib-hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.ratib-hero__bullets i {
  margin-top: 2px;
  color: var(--r-accent);
  width: 1rem;
}

.ratib-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ratib-hero__photo-strip {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ratib-hero__photo-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.88);
  margin: 0 0 1rem;
}

.ratib-hero__photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ratib-hero__photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  }
}

.ratib-hero__photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--r-border);
  background: rgba(15, 23, 42, 0.45);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(139, 92, 246, 0.06) inset;
}

.ratib-hero__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
}

.ratib-hero__photo figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--r-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.35);
}

/* Dashboard mockup */
.ratib-dash {
  border-radius: 18px;
  border: 1px solid var(--r-border);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.65) 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(139, 92, 246, 0.12) inset;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.ratib-dash__chrome {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.55rem 1rem 0.65rem;
  border-bottom: 1px solid var(--r-border);
  background: rgba(0, 0, 0, 0.25);
}

.ratib-dash__chrome-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ratib-dash__chrome-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.625rem;
  font-family: var(--r-mono);
  color: #94a3b8;
  line-height: 1.3;
}

.ratib-dash__sep {
  opacity: 0.45;
  user-select: none;
}

.ratib-dash__panel-id {
  color: #cbd5e1;
}

.ratib-dash__sync {
  color: #a5b4fc;
}

.ratib-sync-label {
  opacity: 0.75;
  margin-right: 0.15rem;
}

.ratib-mono-ops {
  letter-spacing: 0.02em;
}

.ratib-env-tag {
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  font-weight: 700;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ratib-dash__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #475569;
}

.ratib-dash__dot:first-child {
  background: #f87171;
}
.ratib-dash__dot:nth-child(2) {
  background: #fbbf24;
}
.ratib-dash__dot:nth-child(3) {
  background: #34d399;
}

.ratib-dash__title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--r-mono);
  color: var(--r-muted);
}

.ratib-dash__live {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--r-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ratib-dash__body {
  display: grid;
  grid-template-columns: 120px 1fr;
  min-height: 280px;
}

@media (max-width: 520px) {
  .ratib-dash__body {
    grid-template-columns: 1fr;
  }
  .ratib-dash__sidebar {
    flex-direction: row !important;
    flex-wrap: wrap;
    border-right: none !important;
    border-bottom: 1px solid var(--r-border);
  }
}

.ratib-dash__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  border-right: 1px solid var(--r-border);
  background: rgba(0, 0, 0, 0.2);
}

.ratib-dash__nav-item {
  font-size: 0.6875rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  color: var(--r-muted);
}

.ratib-dash__nav-item--active {
  background: rgba(139, 92, 246, 0.2);
  color: #e9d5ff;
}

.ratib-dash__main {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ratib-dash__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.ratib-kpi {
  background: var(--r-surface);
  border: 1px solid var(--r-border);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
}

.ratib-kpi__label {
  display: block;
  font-size: 0.625rem;
  color: var(--r-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ratib-kpi__value {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--r-mono);
  color: #dce5f0;
}

.ratib-kpi__delta {
  font-size: 0.625rem;
  color: var(--r-muted);
}

.ratib-kpi__delta--up {
  color: var(--r-green);
}

.ratib-dash__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}

.ratib-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.625rem;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
  color: #cbd5e1;
}

.ratib-signal--ok {
  border-color: rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
}

.ratib-signal--pulse {
  border-color: rgba(167, 139, 250, 0.35);
  color: #ddd6fe;
  animation: none;
}

@keyframes ratibSignalPulse {
  50% {
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.22);
  }
}

.ratib-micro-delta {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--r-muted);
  margin-left: 0.35rem;
}

.ratib-micro-delta--ok {
  color: #6ee7b7;
}

.ratib-pill--subtle {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  font-weight: 600;
}

.ratib-dash__panel {
  border-radius: 10px;
  border: 1px solid var(--r-border);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.65rem;
}

.ratib-dash__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.6875rem;
  color: var(--r-muted);
  margin-bottom: 0.5rem;
}

.ratib-pill {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.25);
  color: #ddd6fe;
}

.ratib-pill--muted {
  background: rgba(148, 163, 184, 0.15);
  color: var(--r-muted);
}

.ratib-pill--accent {
  background: rgba(249, 115, 22, 0.22);
  color: #fdba74;
}

.ratib-stagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ratib-stage {
  font-size: 0.625rem;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--r-muted);
  border: 1px solid transparent;
}

.ratib-stage--done {
  border-color: rgba(52, 211, 153, 0.35);
  color: var(--r-green);
}

.ratib-stage--active {
  border-color: rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

.ratib-mapstrip {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.625rem;
  color: var(--r-muted);
}

.ratib-dash__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  font-size: 0.625rem;
  color: #94a3b8;
}

.ratib-dash__strong {
  color: #e2e8f0;
  font-weight: 600;
}

.ratib-dash__context {
  margin: 0;
  font-size: 0.625rem;
  color: #94a3b8;
}

.ratib-dash__corr {
  color: #a5b4fc;
}

.ratib-dash__workspace {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .ratib-dash__workspace {
    grid-template-columns: 1.28fr 1fr;
  align-items: stretch;
}
}

.ratib-dash__panel--table {
  padding: 0;
  overflow: hidden;
}

.ratib-dash__panel--table .ratib-dash__panel-head {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--r-border);
}

.ratib-dash-table-scroll {
  overflow-x: auto;
  max-height: 118px;
}

.ratib-dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.58rem;
  font-family: var(--r-mono);
}

.ratib-dash-table th {
  text-align: left;
  font-weight: 600;
  color: #64748b;
  padding: 0.32rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ratib-dash-table td {
  padding: 0.32rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.ratib-dash-num {
  color: #94a3b8;
}

.ratib-dash-tag {
  display: inline-block;
  font-size: 0.54rem;
  padding: 0.1rem 0.32rem;
  border-radius: 4px;
  font-weight: 600;
}

.ratib-dash-tag--warn {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.ratib-dash-tag--idle {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.ratib-dash-tag--ok {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.ratib-dash__sidecol {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ratib-dash__panel--stack {
  padding: 0.55rem 0.6rem;
}

.ratib-dash-qlist,
.ratib-dash-alerts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ratib-dash-qlist li {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.26rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.58rem;
  color: #cbd5e1;
}

.ratib-q-type {
  font-weight: 600;
}

.ratib-q-meta {
  color: #64748b;
  font-family: var(--r-mono);
  font-size: 0.52rem;
  text-align: right;
}

.ratib-dash-alerts__item {
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-family: var(--r-mono);
  font-size: 0.54rem;
  line-height: 1.35;
}

.ratib-dash-alerts__sev {
  display: inline-block;
  min-width: 2.35rem;
  margin-right: 0.35rem;
  font-weight: 700;
  font-size: 0.5rem;
}

.ratib-dash-alerts__item--info .ratib-dash-alerts__sev {
  color: #38bdf8;
}

.ratib-dash-alerts__item--warn .ratib-dash-alerts__sev {
  color: #fbbf24;
}

.ratib-dash__footer {
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 520px) {
  .ratib-dash__footer {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.ratib-dash-ledger {
  border-radius: 10px;
  border: 1px solid var(--r-border);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.45rem 0.55rem;
}

.ratib-dash-ledger__head {
  font-size: 0.58rem;
  margin-bottom: 0.3rem;
  color: #64748b;
}

.ratib-dash-ledger__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.54rem;
  color: #94a3b8;
}

.ratib-dash-ledger__rows li {
  padding: 0.18rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ratib-dash__charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ratib-chart {
  border-radius: 10px;
  border: 1px solid var(--r-border);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
}

.ratib-chart__legend {
  font-size: 0.625rem;
  color: var(--r-muted);
  margin-bottom: 0.35rem;
}

.ratib-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
}

.ratib-chart__bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0.15));
  min-height: 12%;
  animation: none;
}

.ratib-chart__bars i:nth-child(2) {
  animation-delay: 0.2s;
}
.ratib-chart__bars i:nth-child(3) {
  animation-delay: 0.4s;
}
.ratib-chart__bars i:nth-child(4) {
  animation-delay: 0.6s;
}
.ratib-chart__bars i:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes ratibBar {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
    filter: brightness(1.15);
  }
}

.ratib-spark {
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
  position: relative;
  overflow: hidden;
}

.ratib-spark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 100%
  );
  animation: none;
}

@keyframes ratibSpark {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Sections */
.ratib-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
}

.ratib-section__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.ratib-section__head--left {
  text-align: left;
  margin-left: 0;
}

.ratib-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.ratib-section__sub {
  margin: 0;
  color: var(--r-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.ratib-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ratib-trust-card {
  padding: 1.35rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-border);
  background: var(--r-surface);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ratib-trust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ratib-trust-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  margin-bottom: 0.85rem;
}

.ratib-trust-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.ratib-trust-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--r-muted);
  line-height: 1.55;
}

.ratib-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ratib-feature-card {
  padding: 1.25rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-border);
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.ratib-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.35);
}

.ratib-feature-card__icon {
  font-size: 1.25rem;
  color: var(--r-accent-2);
  margin-bottom: 0.75rem;
}

.ratib-feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.ratib-feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--r-muted);
  line-height: 1.55;
}

/* Pipeline */
.ratib-pipeline-section {
  overflow: hidden;
}

.ratib-pipeline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding: 1rem 0;
}

.ratib-pipeline__track {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 1.15rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.4), rgba(139, 92, 246, 0.6), rgba(249, 115, 22, 0.3));
  border-radius: 2px;
  z-index: 0;
}

.ratib-pipeline__item {
  position: relative;
  z-index: 1;
  flex: 0 1 100px;
  text-align: center;
  padding: 0.35rem;
}

.ratib-pipeline__dot {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  background: var(--r-border);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.ratib-pipeline__item--complete .ratib-pipeline__dot {
  background: var(--r-green);
  border-color: rgba(47, 168, 128, 0.42);
  box-shadow: 0 0 10px rgba(47, 168, 128, 0.28);
}

.ratib-pipeline__item--active .ratib-pipeline__dot {
  background: var(--r-accent);
  border-color: #b8a8d8;
  box-shadow: 0 0 12px rgba(116, 96, 176, 0.32);
  animation: ratibPulseDot 1.8s ease infinite;
}

.ratib-pipeline__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}

.ratib-pipeline__meta {
  font-size: 0.625rem;
  color: var(--r-muted);
}

/* AI section */
.ratib-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ratib-ai-card {
  padding: 1.35rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-border);
  background: linear-gradient(155deg, rgba(139, 92, 246, 0.08), rgba(15, 23, 42, 0.5));
}

.ratib-ai-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .ratib-ai-card--wide {
    grid-column: span 2;
  }
}

.ratib-ai-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.ratib-ai-card p {
  margin: 0 0 0.75rem;
  color: var(--r-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ratib-ai-visual {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.ratib-ai-row {
  font-size: 0.8125rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--r-radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--r-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Ecosystem */
.ratib-eco__viz {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.ratib-eco__core {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(139, 92, 246, 0.2), rgba(15, 23, 42, 0.8));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.ratib-eco__core-label {
  display: block;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.ratib-eco__core-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--r-muted);
  font-family: var(--r-mono);
}

.ratib-eco__spokes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.ratib-eco__spoke {
  padding: 1rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-border);
  background: var(--r-surface);
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.ratib-eco__spoke:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.3);
}

.ratib-eco__spoke small {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--r-muted);
}

.ratib-eco__spoke--accent {
  border-color: rgba(249, 115, 22, 0.4);
}

/* Analytics */
.ratib-analytics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.ratib-analytics-card {
  padding: 1.25rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-border);
  background: rgba(255, 255, 255, 0.02);
}

.ratib-analytics-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.ratib-analytics-card p {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: var(--r-muted);
}

.ratib-metric__val {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--r-mono);
}

.ratib-metric__note {
  display: block;
  font-size: 0.75rem;
  color: var(--r-muted);
  margin-top: 0.15rem;
}

.ratib-metric__chart {
  display: block;
  margin-top: 0.65rem;
  height: 40px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.ratib-metric__chart--line {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.15), rgba(139, 92, 246, 0.35));
}

.ratib-metric__chart--line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--r-green), var(--r-accent));
  border-radius: 2px;
}

.ratib-metric__chart--bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px;
}

.ratib-metric__chart--bars::before,
.ratib-metric__chart--bars::after {
  content: "";
  flex: 1;
  border-radius: 2px;
  background: rgba(139, 92, 246, 0.5);
  height: 35%;
}

.ratib-metric__chart--bars::after {
  height: 65%;
  background: rgba(249, 115, 22, 0.55);
}

/* API strip */
.ratib-api-strip {
  padding: 2.5rem 0;
}

.ratib-api-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--r-radius);
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
}

.ratib-api-strip__title {
  margin: 0.35rem 0;
  font-size: 1.35rem;
}

.ratib-api-strip__sub {
  margin: 0;
  color: var(--r-muted);
  max-width: 36rem;
  font-size: 0.95rem;
}

/* Pricing (compat + SaaS) */
.pricing-section.ratib-pricing-saas {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.pricing-section.ratib-pricing-saas .pricing-section h2 {
  animation: none;
}

.pricing-row--three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  animation: none !important;
}

.price-card--featured {
  border-color: rgba(139, 92, 246, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.2) inset,
    0 24px 48px rgba(139, 92, 246, 0.12);
  transform: scale(1.02);
}

@media (max-width: 899px) {
  .price-card--featured {
    transform: none;
  }
}

.card-plan-note {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--r-muted);
  margin-top: 0.15rem;
}

.card-badge--muted {
  background: rgba(148, 163, 184, 0.25) !important;
  color: #e2e8f0 !important;
}

.card-price-saas {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.btn-register-starter {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--r-text) !important;
  border: 1px solid var(--r-border);
}

.btn-register-starter:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Video */
.ratib-video {
  padding-bottom: 0;
}

.ratib-video .video-caption {
  color: var(--r-muted);
  margin-bottom: 1.25rem;
}

.video-section.ratib-video {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.ratib-hero__video-band.video-section.ratib-video {
  padding-top: clamp(1.15rem, 2.8vw, 1.85rem);
  padding-bottom: clamp(0.85rem, 2vw, 1.35rem);
  margin-top: clamp(1rem, 2.8vw, 1.75rem);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ratib-hero__video-head.ratib-section__head {
  margin-bottom: 1.1rem;
  text-align: left;
}

.ratib-hero__video-title {
  font-size: clamp(1.35rem, 2.45vw, 1.85rem);
}

.ratib-video--hero .ratib-video__shell {
  max-width: min(680px, 100%);
}

.ratib-hero__photo--program img {
  object-fit: contain;
  background: #020617;
}

.ratib-video__shell {
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.ratib-video .ratib-video__shell .video-wrap {
  border-radius: 14px;
}

.video-wrap {
  border: 1px solid var(--r-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-wrap video.home-video-player {
  display: block;
  width: 100%;
  max-height: min(34vh, 300px);
  height: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Homepage CMS: videos + program images as compact horizontal scroll rows */
.ratib-cms-media-strip {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  margin-top: 0.35rem;
  padding-bottom: 0.5rem;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.ratib-cms-media-strip__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  width: max-content;
  max-width: 100%;
  padding: 0.2rem 0;
}

.ratib-cms-media-strip__item--video {
  flex: 0 0 auto;
  width: min(300px, 82vw);
  scroll-snap-align: start;
}

.ratib-cms-media-strip__video-wrap.video-wrap {
  max-height: none;
}

.ratib-cms-media-strip__video-wrap video.home-video-player,
.ratib-cms-media-strip__video-wrap .ratib-cms-media-strip__video {
  max-height: min(48vw, 220px);
  width: 100%;
  object-fit: contain;
}

.ratib-cms-media-strip--program .ratib-cms-media-strip__track--program {
  align-items: stretch;
}

.ratib-cms-media-strip__item--program {
  flex: 0 0 auto;
  width: min(260px, 78vw);
  scroll-snap-align: start;
}

.ratib-cms-media-strip__item--program .ratib-hero__photo {
  margin: 0;
  height: 100%;
}

.ratib-cms-media-strip__item--program .ratib-hero__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(44vw, 220px);
  min-height: 120px;
  object-fit: cover;
}

/* Program strip: auto marquee (JS scroll) + wheel pan + drag + scrollbar + edge buttons + click-to-zoom */
.ratib-cms-media-strip.ratib-program-marquee {
  overflow: visible;
}

.ratib-program-marquee__shell {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.35rem;
  position: relative;
}

.ratib-program-marquee__shell .ratib-program-marquee__viewport {
  margin-top: 0;
  flex: 1;
  min-width: 0;
}

.ratib-program-strip-hint {
  margin: 0.35rem 0 0.15rem;
  max-width: 52rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(203, 213, 225, 0.94);
}

.ratib-program-strip-empty {
  margin: 0.45rem 0 0;
  max-width: 48rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px dashed rgba(167, 139, 250, 0.45);
  background: rgba(15, 23, 42, 0.65);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.96);
}

.ratib-hero__program-strip--empty .ratib-hero__photo-eyebrow {
  margin-bottom: 0.25rem;
}

.ratib-program-marquee__scroll-btn {
  flex-shrink: 0;
  align-self: center;
  width: 2.85rem;
  min-width: 2.85rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: linear-gradient(145deg, rgba(109, 40, 217, 0.95), rgba(59, 130, 246, 0.82));
  color: #f8fafc;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    filter 0.15s ease,
    transform 0.12s ease,
    border-color 0.15s ease;
  box-shadow:
    0 4px 16px rgba(76, 29, 149, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.4) inset;
}

.ratib-program-marquee__scroll-btn:hover {
  filter: brightness(1.08);
  border-color: rgba(196, 181, 253, 0.85);
}

.ratib-program-marquee__scroll-btn:active {
  transform: scale(0.97);
}

.ratib-program-marquee__scroll-btn:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.95);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .ratib-program-marquee__scroll-btn {
    width: 2rem;
    min-width: 2rem;
    height: 2.6rem;
    font-size: 1.2rem;
  }
}

.ratib-program-marquee__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  border-radius: 12px;
  scroll-behavior: auto;
  touch-action: pan-x pinch-zoom;
}

/* JS-driven loop: thin scrollbar so users can drag it manually */
.ratib-program-marquee--js-marquee .ratib-program-marquee__viewport {
  cursor: default;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) rgba(15, 23, 42, 0.35);
}

.ratib-program-marquee--js-marquee .ratib-program-marquee__viewport::-webkit-scrollbar {
  height: 8px;
}

.ratib-program-marquee--js-marquee .ratib-program-marquee__viewport::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.ratib-program-marquee--js-marquee .ratib-program-marquee__viewport::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
}

.ratib-program-marquee--js-marquee .ratib-program-marquee__viewport:hover {
  cursor: grab;
}

.ratib-program-marquee__viewport.ratib-program-marquee__viewport--dragging {
  cursor: grabbing;
  user-select: none;
}

.ratib-program-marquee--no-motion .ratib-program-marquee__viewport:hover {
  cursor: grab;
}

.ratib-program-marquee--no-motion .ratib-program-marquee__viewport {
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.ratib-program-strip__thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}

.ratib-program-strip__thumb:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.95);
  outline-offset: 3px;
}

.ratib-program-strip__thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  vertical-align: top;
}

body.ratib-program-lightbox-open {
  overflow: hidden;
}

.ratib-program-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: min(2rem, 5vw);
  overflow: visible;
}

.ratib-program-lightbox[hidden] {
  display: none !important;
}

.ratib-program-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(6px);
}

.ratib-program-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 900px);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
}

/* Prev / Next sit on the image (bottom overlay) so they stay visible while viewing any screenshot. */
.ratib-program-lightbox__stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.ratib-program-lightbox__overlay-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  padding: 0.65rem 0.75rem 0.85rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.55) 55%, transparent 100%);
  pointer-events: none;
}

.ratib-program-lightbox__overlay-nav[hidden] {
  display: none !important;
}

.ratib-program-lightbox__overlay-nav .ratib-program-lightbox__btn {
  pointer-events: auto;
}

.ratib-program-lightbox__overlay-nav .ratib-program-lightbox__counter {
  pointer-events: none;
}

.ratib-program-lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.85rem;
  padding: 0.45rem 1.15rem;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.95), rgba(59, 130, 246, 0.85));
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(76, 29, 149, 0.35);
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    border-color 0.12s ease;
}

.ratib-program-lightbox__btn:hover {
  filter: brightness(1.07);
  border-color: rgba(196, 181, 253, 0.85);
}

.ratib-program-lightbox__btn:active {
  transform: scale(0.98);
}

.ratib-program-lightbox__btn:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.95);
  outline-offset: 3px;
}

.ratib-program-lightbox__btn-ic {
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.95;
}

@media (max-width: 520px) {
  .ratib-program-lightbox__btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 8rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }
}

.ratib-program-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 800px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 0;
  vertical-align: middle;
}

.ratib-program-lightbox__caption {
  margin: 0;
  max-width: min(56rem, 92vw);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.45;
}

.ratib-program-lightbox__caption[hidden] {
  display: none !important;
}

.ratib-program-lightbox__counter {
  margin: 0;
  min-width: 4.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  letter-spacing: 0.08em;
}

.ratib-program-lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ratib-program-lightbox__close:hover {
  background: rgba(30, 41, 59, 0.95);
}

@media (max-width: 640px) {
  .ratib-program-lightbox__close {
    top: -0.5rem;
    right: -0.25rem;
  }
}

.video-fallback-box {
  background: rgba(0, 0, 0, 0.35);
}

/* Final CTA */
.ratib-final-cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  margin-top: 2rem;
}

.ratib-final-cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(139, 92, 246, 0.2), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(249, 115, 22, 0.12), transparent);
  pointer-events: none;
}

.ratib-final-cta__inner {
  position: relative;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.ratib-final-cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #dce5f0;
}

.ratib-final-cta__sub {
  color: var(--r-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
}

.ratib-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.ratib-footer-enterprise {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--r-border);
  background: rgba(2, 6, 17, 0.92);
  padding-top: 3rem;
}

.ratib-footer-enterprise__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr) 1.2fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 1100px) {
  .ratib-footer-enterprise__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ratib-footer-enterprise__grid {
    grid-template-columns: 1fr;
  }
}

.ratib-footer-enterprise__brand p {
  color: var(--r-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
  max-width: 22rem;
}

.ratib-footer-enterprise__logo {
  display: inline-flex;
  align-items: center;
}

.ratib-footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.ratib-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ratib-footer-enterprise .ratib-footer-col ul.ratib-footer-enterprise__link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ratib-footer-enterprise .ratib-footer-col ul.ratib-footer-enterprise__link-list > li {
  margin-bottom: 0;
}

.ratib-footer-col li {
  margin-bottom: 0.45rem;
}

.ratib-footer-enterprise .ratib-footer-col a.ratib-nav__link.ratib-footer-enterprise__nav-link {
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
  font-size: 0.92rem;
}

.ratib-footer-enterprise .ratib-footer-col .ratib-nav__label {
  white-space: normal;
  line-height: 1.25;
}

.ratib-footer-enterprise .ratib-nav__icon--fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ratib-footer-enterprise .ratib-nav__icon--fa.fab {
  font-size: 1.22rem;
}

.ratib-footer-enterprise .ratib-nav__icon--fa.fas {
  font-size: 1.05rem;
}

/* External-only pills (no hash match): align with header semantics */
.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--customer-portal .ratib-nav__icon {
  --ratib-pulse: rgba(245, 158, 11, 0.55);
  color: #fffbeb;
  background: linear-gradient(145deg, rgba(217, 119, 6, 0.38), rgba(69, 26, 3, 0.72));
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.26);
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--customer-portal .ratib-nav__label {
  color: #fef3c7;
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--customer-portal {
  color: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.22), rgba(69, 26, 3, 0.42));
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.18);
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--customer-portal:hover {
  color: #ffffff;
  border-color: rgba(253, 224, 71, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.32), rgba(92, 46, 15, 0.45));
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--support-tickets .ratib-nav__icon {
  --ratib-pulse: rgba(99, 102, 241, 0.55);
  color: #eef2ff;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.52), rgba(49, 46, 129, 0.72));
  border-color: rgba(129, 140, 248, 0.55);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.28);
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--support-tickets .ratib-nav__label {
  color: #e0e7ff;
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--support-tickets:hover {
  color: #eef2ff;
  border-color: rgba(165, 180, 252, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(55, 48, 163, 0.12));
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--whatsapp .ratib-nav__icon {
  --ratib-pulse: rgba(52, 211, 153, 0.5);
  color: #ecfdf5;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.52), rgba(6, 78, 59, 0.72));
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 6px 22px rgba(52, 211, 153, 0.26);
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--whatsapp .ratib-nav__label {
  color: #a7f3d0;
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--whatsapp:hover {
  color: #ecfdf5;
  border-color: rgba(110, 231, 183, 0.45);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.18), rgba(6, 95, 70, 0.12));
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--phone .ratib-nav__icon {
  --ratib-pulse: rgba(56, 189, 248, 0.52);
  color: #e0f2fe;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.48), rgba(12, 74, 110, 0.72));
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.26);
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--phone .ratib-nav__label {
  color: #bae6fd;
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--phone:hover {
  color: #f0f9ff;
  border-color: rgba(125, 211, 252, 0.45);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(8, 47, 73, 0.12));
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--mailto .ratib-nav__icon {
  --ratib-pulse: rgba(251, 113, 133, 0.52);
  color: #fff1f2;
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.48), rgba(136, 19, 55, 0.68));
  border-color: rgba(253, 164, 175, 0.55);
  box-shadow: 0 6px 22px rgba(251, 113, 133, 0.26);
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--mailto .ratib-nav__label {
  color: #fecdd3;
}

.ratib-footer-enterprise .ratib-nav__link.ratib-footer-link--mailto:hover {
  color: #fff1f2;
  border-color: rgba(254, 205, 211, 0.48);
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.18), rgba(159, 18, 57, 0.12));
}

.ratib-footer-col a:not(.ratib-nav__link) {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.ratib-footer-col a:not(.ratib-nav__link):hover {
  color: #fff;
}

.ratib-footer-enterprise__infra-copy {
  font-size: 0.85rem;
  color: var(--r-muted);
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.ratib-footer-social {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ratib-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--r-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--r-muted);
  transition:
    color 0.15s,
    border-color 0.15s;
}

.ratib-footer-social a:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.45);
}

.ratib-footer-newsletter__label {
  display: block;
  font-size: 0.75rem;
  color: var(--r-muted);
  margin-bottom: 0.35rem;
}

.ratib-footer-newsletter input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--r-border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--r-text);
  margin-bottom: 0.4rem;
}

.ratib-footer-newsletter .btn-sub {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--r-accent), #7c3aed);
  color: #fff;
  cursor: pointer;
}

.ratib-footer-enterprise__bottom {
  border-top: 1px solid var(--r-border);
  padding: 1rem 0;
}

.ratib-footer-enterprise__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--r-muted);
}

.ratib-footer-enterprise__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Register + form (legacy hooks) */
.ratib-register-wrap.register-section {
  max-width: var(--r-max);
}

.register-section {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  padding: 2rem var(--r-space) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.register-section .ratib-info {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.register-section .ratib-info h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--r-text);
}

.register-section .ratib-info p {
  color: var(--r-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.register-section .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.register-section .checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--r-border);
}

.register-section .checklist li i {
  color: var(--r-green);
  margin-top: 2px;
  flex-shrink: 0;
}

.register-section .form-card {
  flex: 1;
  min-width: 300px;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.register-section .form-card h1 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--r-text);
}

.register-section .form-card .subtitle {
  color: var(--r-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.register-section .form-label {
  color: #94a3b8;
}

.register-section .form-control {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--r-border);
  color: var(--r-text);
}

.register-section .form-control:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.2);
}

.register-section .btn-submit {
  background: linear-gradient(135deg, var(--r-accent), #7c3aed) !important;
  border: none !important;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  width: 100%;
  border-radius: var(--r-radius-sm) !important;
}

.register-section .btn-submit:hover {
  filter: brightness(1.08);
}

.register-section.register-section-hidden {
  display: none;
}

.register-info-icon {
  color: var(--r-cyan);
}

.form-plan-hint {
  color: var(--r-cyan);
}

.plan-btn-form {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.plan-btn-pro,
.plan-btn-platinum {
  border: 2px solid var(--r-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--r-muted);
}

.plan-btn-gold {
  border: 2px solid rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
  color: #fbbf24;
}

.form-duration-label {
  margin-bottom: 0.5rem;
  display: block;
}

.form-year-btn {
  flex: 0 1 140px;
  min-width: 128px;
  padding: 0.42rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--r-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--r-muted);
  cursor: pointer;
}

.form-year-price {
  font-size: 0.75rem;
  opacity: 1;
  white-space: nowrap;
}

.plan-btn-form .promo-old,
.plan-btn-form .promo-new,
.year-price-small .promo-old,
.year-price-small .promo-new,
.form-year-price .promo-old,
.form-year-price .promo-new {
  display: inline-block;
}

.year-price-small,
.form-year-price {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem;
}

.year-btn[data-years]:not([data-years="0"]):not([data-years="1"]),
.form-year-btn[data-years]:not([data-years="0"]):not([data-years="1"]) {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.payment-placeholder-box {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--r-radius-sm);
  padding: 1rem;
  color: #c4b5fd;
  font-size: 0.9rem;
}

.payment-placeholder-icon {
  color: #c4b5fd;
}

.payment-summary-panel {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius-sm);
  padding: 1rem;
}

.payment-summary-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--r-yellow);
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--r-border);
}

.payment-summary-muted {
  color: var(--r-muted);
}

.payment-summary-value {
  color: var(--r-text);
  font-weight: 600;
}

.payment-summary-total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--r-yellow);
}

.ratib-ngenius-currency-note {
  color: #94a3b8;
  line-height: 1.45;
  font-size: 0.8125rem;
  border-top: 1px solid var(--r-border);
  padding-top: 0.65rem;
}

.ratib-ngenius-sar-total {
  color: #e2e8f0;
}

.payment-summary-footnote {
  color: var(--r-muted);
}

.payment-summary-footnote-icon {
  color: var(--r-yellow);
}

/* Price cards detail */
.pricing-section h2 {
  text-align: left;
  animation: none;
}

.pricing-section .ratib-section__head .ratib-section__title {
  text-align: center;
}

.pricing-row {
  justify-content: stretch;
}

.price-card {
  flex: 1;
  min-width: 0;
  max-width: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--r-border);
  border-radius: var(--r-radius);
  padding: 1.75rem 1.5rem;
}

.price-card .card-plan {
  font-size: 1.15rem;
}

.price-card.gold .card-plan {
  color: #e9d5ff;
}

.price-card.platinum .card-plan {
  color: #fde68a;
}

.price-card .card-features li {
  color: #cbd5e1;
}

.price-card .card-price-old {
  color: #64748b;
}

.year-btn-card {
  flex: 0 1 116px;
  min-width: 108px;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--r-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--r-muted);
}

.year-btn-gold-active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.55);
  color: #e9d5ff;
}

.year-btn-platinum-active {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.year-btn-neutral {
  background: rgba(255, 255, 255, 0.04);
}

.promo-old {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.82em;
  text-decoration-line: line-through;
  color: #64748b;
}

.promo-new {
  display: inline-block;
  font-size: 1.05em;
  font-weight: 800;
  color: #fff;
}

.gold-year-btn.active {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4);
}

.plan-year-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-card .btn-register {
  border-radius: 999px;
}

.price-card.gold .btn-register {
  background: linear-gradient(135deg, var(--r-accent), #7c3aed);
  color: #fff;
}

.price-card.platinum .btn-register {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #0f172a;
}

/* Bootstrap alert in register */
.register-section .alert-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

/* =============================================================================
   PHASE 2 — Premium enterprise polish (motion, depth, rhythm)
   Preserves all existing selectors; additive overrides only.
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Film grain + vignette — readability-preserving */
body.ratib-saas-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

body.ratib-saas-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 85% 65% at 50% 40%, transparent 35%, rgba(5, 8, 22, 0.55) 100%);
}

/* Background depth — third orb + finer grid */
.ratib-saas-bg::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: 45%;
  bottom: 25%;
  border-radius: 50%;
  filter: blur(72px);
  background: rgba(34, 211, 238, 0.12);
  animation: ratibOrbFloat 22s ease-in-out infinite;
  animation-delay: -5s;
}

.ratib-saas-bg__grid {
  opacity: 0.28;
  background-size: 48px 48px;
}

/* Typography rhythm */
.ratib-section__title {
  line-height: 1.15;
  font-weight: 750;
}

.ratib-section__sub {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.ratib-section__head--left .ratib-section__sub {
  margin-left: 0;
}

/* Section flow — soft separators */
.ratib-main > .ratib-section + .ratib-section {
  position: relative;
}

.ratib-main > .ratib-section + .ratib-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: min(92%, 56rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.45) 25%,
    rgba(34, 211, 238, 0.22) 50%,
    rgba(249, 115, 22, 0.2) 75%,
    transparent
  );
  pointer-events: none;
}

.ratib-main > .pricing-section.ratib-pricing-saas::before,
.ratib-main > .video-section.ratib-video::before,
.ratib-main > .ratib-final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: min(92%, 56rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.35), transparent);
  pointer-events: none;
}

.pricing-section.ratib-pricing-saas,
.video-section.ratib-video,
.ratib-final-cta {
  position: relative;
}

/* --- Hero premium --- */
.ratib-hero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}

.ratib-hero__grid {
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: stretch;
}

.ratib-eyebrow {
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: rgba(27, 176, 203, 0.78);
}

.ratib-hero__title {
  max-width: 100%;
  line-height: 1.16;
  font-weight: 750;
  color: #e8edf7;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.ratib-text-gradient {
  background: linear-gradient(122deg, #d4c4ee 0%, #b8a8e0 26%, #9888c8 48%, #c87850 76%, #dcb090 100%);
  background-size: 140% 140%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ratibHeroGradient 10s ease infinite;
  filter: drop-shadow(0 0 14px rgba(130, 118, 168, 0.14));
}

@keyframes ratibHeroGradient {
  0%,
  100% {
    background-position: 0% 40%;
  }
  50% {
    background-position: 100% 60%;
  }
}

.ratib-hero__lead {
  font-size: 1rem;
  line-height: 1.62;
  max-width: 36rem;
  color: #b8c4d4;
  letter-spacing: 0.01em;
}

/* Micro-feature list */
.ratib-hero__bullets {
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.ratib-hero__bullets li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 0.75rem;
  border-radius: var(--r-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(124, 98, 200, 0.035));
  align-items: center;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.ratib-hero__bullets li:hover {
  border-color: rgba(124, 98, 200, 0.28);
  box-shadow:
    0 0 0 1px rgba(124, 98, 200, 0.09),
    0 12px 36px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.ratib-hero__bullets i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0;
  border-radius: 8px;
  font-size: 0.75rem;
  background: rgba(124, 98, 200, 0.12);
  color: #cec6e8;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(124, 98, 200, 0.08);
}

.ratib-hero__bullets li:nth-child(1) i {
  background: rgba(56, 189, 248, 0.15);
  color: #bae6fd;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.14);
}

.ratib-hero__bullets li:nth-child(2) i {
  background: rgba(217, 70, 239, 0.14);
  color: #f5d0fe;
  box-shadow: 0 0 14px rgba(217, 70, 239, 0.16);
}

.ratib-hero__bullets li:nth-child(3) i {
  background: rgba(52, 211, 153, 0.14);
  color: #a7f3d0;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.14);
}

.ratib-hero__bullets li:nth-child(4) i {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.14);
}

.ratib-hero__actions {
  gap: 0.85rem;
}

.ratib-btn--primary {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 6px 20px rgba(116, 96, 176, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.ratib-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.ratib-btn--primary:hover::after {
  transform: translateX(120%);
}

.ratib-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 14px 38px rgba(116, 96, 176, 0.34),
    0 0 22px rgba(208, 104, 56, 0.12);
}

.ratib-btn--outline {
  box-shadow: 0 0 0 1px rgba(124, 98, 200, 0.18) inset;
  backdrop-filter: blur(8px);
}

.ratib-btn--outline:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(116, 96, 176, 0.16),
    0 0 0 1px rgba(148, 130, 188, 0.32) inset;
}

.ratib-btn:active {
  transform: translateY(0);
}

/* --- Command dashboard — depth & live motion --- */
.ratib-hero__visual {
  perspective: 1200px;
}

.ratib-dash {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(15, 23, 42, 0.88) 100%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.35),
    0 32px 96px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(139, 92, 246, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: none;
}

@keyframes ratibDashFloat {
  0%,
  100% {
    transform: rotateX(0deg) translateY(0);
  }
  50% {
    transform: rotateX(1.2deg) translateY(-4px);
  }
}

.ratib-dash::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    transparent 35%,
    transparent 65%,
    rgba(139, 92, 246, 0.25)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.ratib-dash__chrome {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(0, 0, 0, 0.35));
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.ratib-dash__live .ratib-live-dot {
  animation: ratibLiveBlink 1.4s ease-in-out infinite;
}

@keyframes ratibLiveBlink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(47, 168, 128, 0.45);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
    box-shadow: 0 0 12px rgba(47, 168, 128, 0.55);
  }
}

.ratib-kpi {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  animation: none;
}

.ratib-kpi::after {
  display: none;
}

@keyframes ratibKpiPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
  50% {
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.08);
  }
}

@keyframes ratibKpiSheen {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(350%);
  }
}

.ratib-stage--active {
  animation: none;
  box-shadow:
    0 0 10px rgba(116, 96, 176, 0.18),
    0 0 0 1px rgba(148, 130, 188, 0.28);
}

.ratib-mapstrip {
  padding: 0.45rem 0.5rem;
  margin-top: 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(27, 176, 203, 0.1);
}

.ratib-mapstrip i {
  animation: none;
}

@keyframes ratibIconPulse {
  50% {
    color: var(--r-cyan);
    filter: drop-shadow(0 0 4px rgba(27, 176, 203, 0.28));
  }
}

.ratib-chart__bars i {
  transform-origin: bottom center;
  animation: none;
}

.ratib-chart__bars i:nth-child(1) {
  animation-duration: 2.4s;
}
.ratib-chart__bars i:nth-child(2) {
  animation-duration: 2.8s;
}
.ratib-chart__bars i:nth-child(3) {
  animation-duration: 2.2s;
}
.ratib-chart__bars i:nth-child(4) {
  animation-duration: 3s;
}
.ratib-chart__bars i:nth-child(5) {
  animation-duration: 2.5s;
}

@keyframes ratibDashBarMotion {
  0%,
  100% {
    transform: scaleY(0.88);
    filter: brightness(0.92);
  }
  50% {
    transform: scaleY(1.08);
    filter: brightness(1.12);
  }
}

.ratib-spark {
  background: rgba(0, 0, 0, 0.35);
}

.ratib-spark::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 14px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 18 L15 8 L30 14 L45 4 L60 12 L75 6 L90 16 L105 10 L120 14 L120 24 L0 24 Z' fill='none' stroke='%2322d3ee' stroke-width='1.2' opacity='0.65'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
  opacity: 0.9;
  animation: none;
}

@keyframes ratibSparkPath {
  0%,
  100% {
    opacity: 0.65;
    transform: translateY(1px);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

/* Trust + feature cards — glass & glow */
.ratib-trust-card,
.ratib-feature-card {
  backdrop-filter: blur(12px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}

.ratib-trust-card:hover,
.ratib-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 98, 200, 0.32);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(124, 98, 200, 0.1) inset,
    0 0 22px rgba(124, 98, 200, 0.05);
}

.ratib-trust-card__icon {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ratib-trust-card:hover .ratib-trust-card__icon {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(116, 96, 176, 0.18);
}

.ratib-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
  margin-bottom: 0.85rem;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.18), rgba(139, 92, 246, 0.12));
  color: #fde68a;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ratib-feature-card:hover .ratib-feature-card__icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
}

.ratib-feature-card h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* #features — semantic tile accents (visible body styling; hue families align with header nav) */
section#features.ratib-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(380px, 48%);
  pointer-events: none;
  background: radial-gradient(ellipse 95% 90% at 50% -5%, rgba(99, 102, 241, 0.1), transparent 58%);
  z-index: 0;
}

section#features.ratib-section > .ratib-container {
  position: relative;
  z-index: 1;
}

.ratib-feature-card[class*="ratib-feature-card--tone"] {
  border-left-width: 3px;
  border-left-style: solid;
}

.ratib-feature-card--tone1 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.44), rgba(12, 74, 110, 0.78));
  border: 1px solid rgba(56, 189, 248, 0.52);
  color: #e0f2fe;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.22);
}

.ratib-feature-card--tone1 {
  border-left-color: rgba(56, 189, 248, 0.5);
}

.ratib-feature-card--tone1:hover {
  border-color: rgba(56, 189, 248, 0.22);
  border-left-color: rgba(125, 211, 252, 0.65);
}

.ratib-feature-card--tone1:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.28);
}

.ratib-feature-card--tone2 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(192, 38, 211, 0.48), rgba(91, 33, 182, 0.72));
  border: 1px solid rgba(232, 121, 249, 0.52);
  color: #fdf4ff;
  box-shadow: 0 4px 18px rgba(192, 38, 211, 0.26);
}

.ratib-feature-card--tone2 {
  border-left-color: rgba(217, 70, 239, 0.48);
}

.ratib-feature-card--tone2:hover {
  border-color: rgba(217, 70, 239, 0.22);
  border-left-color: rgba(232, 121, 249, 0.58);
}

.ratib-feature-card--tone2:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(217, 70, 239, 0.32);
}

.ratib-feature-card--tone3 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.46), rgba(6, 78, 59, 0.74));
  border: 1px solid rgba(52, 211, 153, 0.52);
  color: #ecfdf5;
  box-shadow: 0 4px 18px rgba(52, 211, 153, 0.2);
}

.ratib-feature-card--tone3 {
  border-left-color: rgba(52, 211, 153, 0.48);
}

.ratib-feature-card--tone3:hover {
  border-color: rgba(52, 211, 153, 0.22);
  border-left-color: rgba(110, 231, 183, 0.55);
}

.ratib-feature-card--tone3:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(52, 211, 153, 0.26);
}

.ratib-feature-card--tone4 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.5), rgba(49, 46, 129, 0.74));
  border: 1px solid rgba(129, 140, 248, 0.52);
  color: #eef2ff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.22);
}

.ratib-feature-card--tone4 {
  border-left-color: rgba(129, 140, 248, 0.48);
}

.ratib-feature-card--tone4:hover {
  border-color: rgba(99, 102, 241, 0.22);
  border-left-color: rgba(165, 180, 252, 0.58);
}

.ratib-feature-card--tone4:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.28);
}

.ratib-feature-card--tone5 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.46), rgba(124, 45, 18, 0.68));
  border: 1px solid rgba(251, 146, 60, 0.52);
  color: #fff7ed;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.18);
}

.ratib-feature-card--tone5 {
  border-left-color: rgba(251, 146, 60, 0.48);
}

.ratib-feature-card--tone5:hover {
  border-color: rgba(249, 115, 22, 0.22);
  border-left-color: rgba(253, 186, 116, 0.55);
}

.ratib-feature-card--tone5:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(249, 115, 22, 0.22);
}

.ratib-feature-card--tone6 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.46), rgba(120, 53, 15, 0.7));
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fffbeb;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.2);
}

.ratib-feature-card--tone6 {
  border-left-color: rgba(251, 191, 36, 0.52);
}

.ratib-feature-card--tone6:hover {
  border-color: rgba(245, 158, 11, 0.22);
  border-left-color: rgba(253, 224, 71, 0.55);
}

.ratib-feature-card--tone6:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.24);
}

.ratib-feature-card--tone7 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.46), rgba(23, 37, 84, 0.78));
  border: 1px solid rgba(96, 165, 250, 0.52);
  color: #eff6ff;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.2);
}

.ratib-feature-card--tone7 {
  border-left-color: rgba(96, 165, 250, 0.48);
}

.ratib-feature-card--tone7:hover {
  border-color: rgba(59, 130, 246, 0.22);
  border-left-color: rgba(147, 197, 253, 0.58);
}

.ratib-feature-card--tone7:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(59, 130, 246, 0.24);
}

.ratib-feature-card--tone8 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.46), rgba(15, 118, 110, 0.74));
  border: 1px solid rgba(45, 212, 191, 0.52);
  color: #f0fdfa;
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.2);
}

.ratib-feature-card--tone8 {
  border-left-color: rgba(45, 212, 191, 0.48);
}

.ratib-feature-card--tone8:hover {
  border-color: rgba(20, 184, 166, 0.22);
  border-left-color: rgba(94, 234, 212, 0.55);
}

.ratib-feature-card--tone8:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(20, 184, 166, 0.24);
}

.ratib-feature-card--tone9 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.42), rgba(113, 63, 18, 0.66));
  border: 1px solid rgba(250, 204, 21, 0.52);
  color: #fefce8;
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.16);
}

.ratib-feature-card--tone9 {
  border-left-color: rgba(250, 204, 21, 0.45);
}

.ratib-feature-card--tone9:hover {
  border-color: rgba(234, 179, 8, 0.22);
  border-left-color: rgba(253, 224, 71, 0.52);
}

.ratib-feature-card--tone9:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(234, 179, 8, 0.22);
}

.ratib-feature-card--tone10 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(101, 163, 13, 0.48), rgba(28, 69, 17, 0.74));
  border: 1px solid rgba(163, 230, 53, 0.48);
  color: #f7fee7;
  box-shadow: 0 4px 18px rgba(132, 204, 22, 0.18);
}

.ratib-feature-card--tone10 {
  border-left-color: rgba(163, 230, 53, 0.42);
}

.ratib-feature-card--tone10:hover {
  border-color: rgba(163, 230, 53, 0.22);
  border-left-color: rgba(217, 249, 157, 0.52);
}

.ratib-feature-card--tone10:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(163, 230, 53, 0.22);
}

.ratib-feature-card--tone11 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(251, 113, 133, 0.46), rgba(136, 19, 55, 0.7));
  border: 1px solid rgba(253, 164, 175, 0.52);
  color: #fff1f2;
  box-shadow: 0 4px 18px rgba(251, 113, 133, 0.18);
}

.ratib-feature-card--tone11 {
  border-left-color: rgba(253, 164, 175, 0.45);
}

.ratib-feature-card--tone11:hover {
  border-color: rgba(251, 113, 133, 0.22);
  border-left-color: rgba(254, 205, 211, 0.55);
}

.ratib-feature-card--tone11:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(251, 113, 133, 0.24);
}

.ratib-feature-card--tone12 .ratib-feature-card__icon {
  background: linear-gradient(145deg, rgba(147, 51, 234, 0.44), rgba(76, 29, 149, 0.72));
  border: 1px solid rgba(167, 139, 250, 0.52);
  color: #f5f3ff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.22);
}

.ratib-feature-card--tone12 {
  border-left-color: rgba(167, 139, 250, 0.48);
}

.ratib-feature-card--tone12:hover {
  border-color: rgba(139, 92, 246, 0.22);
  border-left-color: rgba(196, 181, 253, 0.58);
}

.ratib-feature-card--tone12:hover .ratib-feature-card__icon {
  box-shadow: 0 8px 26px rgba(139, 92, 246, 0.28);
}

/* Feature section headline + card titles — hues aligned with each tile */
section#features .ratib-section__head .ratib-eyebrow {
  color: rgba(34, 211, 238, 0.88);
}

section#features .ratib-section__head .ratib-section__title {
  color: #e2e9f2;
}

section#features .ratib-feature-card--tone1 h3 {
  color: #bae6fd;
}

section#features .ratib-feature-card--tone2 h3 {
  color: #f5d0fe;
}

section#features .ratib-feature-card--tone3 h3 {
  color: #a7f3d0;
}

section#features .ratib-feature-card--tone4 h3 {
  color: #e0e7ff;
}

section#features .ratib-feature-card--tone5 h3 {
  color: #ffedd5;
}

section#features .ratib-feature-card--tone6 h3 {
  color: #fef3c7;
}

section#features .ratib-feature-card--tone7 h3 {
  color: #dbeafe;
}

section#features .ratib-feature-card--tone8 h3 {
  color: #ccfbf1;
}

section#features .ratib-feature-card--tone9 h3 {
  color: #fef08a;
}

section#features .ratib-feature-card--tone10 h3 {
  color: #d9f99d;
}

section#features .ratib-feature-card--tone11 h3 {
  color: #fecdd3;
}

section#features .ratib-feature-card--tone12 h3 {
  color: #ddd6fe;
}

/* Pipeline — mission control */
.ratib-pipeline-section .ratib-section__sub {
  max-width: 36rem;
}

.ratib-pipeline {
  padding: 2rem 0 1.5rem;
  align-items: stretch;
}

.ratib-pipeline__track {
  top: 2.25rem;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(52, 211, 153, 0.15),
    rgba(52, 211, 153, 0.45) 20%,
    rgba(139, 92, 246, 0.65) 55%,
    rgba(249, 115, 22, 0.35) 85%,
    rgba(249, 115, 22, 0.12)
  );
  background-size: 220% 100%;
  animation: ratibPipelineFlow 4.5s linear infinite;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.18);
}

@keyframes ratibPipelineFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.ratib-pipeline__track::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
  background: radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.25), transparent 65%);
  opacity: 0.6;
  animation: ratibPipelineGlow 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ratibPipelineGlow {
  50% {
    opacity: 1;
  }
}

.ratib-pipeline__item {
  flex: 1 1 88px;
  min-width: 76px;
  padding-top: 0.25rem;
}

.ratib-pipeline__dot {
  width: 14px;
  height: 14px;
  position: relative;
}

.ratib-pipeline__item--active .ratib-pipeline__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.45);
  animation: ratibPipelineRing 2s ease-out infinite;
}

@keyframes ratibPipelineRing {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.ratib-pipeline__label {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: #e2e8f0;
}

.ratib-pipeline__meta {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Multi-agency — infrastructure energy */
.ratib-eco__viz {
  position: relative;
  padding: 2rem 0;
}

.ratib-eco__viz::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 120%;
  height: 120%;
  margin-left: -60%;
  background: conic-gradient(
    from 0deg at 50% 18%,
    transparent 0deg,
    rgba(139, 92, 246, 0.06) 45deg,
    transparent 90deg,
    rgba(34, 211, 238, 0.05) 180deg,
    transparent 270deg,
    rgba(249, 115, 22, 0.05) 315deg,
    transparent 360deg
  );
  animation: ratibEcoRotate 32s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ratibEcoRotate {
  to {
    transform: rotate(360deg);
  }
}

.ratib-eco__core,
.ratib-eco__spokes {
  position: relative;
  z-index: 1;
}

.ratib-eco__core {
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.25) inset,
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(139, 92, 246, 0.12);
}

.ratib-eco__core::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.75), rgba(34, 211, 238, 0.35));
  animation: ratibEcoBeam 2.2s ease-in-out infinite;
}

@keyframes ratibEcoBeam {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}

.ratib-eco__spokes {
  padding-top: 0.5rem;
}

.ratib-eco__spokes::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.35),
    rgba(34, 211, 238, 0.28),
    rgba(249, 115, 22, 0.22),
    transparent
  );
  opacity: 0.85;
}

.ratib-eco__spoke {
  display: flex;
    flex-direction: column;
  align-items: center;
    text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.6));
}

.ratib-eco__spoke::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
  animation: ratibEcoNode 3s ease-in-out infinite;
}

.ratib-eco__spoke:nth-child(2)::before {
  animation-delay: 0.4s;
}
.ratib-eco__spoke:nth-child(3)::before {
  animation-delay: 0.8s;
}
.ratib-eco__spoke:nth-child(4)::before {
  animation-delay: 1.2s;
}

@keyframes ratibEcoNode {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Analytics cards */
.ratib-analytics-card {
  backdrop-filter: blur(10px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ratib-analytics-card:hover {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ratib-metric__chart--line::after {
  animation: none;
}

/* AI cards polish */
.ratib-ai-card {
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ratib-ai-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

.ratib-ai-row {
  transition: border-color 0.2s ease;
}

.ratib-ai-row:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

/* API strip */
.ratib-api-strip__inner {
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.1) inset,
    0 20px 48px rgba(0, 0, 0, 0.25);
}

/* Video + final CTA */
.ratib-final-cta__bg {
  background:
    radial-gradient(ellipse 80% 80% at 50% 120%, rgba(139, 92, 246, 0.2), transparent),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(249, 115, 22, 0.08), transparent);
  animation: ratibCtaBg 16s ease-in-out infinite;
}

@keyframes ratibCtaBg {
  50% {
    opacity: 0.95;
    filter: saturate(1.08);
  }
}

/* Scroll reveal — progressive enhancement (see home-page.js) */
.ratib-reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.ratib-reveal-init.ratib-reveal-ready .ratib-reveal:not(.ratib-reveal-visible) {
  opacity: 0;
  transform: translateY(22px);
}

html.ratib-reveal-init.ratib-reveal-ready .ratib-reveal.ratib-reveal-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.ratib-reveal-init.ratib-reveal-ready .ratib-reveal:not(.ratib-reveal-visible) {
    opacity: 1;
    transform: none;
  }
}

/* Responsive polish */
@media (max-width: 1023px) {
  .ratib-hero__visual {
    max-width: min(100%, 540px);
    margin-left: auto;
    margin-right: auto;
  }

  .ratib-dash {
    animation: none;
  }

  .ratib-pipeline__item {
    flex: 1 1 42%;
  }

  .ratib-pipeline__track {
    display: none;
  }

  .ratib-eco__viz::before {
    opacity: 0.5;
  }
}

@media (max-width: 599px) {
  .ratib-hero__title {
    max-width: none;
  }

  .ratib-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .ratib-dash__row {
    grid-template-columns: 1fr;
  }

  .ratib-dash__charts {
    grid-template-columns: 1fr;
  }

  .ratib-nav-shell__inner {
    gap: 0.65rem;
  }
}

/* =============================================================================
   PHASE 3 — Productization: operational language, live feel, visibility surface
   ============================================================================= */

.ratib-mono-tag {
  font-family: var(--r-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.ratib-topbar__ops {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  margin-right: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.08),
    rgba(139, 92, 246, 0.08),
    rgba(15, 23, 42, 0.5)
  );
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
}

.ratib-topbar__ops .ratib-mono-tag {
  color: #a5f3fc;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.ratib-topbar__ops-sep {
  opacity: 0.55;
  color: rgba(167, 139, 250, 0.85);
}

@media (max-width: 520px) {
  .ratib-topbar__ops {
    display: none;
  }
}

/* Operational visibility section */
.ratib-ops-visibility {
  position: relative;
}

.ratib-ops__disclaimer {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ratib-ops__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .ratib-ops__layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.ratib-ops__panel {
  border-radius: var(--r-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(5, 8, 22, 0.88));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(139, 92, 246, 0.1) inset;
  overflow: hidden;
}

.ratib-ops__panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.ratib-pill--live {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  font-size: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ratib-ops__preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  padding: 0.85rem;
}

@media (max-width: 599px) {
  .ratib-ops__preview-grid {
    grid-template-columns: 1fr;
  }
}

.ratib-ops__mini {
  padding: 0.65rem 0.75rem;
  border-radius: var(--r-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.28);
  position: relative;
}

.ratib-ops__mini::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.ratib-ops__mini--wide {
  grid-column: 1 / -1;
}

.ratib-ops__mini-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--r-muted);
  margin-bottom: 0.35rem;
}

.ratib-ops__mini-val {
  display: block;
  font-size: 1.125rem;
  font-weight: 750;
  font-family: var(--r-mono);
  color: #d8e2ee;
}

.ratib-ops__mini-val--ok {
  color: #6ee7b7;
}

.ratib-ops__mini-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #94a3b8;
}

.ratib-ops__sparkline {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  padding: 0 0.25rem 0.35rem;
  opacity: 0.85;
}

.ratib-ops__sparkline span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.65), rgba(139, 92, 246, 0.1));
  animation: ratibOpsSpark 2.8s ease-in-out infinite;
}

.ratib-ops__sparkline span:nth-child(2) {
  animation-delay: 0.15s;
}
.ratib-ops__sparkline span:nth-child(3) {
  animation-delay: 0.3s;
}
.ratib-ops__sparkline span:nth-child(4) {
  animation-delay: 0.45s;
}
.ratib-ops__sparkline span:nth-child(5) {
  animation-delay: 0.6s;
}
.ratib-ops__sparkline span:nth-child(6) {
  animation-delay: 0.75s;
}
.ratib-ops__sparkline span:nth-child(7) {
  animation-delay: 0.9s;
}
.ratib-ops__sparkline span:nth-child(8) {
  animation-delay: 1.05s;
}

@keyframes ratibOpsSpark {
  0%,
  100% {
    height: 28%;
    opacity: 0.75;
  }
  50% {
    height: 92%;
    opacity: 1;
  }
}

.ratib-ops__events {
  border-radius: var(--r-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ratib-ops__events-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.65rem;
}

.ratib-ops__event-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.65rem 0.65rem;
  font-family: var(--r-mono);
  font-size: 0.62rem;
  line-height: 1.55;
  color: #94a3b8;
}

.ratib-ops__event-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ratib-ops__event-list li:last-child {
  border-bottom: none;
}

.ratib-ops__time {
  color: #64748b;
}

.ratib-ops__evt {
  color: #cbd5e1;
  word-break: break-word;
}

.ratib-trust-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.ratib-trust-band__item {
  font-size: 0.78rem;
  line-height: 1.45;
}

.ratib-trust-band__k {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--r-muted);
  margin-bottom: 0.25rem;
}

.ratib-trust-band__v {
  color: #e2e8f0;
}

/* Phase 4 — onboarding flow + credibility markers */
.ratib-how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 1100px) {
  .ratib-how__steps {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
  }
}

@media (min-width: 640px) and (max-width: 1099px) {
  .ratib-how__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ratib-how__step {
  padding: 0.85rem 0.75rem;
  border-radius: var(--r-radius);
  border: 1px solid var(--r-border);
  background: var(--r-surface);
}

.ratib-how__n {
  display: block;
  font-family: var(--r-mono);
  font-size: 0.65rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.ratib-how__title {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
  color: #d1dae6;
}

.ratib-how__desc {
  display: block;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--r-muted);
}

.ratib-section__head--left .ratib-section__sub--inline {
  margin-top: 0.65rem;
  max-width: 38rem;
}

.ratib-analytics-card__stamp {
  margin: 0 0 0.4rem;
  font-size: 0.58rem;
  color: #64748b;
}

/* Footer system strip */
.ratib-footer-system-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.65rem 0;
}

.ratib-footer-system-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  font-size: 0.72rem;
  color: #64748b;
}

.ratib-footer-system-strip__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.ratib-footer-system-strip__item .ratib-mono-tag {
  color: #475569;
}

/* Focus + interaction refinement */
.ratib-btn:focus-visible,
.ratib-nav__link:focus-visible,
.ratib-topbar__link:focus-visible,
.ratib-footer-col a:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.65);
  outline-offset: 3px;
}

.ratib-trust-card,
.ratib-feature-card,
.ratib-analytics-card {
  transition:
    transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    border-color 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}

/* ---------- Card hue cycle + ambient pulse (nav-aligned palette) ---------- */
@keyframes ratibCardAuraPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.988);
  }
  50% {
    opacity: 0.52;
    transform: scale(1);
  }
}

@keyframes ratibHeroBulletGlow {
  0%,
  100% {
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(255, 255, 255, 0.05),
      0 0 12px var(--ratib-hero-bullet-glow, transparent);
  }
  50% {
    box-shadow:
      0 6px 22px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.07),
      0 0 28px var(--ratib-hero-bullet-glow, rgba(148, 163, 184, 0.12));
  }
}

.ratib-trust__grid .ratib-trust-card,
.ratib-analytics__grid .ratib-analytics-card,
.ratib-ai-grid .ratib-ai-card,
.ratib-how__steps > .ratib-how__step,
.ratib-eco__spokes .ratib-eco__spoke,
.ratib-ops__preview-grid .ratib-ops__mini,
.ratib-dash__row .ratib-kpi,
.pricing-section .pricing-row .price-card,
.ratib-feature-grid .ratib-feature-card {
  position: relative;
  overflow: hidden;
}

.ratib-trust__grid .ratib-trust-card::after,
.ratib-analytics__grid .ratib-analytics-card::after,
.ratib-ai-grid .ratib-ai-card::after,
.ratib-how__steps > .ratib-how__step::after,
.ratib-eco__spokes .ratib-eco__spoke::after,
.ratib-ops__preview-grid .ratib-ops__mini::after,
.ratib-dash__row .ratib-kpi::after,
.pricing-section .pricing-row .price-card::after,
.ratib-feature-grid .ratib-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}

.ratib-trust__grid .ratib-trust-card > *,
.ratib-analytics__grid .ratib-analytics-card > *,
.ratib-ai-grid .ratib-ai-card > *,
.ratib-how__steps > .ratib-how__step > *,
.ratib-eco__spokes .ratib-eco__spoke > *,
.ratib-ops__preview-grid .ratib-ops__mini > *,
.ratib-dash__row .ratib-kpi > *,
.pricing-section .pricing-row .price-card > *,
.ratib-feature-grid .ratib-feature-card > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .ratib-trust__grid .ratib-trust-card::after,
  .ratib-analytics__grid .ratib-analytics-card::after,
  .ratib-ai-grid .ratib-ai-card::after,
  .ratib-how__steps > .ratib-how__step::after,
  .ratib-eco__spokes .ratib-eco__spoke::after,
  .ratib-ops__preview-grid .ratib-ops__mini::after,
  .ratib-dash__row .ratib-kpi::after,
  .pricing-section .pricing-row .price-card::after,
  .ratib-feature-grid .ratib-feature-card::after {
    animation: ratibCardAuraPulse 6.4s ease-in-out infinite;
  }

  .ratib-hero__bullets > li {
    animation: ratibHeroBulletGlow 5.8s ease-in-out infinite;
  }

  .ratib-hero__bullets > li:nth-child(12n + 1) {
    --ratib-hero-bullet-glow: rgba(56, 189, 248, 0.35);
    animation-duration: 5.6s;
  }

  .ratib-hero__bullets > li:nth-child(12n + 2) {
    --ratib-hero-bullet-glow: rgba(217, 70, 239, 0.32);
    animation-duration: 6.1s;
  }

  .ratib-hero__bullets > li:nth-child(12n + 3) {
    --ratib-hero-bullet-glow: rgba(52, 211, 153, 0.32);
    animation-duration: 5.4s;
  }

  .ratib-hero__bullets > li:nth-child(12n + 4) {
    --ratib-hero-bullet-glow: rgba(251, 191, 36, 0.36);
    animation-duration: 6.4s;
  }

  .ratib-hero__bullets > li:nth-child(1) {
    animation-delay: 0s;
  }

  .ratib-hero__bullets > li:nth-child(2) {
    animation-delay: -1.1s;
  }

  .ratib-hero__bullets > li:nth-child(3) {
    animation-delay: -2.2s;
  }

  .ratib-hero__bullets > li:nth-child(4) {
    animation-delay: -3.3s;
  }

  /* Hue + stagger per grid slot (12-tone cycle) */
  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 1)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 1)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 1)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 1)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 1)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 1)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 1)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 1)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 1)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(56, 189, 248, 0.48), transparent 62%);
    animation-delay: 0s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 2)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 2)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 2)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 2)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 2)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 2)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 2)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 2)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 2)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(217, 70, 239, 0.44), transparent 62%);
    animation-delay: -0.55s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 3)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 3)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 3)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 3)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 3)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 3)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 3)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 3)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 3)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(52, 211, 153, 0.44), transparent 62%);
    animation-delay: -1.1s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 4)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 4)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 4)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 4)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 4)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 4)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 4)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 4)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 4)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(99, 102, 241, 0.44), transparent 62%);
    animation-delay: -1.65s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 5)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 5)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 5)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 5)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 5)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 5)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 5)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 5)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 5)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(249, 115, 22, 0.42), transparent 62%);
    animation-delay: -2.2s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 6)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 6)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 6)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 6)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 6)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 6)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 6)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 6)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 6)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(245, 158, 11, 0.42), transparent 62%);
    animation-delay: -2.75s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 7)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 7)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 7)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 7)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 7)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 7)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 7)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 7)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 7)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(59, 130, 246, 0.44), transparent 62%);
    animation-delay: -3.3s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 8)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 8)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 8)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 8)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 8)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 8)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 8)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 8)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 8)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(20, 184, 166, 0.44), transparent 62%);
    animation-delay: -3.85s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 9)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 9)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 9)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 9)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 9)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 9)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 9)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 9)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 9)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(234, 179, 8, 0.4), transparent 62%);
    animation-delay: -4.4s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 10)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 10)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 10)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 10)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 10)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 10)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 10)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 10)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 10)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(163, 230, 53, 0.38), transparent 62%);
    animation-delay: -4.95s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 11)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 11)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 11)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 11)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 11)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 11)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 11)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 11)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 11)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(251, 113, 133, 0.42), transparent 62%);
    animation-delay: -5.5s;
  }

  .ratib-trust__grid .ratib-trust-card:nth-child(12n + 12)::after,
  .ratib-analytics__grid .ratib-analytics-card:nth-child(12n + 12)::after,
  .ratib-ai-grid .ratib-ai-card:nth-child(12n + 12)::after,
  .ratib-how__steps > .ratib-how__step:nth-child(12n + 12)::after,
  .ratib-eco__spokes .ratib-eco__spoke:nth-child(12n + 12)::after,
  .ratib-ops__preview-grid .ratib-ops__mini:nth-child(12n + 12)::after,
  .ratib-dash__row .ratib-kpi:nth-child(12n + 12)::after,
  .pricing-section .pricing-row .price-card:nth-child(12n + 12)::after,
  .ratib-feature-grid .ratib-feature-card:nth-child(12n + 12)::after {
    background: radial-gradient(ellipse 115% 92% at 50% -18%, rgba(167, 139, 250, 0.44), transparent 62%);
    animation-delay: -6.05s;
  }

  .ratib-dash__row .ratib-kpi:nth-child(12n + 1)::after {
    animation-duration: 5.2s;
  }

  .ratib-dash__row .ratib-kpi:nth-child(12n + 2)::after {
    animation-duration: 5.9s;
  }

  .ratib-dash__row .ratib-kpi:nth-child(12n + 3)::after {
    animation-duration: 6.5s;
  }

  /* Hover lifts card while pausing pulse so box-shadow isn’t fighting keyframes */
  .ratib-main .ratib-hero .ratib-hero__bullets > li:hover {
    animation-play-state: paused;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow:
      0 0 0 1px rgba(148, 163, 184, 0.12),
      0 14px 38px rgba(0, 0, 0, 0.42),
      0 0 34px var(--ratib-hero-bullet-glow, rgba(148, 163, 184, 0.22));
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ratib-ops__sparkline span {
    animation: none;
    height: 55%;
  }

  .ratib-hero__bullets > li {
    animation: none !important;
  }

  .ratib-trust__grid .ratib-trust-card::after,
  .ratib-analytics__grid .ratib-analytics-card::after,
  .ratib-ai-grid .ratib-ai-card::after,
  .ratib-how__steps > .ratib-how__step::after,
  .ratib-eco__spokes .ratib-eco__spoke::after,
  .ratib-ops__preview-grid .ratib-ops__mini::after,
  .ratib-dash__row .ratib-kpi::after,
  .pricing-section .pricing-row .price-card::after,
  .ratib-feature-grid .ratib-feature-card::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* bump: hero video band + program SVG previews (forces css ?v= refresh on deploy) */

/* Inline infrastructure panel under top nav (same-page marketplace/status preview). */
.ratib-nav__link[data-ratib-infra-marketplace-tab].is-active,
.ratib-nav__link[data-ratib-infra-status-tab].is-active {
  border-color: rgba(117, 104, 184, 0.65);
  background: rgba(117, 104, 184, 0.15);
  color: #efeaff;
}

.ratib-infra-inline-panel {
  position: relative;
  z-index: 12;
  width: min(var(--r-max), calc(100% - (var(--r-space) * 2)));
  margin: 0.75rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 19, 36, 0.92), rgba(7, 11, 20, 0.95));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.ratib-infra-inline-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ratib-infra-inline-panel__title {
  color: #e8eef9;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.ratib-infra-inline-panel__close {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4f5;
  padding: 0.22rem 0.62rem;
  font: inherit;
  cursor: pointer;
}

.ratib-infra-inline-panel__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ratib-infra-inline-panel__body {
  width: 100%;
}

.ratib-infra-inline-panel__frame {
  display: block;
  width: 100%;
  min-height: 72vh;
  border: 0;
  background: #070b14;
}

@media (max-width: 860px) {
  .ratib-infra-inline-panel {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .ratib-infra-inline-panel__frame {
    min-height: 64vh;
  }
}
