/* ==========================================================================
   NZURA — REALBYTE-INSPIRED MARKETING DESIGN SYSTEM
   Scoped exclusively to .rb-* classes & dialog.rb-lightbox so site.css
   (.topnav, .announce-bar, .pricing-section, .site-footer) remains untouched.
   Focus rings strictly use --accent / --rb-accent-soft (never --ink).
   ========================================================================== */

:root {
  --rb-hero-bg: linear-gradient(135deg, #0f2d96 0%, #195AFE 42%, #b92b5d 78%, #cf431e 100%);
  --rb-cta-bg: linear-gradient(130deg, #b8203e 0%, #cc3b22 48%, #1543c0 100%);
  --rb-surface: #ffffff;
  --rb-surface-tint: #f5f8ff;
  --rb-surface-card: #ffffff;
  --rb-text: var(--text, #092540);
  --rb-text-2: var(--text2, #3a4a5e);
  --rb-muted: #526377;
  --rb-accent: var(--accent, #195AFE);
  --rb-accent-dk: var(--accent-dk, #1048d4);
  --rb-accent-soft: rgba(25, 90, 254, 0.14);
  --rb-coral: #e13d4f;
  --rb-coral-dk: #c4293d;
  --rb-orange: var(--orange, #ff7a1a);
  --rb-line: var(--line, #d8dce8);
  --rb-max: var(--max, 1248px);
  --rb-radius: 14px;
  --rb-radius-lg: 20px;
  --rb-pill: 999px;
  --rb-shadow-phone: 0 24px 60px rgba(8, 19, 44, 0.42), 0 4px 16px rgba(8, 19, 44, 0.24);
  --rb-shadow-card: 0 10px 30px rgba(9, 37, 64, 0.08), 0 2px 8px rgba(9, 37, 64, 0.04);
  --rb-shadow-card-hover: 0 18px 42px rgba(9, 37, 64, 0.13), 0 4px 14px rgba(25, 90, 254, 0.08);
}

/* Visually hidden helper for polite live regions & SR labels */
.rb-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Focus rings — NEVER --ink; always --accent on light, white+accent halo on vibrant/dark */
.rb-features :where(a, button, [tabindex]):focus-visible,
.rb-desktop-showcase :where(a, button, [tabindex]):focus-visible,
.rb-screenshots :where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--rb-accent-soft);
}

.rb-hero :where(a, button, [tabindex]):focus-visible,
.rb-desktop-stage :where(a, button, [tabindex]):focus-visible,
.rb-screenshots--dark :where(a, button, [tabindex]):focus-visible,
.rb-download-cta :where(a, button, [tabindex]):focus-visible,
dialog.rb-lightbox :where(a, button, [tabindex]):focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(25, 90, 254, 0.55);
}

/* ==========================================================================
   1. SHARED BUTTONS, STORE BADGES & SECTION HEADERS
   ========================================================================== */

.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.72rem 1.55rem;
  border-radius: var(--rb-pill);
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rb-btn--primary {
  background: #ffffff;
  color: #1039b3;
  box-shadow: 0 10px 26px rgba(9, 24, 58, 0.24);
}
.rb-btn--primary:hover {
  background: #f4f7ff;
  color: #0b2b8a;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(9, 24, 58, 0.3);
}

.rb-btn--white {
  background: #ffffff;
  color: #b8203e;
  box-shadow: 0 12px 28px rgba(15, 16, 40, 0.25);
}
.rb-btn--white:hover {
  background: #fff5f6;
  color: #931630;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 16, 40, 0.32);
}

.rb-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rb-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  transform: translateY(-2px);
}

.rb-btn--accent {
  background: var(--rb-accent);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(25, 90, 254, 0.26);
}
.rb-btn--accent:hover {
  background: var(--rb-accent-dk);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Store & OS download badges */
.rb-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.rb-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.42rem 0.92rem;
  border-radius: 11px;
  background: rgba(9, 20, 44, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.rb-store-badge:hover {
  background: rgba(9, 20, 44, 0.9);
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
  transform: translateY(-2px);
}
.rb-store-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}
.rb-store-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.rb-store-badge-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.rb-store-badge-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #ffffff;
}

/* Section Headers */
.rb-section-inner {
  max-width: var(--rb-max);
  margin: 0 auto;
  width: 100%;
}

.rb-section-hd {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.rb-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.85rem;
  border-radius: var(--rb-pill);
  background: var(--rb-accent-soft);
  color: var(--rb-accent-dk);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.rb-section-title {
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--rb-text);
  margin: 0 0 0.55rem;
}
.rb-section-title em {
  font-style: normal;
  color: var(--rb-accent);
}

.rb-section-sub {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--rb-muted);
  margin: 0 auto;
  max-width: 580px;
}

/* ==========================================================================
   2. HERO SECTION (.rb-hero, .rb-hero--home, .rb-hero--single)
   ========================================================================== */

.rb-hero {
  position: relative;
  overflow: clip;
  background: var(--rb-hero-bg);
  color: #ffffff;
  padding: clamp(2.5rem, 4.5vw, 3.85rem) 1.25rem clamp(2.75rem, 5vw, 4.25rem);
}

/* RealByte-inspired subtle translucent geometric circles */
.rb-hero::before,
.rb-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.rb-hero::before {
  width: 620px;
  height: 620px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 55%, transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.rb-hero::after {
  width: 460px;
  height: 460px;
  bottom: -210px;
  left: -130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 60%, transparent 75%);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.rb-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--rb-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}

.rb-hero--single .rb-hero-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.rb-hero-copy {
  text-align: left;
  min-width: 0;
}

.rb-breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0.9rem;
}
.rb-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.rb-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.rb-breadcrumb-sep {
  opacity: 0.65;
}

.rb-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.9rem;
  border-radius: var(--rb-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rb-hero-title {
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: clamp(1.95rem, 3.8vw, 3.05rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: #ffffff;
  margin: 0 0 0.9rem;
  text-shadow: 0 2px 18px rgba(9, 20, 48, 0.18);
}
.rb-hero-title em {
  font-style: normal;
  color: #ffe08a;
}

.rb-hero-sub {
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin: 0 0 1.45rem;
}

.rb-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.rb-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin-top: 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.rb-hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.rb-hero-proof-item::before {
  content: '✓';
  font-weight: 800;
  color: #86efac;
}

/* ==========================================================================
   3. SLEEK PHONE FRAME & VIDEO CONTROLS (.rb-phone, .rb-hero-phones)
   ========================================================================== */

.rb-hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.rb-hero-phones {
  width: 100%;
  position: relative;
}

.rb-hero-phones-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
  padding: 0.5rem 0;
}

.rb-phone-slide {
  position: relative;
  flex: 0 0 auto;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), z-index 0s;
}

.rb-phone-slide--left {
  z-index: 1;
  margin-right: -14px;
  transform: translateY(18px) rotate(-3.5deg);
}
.rb-phone-slide--center {
  z-index: 3;
  transform: translateY(-6px);
}
.rb-phone-slide--right {
  z-index: 2;
  margin-left: -14px;
  transform: translateY(18px) rotate(3.5deg);
}

/* Desktop 3-phone hero: keep side phone controls on the uncovered outer edges
   so zero play/sound controls ever clip behind the front center phone */
@media (min-width: 861px) {
  .rb-hero--home .rb-phone-slide--left .rb-sound-btn {
    left: 10px;
    right: auto;
    bottom: 10px;
  }
  .rb-hero--home .rb-phone-slide--left .rb-play-btn {
    left: 10px;
    right: auto;
    bottom: 50px;
  }
  .rb-hero--home .rb-phone-slide--right .rb-sound-btn {
    right: 10px;
    left: auto;
    bottom: 10px;
  }
  .rb-hero--home .rb-phone-slide--right .rb-play-btn {
    right: 10px;
    left: auto;
    bottom: 50px;
  }
}

@media (hover: hover) {
  .rb-phone-slide--left:hover {
    z-index: 4;
    transform: translateY(6px) rotate(-1.5deg) scale(1.03);
  }
  .rb-phone-slide--right:hover {
    z-index: 4;
    transform: translateY(6px) rotate(1.5deg) scale(1.03);
  }
  .rb-phone-slide--center:hover {
    transform: translateY(-10px) scale(1.02);
  }
}

.rb-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.rb-phone--sm {
  width: 192px;
}
.rb-phone--lg {
  width: 242px;
}
.rb-phone--feature {
  width: 266px;
  margin: 0 auto;
}

.rb-phone-bezel {
  position: relative;
  box-sizing: content-box;
  width: calc(100% - 16px);
  aspect-ratio: 390 / 845;
  padding: 0;
  border: 8px solid #131c31;
  border-radius: 32px;
  background: #0d1526;
  box-shadow: var(--rb-shadow-phone), 0 0 0 1.5px rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.rb-phone--feature .rb-phone-bezel {
  box-shadow: 0 22px 54px rgba(9, 37, 64, 0.22), 0 4px 16px rgba(9, 37, 64, 0.1), 0 0 0 1.5px rgba(255, 255, 255, 0.2);
}

/* Hide decorative notch so live app top bars are never obscured */
.rb-phone-notch {
  display: none;
}

.rb-phone-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  background: #0d1526;
}

/* Crisp full-bleed app screenshot thumbnail shown while video loads — never distorted
   or over-cropped by .rb-phone-video--framed zoom; fades out once video is playable */
.rb-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  z-index: 2;
  pointer-events: none;
  background: #0d1526;
  opacity: 1;
  transition: opacity 0.28s ease;
}
[data-rb-video-box].is-video-ready .rb-video-poster {
  opacity: 0;
}

/* Crop baked-in studio bezel from 1080x1920 mobile MP4s (720x1560 screen at x=180, y=176)
   so live app fills .rb-phone-bezel edge-to-edge with zero double phone frame */
.rb-phone-video--framed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 151.5%;
  height: 124.5%;
  max-width: none;
  transform: translate(-50%, -49.8%);
  object-fit: fill;
  opacity: 0;
  transition: opacity 0.22s ease;
}
[data-rb-video-box].is-video-ready .rb-phone-video--framed {
  opacity: 1;
}

.rb-phone-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.72rem;
  border-radius: var(--rb-pill);
  background: rgba(9, 20, 44, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rb-features .rb-phone-caption {
  background: var(--rb-surface-tint);
  border-color: var(--rb-line);
  color: var(--rb-text);
}

/* Floating Sound ON/OFF pill (>=34px hit area) */
.rb-sound-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 34px;
  min-width: 34px;
  padding: 0 0.7rem;
  border-radius: var(--rb-pill);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(9, 20, 44, 0.84);
  color: #ffffff;
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.rb-sound-btn:hover {
  background: rgba(9, 20, 44, 0.96);
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.04);
}
.rb-sound-btn.is-unmuted,
.rb-sound-btn[aria-pressed="true"] {
  background: var(--rb-accent);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}
.rb-sound-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

/* Floating Pause/Play button (>=34px hit area, WCAG 1.4.2 + reduced-motion) */
.rb-play-btn {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(9, 20, 44, 0.82);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.rb-play-btn:hover {
  background: rgba(9, 20, 44, 0.96);
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.06);
}
.rb-play-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

/* All phone videos (Hero + Features): hide Sound & Play/Pause controls by default so the
   bottom app navigation bar is 100% unobstructed; reveal cleanly on click/tap or keyboard focus.
   Desktop PC videos (.rb-desktop-stage) keep controls always visible. */
.rb-phone[data-rb-video-box] .rb-phone-bezel {
  cursor: pointer;
}

.rb-phone[data-rb-video-box] .rb-sound-btn,
.rb-phone[data-rb-video-box] .rb-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.rb-phone[data-rb-video-box].rb-controls-visible .rb-sound-btn,
.rb-phone[data-rb-video-box].rb-controls-visible .rb-play-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rb-phone[data-rb-video-box]:has(:focus-visible) .rb-sound-btn,
.rb-phone[data-rb-video-box]:has(:focus-visible) .rb-play-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rb-phone[data-rb-video-box].rb-controls-visible .rb-sound-btn:hover {
  transform: scale(1.04);
}
.rb-phone[data-rb-video-box].rb-controls-visible .rb-play-btn:hover {
  transform: scale(1.06);
}

/* Mobile-only hero carousel controls (hidden on desktop) */
.rb-hero-carousel-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

/* Shared Carousel Arrows & Dot Markers (WCAG >=24x24px target size, non-color active) */
.rb-carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rb-line);
  background: #ffffff;
  color: var(--rb-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}
.rb-carousel-arrow:hover:not(:disabled) {
  border-color: var(--rb-accent);
  color: var(--rb-accent);
  background: var(--rb-surface-tint);
}
.rb-carousel-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.rb-carousel-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rb-carousel-autoplay svg {
  width: 14px;
  height: 14px;
}
.rb-carousel-autoplay[data-rb-paused="true"] {
  border-color: var(--rb-accent);
  color: var(--rb-accent);
  background: var(--rb-accent-soft);
}

.rb-hero .rb-carousel-arrow {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.rb-hero .rb-carousel-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  color: #ffffff;
}

.rb-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.rb-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.rb-dot::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--rb-pill);
  background: rgba(9, 37, 64, 0.25);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.rb-dot[aria-current="true"]::after {
  width: 24px;
  background: var(--rb-accent);
}

.rb-hero .rb-dot::after {
  background: rgba(255, 255, 255, 0.45);
}
.rb-hero .rb-dot[aria-current="true"]::after {
  width: 24px;
  background: #ffffff;
}

/* ==========================================================================
   4. FEATURES SECTION — REALBYTE RADIAL SURROUNDING-VIDEO LAYOUT (.rb-features)
   ========================================================================== */

.rb-features {
  background: var(--rb-surface);
  padding: clamp(3rem, 5.5vw, 4.75rem) 1.25rem;
  overflow-x: clip;
}

.rb-features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(256px, 286px) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.8vw, 2.4rem);
  align-items: center;
}

.rb-features-col {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  min-width: 0;
}

.rb-features-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.rb-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--rb-radius);
  background: var(--rb-surface-card);
  border: 1px solid #e6ebf5;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.rb-feat-item:hover {
  border-color: rgba(25, 90, 254, 0.34);
  box-shadow: var(--rb-shadow-card);
  transform: translateY(-2px);
}

.rb-features-col--left .rb-feat-item {
  flex-direction: row-reverse;
  text-align: right;
}

.rb-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--fi, var(--rb-accent));
  background: color-mix(in srgb, var(--fi, #195AFE) 11%, transparent);
}
.rb-feat-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.rb-feat-body {
  min-width: 0;
  flex: 1;
}

.rb-feat-title {
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--rb-text);
  margin: 0 0 0.22rem;
}

.rb-feat-desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--rb-muted);
  margin: 0;
}

a.rb-feat-item .rb-feat-link-hint {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--rb-accent);
}

/* ==========================================================================
   4B. DEDICATED FULL-WIDTH DESKTOP PC SHOWCASE (.rb-desktop-showcase)
   ========================================================================== */

.rb-desktop-showcase {
  background: linear-gradient(180deg, #f8fafc 0%, #eff4fc 100%);
  border-top: 1px solid var(--rb-line);
  border-bottom: 1px solid var(--rb-line);
  padding: 72px 24px;
  overflow-x: clip;
}

.rb-desktop-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16), 0 4px 18px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Subtle bottom gradient scrim so floating player controls stay legible over light app UI */
.rb-desktop-stage::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 86px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.56) 0%, rgba(15, 23, 42, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.rb-desktop-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f172a;
}

.rb-desktop-stage:fullscreen,
.rb-desktop-stage:-webkit-full-screen {
  max-width: none;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  background: #020617;
}
.rb-desktop-stage:fullscreen .rb-desktop-video,
.rb-desktop-stage:-webkit-full-screen .rb-desktop-video {
  object-fit: contain;
  background: #020617;
}

/* Cinema player floating controls (bottom-left Play/Pause, bottom-right Sound + Fullscreen) */
.rb-desktop-stage[data-rb-video-box] .rb-play-btn,
.rb-desktop-stage[data-rb-video-box] .rb-sound-btn,
.rb-desktop-stage[data-rb-video-box] .rb-fullscreen-btn {
  opacity: 1;
  pointer-events: auto;
}

.rb-desktop-stage .rb-play-btn {
  left: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
}

.rb-desktop-stage .rb-sound-btn {
  right: 62px;
  bottom: 16px;
  min-height: 38px;
  padding: 0 0.85rem;
  font-size: 0.78rem;
}

.rb-fullscreen-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(9, 20, 44, 0.84);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.rb-fullscreen-btn:hover {
  background: rgba(9, 20, 44, 0.96);
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.06);
}
.rb-fullscreen-btn.is-fullscreen,
.rb-fullscreen-btn[aria-pressed="true"] {
  background: var(--rb-accent);
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
}
.rb-fullscreen-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Highlight pills & optional Desktop App download link below the cinema player */
.rb-desktop-meta {
  max-width: 980px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rb-desktop-stage + .rb-desktop-pills {
  margin-top: 1.5rem;
}

.rb-desktop-pills {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.rb-desktop-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--rb-pill);
  background: #ffffff;
  border: 1px solid var(--rb-line);
  color: var(--rb-text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.rb-desktop-pill::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rb-accent-soft);
  color: var(--rb-accent-dk);
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

.rb-desktop-download {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 1.25rem;
  border-radius: var(--rb-pill);
  background: var(--rb-accent);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(25, 90, 254, 0.22);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.rb-desktop-download:hover {
  background: var(--rb-accent-dk);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(25, 90, 254, 0.28);
}

/* ==========================================================================
   5. SCREENSHOTS CAROUSEL SECTION — REALBYTE PORTRAIT MOBILE CARDS (.rb-screenshots)
   ========================================================================== */

.rb-screenshots {
  background: var(--rb-surface);
  border-bottom: 1px solid var(--rb-line);
  padding: clamp(3rem, 5.5vw, 4.75rem) 1.25rem;
  overflow-x: clip;
  transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.rb-screenshots-carousel {
  position: relative;
}

.rb-screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

/* RealByte-style Light / Dark screenshot theme segmented pill switch */
.rb-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--rb-pill);
  background: #edf2fb;
  border: 1px solid var(--rb-line);
  box-shadow: inset 0 1px 2px rgba(9, 37, 64, 0.06);
  flex-shrink: 0;
  transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.rb-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  min-height: 36px;
  padding: 0.36rem 0.92rem;
  border-radius: var(--rb-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--rb-text-2);
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.rb-theme-btn:hover {
  color: var(--rb-accent);
}
.rb-theme-btn.is-active,
.rb-theme-btn[aria-pressed="true"] {
  background: #ffffff;
  color: var(--rb-accent-dk);
  border-color: rgba(25, 90, 254, 0.24);
  box-shadow: 0 2px 8px rgba(9, 37, 64, 0.11);
}
.rb-theme-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

.rb-screen-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.rb-screen-filters:empty {
  display: none;
}

.rb-filter-tab {
  min-height: 36px;
  padding: 0.38rem 0.95rem;
  border-radius: var(--rb-pill);
  border: 1px solid var(--rb-line);
  background: #ffffff;
  color: var(--rb-text-2);
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.rb-filter-tab:hover {
  border-color: var(--rb-accent);
  color: var(--rb-accent);
}
.rb-filter-tab.is-active,
.rb-filter-tab[aria-pressed="true"] {
  background: var(--rb-accent);
  border-color: var(--rb-accent);
  color: #ffffff;
}

.rb-screen-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.rb-screen-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rb-muted);
  font-variant-numeric: tabular-nums;
  min-width: 3.2rem;
  text-align: center;
}

.rb-screen-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 0.25rem;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  padding: 0.5rem 0.25rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(9, 37, 64, 0.2) transparent;
}
.rb-screen-track::-webkit-scrollbar {
  height: 6px;
}
.rb-screen-track::-webkit-scrollbar-thumb {
  background: rgba(9, 37, 64, 0.2);
  border-radius: 999px;
}

@media (prefers-reduced-motion: no-preference) {
  .rb-screen-track,
  .rb-hero-phones-track {
    scroll-behavior: smooth;
  }
}

.rb-screen-card {
  flex: 0 0 248px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  transition: transform 0.22s ease;
}
.rb-screen-card:hover {
  transform: translateY(-4px);
}

.rb-screen-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 6px solid #131c31;
  border-radius: 24px;
  background: #0d1526;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 390 / 845;
  box-shadow: 0 14px 34px rgba(9, 37, 64, 0.15), 0 3px 10px rgba(9, 37, 64, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}
.rb-screen-card:hover .rb-screen-trigger {
  box-shadow: 0 22px 46px rgba(9, 37, 64, 0.22), 0 4px 16px rgba(25, 90, 254, 0.14), 0 0 0 1.5px rgba(25, 90, 254, 0.35);
}
.rb-screen-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.32s ease, opacity 0.2s ease;
}
.rb-screen-trigger img.is-swapping {
  opacity: 0.72;
}
.rb-screen-card:hover .rb-screen-trigger img {
  transform: scale(1.02);
}

.rb-screen-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 34px;
  height: 32px;
  padding: 0 0.6rem;
  gap: 0.3rem;
  border-radius: var(--rb-pill);
  background: rgba(9, 24, 52, 0.84);
  color: #ffffff;
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: opacity 0.18s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.18s ease;
}
@media (hover: hover) {
  .rb-screen-zoom {
    opacity: 0;
    transform: translateY(4px);
  }
  .rb-screen-card:hover .rb-screen-zoom,
  .rb-screen-trigger:focus-visible .rb-screen-zoom {
    opacity: 1;
    transform: translateY(0);
    background: var(--rb-accent);
    border-color: rgba(255, 255, 255, 0.78);
  }
}
.rb-screen-zoom svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.rb-screen-meta {
  width: 100%;
  padding: 0.75rem 0.25rem 0.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.22rem;
}

.rb-screen-meta-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.rb-screen-badge {
  display: inline-block;
  padding: 0.14rem 0.55rem;
  border-radius: var(--rb-pill);
  background: var(--rb-accent-soft);
  color: var(--rb-accent-dk);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.rb-screen-title {
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rb-text);
  line-height: 1.28;
}

.rb-screen-caption {
  font-size: 0.76rem;
  color: var(--rb-muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rb-screenshots .rb-carousel-dots {
  margin-top: 0.75rem;
}

/* Dark Mode Screenshots Showcase (.rb-screenshots--dark) — RealByte inspired */
.rb-screenshots.rb-screenshots--dark {
  background:
    radial-gradient(760px 320px at 50% 0%, rgba(25, 90, 254, 0.18), transparent 72%),
    linear-gradient(180deg, #0b1324 0%, #0f172a 55%, #09101f 100%);
  border-top-color: rgba(148, 163, 184, 0.16);
  border-bottom-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.rb-screenshots--dark .rb-section-eyebrow {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #93c5fd;
}

.rb-screenshots--dark .rb-section-title {
  color: #f8fafc;
}
.rb-screenshots--dark .rb-section-title em {
  color: #60a5fa;
}

.rb-screenshots--dark .rb-section-sub {
  color: #cbd5e1;
}

.rb-screenshots--dark .rb-theme-switch {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 2px rgba(2, 6, 23, 0.55);
}

.rb-screenshots--dark .rb-theme-btn {
  color: #cbd5e1;
}
.rb-screenshots--dark .rb-theme-btn:hover {
  color: #ffffff;
}
.rb-screenshots--dark .rb-theme-btn.is-active,
.rb-screenshots--dark .rb-theme-btn[aria-pressed="true"] {
  background: var(--rb-accent);
  border-color: rgba(147, 197, 253, 0.45);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(25, 90, 254, 0.42);
}

.rb-screenshots--dark .rb-filter-tab {
  background: rgba(30, 41, 59, 0.82);
  border-color: rgba(148, 163, 184, 0.26);
  color: #e2e8f0;
}
.rb-screenshots--dark .rb-filter-tab:hover {
  border-color: #60a5fa;
  color: #ffffff;
}
.rb-screenshots--dark .rb-filter-tab.is-active,
.rb-screenshots--dark .rb-filter-tab[aria-pressed="true"] {
  background: var(--rb-accent);
  border-color: var(--rb-accent);
  color: #ffffff;
}

.rb-screenshots--dark .rb-screen-counter {
  color: #cbd5e1;
}

.rb-screenshots--dark .rb-carousel-arrow {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.3);
  color: #f8fafc;
}
.rb-screenshots--dark .rb-carousel-arrow:hover:not(:disabled) {
  background: rgba(59, 130, 246, 0.24);
  border-color: #60a5fa;
  color: #ffffff;
}
.rb-screenshots--dark .rb-carousel-autoplay[data-rb-paused="true"] {
  border-color: #60a5fa;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.28);
}

.rb-screenshots--dark .rb-screen-track {
  scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}
.rb-screenshots--dark .rb-screen-track::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.32);
}

.rb-screenshots--dark .rb-screen-trigger {
  border-color: #24334e;
  background: #060b16;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(148, 163, 184, 0.24),
    0 0 28px rgba(25, 90, 254, 0.16);
}
.rb-screenshots--dark .rb-screen-card:hover .rb-screen-trigger {
  border-color: #3b82f6;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.68),
    0 0 0 1.5px rgba(96, 165, 250, 0.55),
    0 0 36px rgba(25, 90, 254, 0.3);
}

.rb-screenshots--dark .rb-screen-badge {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

.rb-screenshots--dark .rb-screen-title {
  color: #f8fafc;
}

.rb-screenshots--dark .rb-screen-caption {
  color: #cbd5e1;
}

.rb-screenshots--dark .rb-dot::after {
  background: rgba(148, 163, 184, 0.38);
}
.rb-screenshots--dark .rb-dot[aria-current="true"]::after {
  background: #60a5fa;
}

/* ==========================================================================
   6. NATIVE <dialog> LIGHTBOX (closedby="any")
   display scoped strictly to dialog.rb-lightbox[open]
   ========================================================================== */

dialog.rb-lightbox {
  border: none;
  padding: 0;
  margin: auto;
  width: min(94vw, 1140px);
  max-width: min(94vw, 1140px);
  max-height: 94vh;
  max-height: 94dvh;
  background: #0b162c;
  color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(4, 10, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

dialog.rb-lightbox.rb-lightbox--portrait {
  width: min(94vw, 560px);
  max-width: min(94vw, 560px);
}

dialog.rb-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

dialog.rb-lightbox:modal {
  overscroll-behavior: contain;
}

dialog.rb-lightbox::backdrop {
  background: rgba(6, 15, 34, 0.84);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.rb-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.rb-lightbox-head-copy {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 160px;
  min-width: 0;
}

.rb-lightbox-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}

.rb-theme-switch--lightbox {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  padding: 2px;
}
.rb-theme-switch--lightbox .rb-theme-btn {
  min-height: 36px;
  padding: 0.3rem 0.72rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.84);
}
.rb-theme-switch--lightbox .rb-theme-btn:hover {
  color: #ffffff;
}
.rb-theme-switch--lightbox .rb-theme-btn.is-active,
.rb-theme-switch--lightbox .rb-theme-btn[aria-pressed="true"] {
  background: var(--rb-accent);
  border-color: rgba(147, 197, 253, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(25, 90, 254, 0.42);
}
.rb-theme-switch--lightbox .rb-theme-btn svg {
  width: 14px;
  height: 14px;
}

.rb-lightbox-title {
  margin: 0;
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rb-lightbox-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.18rem 0.6rem;
  border-radius: var(--rb-pill);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.rb-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.rb-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}
.rb-lightbox-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.rb-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3.5rem;
  background: #071022;
  min-height: 220px;
  overflow: auto;
}

dialog.rb-lightbox.rb-lightbox--portrait .rb-lightbox-stage {
  min-height: 0;
  padding: 0.85rem 3.5rem;
  overflow: hidden;
}

.rb-lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  max-height: 70dvh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: block;
}

dialog.rb-lightbox.rb-lightbox--portrait .rb-lightbox-img {
  max-height: 78vh;
  max-height: min(78dvh, calc(94dvh - 140px));
  width: auto;
  max-width: min(92vw, 100%);
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.14);
}

.rb-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 20, 44, 0.85);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}
.rb-lightbox-nav:hover:not(:disabled) {
  background: var(--rb-accent);
  border-color: #ffffff;
}
.rb-lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.rb-lightbox-nav--prev { left: 12px; }
.rb-lightbox-nav--next { right: 12px; }
.rb-lightbox-nav svg {
  width: 20px;
  height: 20px;
  display: block;
}

.rb-lightbox-foot {
  padding: 0.75rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.84);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.rb-lightbox-caption {
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   7. FINAL POWERFUL SIGN-UP CTA & APP AVAILABILITY BANNER (.rb-download-cta)
   ========================================================================== */

.rb-download-cta {
  position: relative;
  overflow: clip;
  background: var(--rb-cta-bg);
  color: #ffffff;
  padding: clamp(3rem, 5.5vw, 4.5rem) 1.25rem;
}

.rb-download-cta::before,
.rb-download-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.rb-download-cta::before {
  width: 540px;
  height: 540px;
  top: -220px;
  right: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.rb-download-cta::after {
  width: 380px;
  height: 380px;
  bottom: -180px;
  left: -90px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rb-download-cta-inner {
  position: relative;
  z-index: 1;
  max-width: var(--rb-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.rb-download-cta-copy {
  min-width: 0;
}

.rb-download-cta-title {
  font-family: var(--font, 'Open Sans', system-ui, sans-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 0.7rem;
}

.rb-download-cta-sub {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
  margin: 0 0 1.35rem;
}

.rb-download-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.rb-app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.15rem;
}

.rb-app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--rb-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.rb-app-chip:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* Peeking multi-device card on the right */
.rb-download-cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.rb-cta-device-card {
  width: min(100%, 300px);
  padding: 1.1rem;
  border-radius: 22px;
  background: rgba(9, 20, 44, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 54px rgba(8, 16, 40, 0.36);
}

.rb-cta-device-screen {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0d172c;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.85rem;
}
.rb-cta-device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.rb-cta-device-platforms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.rb-cta-plat-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease;
}
.rb-cta-plat-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.rb-cta-plat-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
  .rb-phone--sm { width: 164px; }
  .rb-phone--lg { width: 214px; }
  .rb-phone-slide--left { margin-right: -10px; }
  .rb-phone-slide--right { margin-left: -10px; }
}

@media (max-width: 960px) {
  .rb-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .rb-features-center {
    order: -1;
  }
  .rb-features-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .rb-features-col--left .rb-feat-item {
    flex-direction: row;
    text-align: left;
  }
  .rb-download-cta-inner {
    grid-template-columns: 1fr;
  }
  .rb-download-cta-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .rb-hero-inner,
  .rb-hero--single .rb-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .rb-hero-copy {
    text-align: center;
  }
  .rb-breadcrumb {
    justify-content: center;
  }
  .rb-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .rb-hero-cta,
  .rb-store-badges,
  .rb-hero-proof {
    justify-content: center;
  }

  /* Transform 3-phone desktop showcase into horizontal snap-scroll carousel */
  .rb-hero--home .rb-hero-phones-track {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    touch-action: manipulation;
    gap: 16px;
    padding: 0.5rem calc(50% - 118px) 0.75rem;
    scrollbar-width: none;
  }
  .rb-hero--home .rb-hero-phones-track::-webkit-scrollbar {
    display: none;
  }

  .rb-hero--home .rb-phone-slide,
  .rb-hero--home .rb-phone-slide--left,
  .rb-hero--home .rb-phone-slide--center,
  .rb-hero--home .rb-phone-slide--right {
    flex: 0 0 236px;
    margin: 0;
    transform: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .rb-hero--home .rb-phone--sm,
  .rb-hero--home .rb-phone--lg {
    width: 236px;
  }

  .rb-hero--home .rb-hero-carousel-controls {
    display: flex;
  }
}

@media (max-width: 768px) {
  .rb-desktop-showcase {
    padding: 48px 16px;
  }
  .rb-desktop-stage {
    border-radius: 14px;
  }
  .rb-desktop-stage .rb-play-btn {
    left: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
  }
  .rb-desktop-stage .rb-sound-btn {
    right: 54px;
    bottom: 10px;
    min-height: 36px;
    padding: 0 0.72rem;
    font-size: 0.74rem;
  }
  .rb-fullscreen-btn {
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
  }
  .rb-desktop-pill {
    font-size: 0.78rem;
    padding: 0.42rem 0.82rem;
  }
}

@media (max-width: 640px) {
  .rb-screen-toolbar {
    justify-content: center;
    gap: 0.7rem;
  }
  .rb-screen-filters {
    justify-content: center;
    width: 100%;
  }
  .rb-theme-switch {
    margin: 0 auto;
  }
  .rb-screen-nav {
    margin-left: 0;
    justify-content: center;
  }
  .rb-screen-track {
    gap: 1rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  .rb-screen-card {
    flex: 0 0 72vw;
    max-width: 290px;
  }
}

@media (max-width: 580px) {
  .rb-hero {
    padding: 2rem 1rem 2.5rem;
  }
  .rb-features,
  .rb-desktop-showcase,
  .rb-screenshots,
  .rb-download-cta {
    padding: 2.5rem 1rem;
  }
  .rb-features-col {
    grid-template-columns: 1fr;
  }
  .rb-phone--feature {
    width: min(76vw, 248px);
  }
  .rb-lightbox-head {
    padding: 0.65rem 0.85rem;
    gap: 0.5rem 0.65rem;
  }
  .rb-lightbox-stage {
    padding: 0.75rem 0.75rem;
  }
  dialog.rb-lightbox.rb-lightbox--portrait .rb-lightbox-stage {
    padding: 0.65rem 0.75rem 3.4rem;
  }
  dialog.rb-lightbox.rb-lightbox--portrait .rb-lightbox-img {
    max-height: 74vh;
    max-height: min(74dvh, calc(94dvh - 188px));
    max-width: min(92vw, 100%);
  }
  .rb-lightbox-nav {
    width: 36px;
    height: 36px;
    top: auto;
    bottom: 14px;
    transform: none;
  }
  .rb-lightbox-nav--prev { left: 14px; }
  .rb-lightbox-nav--next { right: 14px; }
  .rb-store-badge {
    padding: 0.38rem 0.75rem;
  }
}

/* ==========================================================================
   9. REDUCED MOTION SUPPORT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .rb-btn,
  .rb-store-badge,
  .rb-phone-slide,
  .rb-feat-item,
  .rb-desktop-download,
  .rb-screenshots,
  .rb-theme-switch,
  .rb-theme-btn,
  .rb-screen-card,
  .rb-screen-trigger,
  .rb-screen-trigger img,
  .rb-screen-zoom,
  .rb-sound-btn,
  .rb-play-btn,
  .rb-fullscreen-btn,
  .rb-dot::after {
    transition: none !important;
  }
  .rb-phone-slide--left:hover,
  .rb-phone-slide--right:hover,
  .rb-phone-slide--center:hover,
  .rb-screen-card:hover,
  .rb-screen-card:hover .rb-screen-trigger img {
    transform: none !important;
  }
}
