/* ============================================
   RELIABILITY FACTORY — shared styles
   ============================================ */

@import url("tread-light-snippet.css");

:root {
  /* Reliability Factory — Field-Grade Daylight palette */
  /* Raw tokens */
  --rr-paper:       #F5F8FB;
  --rr-surface:     #FFFFFF;
  --rr-mist:        #E5EBF2;
  --rr-steel:       #C7D2E0;
  --rr-fog:         #6B8DB5;
  --rr-hull:        #18324A;
  --rr-deep:        #0A2236;
  --rr-midnight:    #061B2B;
  --rr-cyan:        #00DCFF;
  --rr-cyan-shade:  #00B8D6;

  /* Primaries — mapped to RR design system */
  --blue-primary:   #00B8D6;     /* cyan-shade for light surfaces */
  --blue-dark:      var(--rr-deep); /* deep ocean ink */
  --blue-secondary: #00DCFF;     /* signature cyan */

  /* Accent (single cyan, no purple) */
  --purple: #00DCFF;             /* alias kept so legacy refs still work */
  --purple-light: #00DCFF;
  --accent-a: var(--rr-cyan-shade);
  --accent-b: var(--rr-deep);
  --gradient: linear-gradient(90deg, var(--rr-cyan-shade) 0%, var(--rr-deep) 100%);
  --gradient-135: linear-gradient(135deg, var(--rr-cyan-shade) 0%, var(--rr-deep) 100%);

  /* Text-only gradient — cyan-shade → deep navy (one accent only) */
  --text-grad-a: #00B8D6;
  --text-grad-b: var(--rr-deep);
  --gradient-text: linear-gradient(90deg, var(--text-grad-a) 0%, var(--text-grad-b) 100%);

  /* Neutres */
  --bg-main: #F5F8FB;            /* rr-paper */
  --white: #FFFFFF;
  --grey-light: #E5EBF2;         /* rr-mist */
  --grey-border: #E5EBF2;

  /* Texte */
  --text-primary: var(--rr-deep); /* rr-deep — headlines & ink */
  --text-secondary: var(--rr-hull); /* rr-hull — body */
  --text-muted: #6B8DB5;         /* rr-fog — captions */

  /* Accents secondaires */
  --green: #22C55E;
  --orange: #F59E0B;

  /* Ombres */
  --shadow-sm: 0 0.5px 0 rgba(10, 18, 32, 0.04), 0 1px 2px rgba(10, 18, 32, 0.04);
  --shadow-md: 0 1px 0 rgba(10, 18, 32, 0.04), 0 2px 8px rgba(10, 18, 32, 0.06);
  --shadow-lg: 0 12px 28px rgba(10, 18, 32, 0.08), 0 4px 10px rgba(10, 18, 32, 0.04);
  --shadow-xl: 0 24px 60px rgba(10, 18, 32, 0.12), 0 12px 20px rgba(10, 18, 32, 0.06);
  --shadow-cyan-halo: 0 0 0 4px rgba(0, 220, 255, 0.18), 0 0 24px rgba(0, 220, 255, 0.35);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Fonts — Reliability Factory: Inter (display), Geist (body), Geist Mono (labels) */
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Font pairing tweaks */
:root[data-font="inter"] {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
}
:root[data-font="geist"] {
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-display: 'Geist', system-ui, sans-serif;
}
:root[data-font="serif"] {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
}

/* Accent color tweaks */
:root[data-accent="blue"] {
  --accent-a: #00B8D6;
  --accent-b: #0A1220;
}
:root[data-accent="teal"] {
  --accent-a: #0EA5B7;
  --accent-b: #2563EB;
}
:root[data-accent="violet"] {
  --accent-a: #7C3AED;
  --accent-b: #EC4899;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--tread-light-color, #F5F8FB);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* Brand tread — top of page only, fades out (felt more than seen) */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 820px;
  background-color: var(--tread-light-color);
  background-image: var(--tread-light-image);
  background-repeat: repeat;
  background-size: var(--tread-light-size);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}
h1 { font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0; color: var(--text-secondary); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

/* ============= NAV ============= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-border);
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--grey-border);
  background: rgba(255,255,255,0.9);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(31,42,68,0.04); }
.nav-links a.active { color: var(--text-primary); }

.nav-right { display: flex; align-items: center; gap: 16px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============= NAV DROPDOWN ============= */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  background: none;
  transition: color .2s, background .2s;
}
.nav-dropdown-toggle:hover { color: var(--text-primary); background: rgba(31,42,68,0.04); }
.nav-dropdown-toggle.active { color: var(--rr-cyan-shade); }
.nav-dropdown-toggle .nav-caret {
  width: 10px; height: 10px;
  transition: transform .2s;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  transition: background .15s;
}
.nav-dropdown-menu a:hover { background: var(--bg-main); }
.nav-dropdown-menu a strong { font-size: 14px; font-weight: 600; }
.nav-dropdown-menu a .nav-ico { width: 17px; height: 17px; flex-shrink: 0; color: #00B8D6; }
.nav-dropdown-menu a:hover .nav-ico { color: #0A1220; }
.nav-dropdown-menu a.active strong { color: var(--rr-cyan-shade); }

/* ============= MOBILE NAV ============= */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: transparent;
  transition: background .2s;
}
.nav-burger:hover { background: rgba(31,42,68,0.05); }
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,18,32,0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 40;
}
.mobile-menu-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 86vw);
  height: 100dvh;
  height: 100vh;
  background: var(--white, #fff);
  border-left: 1px solid var(--grey-border);
  box-shadow: var(--shadow-xl);
  padding: 88px 18px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  z-index: 45;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu-links > a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 13px 12px;
  border-radius: 10px;
}
.mobile-menu-links > a:hover { background: var(--bg-main); }

.mobile-menu .nav-dropdown { position: static; }
.mobile-menu .nav-dropdown-toggle {
  width: 100%;
  justify-content: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 16px 12px 4px;
  pointer-events: none;
}
.mobile-menu .nav-dropdown-toggle .nav-caret { display: none; }
.mobile-menu .nav-dropdown-menu {
  position: static;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  min-width: 0;
  border: 0;
  box-shadow: none;
  padding: 0 0 6px;
  background: transparent;
}
.mobile-menu .nav-dropdown-menu::before { display: none; }
.mobile-menu .nav-dropdown-menu a {
  font-size: 16px;
  padding: 12px;
  border-radius: 10px;
}
.mobile-menu .mobile-menu-cta {
  display: flex;
  margin-top: 22px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 880px) {
  .nav-burger { display: flex; }
}
@media (min-width: 881px) {
  .mobile-menu, .mobile-menu-backdrop { display: none !important; }
}
body.menu-open .cta-sticky { opacity: 0; pointer-events: none; }

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2; }

.btn-primary {
  background: var(--rr-deep);
  color: white;
  box-shadow: 0 1px 0 rgba(10,18,32,0.04), 0 2px 8px rgba(10,18,32,0.18), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .15s var(--ease-instrument, cubic-bezier(.2,.6,.2,1)), box-shadow .18s var(--ease-instrument, cubic-bezier(.2,.6,.2,1));
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(0,220,255,0.18), 0 0 24px rgba(0,220,255,0.35), 0 2px 8px rgba(10,18,32,0.18); background: var(--rr-midnight); }

.btn-outline {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--text-muted); transform: translateY(-1px); }

.btn-ghost { color: var(--text-primary); padding: 10px 14px; }
.btn-ghost:hover { background: var(--grey-light); }

.btn-lg { padding: 16px 26px; font-size: 15px; border-radius: 12px; }

/* ============= UTILITIES ============= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0,184,214,0.08);
  color: var(--rr-cyan-shade);
  border: 1px solid rgba(0,184,214,0.22);
  font-family: var(--font-mono);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rr-cyan);
  box-shadow: 0 0 8px rgba(0,220,255,0.6);
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--grey-light);
  color: var(--text-secondary);
}
.tag-soon { background: rgba(138,148,166,0.14); color: var(--text-muted); }

/* ============= REVEAL ON SCROLL ============= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

/* Hero section reveals are immediately visible — no animation delay */
.hero .reveal,
.hero .trust-strip.reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* ============= CARDS ============= */
.card {
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(0,184,214,0.35); }

/* ============= STICKY CTA (pill bar) ============= */
.cta-sticky {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  background: rgba(31, 42, 68, 0.95);
  color: white;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(31,42,68,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
  backdrop-filter: blur(12px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .3s;
  font-size: 14px;
  font-weight: 500;
}
.cta-sticky.show { transform: translateX(-50%) translateY(0); }
.cta-sticky .cta-sticky-text { opacity: .9; }
.cta-sticky .cta-sticky-text strong { color: white; font-weight: 600; }
.cta-sticky .cta-sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--gradient);
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s;
}
.cta-sticky .cta-sticky-btn:hover { transform: scale(1.03); }
.cta-sticky .cta-sticky-btn svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .cta-sticky { padding: 6px 6px 6px 14px; font-size: 12px; max-width: calc(100vw - 24px); }
  .cta-sticky .cta-sticky-text { display: none; }
  .cta-sticky .cta-sticky-btn { padding: 10px 16px; }
}

/* ============= FOOTER ============= */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--grey-border);
  background: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-secondary); font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-border);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 12.5px;
}
.footer-legal a {
  color: var(--text-muted);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--text-primary); }

/* ============= TWEAKS PANEL ============= */
.tweaks-panel {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 280px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  padding: 18px;
  z-index: 95;
  display: none;
  font-size: 13px;
}
.tweaks-panel.show { display: block; }
.tweaks-panel h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.tweaks-panel .tweak-group { margin-bottom: 18px; }
.tweaks-panel .tweak-group:last-child { margin-bottom: 0; }
.tweaks-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-options button {
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  background: var(--grey-light);
  color: var(--text-primary);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all .15s;
}
.tweaks-options button[aria-pressed="true"] {
  background: var(--white);
  border-color: var(--text-primary);
  box-shadow: inset 0 0 0 1px var(--text-primary);
}
.swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--grey-border); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue-primary); }

/* ============= HERO terminal ============= */
.terminal {
  background: #0E1220;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 80px rgba(10,18,32,0.22), 0 0 0 1px rgba(0,184,214,0.1);
  overflow: hidden;
  font-family: var(--font-mono);
  color: #D9DEEC;
  font-size: 13px;
  line-height: 1.65;
  position: relative;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #161B2E;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #6B8DB5;
  font-size: 12px;
}
.terminal-bar .dot-r { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.terminal-bar .dot-y { width: 10px; height: 10px; border-radius: 50%; background: #FEBC2E; }
.terminal-bar .dot-g { width: 10px; height: 10px; border-radius: 50%; background: #28C840; }
.terminal-bar .title { margin-left: 12px; font-family: var(--font-mono); }

.terminal-body {
  padding: 22px 22px 28px;
  min-height: 360px;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}
.t-line { display: flex; gap: 10px; margin-bottom: 6px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.t-line.on { opacity: 1; transform: none; }
.t-line .t-prefix { color: #6B8DB5; }
.t-line .t-muted { color: #6B8DB5; }
.t-line .t-blue { color: #6CA3FF; }
.t-line .t-green { color: #5BD88A; }
.t-line .t-purple { color: #B496FF; }
.t-line .t-white { color: #F2F4F9; }
.t-line .t-yellow { color: #FFD166; }

.t-progress {
  display: inline-flex; align-items: center; gap: 8px;
  color: #6B8DB5; font-size: 12px;
}
.t-bar {
  width: 160px; height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.t-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #00B8D6, #00DCFF);
  width: 0%;
  transition: width .3s ease;
}

.pmi-preview {
  margin-top: 14px;
  background: #F5F8FB;
  border-radius: 10px;
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s, transform .5s;
  border: 1px solid rgba(255,255,255,0.1);
}
.pmi-preview.on { opacity: 1; transform: none; }
.pmi-preview-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px solid var(--grey-border);
}
.pmi-preview-head strong { font-size: 13px; }
.pmi-row { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--grey-border); }
.pmi-row:last-child { border: 0; }
.pmi-row span:first-child { color: var(--text-muted); }

.hero-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: white;
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.hero-badge .bolt {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============= HERO IMAGE ============= */
.hero-video-wrap {
  position: relative;
  background: transparent;
  aspect-ratio: 4/3;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 18px 36px rgba(15, 23, 42, 0.10));
}

.hero-video-wrap::after { content: none; }

.hero-video-wrap video,
.hero-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

/* Mask divs no longer needed */
.hv-mask { display: none; }

/* Dark hero variant */
.hero.dark .hero-video-wrap {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.4));
}

/* Live agent badge on video */
.hv-live {
  position: absolute;
  bottom: 8%;
  right: -64px;
  z-index: 3;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--grey-border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.hv-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.55);
  animation: abPulse 1.8s ease-out infinite;
}

/* ============= PLANT DIAGRAM ============= */
.plant {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1 / 1;
  max-width: 560px;
  margin: 0 auto;
}
.plant svg { width: 100%; height: 100%; overflow: visible; }

.plant .pulse-dot {
  offset-rotate: 0deg;
  animation: plantFlow 4s linear infinite;
}
.plant .pulse-dot.d2 { animation-delay: -1s; }
.plant .pulse-dot.d3 { animation-delay: -2s; }
.plant .pulse-dot.d4 { animation-delay: -3s; }
.plant .pulse-dot.d5 { animation-delay: -0.5s; }
.plant .pulse-dot.d6 { animation-delay: -2.8s; }

@keyframes plantFlow {
  to { motion-offset: 100%; offset-distance: 100%; }
  from { motion-offset: 0%; offset-distance: 0%; }
}

.plant .sensor-ring {
  transform-origin: center;
  animation: plantRing 2.4s ease-out infinite;
}
.plant .sensor-ring.r2 { animation-delay: 0.8s; }
.plant .sensor-ring.r3 { animation-delay: 1.6s; }
@keyframes plantRing {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.plant .plant-blink {
  animation: plantBlink 1.8s ease-in-out infinite;
}
.plant .plant-blink.b2 { animation-delay: 0.6s; }
.plant .plant-blink.b3 { animation-delay: 1.2s; }
@keyframes plantBlink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.plant .plant-steam {
  animation: plantSteam 3.5s ease-out infinite;
  transform-origin: center bottom;
}
.plant .plant-steam.s2 { animation-delay: -1.2s; }
.plant .plant-steam.s3 { animation-delay: -2.4s; }
@keyframes plantSteam {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  25% { opacity: 0.7; }
  100% { transform: translateY(-32px) scale(1.4); opacity: 0; }
}

.plant .gauge-needle {
  transform-origin: 50% 100%;
  animation: plantGauge 4s ease-in-out infinite;
}
@keyframes plantGauge {
  0%, 100% { transform: rotate(-60deg); }
  50% { transform: rotate(55deg); }
}

.plant .agent-badge {
  position: absolute;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.96);
}
.plant .agent-badge .ab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.55);
  animation: abPulse 1.8s ease-out infinite;
}
@keyframes abPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.plant .agent-badge .ab-label { color: var(--text-muted); font-weight: 500; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.plant .agent-badge .ab-val { color: var(--text-primary); font-family: var(--font-mono); }

.plant .ab-1 { top: 8%; left: 2%; }
.plant .ab-2 { bottom: 12%; right: 0%; }
.plant .ab-3 { top: 42%; right: 4%; }

@media (max-width: 640px) {
  .plant .agent-badge { font-size: 10px; padding: 6px 9px; }
  .plant .ab-3 { display: none; }
}

/* ============= GRID PATTERNS / BG ============= */
.hero {
  position: relative;
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: -1px;
  pointer-events: none;
}
.hero:not(.dark) .hero-grid-bg {
  display: none;
}
.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,220,255,0.10), transparent 65%);
  pointer-events: none;
  filter: blur(20px);
}
.hero-glow-2 {
  position: absolute;
  bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,141,181,0.10), transparent 65%);
  pointer-events: none;
  filter: blur(20px);
}

.hero.dark {
  background: var(--rr-midnight);
  color: #F2F4F9;
}
.hero.dark .hero-grid-bg {
  display: block;
  background-image: url("tread-plate-dark.svg");
  background-size: 64px 64px;
  --hero-mask-y: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 10%,
    #000 22%,
    #000 58%,
    rgba(0, 0, 0, 0.35) 78%,
    transparent 95%
  );
  --hero-mask-x: linear-gradient(
    to right,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: var(--hero-mask-y), var(--hero-mask-x);
  -webkit-mask-image: var(--hero-mask-y), var(--hero-mask-x);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.hero.dark h1 { color: #F2F4F9; }
.hero.dark p { color: #A6B0C2; }
.hero.dark .eyebrow { background: rgba(0,220,255,0.14); color: #7DE6F6; border-color: rgba(0,220,255,0.25); }
.hero.dark .btn-outline { background: rgba(255,255,255,0.06); color: white; border-color: rgba(255,255,255,0.12); }
.hero.dark .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.hero.dark .trust-strip { color: #6B8DB5; border-color: rgba(255,255,255,0.08); }
.hero.dark .trust-strip span { color: #6B8DB5; }
.hero.dark .grad-text {
  background: linear-gradient(90deg, #00DCFF 0%, #7DE6F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-strip {
  margin-top: 56px;
  padding: 24px 0 0;
  border-top: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trust-strip .lbl {
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.industry-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.industry-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: industry-marquee 65s linear infinite;
}
.industry-marquee-track span {
  white-space: nowrap;
  padding: 0 14px;
}
.industry-marquee-track .sep {
  padding: 0 6px;
  opacity: 0.45;
  font-weight: 400;
}
@keyframes industry-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .industry-marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .industry-marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
}

.contact-promo {
  margin-top: 40px;
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid var(--grey-border);
  background: linear-gradient(135deg, rgba(0, 184, 214, 0.06), rgba(10, 18, 32, 0.03));
  text-align: center;
}
.contact-promo-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.contact-promo-email {
  display: inline-block;
  font-size: clamp(26px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.15;
  word-break: break-all;
}
.contact-promo-email:hover {
  color: var(--rr-cyan-shade);
}
.contact-promo-hint {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* Hero layout */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-layout h1 { margin: 20px 0 22px; }
.hero-layout .hero-sub { font-size: 18px; line-height: 1.55; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-video-wrap { width: 100%; margin: 0; }
}

/* ============= STATS BAND ============= */
.stats-band {
  background: var(--rr-midnight);
  color: white;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,220,255,0.10), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0,220,255,0.06), transparent 50%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--rr-paper);
}
.stat-item .stat-num::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--rr-cyan);
  margin-top: 14px;
}
.stat-item .stat-label {
  margin-top: 12px;
  font-size: 14px;
  color: #A6B0C2;
  max-width: 260px;
  line-height: 1.45;
}

/* ============= SECTION HEADS ============= */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; color: var(--rr-deep); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--rr-hull); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============= PROBLEM / SOLUTION ============= */
.problem-wrap {
  padding: 48px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.problem-wrap .pw-quote {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
}
.problem-wrap .pw-quote strong { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.problem-visual {
  background: #F5F8FB;
  border-radius: 12px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--grey-border);
}
.problem-visual .bar-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.problem-visual .bar-label { width: 120px; color: var(--text-primary); font-weight: 500; }
.problem-visual .bar {
  flex: 1; height: 8px; background: var(--grey-light);
  border-radius: 4px; overflow: hidden;
}
.problem-visual .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #F59E0B, #EF4444);
}
.problem-visual .bar.good > span { background: linear-gradient(90deg, #00B8D6, #00DCFF); }
.problem-visual .bar-val { width: 60px; text-align: right; color: var(--text-primary); font-weight: 600; }

@media (max-width: 820px) { .problem-wrap { grid-template-columns: 1fr; padding: 32px; gap: 32px; } }

/* ============= SOLUTION STEPS ============= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  position: relative;
  transition: all .25s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(0,184,214,0.3); }
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--rr-cyan-shade);
  text-transform: uppercase;
}
.step-card h3 { font-size: 22px; margin: 14px 0 10px; }
.step-card p { font-size: 15px; }
.step-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(0,184,214,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--rr-cyan-shade);
  border: 1px solid rgba(0,184,214,0.18);
}
.step-icon svg { width: 22px; height: 22px; stroke-width: 1.75; }

/* ============= WHY US ============= */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) { .why-layout { grid-template-columns: 1fr; } }

.why-feature {
  background: var(--rr-midnight);
  border-radius: 18px;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}
.why-feature::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(0,220,255,0.14), transparent 60%),
    radial-gradient(rgba(107,141,181,0.08) 1px, transparent 1px);
  background-size: auto, 32px 32px;
  pointer-events: none;
}
.why-feature .why-num {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 900; letter-spacing: -0.04em; line-height: 1;
  color: var(--rr-paper);
  position: relative;
}
.why-feature .why-num::after {
  content: "/";
  color: var(--rr-cyan);
  font-weight: 900;
  margin-left: 0.08em;
}
.why-feature p { margin-top: 20px; font-size: 17px; color: #D9DEEC; }
.why-feature strong { color: white; }

.why-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.why-bullets li {
  display: flex; gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  transition: all .2s;
}
.why-bullets li:hover { border-color: rgba(0,184,214,0.3); box-shadow: var(--shadow-md); }
.why-bullets .chk {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-bullets strong { display: block; margin-bottom: 4px; color: var(--text-primary); font-size: 15px; }
.why-bullets p { font-size: 14.5px; line-height: 1.55; }

.pull-quote {
  margin-top: 48px;
  padding: 32px 40px;
  background: var(--white);
  border-left: 3px solid transparent;
  border-image: var(--gradient) 1;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  font-style: italic;
}

/* ============= USE CASE GRID ============= */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uc-grid { grid-template-columns: 1fr; } }

.uc-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  transition: all .25s;
  display: block;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.uc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,184,214,0.4); }
.uc-card.featured { background: var(--rr-midnight); color: white; border-color: var(--rr-deep); grid-column: span 2; min-height: 260px; }
.uc-card.featured p { color: #C7D2E0; }
.uc-card.featured:hover { border-color: rgba(0,220,255,0.5); }

.uc-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,184,214,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rr-cyan-shade);
  margin-bottom: 16px;
  border: 1px solid rgba(0,184,214,0.18);
}
.uc-card.featured .uc-icon { background: rgba(0,220,255,0.14); color: var(--rr-cyan); border-color: rgba(0,220,255,0.28); }
.uc-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.uc-card h3 { font-size: 17px; margin-bottom: 8px; }
.uc-card.featured h3 { color: white; font-size: 24px; }
.uc-card p { font-size: 13.5px; line-height: 1.5; flex: 1; }
.uc-card.featured p { font-size: 15px; }
.uc-card .uc-foot {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--rr-cyan-shade);
}
.uc-card.featured .uc-foot { color: var(--rr-cyan); }
.uc-card .uc-foot.muted { color: var(--text-muted); }
.uc-card .uc-foot svg { width: 14px; height: 14px; transition: transform .2s; }
.uc-card:hover .uc-foot svg { transform: translateX(3px); }

/* ============= COMPARISON TABLE ============= */
.compare-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--grey-light);
  border-radius: 12px;
  margin-bottom: 24px;
  width: fit-content;
}
.compare-tabs button {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all .2s;
}
.compare-tabs button[aria-pressed="true"] {
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.compare-table {
  width: 100%;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--grey-border);
  vertical-align: middle;
}
.compare-table th {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-main);
}
.compare-table th.rob-col, .compare-table td.rob-col {
  background: rgba(0,184,214,0.04);
  border-left: 1px solid rgba(0,184,214,0.18);
  border-right: 1px solid rgba(0,184,214,0.18);
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}
.compare-table th.rob-col {
  background: var(--rr-deep);
  color: white;
  border: 0;
}
.compare-table td.rob-col strong { color: var(--rr-cyan-shade); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table tr:last-child td.rob-col { border-bottom: 1px solid rgba(0,184,214,0.18); }
.compare-table td.criteria { font-weight: 600; color: var(--text-primary); }

.compare-table tr.highlight-animate td {
  animation: rowPulse 1.2s ease;
}
@keyframes rowPulse {
  0%, 100% { background-color: transparent; }
  40% { background-color: rgba(0,184,214,0.05); }
}
.compare-table tr.highlight-animate td.rob-col {
  animation: robRowPulse 1.2s ease;
}
@keyframes robRowPulse {
  0%, 100% { background: linear-gradient(180deg, rgba(0,184,214,0.04), rgba(107,141,181,0.04)); }
  40% { background: linear-gradient(180deg, rgba(0,184,214,0.14), rgba(0,220,255,0.10)); }
}

.compare-punchline {
  margin-top: 32px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.compare-punchline strong { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 820px) {
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 13px; }
}

/* ============= SECURITY / GUARANTEE ============= */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sec-grid { grid-template-columns: 1fr; } }

.sec-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  transition: all .2s;
}
.sec-card:hover { border-color: rgba(0,184,214,0.3); transform: translateY(-2px); }
.sec-card .sec-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,184,214,0.08);
  color: var(--rr-cyan-shade);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(0,184,214,0.18);
}
.sec-card .sec-icon.sec-icon-3d {
  width: 56px; height: 56px;
  background: transparent;
  border: none;
  border-radius: 0;
}
.sec-card .sec-icon.sec-icon-3d img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(10,18,32,0.16));
}
.sec-card h3 { font-size: 16px; margin-bottom: 8px; }
.sec-card p { font-size: 13.5px; line-height: 1.55; }

.guarantee {
  padding: 56px;
  background: var(--rr-midnight);
  color: white;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.guarantee::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,220,255,0.16), transparent 60%),
    radial-gradient(rgba(107,141,181,0.08) 1px, transparent 1px);
  background-size: auto, 32px 32px;
}
.guarantee-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .guarantee { padding: 40px 32px; } .guarantee-inner { grid-template-columns: 1fr; gap: 24px; } }
.guarantee-seal {
  width: 140px; height: 140px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.guarantee-seal img { border-radius: 24px !important; }
.guarantee-seal::before { content: none; }
.guarantee-seal span {
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.04em;
  z-index: 2;
  padding: 0 10px;
}
.guarantee h2 { color: white; font-size: clamp(26px, 3vw, 36px); }
.guarantee .grad-text {
  background: linear-gradient(90deg, #00DCFF 0%, #7DE6F6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.guarantee p { color: #D9DEEC; font-size: 16px; margin-top: 12px; }
.guarantee .gsub { margin-top: 16px; font-size: 13px; color: #6B8DB5; }

/* ============= TIMELINE ============= */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--rr-mist);
}
.timeline-fill {
  content: "";
  position: absolute;
  left: 11px; top: 12px;
  width: 2px;
  height: 0;
  background: var(--rr-cyan-shade);
  transition: height .8s var(--ease-instrument, cubic-bezier(.2,.6,.2,1));
}
.tl-item {
  position: relative;
  padding: 0 0 40px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--grey-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .3s;
}
.tl-item.active .tl-dot {
  background: var(--rr-deep);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(0,220,255,0.18);
}
.tl-item h3 { font-size: 19px; margin-bottom: 6px; }
.tl-item .tl-meta { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rr-cyan-shade); margin-bottom: 6px; }
.tl-item p { font-size: 15px; }

/* ============= TIMELINE — ZIGZAG VARIANT ============= */
.timeline-zigzag {
  max-width: 1080px;
  padding-left: 0;
  padding: 20px 0 0;
}
.timeline-zigzag::before {
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 3px;
}
.timeline-zigzag .timeline-fill {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 3px;
}
.timeline-zigzag .tl-item {
  position: relative;
  padding: 0 0 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.timeline-zigzag .tl-item:last-child { padding-bottom: 0; }
.timeline-zigzag .tl-dot {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 56px; height: 56px;
  font-size: 18px;
  font-weight: 800;
  background: white;
  border: 3px solid var(--grey-border);
  color: var(--text-muted);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(10,18,32,0.06);
}
.timeline-zigzag .tl-card {
  align-self: center;
  grid-row: 1;
}
.timeline-zigzag .tl-item.active .tl-dot {
  background: var(--rr-deep);
  color: white;
  border-color: var(--rr-cyan);
  box-shadow: 0 0 0 6px rgba(0,220,255,0.18), 0 8px 24px rgba(10,18,32,0.12);
  transform: scale(1.05);
}
.timeline-zigzag .tl-card {
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
}
.timeline-zigzag .tl-card::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--grey-border);
  transform: translateY(-50%);
}
.timeline-zigzag .tl-left .tl-card {
  grid-column: 1;
  text-align: right;
}
.timeline-zigzag .tl-left .tl-card::before { right: -24px; }
.timeline-zigzag .tl-right .tl-card {
  grid-column: 3;
  text-align: left;
}
.timeline-zigzag .tl-right .tl-card::before { left: -24px; }
.timeline-zigzag .tl-item.active .tl-card {
  border-color: rgba(0,184,214,0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.timeline-zigzag .tl-item.active .tl-card::before {
  background: var(--rr-cyan-shade);
}
.timeline-zigzag .tl-card h3 { font-size: 22px; margin-bottom: 8px; }
.timeline-zigzag .tl-card p { font-size: 15px; line-height: 1.55; }

@media (max-width: 820px) {
  .timeline-zigzag::before,
  .timeline-zigzag .timeline-fill {
    left: 28px;
    transform: none;
  }
  .timeline-zigzag .tl-item {
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 0 0 36px;
  }
  .timeline-zigzag .tl-dot { grid-column: 1; }
  .timeline-zigzag .tl-left .tl-card,
  .timeline-zigzag .tl-right .tl-card {
    grid-column: 2;
    text-align: left;
  }
  .timeline-zigzag .tl-left .tl-card::before,
  .timeline-zigzag .tl-right .tl-card::before {
    left: -20px;
    right: auto;
  }
}

/* ============= FAQ ============= */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(0,184,214,0.35); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-weight: 300;
  font-size: 24px;
  color: var(--rr-cyan-shade);
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============= CUSTOM CTA ============= */
.custom-cta {
  padding: 48px;
  background: white;
  border: 1px dashed var(--grey-border);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.custom-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 100%, rgba(0,184,214,0.05), transparent 60%),
    radial-gradient(circle at 90% 0%, rgba(107,141,181,0.05), transparent 60%);
  pointer-events: none;
}
.custom-cta > * { position: relative; }
.custom-cta p { max-width: 620px; margin: 16px auto 0; font-size: 16px; }

/* ============= FINAL CTA ============= */
.final-cta {
  padding: 96px 56px;
  background-image:
    linear-gradient(90deg, rgba(6,27,43,.82) 0%, rgba(6,27,43,.68) 44%, rgba(6,27,43,.3) 76%, rgba(6,27,43,.18) 100%),
    url("hero-factory-poster.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  border-radius: 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,27,43,.05) 0%, rgba(6,27,43,.18) 100%);
  pointer-events: none;
}
.final-cta > * { position: relative; }
.final-cta .eyebrow { color: #A8F2FF; background: rgba(0,220,255,.1); border-color: rgba(0,220,255,.3); }
.final-cta h2 { color: #fff; max-width: 650px; margin: 0; }
.final-cta p { color: #D2DCE7; max-width: 570px; margin: 18px 0 32px; font-size: 17px; }
.final-cta .btn-outline {
  background: var(--text-primary);
  color: white;
  border: 0;
}
.final-cta .btn-outline:hover { background: #2a364f; }

@media (max-width: 720px) { .final-cta { padding: 48px 28px; } }

/* ============= LOGOS / TESTIMONIALS PLACEHOLDER ============= */
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
@media (max-width: 820px) { .logos-row { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.logo-slot {
  height: 48px;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, var(--grey-light), var(--grey-light) 8px, white 8px, white 16px);
  border: 1px dashed var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 820px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  padding: 28px;
  background: white;
  border: 1px dashed var(--grey-border);
  border-radius: 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.testi-card .placeholder-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.testi-card blockquote { font-size: 15px; color: var(--text-muted); margin: 0; font-style: italic; line-height: 1.55; }
.testi-card .testi-who { display: flex; align-items: center; gap: 12px; }
.testi-card .testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grey-light);
}
.testi-card .testi-meta { font-size: 13px; color: var(--text-muted); }

/* ============= USE CASE PAGE specific ============= */
.breadcrumb {
  padding: 32px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }

.uc-hero .hero-layout { grid-template-columns: 1.1fr 1fr; }

/* Use-case / landing pages: cyan glow in the top zone (pattern is global body::before) */
body.uc-page {
  background-color: var(--tread-light-color, #F5F8FB);
}
/* Blue glow lifted to the very top (out of the hero's overflow clip) so it no
   longer cuts off as a hard line. Spans the same top zone as the pattern. */
body.uc-page::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(760px, 75%);
  height: 760px;
  background: radial-gradient(600px 600px at 88% 14%, rgba(0, 220, 255, 0.12), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
body.uc-page .hero .hero-glow,
body.uc-page .hero .hero-glow-2 {
  display: none;
}
.uc-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) { .uc-pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 14px;
  border-top: 3px solid #F59E0B;
}
.pain-card .pc-num { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--orange); letter-spacing: 0.14em; }
.pain-card h3 { font-size: 17px; margin: 8px 0; }
.pain-card p { font-size: 14.5px; }

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
  align-items: stretch;
}
@media (max-width: 960px) { .workflow { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 520px) { .workflow { grid-template-columns: 1fr; } }
.wf-step {
  padding: 24px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  position: relative;
}
.wf-step .wf-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-primary);
  font-weight: 600;
  letter-spacing: 0.14em;
}
.wf-step h4 { font-size: 15px; margin: 10px 0 8px; }
.wf-step p { font-size: 13px; line-height: 1.5; }
.wf-step .wf-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,184,214,0.1), rgba(107,141,181,0.08));
  color: var(--blue-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.wf-step .wf-icon svg { width: 18px; height: 18px; }

/* ============= WHAT YOU GET ============= */
.wyg-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) { .wyg-layout { grid-template-columns: 1fr; } }
.wyg-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wyg-list li {
  display: flex; gap: 14px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
}
.wyg-list li:hover { border-color: rgba(0,184,214,0.3); }
.wyg-list .wyg-chk {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.wyg-list .wyg-chk svg { width: 12px; height: 12px; stroke-width: 3; }
.wyg-list strong { display: block; color: var(--text-primary); font-size: 15.5px; margin-bottom: 4px; }
.wyg-list p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ============= SIDE BY SIDE ============= */
.sbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .sbs { grid-template-columns: 1fr; } }
.sbs-col {
  padding: 32px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--grey-border);
}
.sbs-col.manual {
  background: #FFF8ED;
  border-color: #F8E2B2;
}
.sbs-col.robx {
  background: var(--rr-midnight);
  color: white;
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.sbs-col.robx::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(0,220,255,0.16), transparent 60%);
  pointer-events: none;
}
.sbs-col h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.sbs-col.manual h3 { color: var(--orange); }
.sbs-col.robx h3 { color: white; }
.sbs-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; position: relative; }
.sbs-col li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(31,42,68,0.1);
  font-size: 14.5px;
  line-height: 1.4;
}
.sbs-col.robx li { border-bottom-color: rgba(255,255,255,0.12); color: #D9DEEC; }
.sbs-col li:last-child { border-bottom: 0; }
.sbs-col li strong { font-weight: 600; color: inherit; }
.sbs-col.manual li strong { color: var(--text-primary); }
.sbs-col.robx li strong { color: white; }

/* ============= PILL / MISC ============= */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grey-light);
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Other-use-cases mini-strip */
.other-uc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px) { .other-uc { grid-template-columns: 1fr; } }
.other-uc a {
  padding: 20px;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  transition: all .2s;
  display: block;
}
.other-uc a:hover { border-color: rgba(0,184,214,0.3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.other-uc .other-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--text-muted); text-transform: uppercase; }
.other-uc h4 { font-size: 17px; margin: 6px 0 6px; }
.other-uc p { font-size: 13px; color: var(--text-muted); }

/* ============= Mobile fine-tune ============= */
@media (max-width: 640px) {
  .hero { padding: 32px 0 64px; }
  .hero-layout .hero-sub { font-size: 16px; }
  .problem-wrap { padding: 28px; }
  .guarantee { padding: 36px 24px; }
  .guarantee-seal { display: none; }
}

/* ============= RCA Case Study responsive ============= */
@media (max-width: 960px) {
  .case-grid { grid-template-columns: 1fr !important; }
}

/* ============= Bad Actors Dashboard responsive ============= */
@media (max-width: 900px) {
  .dash-row { grid-template-columns: 1fr !important; }
}

/* ============= RCA Action Tracker responsive ============= */
@media (max-width: 900px) {
  .action-grid { grid-template-columns: 1fr !important; }
}

/* ============= LEGAL PAGES ============= */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.legal-wrap .legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rr-cyan-shade);
  margin-bottom: 12px;
}
.legal-wrap h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.legal-wrap .legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 32px;
}
.legal-wrap h2 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.legal-wrap h3 {
  font-size: 16px;
  margin-top: 22px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.legal-wrap p, .legal-wrap li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 8px 0;
}
.legal-wrap ul, .legal-wrap ol {
  padding-left: 20px;
}
.legal-wrap a { color: var(--rr-cyan-shade); text-decoration: underline; }
.legal-wrap a:hover { color: var(--text-primary); }
.legal-wrap .legal-callout {
  margin: 24px 0;
  padding: 16px 20px;
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
}
.legal-wrap .legal-callout strong { color: var(--text-primary); }
.legal-wrap .legal-toc {
  padding: 18px 22px;
  background: var(--bg-main);
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  margin-bottom: 32px;
}
.legal-wrap .legal-toc h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.legal-wrap .legal-toc ol { margin: 0; padding-left: 20px; }
.legal-wrap .legal-toc li { font-size: 14px; margin: 4px 0; }

/* ============= Other use cases — 4 cards responsive ============= */
@media (max-width: 980px) {
  .other-uc[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .other-uc[style*="repeat(4"] { grid-template-columns: 1fr !important; }
}

/* ============= Solutions pages — inline grids responsive ============= */
@media (max-width: 980px) {
  .other-uc[style*="repeat(3"] { grid-template-columns: 1fr !important; }
  .uc-pain-grid[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  .wyg-list[style*="repeat(3"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 880px) {
  .uc-grid[style*="repeat(2"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .uc-pain-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; }
  .wyg-list[style*="repeat(3"] { grid-template-columns: 1fr !important; }
}

/* ============= Tool intro screens (audit-style) ============= */
.tool-intro {
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 0 20px;
  text-align: center;
}
.tool-intro-card {
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 30px 60px rgba(31, 42, 68, 0.06);
  text-align: left;
}
.tool-intro-card .tool-intro-head { text-align: center; margin-bottom: 24px; }
.tool-intro-bullets {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-intro-bullets li {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}
.tool-intro-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00B8D6, #2F6BFF);
}
.tool-intro-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 24px;
  text-align: center;
}
.tool-intro-actions { text-align: center; }
.tool-intro-actions .btn,
.tool-intro-actions .btn-primary {
  min-width: 200px;
  background: linear-gradient(135deg, #00B8D6, #0A1220);
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 184, 214, 0.28);
}
.tool-intro-actions .btn:hover,
.tool-intro-actions .btn-primary:hover {
  background: linear-gradient(135deg, #00B8D6, #0A1220);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 184, 214, 0.38);
  color: #fff;
}
.tool-main-hidden { display: none !important; }

/* Tool pages: footer sticks to bottom of viewport on short screens */
body.tool-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.tool-page .tool-page-grow {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* ============= RELIABILITY FACTORY ============= */
.reveal.visible { opacity: 1; transform: none; }
.nav-logo img { width: min(285px, 36vw); height: auto; max-height: 42px; }
.nav-dropdown-trigger { border: 0; font-family: inherit; }
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }

.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}
.nav-mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--rr-deep);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rf-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(650px, 84vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--rr-midnight) url('/assets/hero-factory-poster.webp') center center / cover no-repeat;
}
.rf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,27,43,.82) 0%, rgba(6,27,43,.64) 42%, rgba(6,27,43,.24) 72%, rgba(6,27,43,.14) 100%),
    linear-gradient(0deg, rgba(6,27,43,.42) 0%, transparent 42%, rgba(6,27,43,.12) 100%);
}
.rf-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rr-cyan), #8B7CFF, transparent);
  opacity: .75;
}
.rf-hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.rf-hero-video.is-reduced { display: none; }
.rf-hero .container { width: 100%; padding-top: 96px; padding-bottom: 96px; }
.rf-hero-copy { max-width: 790px; }
.rf-hero h1 { max-width: 820px; margin: 22px 0; color: #fff; text-wrap: balance; }
.rf-hero .hero-sub { max-width: 760px; color: #DCE5EF; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.rf-hero .hero-sub strong { color: #fff; font-weight: 750; }
.rf-hero .eyebrow { color: #A8F2FF; background: rgba(0,220,255,.1); border-color: rgba(0,220,255,.32); }
.rf-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(6,27,43,.28); backdrop-filter: blur(8px); }
.rf-hero .btn-outline:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.72); }
.rf-accent { color: #8FEFFF; text-shadow: 0 0 30px rgba(0,220,255,.18); }
.rf-hero-proof { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: #B8C8D9; font: 600 12px/1.5 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.rf-hero-proof::before { content: ''; width: 28px; height: 1px; background: var(--rr-cyan); }

.rf-surface { background: #fff; }
.rf-night { color: #fff; background: var(--rr-midnight); }
.rf-night h2, .rf-night h3 { color: #fff; }
.rf-night p { color: #AEB9C9; }
.rf-night .eyebrow { color: #A8F2FF; background: rgba(0,220,255,.1); border-color: rgba(0,220,255,.25); }
.rf-lede { max-width: 780px; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.55; color: var(--rr-deep); }
.rf-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rf-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.rf-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--grey-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(10,18,32,.06);
}
.rf-card::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--rr-cyan), #8B7CFF); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.rf-card:hover::before { transform: scaleX(1); }
.rf-card h3 { margin: 16px 0 10px; font-size: 20px; }
.rf-card p { font-size: 15px; line-height: 1.65; }
.rf-card-tag, .rf-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--rr-deep);
  background: rgba(0,220,255,.12);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rf-number { width: 32px; height: 32px; padding: 0; }
.rf-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--rr-cyan-shade); font-weight: 700; font-size: 14px; }
.rf-card-link::after { content: '→'; transition: transform .2s ease; }
.rf-card:hover .rf-card-link::after { transform: translateX(4px); }

.rf-silo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.rf-silo {
  padding: 24px 18px;
  border: 1px dashed #AFBBC9;
  border-radius: 14px;
  text-align: center;
  background: rgba(255,255,255,.7);
}
.rf-silo strong { display: block; margin-bottom: 7px; color: var(--rr-deep); }
.rf-silo span { color: var(--text-muted); font-size: 13px; }
.rf-silo-arrow { display: flex; align-items: center; justify-content: center; margin: 28px auto 0; color: var(--rr-cyan-shade); font: 700 13px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }

.rf-brain-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.rf-brain-copy h2 { margin: 18px 0; }
.rf-brain-copy > p { font-size: 17px; line-height: 1.7; }
.rf-feature-list { display: grid; gap: 14px; margin-top: 28px; }
.rf-feature { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.rf-feature i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--rr-deep); background: rgba(0,220,255,.14); font-style: normal; font-weight: 800; }
.rf-feature strong { color: inherit; }
.rf-feature p { margin-top: 3px; font-size: 14px; }
.rf-graph {
  position: relative;
  min-height: 440px;
  border: 1px solid rgba(0,220,255,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(0,220,255,.14), transparent 34%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #080D17;
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.rf-graph svg { width: 100%; height: 440px; }
.rf-edge { stroke: rgba(0,220,255,.32); stroke-width: 1.5; }
.rf-edge-hot { stroke: #8B7CFF; stroke-width: 2; }
.rf-node circle { fill: #101B2C; stroke: rgba(0,220,255,.65); stroke-width: 1.5; }
.rf-node-core circle { fill: #00B8D6; stroke: #A8F2FF; }
.rf-node text { fill: #DCE5EF; font: 600 11px Inter, Arial, sans-serif; text-anchor: middle; }
.rf-node-core text { fill: #06111D; font-weight: 800; }

.rf-loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 48px; }
.rf-loop-step { position: relative; padding: 0 22px; border-left: 1px solid rgba(0,220,255,.25); }
.rf-loop-step:last-child { border-right: 1px solid rgba(0,220,255,.25); }
.rf-loop-step h3 { margin: 16px 0 8px; font-size: 18px; }
.rf-loop-step p { font-size: 14px; }
.rf-loop-step:not(:last-child)::after { content: '→'; position: absolute; top: 4px; right: -8px; color: var(--rr-cyan); font-weight: 800; }

.rf-trace-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
.rf-trace-panel { padding: 30px; border: 1px solid var(--grey-border); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.rf-chain { display: grid; gap: 10px; }
.rf-chain-row { display: grid; grid-template-columns: 106px 1fr; gap: 14px; align-items: center; }
.rf-chain-key { color: var(--text-muted); font: 700 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.rf-chain-value { position: relative; padding: 13px 15px; border-left: 3px solid var(--rr-cyan); border-radius: 8px; color: var(--rr-deep); background: var(--rr-paper); font-weight: 600; font-size: 14px; }
.rf-chain-value::after { content: ''; position: absolute; left: -2px; top: 100%; height: 11px; border-left: 1px dashed #93A2B5; }
.rf-chain-row:last-child .rf-chain-value::after { display: none; }

.rf-page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(650px, 84vh, 860px);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--rr-midnight);
}
.rf-page-hero-layout {
  position: static;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  min-height: inherit;
  padding: 96px 32px;
  overflow: visible;
}
.rf-page-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,27,43,.82) 0%, rgba(6,27,43,.64) 42%, rgba(6,27,43,.24) 72%, rgba(6,27,43,.14) 100%),
    linear-gradient(0deg, rgba(6,27,43,.42) 0%, transparent 42%, rgba(6,27,43,.12) 100%);
  pointer-events: none;
}
.rf-page-hero::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rr-cyan), #8B7CFF, transparent);
  opacity: .75;
}
.rf-page-hero-copy { position: relative; z-index: 1; width: min(650px, 62%); min-width: 0; }
.rf-page-hero-photo { position: absolute; z-index: -2; inset: 0; margin: 0; overflow: hidden; background: #111B29; }
.rf-page-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.rf-page-hero-photo-wide img { object-position: 60% center; }
.rf-page-hero-photo-bad-actor img { object-position: 68% center; }
.rf-page-hero-photo-rca img { object-position: 66% center; }
@media (max-width: 960px) {
  .rf-page-hero { min-height: 680px; }
  .rf-page-hero-layout { min-height: inherit; padding: 80px 32px; }
  .rf-page-hero-copy { width: min(620px, 76%); }
  .rf-page-hero::before { background: linear-gradient(90deg, rgba(6,27,43,.8), rgba(6,27,43,.48)), linear-gradient(0deg, rgba(6,27,43,.48), transparent 50%); }
}
.rf-page-hero h1 { max-width: 900px; margin: 22px 0; color: #fff; }
.rf-page-hero p { max-width: 760px; color: #BCC9D9; font-size: 19px; line-height: 1.65; }
.rf-page-hero .hero-actions { margin-top: 30px; }
.rf-page-hero .btn-outline {
  color: #fff;
  background: rgba(6,27,43,.28);
  border-color: rgba(255,255,255,.42);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.rf-page-hero .btn-outline:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.72); }
.rf-page-hero-simple {
  display: block;
  min-height: 0;
  padding: 118px 0 84px;
  overflow: visible;
  background:
    radial-gradient(circle at 80% 20%, rgba(0,220,255,.16), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(139,124,255,.12), transparent 30%),
    var(--rr-midnight);
}
.rf-page-hero-simple::before { content: none; }
.rf-breadcrumb { margin-bottom: 24px; color: #9CB0C6; font: 700 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.rf-breadcrumb a { color: #A8F2FF; }
.rf-detail-list { display: grid; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.rf-detail-list li { position: relative; padding-left: 26px; color: var(--text-secondary); line-height: 1.55; }
.rf-detail-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; color: var(--rr-cyan-shade); font-weight: 800; }
.rf-workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 42px; }
.rf-workflow .rf-card { padding: 22px; box-shadow: none; }
.rf-workflow h3 { font-size: 17px; }
.rf-keep { padding: 44px; border: 1px solid rgba(0,220,255,.18); border-radius: 22px; background: radial-gradient(circle at 100% 0, rgba(0,220,255,.12), transparent 36%), var(--rr-midnight); color: #fff; }
.rf-keep h2 { margin: 16px 0; color: #fff; }
.rf-keep p { max-width: 820px; color: #B7C4D3; font-size: 17px; }
.rf-keep .rf-detail-list { grid-template-columns: repeat(3, 1fr); gap: 16px 28px; }
.rf-keep .rf-detail-list li { color: #DDE5ED; }

.rf-founder { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.rf-founder-photo { position: relative; }
.rf-founder-photo::after { content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border-radius: 22px; border: 1px solid rgba(0,184,214,.35); }
.rf-founder-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-xl); }
.rf-founder-copy h2 { margin: 16px 0 10px; }
.rf-founder-role { margin-bottom: 22px; color: var(--rr-cyan-shade); font: 700 12px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.rf-founder-copy p + p { margin-top: 16px; }

.rf-mini-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.rf-mini-nav a, .rf-mini-nav span { padding: 10px 14px; border: 1px solid var(--grey-border); border-radius: 999px; color: var(--rr-deep); background: #fff; font-size: 13px; font-weight: 650; }
.rf-mini-nav a:hover { border-color: var(--rr-cyan-shade); color: var(--rr-cyan-shade); }

.footer-brand img { width: 250px; max-width: 100%; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin-top: 16px; max-width: 310px; }
.footer-tagline { color: #9EABBD; font-size: 14px; line-height: 1.65; }

@media (max-width: 1040px) {
  .rf-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rf-brain-layout, .rf-trace-layout { grid-template-columns: 1fr; }
  .rf-brain-copy { max-width: 760px; }
  .rf-loop, .rf-workflow { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .rf-loop-step:last-child, .rf-workflow > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .nav-mobile-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    inset: 72px 0 auto;
    max-height: calc(100vh - 72px);
    padding: 18px 24px 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--grey-border);
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a, .nav-dropdown-trigger { width: 100%; padding: 12px; text-align: left; }
  .nav-dropdown-menu { position: static; display: none; min-width: 0; margin: 2px 0 10px; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-right { display: none; }
  body.nav-open { overflow: hidden; }
  .rf-hero { min-height: 680px; }
  .rf-hero::before { background: linear-gradient(90deg, rgba(6,27,43,.8), rgba(6,27,43,.48)), linear-gradient(0deg, rgba(6,27,43,.48), transparent 50%); }
  .rf-grid-3, .rf-grid-2 { grid-template-columns: 1fr; }
  .rf-silo-row { grid-template-columns: repeat(2, 1fr); }
  .rf-founder { grid-template-columns: 260px 1fr; gap: 38px; }
  .rf-keep .rf-detail-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-logo img { width: 210px; height: auto; }
  .rf-hero { min-height: 720px; background-position: 56% center; }
  .rf-hero-video { object-position: 56% center; }
  .rf-hero .container { padding-top: 70px; padding-bottom: 70px; }
  .rf-hero::before { background: linear-gradient(90deg, rgba(6,27,43,.78), rgba(6,27,43,.48)), linear-gradient(0deg, rgba(6,27,43,.54), rgba(6,27,43,.08) 62%); }
  .rf-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .rf-hero-proof { align-items: flex-start; }
  .rf-grid-4, .rf-silo-row, .rf-loop, .rf-workflow { grid-template-columns: 1fr; }
  .rf-loop-step, .rf-loop-step:last-child { padding: 0 0 24px 20px; border: 0; border-left: 1px solid rgba(0,220,255,.25); }
  .rf-loop-step:not(:last-child)::after { content: '↓'; top: auto; right: auto; bottom: 0; left: 17px; }
  .rf-workflow > :last-child { grid-column: auto; }
  .rf-graph { min-height: 350px; }
  .rf-graph svg { height: 350px; }
  .rf-chain-row { grid-template-columns: 1fr; gap: 5px; }
  .rf-chain-value::after { display: none; }
  .rf-founder { grid-template-columns: 1fr; }
  .rf-founder-photo { max-width: 270px; }
  .rf-keep { padding: 30px 22px; }
  .rf-keep .rf-detail-list { grid-template-columns: 1fr; }
  .rf-page-hero { min-height: 720px; }
  .rf-page-hero-layout { align-items: center; width: 100%; min-height: inherit; padding: 70px 20px; }
  .rf-page-hero-copy { width: 100%; }
  .rf-page-hero-photo img, .rf-page-hero-photo-wide img { object-position: 64% center; }
  .rf-page-hero-photo-bad-actor img { object-position: 74% center; }
  .rf-page-hero-photo-rca img { object-position: 82% center; }
  .rf-page-hero::before { background: linear-gradient(90deg, rgba(6,27,43,.78), rgba(6,27,43,.48)), linear-gradient(0deg, rgba(6,27,43,.54), rgba(6,27,43,.08) 62%); }
  .rf-page-hero-simple { min-height: 0; padding: 88px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rf-hero-video { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ============= RELIABILITY FACTORY — SCANNABLE HOME ============= */
.rf-home .rf-home-section { padding: 78px 0; }
.rf-home .section-head { margin-bottom: 38px; }
.rf-home .section-head h2 { text-wrap: balance; }
.rf-home .section-head p { max-width: 620px; margin-right: auto; margin-left: auto; }
.rf-home .rf-hero-copy { max-width: 750px; }
.rf-home .rf-hero .hero-sub { max-width: 675px; }
.rf-short-copy { max-width: 570px; margin-top: 18px; color: var(--text-secondary); font-size: 17px; line-height: 1.65; }

.rf-problem-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.rf-problem-layout h2 { margin-top: 18px; text-wrap: balance; }
.rf-fragment-map {
  position: relative;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--grey-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 45%, rgba(0,184,214,.11), transparent 35%),
    linear-gradient(rgba(10,18,32,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,18,32,.035) 1px, transparent 1px),
    #fff;
  background-size: auto, 26px 26px, 26px 26px, auto;
  box-shadow: 0 22px 60px rgba(10,18,32,.08);
}
.rf-fragment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rf-fragment {
  position: relative;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px dashed #9DAABA;
  border-radius: 14px;
  background: rgba(255,255,255,.86);
}
.rf-fragment:nth-child(2), .rf-fragment:nth-child(4) { transform: translateY(10px); }
.rf-fragment span { color: var(--rr-cyan-shade); font: 700 11px var(--font-mono); letter-spacing: .08em; }
.rf-fragment strong { margin-top: 8px; color: var(--rr-deep); font-size: 17px; }
.rf-fragment-loss { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--text-muted); font: 700 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.rf-fragment-loss i { flex: 1; border-top: 1px dashed #9DAABA; }

.rf-era-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--grey-border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(242,247,251,.94));
  box-shadow: 0 22px 60px rgba(14,32,55,.1);
}
.rf-era-card { padding: 25px; border-radius: 16px; }
.rf-era-old { color: #5D6978; background: #EEF2F5; }
.rf-era-new { color: #DCE5EF; background: linear-gradient(145deg, #12344D, #082338); box-shadow: 0 16px 38px rgba(6,27,43,.22); }
.rf-era-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(105,121,139,.2); }
.rf-era-top span { font: 700 11px/1.3 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.rf-era-top strong { color: #8C98A6; font-size: clamp(24px, 3vw, 34px); line-height: .95; }
.rf-era-new .rf-era-top { border-color: rgba(255,255,255,.12); }
.rf-era-new .rf-era-top span { color: #8FEFFF; }
.rf-era-new .rf-era-top strong { color: #fff; }
.rf-era-card ul { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.rf-era-card li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.rf-era-card li::before { content: '—'; position: absolute; left: 0; color: #9CA7B3; }
.rf-era-new li::before { content: '✓'; color: var(--rr-cyan); font-weight: 800; }
.rf-era-shift { display: grid; place-items: center; color: var(--rr-cyan-shade); font: 700 23px var(--font-mono); }

.rf-brain-section { padding-top: 88px; padding-bottom: 88px; overflow: hidden; }
.rf-brain-intro {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 42px;
}
.rf-brain-intro h2 { max-width: 720px; margin-top: 18px; text-wrap: balance; }
.rf-brain-intro p { max-width: 490px; font-size: 17px; line-height: 1.65; }
.rf-brain-intro .rf-card-link { color: #8FEFFF; }
.rf-brain-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(143,239,255,.18);
  border-radius: 24px;
  background: #071F32;
  box-shadow: 0 32px 90px rgba(0,0,0,.35);
}
.rf-brain-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6,27,43,.64) 100%);
}
.rf-brain-visual img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rf-brain-visual figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rf-brain-visual figcaption span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #EAF4FA;
  background: rgba(6,27,43,.68);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 650;
}
.rf-brain-visual figcaption i { width: 7px; height: 7px; border-radius: 50%; background: var(--rr-cyan); box-shadow: 0 0 12px rgba(0,220,255,.8); }
.rf-brain-visual figcaption span:nth-child(2) i { background: #8B7CFF; box-shadow: 0 0 12px rgba(139,124,255,.8); }

.rf-solution-cards .rf-card { min-height: 238px; display: flex; flex-direction: column; }
.rf-solution-cards .rf-card p { color: var(--text-secondary); }
.rf-solution-cards .rf-card-link { margin-top: auto; padding-top: 18px; }

.rf-living-section { padding: 82px 0; background: #F4F7FA; }
.rf-living-loop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 46px minmax(0,1fr) 46px minmax(0,1fr) 46px minmax(0,1fr);
  align-items: center;
}
.rf-living-loop > div {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border: 1px solid var(--grey-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(10,18,32,.06);
}
.rf-living-loop > div span { color: var(--rr-cyan-shade); font: 700 11px var(--font-mono); letter-spacing: .08em; }
.rf-living-loop > div strong { margin-top: 14px; color: var(--rr-deep); font-size: 20px; }
.rf-living-loop > div small { margin-top: 8px; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.rf-living-loop > i { color: var(--rr-cyan-shade); text-align: center; font-size: 21px; font-style: normal; }
.rf-living-loop > b { position: absolute; right: -17px; top: -19px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--rr-cyan-shade), #7868E6); box-shadow: 0 10px 25px rgba(0,184,214,.25); font-size: 22px; }

.rf-proof-section { padding: 88px 0; }
.rf-proof-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.rf-proof-layout h2 { margin-top: 18px; }
.rf-proof-layout .rf-short-copy { color: #AEB9C9; }
.rf-proof-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.rf-proof-pills span { padding: 9px 12px; border: 1px solid rgba(143,239,255,.2); border-radius: 999px; color: #D8F8FF; background: rgba(0,220,255,.07); font: 650 11px var(--font-mono); letter-spacing: .035em; }
.rf-proof-section .rf-trace-panel { border-color: rgba(143,239,255,.15); background: #0B2940; box-shadow: 0 28px 70px rgba(4,18,30,.3); }
.rf-proof-section .rf-chain-key { color: #8FA1B7; }
.rf-proof-section .rf-chain-value { color: #E8F0F7; background: #12344D; }

.rf-engagement-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 42px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.rf-field-photo { position: relative; min-height: 560px; margin: 0; overflow: hidden; border-radius: 22px; background: var(--rr-midnight); box-shadow: 0 22px 60px rgba(10,18,32,.14); }
.rf-field-photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(6,27,43,.68)); pointer-events: none; }
.rf-field-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.rf-field-photo figcaption { position: absolute; z-index: 1; inset: auto 28px 25px; max-width: 330px; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.35; }
.rf-engagement { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: center; }
.rf-engagement article { min-height: 145px; padding: 26px; border: 1px solid var(--grey-border); border-radius: 20px; background: #fff; box-shadow: 0 14px 42px rgba(10,18,32,.06); }
.rf-engagement article span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--rr-deep); background: rgba(0,220,255,.12); font: 700 11px var(--font-mono); }
.rf-engagement article h3 { margin: 16px 0 6px; font-size: 19px; }
.rf-engagement article p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.rf-engagement > i { height: 18px; color: var(--rr-cyan-shade); text-align: center; font-size: 20px; font-style: normal; transform: rotate(90deg); }

.rf-faq-short .faq-item p { padding: 0 24px 22px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

@media (max-width: 1040px) {
  .rf-problem-layout, .rf-brain-intro, .rf-proof-layout { gap: 46px; }
  .rf-living-loop { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .rf-living-loop > i { display: none; }
  .rf-engagement-layout { gap: 28px; }
}

@media (max-width: 900px) {
  .rf-problem-layout { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .rf-home .rf-home-section, .rf-living-section, .rf-brain-section, .rf-proof-section { padding-top: 64px; padding-bottom: 64px; }
  .rf-problem-layout, .rf-brain-intro, .rf-proof-layout { grid-template-columns: 1fr; gap: 34px; }
  .rf-era-compare { grid-template-columns: 1fr; gap: 10px; }
  .rf-era-shift { transform: rotate(90deg); min-height: 28px; }
  .rf-brain-intro { align-items: start; }
  .rf-engagement-layout { grid-template-columns: 1fr; }
  .rf-field-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .rf-engagement article { min-height: 0; }
}

@media (max-width: 640px) {
  .rf-home .rf-hero { min-height: 680px; }
  .rf-home .rf-hero .hero-sub { font-size: 17px; line-height: 1.55; }
  .rf-fragment-map { padding: 22px; }
  .rf-fragment-grid { gap: 12px; }
  .rf-fragment { min-height: 90px; padding: 16px; }
  .rf-fragment strong { font-size: 15px; }
  .rf-brain-visual img { aspect-ratio: 4 / 3; }
  .rf-brain-visual figcaption { inset: auto 14px 14px; gap: 6px; }
  .rf-brain-visual figcaption span { padding: 7px 9px; font-size: 10px; }
  .rf-solution-cards .rf-card { min-height: 0; }
  .rf-living-loop { grid-template-columns: 1fr; }
  .rf-living-loop > div { min-height: 135px; }
  .rf-living-loop > b { right: -8px; top: -17px; }
  .rf-proof-section .rf-trace-panel { padding: 22px; }
  .rf-field-photo figcaption { inset: auto 20px 18px; font-size: 16px; }
  .final-cta { padding: 70px 24px; background-position: 64% center; }
  .final-cta::before { background: linear-gradient(90deg, rgba(6,27,43,.82), rgba(6,27,43,.52)); }
}

/* ============= FACTORY BRAIN — PRODUCT SCREENS ============= */
.rf-product-tour {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(0,184,214,.08), transparent 30%),
    #F4F7FA;
}
.rf-product-tour .section-head { margin-bottom: 40px; }
.rf-product-showcase { max-width: 1160px; margin: 0 auto; }
.rf-product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid #D8E1EB;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(10,18,32,.09);
}
.rf-product-shot > a { display: block; overflow: hidden; background: #EDF3F8; }
.rf-product-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.rf-product-shot:hover img { transform: scale(1.012); }
.rf-product-shot figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
}
.rf-product-shot figcaption span { display: grid; gap: 6px; }
.rf-product-shot figcaption small { color: var(--rr-cyan-shade); font: 700 11px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.rf-product-shot figcaption strong { color: var(--rr-deep); font-size: 17px; }
.rf-product-shot figcaption em { flex: 0 0 auto; color: var(--text-muted); font-size: 12px; font-style: normal; }
.rf-product-shot-primary figcaption { padding: 24px 26px; }
.rf-product-shot-primary figcaption strong { font-size: 21px; }
.rf-product-secondary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 20px; }

@media (max-width: 720px) {
  .rf-product-secondary { grid-template-columns: 1fr; }
  .rf-product-shot, .rf-product-shot-primary { border-radius: 14px; }
  .rf-product-shot figcaption, .rf-product-shot-primary figcaption { align-items: flex-start; padding: 17px 18px; }
  .rf-product-shot figcaption strong, .rf-product-shot-primary figcaption strong { font-size: 16px; }
  .rf-product-shot figcaption em { display: none; }
}

/* ============================================
   SECTION BANNER — field photography
   ============================================ */
.rf-section-banner {
  position: relative;
  margin: 0 0 52px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--rr-midnight);
  box-shadow: 0 22px 60px rgba(10,18,32,.16);
  aspect-ratio: 21 / 7;
}
.rf-section-banner img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
}
.rf-section-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,27,43,.78) 0%, rgba(6,27,43,.48) 38%, rgba(6,27,43,.1) 68%, rgba(6,27,43,.03) 100%);
  pointer-events: none;
}
.rf-section-banner figcaption {
  position: absolute; z-index: 1;
  inset: auto auto 0 0;
  max-width: 470px;
  padding: 0 34px 32px;
  color: #fff;
}
.rf-section-banner figcaption small {
  display: inline-flex; align-items: center; gap: 7px;
  color: #A8F2FF;
  font: 700 11px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rf-section-banner figcaption small::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rr-cyan);
  box-shadow: 0 0 0 3px rgba(0,220,255,.22);
}
.rf-section-banner figcaption strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 750;
  line-height: 1.3;
}

@media (max-width: 860px) {
  .rf-section-banner { aspect-ratio: 16 / 9; margin-bottom: 40px; }
  .rf-section-banner img { object-position: 68% 45%; }
  .rf-section-banner::after { background: linear-gradient(0deg, rgba(6,27,43,.82) 0%, rgba(6,27,43,.38) 46%, rgba(6,27,43,.08) 100%); }
  .rf-section-banner figcaption { max-width: none; padding: 0 22px 22px; }
}

/* ============================================
   LOSS ANALYTICS — Pareto / recurrence / split
   ============================================ */
:root {
  --sev-critical:      #EF4444;
  --sev-critical-deep: #DC2626;
  --sev-high:          #F59E0B;
  --sev-high-deep:     #D97706;
  --sev-watch:         #EAB308;
  --sev-watch-deep:    #CA8A04;
}

.rf-dash {
  overflow: hidden;
  border: 1px solid var(--grey-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-xl);
}
.rf-dash-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--grey-border);
  background: #F7F9FC;
}
.rf-dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--rr-steel); }
.rf-dash-bar i:nth-child(1) { background: #FF5F57; }
.rf-dash-bar i:nth-child(2) { background: #FEBC2E; }
.rf-dash-bar i:nth-child(3) { background: #28C840; }
.rf-dash-bar span {
  margin-left: 8px;
  color: var(--text-muted);
  font: 600 11px var(--font-mono);
  letter-spacing: .04em;
}

.rf-dash-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: flex-end; justify-content: space-between;
  padding: 24px 26px 0;
}
.rf-dash-head small {
  display: block;
  color: var(--text-muted);
  font: 700 10.5px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rf-dash-head h3 { margin: 6px 0 0; font-size: 21px; color: var(--rr-deep); }
.rf-dash-head p { margin: 7px 0 0; font-size: 13px; color: var(--text-muted); }
.rf-dash-sample {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(107,141,181,.28);
  border-radius: 999px;
  color: var(--text-secondary);
  font: 650 11px var(--font-mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.rf-dash-sample::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

.rf-dash-body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1px;
  margin-top: 22px;
  background: var(--grey-border);
  border-top: 1px solid var(--grey-border);
}
.rf-dash-pane { padding: 24px 26px; background: #fff; }
.rf-dash-pane > small {
  display: block;
  color: var(--text-muted);
  font: 700 10.5px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rf-dash-pane > h4 { margin: 5px 0 0; font-size: 16px; color: var(--rr-deep); }

/* Pareto (SVG) */
.rf-pareto { display: block; width: 100%; height: auto; margin-top: 16px; }
.rf-pareto .rf-ax { stroke: var(--grey-border); stroke-width: 1; }
.rf-pareto .rf-ax-80 { stroke: #93A2B5; stroke-width: 1; stroke-dasharray: 4 4; }
.rf-pareto .rf-tick { fill: var(--text-muted); font: 600 10px var(--font-mono); }
.rf-pareto .rf-cat { fill: var(--text-secondary); font: 650 10.5px var(--font-mono); text-anchor: middle; }
.rf-pareto .rf-cat-hot { fill: var(--sev-critical-deep); font-weight: 800; }
.rf-pareto .rf-cum-line { fill: none; stroke: var(--rr-cyan-shade); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rf-pareto .rf-cum-dot { fill: #fff; stroke: var(--rr-cyan-shade); stroke-width: 2; }
.rf-pareto .rf-cum-label { fill: var(--rr-cyan-shade); font: 800 10.5px var(--font-mono); }
.rf-pareto .rf-80-label { fill: #6B8DB5; font: 700 10px var(--font-mono); }

.rf-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.rf-legend span {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-muted);
  font: 600 11.5px var(--font-mono);
}
.rf-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--rr-steel); }
.rf-legend .is-critical i { background: var(--sev-critical); }
.rf-legend .is-high i { background: var(--sev-high); }
.rf-legend .is-watch i { background: var(--sev-watch); }
.rf-legend .is-cum i { width: 16px; height: 2px; border-radius: 2px; background: var(--rr-cyan-shade); }

/* Recurrence bars */
.rf-bars { display: grid; gap: 11px; margin-top: 18px; }
.rf-bar-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px 12px;
  align-items: center;
}
.rf-bar-row b {
  grid-column: 1 / -1;
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 650;
}
.rf-bar-track {
  height: 10px;
  border-radius: 5px;
  background: var(--rr-paper);
  overflow: hidden;
}
.rf-bar-track > i {
  display: block; height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--sev-watch), var(--sev-watch-deep));
}
.rf-bar-row.is-critical .rf-bar-track > i { background: linear-gradient(90deg, var(--sev-critical), var(--sev-critical-deep)); }
.rf-bar-row.is-high .rf-bar-track > i { background: linear-gradient(90deg, var(--sev-high), var(--sev-high-deep)); }
.rf-bar-val {
  text-align: right;
  color: var(--sev-watch-deep);
  font: 700 12px var(--font-mono);
}
.rf-bar-row.is-critical .rf-bar-val { color: var(--sev-critical); }
.rf-bar-row.is-high .rf-bar-val { color: var(--sev-high-deep); }

/* KPI strip */
.rf-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--grey-border);
  border-top: 1px solid var(--grey-border);
}
.rf-kpi { padding: 20px 26px; background: #fff; }
.rf-kpi strong {
  display: block;
  color: var(--rr-deep);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.rf-kpi.is-critical strong { color: var(--sev-critical); }
.rf-kpi.is-high strong { color: var(--sev-high-deep); }
.rf-kpi span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

/* AI summary footer */
.rf-dash-foot {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  padding: 17px 26px;
  border-top: 1px solid var(--grey-border);
  background: linear-gradient(90deg, rgba(0,184,214,.07), rgba(0,220,255,.03));
}
.rf-dash-foot div { display: flex; align-items: center; gap: 13px; }
.rf-dash-foot em {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--rr-deep);
  color: #fff;
  font: 800 12px var(--font-mono);
  font-style: normal;
}
.rf-dash-foot small {
  display: block;
  color: var(--rr-cyan-shade);
  font: 700 10.5px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rf-dash-foot strong {
  display: block;
  margin-top: 3px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
}
.rf-dash-foot .rf-dash-note { color: var(--text-muted); font-size: 12px; }

@media (max-width: 980px) {
  .rf-dash-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rf-dash-head { padding: 20px 18px 0; }
  .rf-dash-pane, .rf-kpi { padding: 20px 18px; }
  .rf-kpis { grid-template-columns: 1fr; }
  .rf-dash-foot { padding: 16px 18px; }
  .rf-dash-foot .rf-dash-note { display: none; }
}

/* Failure-mode split donut */
.rf-split { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.rf-donut {
  position: relative;
  flex: 0 0 auto;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: conic-gradient(
    var(--sev-critical) 0 44%,
    var(--sev-high) 44% 67%,
    var(--sev-watch) 67% 85%,
    var(--rr-cyan-shade) 85% 100%
  );
}
.rf-donut > span {
  position: absolute; inset: 19px;
  display: grid; place-content: center; justify-items: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}
.rf-donut strong { color: var(--rr-deep); font-size: 20px; font-weight: 800; line-height: 1; }
.rf-donut small { margin-top: 3px; color: var(--text-muted); font: 700 9px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.rf-split-legend { display: grid; gap: 7px; min-width: 0; }
.rf-split-legend span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.rf-split-legend i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 2px; background: var(--rr-steel); }
.rf-split-legend b { color: var(--text-primary); font-weight: 650; }
.rf-split-legend .is-critical i { background: var(--sev-critical); }
.rf-split-legend .is-high i { background: var(--sev-high); }
.rf-split-legend .is-watch i { background: var(--sev-watch); }
.rf-split-legend .is-cool i { background: var(--rr-cyan-shade); }

.rf-dash-sub { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--grey-border); }
.rf-dash-sub > small {
  display: block;
  color: var(--text-muted);
  font: 700 10.5px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rf-dash-sub > h4 { margin: 5px 0 0; font-size: 16px; color: var(--rr-deep); }

@media (max-width: 420px) {
  .rf-split { gap: 14px; }
  .rf-donut { width: 92px; height: 92px; }
  .rf-donut > span { inset: 16px; }
  .rf-donut strong { font-size: 17px; }
}

.rf-pareto-read {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--grey-border);
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
}
.rf-pareto-read::first-line { font-weight: 600; }

/* Pareto stays legible on narrow screens by scrolling in its own container */
.rf-pareto-wrap { margin-top: 16px; overflow-x: auto; overscroll-behavior-x: contain; }
.rf-pareto { margin-top: 0; }

@media (max-width: 860px) {
  .rf-pareto { min-width: 620px; }
  .rf-pareto .rf-tick { font-size: 12px; }
  .rf-pareto .rf-cat { font-size: 12.5px; }
  .rf-pareto .rf-cum-label { font-size: 12.5px; }
  .rf-pareto .rf-80-label { font-size: 12px; }
  .rf-pareto-wrap::-webkit-scrollbar { height: 6px; }
  .rf-pareto-wrap::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--rr-steel); }
  .rf-pareto-wrap::-webkit-scrollbar-track { background: var(--rr-paper); border-radius: 3px; }
}

/* grid items must be allowed to shrink below their content width
   so the scrollable Pareto does not stretch the whole dashboard */
.rf-dash-pane, .rf-kpi { min-width: 0; }

/* ============================================
   WORDMARK — Reliability / Factory
   Two stacked words in Inter 800 plus the cyan //.
   The slashes are geometry (skewed bars), not a typed
   glyph, so they always match the official R// mark.
   ============================================ */
.rf-wordmark {
  display: inline-flex;
  align-items: stretch;
  gap: .3em;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}
.rf-wordmark-words { display: flex; flex-direction: column; justify-content: center; line-height: .92; }
.rf-wordmark-words span {
  display: block;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--rr-deep);
}
.rf-wordmark-words span + span { font-size: .86em; color: var(--rr-cyan-shade); }

.rf-wordmark-slash { display: inline-flex; align-self: stretch; gap: .12em; }
.rf-wordmark-slash i {
  display: block;
  width: .15em;
  border-radius: 1px;
  background: var(--rr-cyan-shade);
  transform: skewX(-15deg);
}

/* dark surfaces only — the footer is white, so it keeps the ink version */
.rf-night .rf-wordmark-words span { color: #F5F8FB; }
.rf-night .rf-wordmark-words span + span { color: var(--rr-cyan); }
.rf-night .rf-wordmark-slash i { background: var(--rr-cyan); }

/* placements */
.nav-logo .rf-wordmark { font-size: 21px; }
.footer-brand .rf-wordmark { font-size: 25px; }

.nav-logo:hover .rf-wordmark-slash i { background: var(--rr-cyan); }

@media (max-width: 720px) {
  .nav-logo .rf-wordmark { font-size: 17px; }
  .footer-brand .rf-wordmark { font-size: 22px; }
}

/* ============================================
   R//SAFE — data guarantees
   ============================================ */
.rf-safe-eyebrow i {
  font-style: normal;
  color: var(--rr-cyan-shade);
  letter-spacing: -.06em;
  padding: 0 .06em;
}

.rf-safe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.rf-safe-card {
  padding: 26px 24px 28px;
  border: 1px solid var(--grey-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.rf-safe-card svg {
  width: 26px; height: 26px;
  stroke: var(--rr-cyan-shade);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rf-safe-card strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--rr-deep);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}
.rf-safe-card p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

.rf-safe-foot {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  align-items: center;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.rf-safe-foot a { color: var(--rr-cyan-shade); font-weight: 650; }

/* compact reassurance band, reused on the solution pages */
.rf-safe-band {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 12px 14px;
  padding: 20px 26px;
  border: 1px solid rgba(0,184,214,.22);
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(0,184,214,.07), rgba(0,220,255,.02));
}
.rf-safe-band > b {
  color: var(--rr-deep);
  font: 800 12px var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rf-safe-band > b i { font-style: normal; color: var(--rr-cyan-shade); letter-spacing: -.06em; }
.rf-safe-band span {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}
.rf-safe-band span::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rr-cyan-shade);
  flex: 0 0 auto;
}

/* ============================================
   NOT-A-CHAT comparison
   ============================================ */
.rf-vs-wrap { overflow-x: auto; margin-top: 44px; }
.rf-vs {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--grey-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.rf-vs th, .rf-vs td {
  padding: 16px 22px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--grey-border);
  vertical-align: middle;
}
.rf-vs thead th {
  font: 700 11.5px var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--rr-paper);
}
.rf-vs thead th.rf-vs-us {
  background: var(--rr-deep);
  color: #fff;
}
.rf-vs thead th.rf-vs-us i { font-style: normal; color: var(--rr-cyan); letter-spacing: -.06em; }
.rf-vs td:first-child {
  font-weight: 700;
  color: var(--rr-deep);
  width: 20%;
}
.rf-vs td.rf-vs-them { color: var(--text-muted); width: 38%; }
.rf-vs td.rf-vs-us {
  color: var(--rr-deep);
  font-weight: 600;
  width: 42%;
  background: rgba(0,184,214,.045);
  border-left: 1px solid rgba(0,184,214,.18);
}
.rf-vs tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 980px) {
  .rf-safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .rf-safe-grid { grid-template-columns: 1fr; gap: 14px; }
  .rf-safe-card { padding: 22px 20px 24px; }
  .rf-safe-band { padding: 18px 20px; }
}

/* keep the R//Safe mark tight even inside letter-spaced eyebrows */
.rf-safe-eyebrow { letter-spacing: .1em; }
.rf-safe-eyebrow i { margin: 0 -.04em 0 -.09em; letter-spacing: -.02em; }

/* ============================================
   ABOUT — single editorial column, no section boxes
   ============================================ */
.rf-essay { max-width: 660px; margin: 0 auto; padding: 76px 0 92px; }

.rf-essay-portrait { display: flex; align-items: center; gap: 20px; margin-bottom: 52px; }
.rf-essay-portrait img {
  width: 88px; height: 88px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(1);
}
.rf-essay-portrait strong { display: block; color: var(--rr-deep); font-size: 17px; font-weight: 700; }
.rf-essay-portrait span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 14.5px; }

.rf-essay p {
  margin: 0 0 26px;
  color: var(--rr-hull);
  font-size: 18px;
  line-height: 1.78;
}
.rf-essay p.lead {
  color: var(--rr-deep);
  font-size: 21px;
  line-height: 1.65;
  font-weight: 500;
}
.rf-essay p strong { color: var(--rr-deep); font-weight: 650; }

/* a quiet turn in the story, instead of a new section */
.rf-essay h2 {
  margin: 54px 0 24px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.02em;
  color: var(--rr-deep);
}
.rf-essay h2::before {
  content: '';
  display: block;
  width: 30px; height: 2px;
  margin-bottom: 22px;
  background: var(--rr-cyan);
}

.rf-essay-note {
  margin: 46px 0 0;
  padding: 24px 26px;
  border-left: 2px solid var(--rr-cyan);
  background: var(--rr-paper);
  border-radius: 0 12px 12px 0;
}
.rf-essay-note p { margin: 0; font-size: 16.5px; line-height: 1.7; }

.rf-essay-sign {
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  align-items: center;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid var(--grey-border);
}
.rf-essay-sign a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--rr-cyan-shade);
  font-size: 15px;
  font-weight: 650;
}
.rf-essay-sign a::after { content: '\2192'; transition: transform .2s ease; }
.rf-essay-sign a:hover::after { transform: translateX(3px); }

@media (max-width: 720px) {
  .rf-essay { padding: 52px 0 68px; }
  .rf-essay p { font-size: 16.5px; }
  .rf-essay p.lead { font-size: 19px; }
  .rf-essay h2 { margin: 42px 0 20px; font-size: 21px; }
  .rf-essay-portrait { gap: 16px; margin-bottom: 40px; }
  .rf-essay-portrait img { width: 70px; height: 70px; }
}
