/* ============================================================
   Heklala 2026 Rebuild — Vision 3.0
   Let Labs Help Labs. · AI-Driven Lab-to-Lab Marketplace
   ============================================================
   Color tokens:
     --rb-bg-0     #0B1B3D   hero deep base
     --rb-bg-1     #0F4E9B   royal blue
     --rb-bg-2     #1452b8   royal blue light
     --rb-cy-1     #0891B2   cyan dark
     --rb-cy-2     #22D3EE   cyan light
     --rb-amber    #F59E0B   gold accent (CTAs only)
     --rb-fg       #E5EDF5   off-white text
     --rb-muted    #8B9DBA   muted blue-grey
   ============================================================ */

:root {
  --rb-bg-0: #0B1B3D;
  --rb-bg-1: #0F4E9B;
  --rb-bg-2: #1452b8;
  --rb-cy-1: #0891B2;
  --rb-cy-2: #22D3EE;
  --rb-amber: #F59E0B;
  --rb-fg: #E5EDF5;
  --rb-muted: #8B9DBA;
  --rb-radius: 16px;
  --rb-shadow-sm: 0 4px 14px rgba(11, 27, 61, 0.4);
  --rb-shadow-lg: 0 18px 60px rgba(11, 27, 61, 0.65);
  --rb-grad: linear-gradient(135deg, var(--rb-cy-2) 0%, var(--rb-cy-1) 50%, var(--rb-bg-1) 100%);
  --rb-grad-thin: linear-gradient(90deg, var(--rb-cy-2), var(--rb-cy-1));
}

/* ---------- base ---------- */
.rb-site-header, .rb-hero, .rb-feed-section, .rb-stats,
.rb-categories, .rb-ai-section, .rb-ambassador, .rb-footer {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rb-fg);
  box-sizing: border-box;
}
.rb-site-header *, .rb-hero *, .rb-feed-section *, .rb-stats *,
.rb-categories *, .rb-ai-section *, .rb-ambassador *, .rb-footer * {
  box-sizing: border-box;
}
.rb-site-header .container,
.rb-hero .container,
.rb-feed-section .container,
.rb-stats .container,
.rb-categories .container,
.rb-ai-section .container,
.rb-ambassador .container,
.rb-footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   1. NAV  ——  WHITE THEME (2026-10-06)
   ========================================================= */
.rb-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.rb-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 12px 24px;
}
.rb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0B1B3D;
  flex-shrink: 0;
  min-width: 0;
}
.rb-brand-text {
  white-space: nowrap;
  line-height: 1.1;
}
.rb-brand-mark { width: 46px; height: 46px; object-fit: contain; display: block; flex-shrink: 0; }
.rb-footer-logo { width: 56px; height: 56px; object-fit: contain; display: block; }
.rb-brand-text strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0B1B3D;
}
.rb-brand-text strong em {
  font-style: normal;
  background: linear-gradient(90deg, #22D3EE 0%, #0891B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rb-brand-text small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 2px;
}

.rb-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  border-radius: 999px;
  padding: 0 16px 0 44px;
  height: 44px;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.rb-search:hover {
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}
.rb-search:focus-within {
  background: #ffffff;
  border-color: #22D3EE;
  border-width: 2px;
  padding: 0 15px 0 43px;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18), 0 2px 8px rgba(15, 23, 42, 0.10);
}
.rb-search > svg {
  position: absolute;
  left: 14px;
  color: #0891B2;
}
.rb-search-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #0B1B3D;
  font-size: 14px;
  font-family: inherit;
}
.rb-search-input::placeholder { color: #94a3b8; }
.rb-search-kbd {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: #64748b;
}

.rb-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}
.rb-nav-links a {
  color: #1e293b;
  text-decoration: none;
  opacity: 1;
  transition: color 0.2s;
}
.rb-nav-links a:hover { color: #0891B2; }
.rb-ai-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--rb-cy-2), var(--rb-cy-1));
  color: #ffffff !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.30);
}
.rb-ai-btn:hover {
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.45);
}
.rb-ai-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25);
  animation: rb-pulse 2s ease-in-out infinite;
}
.rb-nav-divider { color: #cbd5e1; }
.rb-lang { font-family: "JetBrains Mono", monospace; font-size: 12px !important; color: #475569 !important; }
.rb-login {
  background: #0B1B3D !important;
  color: #ffffff !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  border: 1px solid #0B1B3D !important;
  font-weight: 600 !important;
  transition: all 0.2s;
}
.rb-login:hover {
  background: #1452b8 !important;
  border-color: #1452b8 !important;
}

.rb-subnav {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.rb-subnav-inner {
  display: flex;
  gap: 4px;
  padding: 8px 24px;
  overflow-x: auto;
}
.rb-subnav-item {
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}
.rb-subnav-item:hover, .rb-subnav-item.active {
  background: #e0f2fe;
  color: #0891B2;
}
.rb-subnav-kb {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(15,78,155,0.10));
  color: #0891B2;
  border: 1px solid rgba(34,211,238,0.35);
}
.rb-subnav-kb:hover {
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(15,78,155,0.18));
}

@keyframes rb-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* =========================================================
   2. HERO
   ========================================================= */
.rb-hero {
  position: relative;
  min-height: 760px;padding: 0 0 100px;
  background: radial-gradient(ellipse at top, var(--rb-bg-2) 0%, var(--rb-bg-0) 75%);
  overflow: hidden;
}
.rb-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rb-hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(34,211,238,0.18) 0%, transparent 28%),
    radial-gradient(circle at 82% 78%, rgba(15,78,155,0.35) 0%, transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(34,211,238,0.1) 0%, transparent 35%);
}
.rb-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rb-hero-inner { padding-top: 80px;
  position: relative;
  z-index: 2;}
.rb-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--rb-muted);
  margin-bottom: 32px;
}
.rb-trust-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  color: #fbbf24;
  font-weight: 500;
}
.rb-trust-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
  animation: rb-pulse 1.6s infinite;
}
.rb-trust-count {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  color: #fbbf24;
}
.rb-hero-trust strong {
  color: var(--rb-fg);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}
.rb-trust-sep { color: rgba(139, 157, 186, 0.4); }

.rb-hero-title {
  font-family: "Inter", sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  text-align: center;
  margin: 0 0 24px;
  color: #fff;
}
.rb-grad-text {
  background: linear-gradient(120deg, var(--rb-cy-2), var(--rb-cy-1), var(--rb-bg-2));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rb-grad-shift 8s ease infinite;
}
@keyframes rb-grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.rb-hero-sub {
  text-align: center;
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 56px;
  color: rgba(229, 237, 245, 0.78);
}
.rb-grad-thin {
  background: var(--rb-grad-thin);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.rb-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.rb-entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: var(--rb-radius);
  text-decoration: none;
  color: var(--rb-fg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s, background 0.3s;
}
.rb-entry-card:hover {
  transform: translateY(-4px);
  border-color: var(--rb-cy-2);
  background: rgba(255, 255, 255, 0.07);
}
.rb-entry-card--featured {
  background: linear-gradient(160deg, rgba(34,211,238,0.12) 0%, rgba(15,78,155,0.18) 100%);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.15), 0 18px 48px -12px rgba(34,211,238,0.25);
}
.rb-entry-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--rb-amber);
  color: #0B1B3D;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.rb-entry-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34,211,238,0.15), rgba(15,78,155,0.15));
  border-radius: 14px;
  color: var(--rb-cy-2);
  margin-bottom: 20px;
}
.rb-entry-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  letter-spacing: -0.5px;
}
.rb-entry-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(229, 237, 245, 0.75);
  margin: 0 0 20px;
  flex: 1;
}
.rb-entry-desc strong { color: var(--rb-cy-2); font-weight: 600; }
.rb-entry-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--rb-cy-2);
  letter-spacing: 0.2px;
}
.rb-entry-bg {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(34,211,238,0.18) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform 0.6s ease;
}
.rb-entry-card:hover .rb-entry-bg {
  transform: scale(1.4);
}

/* =========================================================
   3. LIVE FEED
   ========================================================= */
.rb-feed-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--rb-bg-0) 0%, #08152e 100%);
}

.rb-section-head {
  text-align: center;
  margin-bottom: 56px;
}
.rb-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rb-cy-2);
  padding: 6px 14px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  margin-bottom: 18px;
}
.rb-section-tag-dot {
  width: 6px; height: 6px;
  background: var(--rb-cy-2);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34,211,238,0.18);
}
.rb-section-tag--accent {
  color: var(--rb-amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}
.rb-section-tag-dot--accent {
  background: var(--rb-amber);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
}
.rb-section-title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: #fff;
}
.rb-section-title--left { text-align: left; }
.rb-section-sub {
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(229, 237, 245, 0.7);
}

.rb-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rb-feed-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 12px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.rb-feed-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--rb-cy-2);
  opacity: 0;
  transition: opacity 0.3s;
}
.rb-feed-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(34, 211, 238, 0.3);
}
.rb-feed-item:hover::before { opacity: 1; }
.rb-feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rb-cy-2), var(--rb-cy-1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.rb-feed-content { flex: 1; min-width: 0; }
.rb-feed-who {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rb-feed-orcid {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--rb-cy-2);
  background: rgba(34,211,238,0.1);
  padding: 1px 6px;
  border-radius: 4px;
}
.rb-feed-what {
  font-size: 13px;
  color: rgba(229, 237, 245, 0.75);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rb-feed-time {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: var(--rb-muted);
  white-space: nowrap;
}

/* =========================================================
   4. STATS
   ========================================================= */
.rb-stats {
  padding: 80px 0;
  background: var(--rb-bg-0);
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}
.rb-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.rb-stat-item {
  padding: 0 16px;
  border-left: 1px solid rgba(34, 211, 238, 0.15);
}
.rb-stat-item:first-child { border-left: 0; }
.rb-stat-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  background: var(--rb-grad-thin);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.rb-stat-label {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rb-muted);
  font-weight: 500;
}

/* =========================================================
   5. CATEGORIES
   ========================================================= */
.rb-categories {
  padding: 100px 0;
  background: linear-gradient(180deg, #08152e 0%, var(--rb-bg-0) 100%);
}
.rb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Hero Video: full-width showcase, replaces Proteins + Peptides cards */
.rb-cat-hero-video {
  position: relative;
  width: 100%;
  margin: 0 0 16px;
  border-radius: var(--rb-radius);
  overflow: hidden;
  background: #0B1B3D;
  border: 1px solid rgba(34, 211, 238, 0.18);
  aspect-ratio: 21 / 9;
  min-height: 320px;
}
.rb-cat-hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rb-cat-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 27, 61, 0.78) 100%);
  color: #fff;
}
/* Hero Video — placed between navbar and wordmark (flush top, breathing room bottom) */
.rb-hero-video-top {
  margin-top: 0;
  margin-bottom: 32px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  min-height: 380px;
}
.rb-hero-video-top .rb-cat-hero-tag { display: none; }
.rb-hero-video-top .rb-cat-hero-overlay {
  background: linear-gradient(180deg, transparent 50%, rgba(11, 27, 61, 0.55) 100%);
  padding: 24px 36px;
}
.rb-hero-video-top .rb-cat-hero-overlay h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #ffffff;
}
.rb-hero-video-top .rb-cat-hero-overlay p {
  font-size: 13px;
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.rb-cat-hero-overlay h3 {
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 8px 0 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.rb-cat-hero-overlay p {
  margin: 0;
  font-size: 14px;
  color: rgba(229, 237, 245, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.rb-cat-hero-accent {
  background: linear-gradient(120deg, #22D3EE 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rb-cat-hero-tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--rb-cy-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 999px;
  text-transform: uppercase;
}

.rb-cat-card {
  position: relative;
  display: block;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: var(--rb-radius);
  text-decoration: none;
  color: var(--rb-fg);
  transition: all 0.3s;
}
.rb-cat-card:hover {
  border-color: var(--rb-cy-2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}
.rb-cat-card--accent {
  background: linear-gradient(160deg, rgba(34,211,238,0.12), rgba(15,78,155,0.12));
  border-color: rgba(34, 211, 238, 0.35);
}
.rb-cat-ico {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}
.rb-cat-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.5px;
}
.rb-cat-card p {
  font-size: 13.5px;
  color: var(--rb-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
.rb-cat-count {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--rb-cy-2);
  background: rgba(34, 211, 238, 0.1);
  padding: 3px 10px;
  border-radius: 999px;
}
.rb-cat-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--rb-amber);
  color: #0B1B3D;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* =========================================================
   6. AI AGENT
   ========================================================= */
.rb-ai-section {
  padding: 100px 0;
  background: var(--rb-bg-0);
}
.rb-ai-demo {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(8,25,56,0.6) 0%, rgba(11,27,61,0.6) 100%);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--rb-shadow-lg);
}
.rb-ai-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  max-height: 460px;
  overflow-y: auto;
  padding-bottom: 20px;
}
.rb-ai-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rb-ai-msg--user {
  flex-direction: row-reverse;
}
.rb-ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--rb-grad-thin);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.rb-ai-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 600px;
  color: var(--rb-fg);
}
.rb-ai-msg--user .rb-ai-bubble {
  background: linear-gradient(135deg, rgba(15,78,155,0.3), rgba(8,145,178,0.2));
  border-color: rgba(34,211,238,0.3);
}

.rb-ai-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 12px;
}
.rb-ai-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--rb-fg);
  font-size: 14px;
  font-family: inherit;
  padding: 8px 4px;
}
.rb-ai-input::placeholder { color: var(--rb-muted); }
.rb-ai-send {
  background: var(--rb-grad-thin);
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rb-ai-send:hover { filter: brightness(1.15); }

.rb-ai-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.rb-ai-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--rb-fg);
  cursor: pointer;
  transition: all 0.2s;
}
.rb-ai-pill:hover {
  background: rgba(34, 211, 238, 0.1);
  border-color: var(--rb-cy-2);
}

/* =========================================================
   7. AMBASSADOR + PIE
   ========================================================= */
.rb-ambassador {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--rb-bg-0) 0%, #0a1d40 100%);
}
.rb-amb-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.rb-amb-text {
  max-width: 520px;
}
.rb-amb-lead {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(229, 237, 245, 0.78);
  margin: 0 0 24px;
}
.rb-amb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.rb-amb-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(34, 211, 238, 0.12);
  font-size: 15px;
  color: rgba(229, 237, 245, 0.85);
}
.rb-amb-list strong { color: var(--rb-cy-2); font-weight: 600; }
.rb-amb-cta {
  display: inline-block;
  background: var(--rb-grad-thin);
  color: #fff !important;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: filter 0.2s;
}
.rb-amb-cta:hover { filter: brightness(1.15); }

.rb-pie-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.rb-pie {
  width: 280px;
  height: 280px;
  filter: drop-shadow(0 12px 32px rgba(34,211,238,0.25));
}
.rb-pie-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--rb-fg);
}
.rb-pie-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rb-pie-legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

/* =========================================================
   8. FOOTER
   ========================================================= */
.rb-footer {
  padding: 64px 0 32px;
  background: #060f24;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
}
.rb-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}
.rb-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rb-footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.rb-footer-brand strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.rb-footer-brand strong em {
  font-style: normal;
  color: var(--rb-cy-2);
}
.rb-footer-brand p {
  font-size: 14px;
  color: var(--rb-muted);
  margin: 8px 0 0;
  line-height: 1.55;
}
.rb-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.rb-footer-cols h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rb-cy-2);
  margin: 0 0 16px;
}
.rb-footer-cols a {
  display: block;
  font-size: 14px;
  color: rgba(229, 237, 245, 0.7);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.rb-footer-cols a:hover { color: var(--rb-cy-2); }
.rb-footer-meta {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(34, 211, 238, 0.08);
  font-size: 12px;
  color: var(--rb-muted);
  text-align: center;
  font-family: "JetBrains Mono", monospace;
}

/* =========================================================
   FLOATING CHATBOT
   ========================================================= */
.rb-chatbot-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--rb-grad-thin);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(34,211,238,0.45);
  z-index: 99;
  transition: transform 0.2s;
}
.rb-chatbot-btn:hover { transform: scale(1.08); }
.rb-chatbot-btn .rb-chatbot-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: var(--rb-amber);
  border-radius: 50%;
  border: 2px solid var(--rb-bg-0);
  animation: rb-pulse 1.6s infinite;
}

.rb-chatbot-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 56px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(180deg, var(--rb-bg-0) 0%, #08152e 100%);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 20px;
  box-shadow: var(--rb-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 110;
  pointer-events: auto;
  animation: rb-chatbot-rise 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes rb-chatbot-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rb-chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: rgba(34, 211, 238, 0.08);
  border-bottom: 1px solid rgba(34, 211, 238, 0.15);
}
.rb-chatbot-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rb-chatbot-close {
  background: transparent;
  border: 0;
  color: var(--rb-muted);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 12px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
  position: relative;
  z-index: 110;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  transition: background 0.15s, color 0.15s;
}
.rb-chatbot-close:hover { color: #fff; background: rgba(255, 87, 87, 0.18); }
.rb-chatbot-close:active { background: rgba(255, 87, 87, 0.32); }
.rb-chatbot-close:focus { outline: 2px solid rgba(34, 211, 238, 0.5); outline-offset: 2px; }
.rb-chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rb-chatbot-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 85%;
}
.rb-chatbot-msg--bot {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.15);
  align-self: flex-start;
  color: var(--rb-fg);
}
.rb-chatbot-msg--user {
  background: var(--rb-grad-thin);
  color: #fff;
  align-self: flex-end;
}
.rb-chatbot-input-wrap {
  padding: 12px 14px;
  border-top: 1px solid rgba(34, 211, 238, 0.15);
  display: flex;
  gap: 8px;
  align-items: center;
}
.rb-chatbot-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--rb-fg);
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}
.rb-chatbot-input::placeholder { color: var(--rb-muted); }
.rb-chatbot-send {
  background: var(--rb-grad-thin);
  border: 0;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .rb-entry-grid, .rb-feed, .rb-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rb-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .rb-amb-inner { grid-template-columns: 1fr; gap: 40px; }
  .rb-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rb-nav { grid-template-columns: auto auto; }
  .rb-search { display: none; }
  .rb-nav-links { gap: 10px; font-size: 13px; }
  .rb-nav-links > a:not(.rb-ai-btn):not(.rb-lang):not(.rb-login) { display: none; }
  .rb-subnav-inner { padding: 8px 16px; }
  .rb-entry-grid, .rb-feed, .rb-cat-grid { grid-template-columns: 1fr; }
  .rb-hero { padding: 60px 0 80px; }
  .rb-hero-title { font-size: 44px; letter-spacing: -1px; }
  .rb-hero-trust { font-size: 12px; gap: 8px; }
  .rb-trust-sep { display: none; }
  .rb-section-head { margin-bottom: 36px; }
  .rb-footer-cols { grid-template-columns: repeat(2, 1fr); }
  .rb-chatbot-btn { bottom: 16px; right: 16px; width: 56px; height: 56px; }
  .rb-chatbot-panel {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: 80px;
    height: auto;
    max-height: calc(100vh - 100px);
    min-height: 280px;
  }
  .rb-chatbot-close { min-width: 44px; min-height: 44px; font-size: 22px; }
}

/* =========================================================
   2026-10-13  BRAND / LOGO FIX  (appended last so it wins)
   ---------------------------------------------------------
   Symptoms: the header logo was cut — the icon collapsed to nothing and
   the "Let Labs Help Labs." wordmark was sliced off at the left edge.

   Cause 1 (layout): `.rb-nav` is `grid-template-columns: auto 1fr auto`.
   At ≤ ~1024px the search and links columns need more room than exists, so
   the grid shrinks the `auto` brand column — allowed because `.rb-brand`
   declares `min-width: 0`. The brand measured 0px wide at 800px (127px at
   1024px) and its content overflowed out of that clipped column.
   Cause 2 (asset): the global `img { max-width: 100% }` (style.css:46)
   resolves against the 0px containing block, so the 46px logo image
   computed to width 0 and painted nothing.
   Cause 3 (asset): assets/logo.svg declared viewBox="0 80 1000 920", which
   cropped the top of the broken ring (its stroke reaches y=55: 25 units above
   the old top edge) and left ~200 units of dead space on the right. Fixed in
   logo.svg v6 → viewBox="12 27 920 920" (square, nothing clipped, margins
   131/28/130/27). This file only adds the sizing guards.
   ========================================================= */
.rb-brand-mark {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px;
  max-width: 46px !important;
  flex: 0 0 46px;
  object-fit: contain;
  display: block;
}
.rb-brand { min-width: max-content; }
.rb-search { min-width: 0; }
.rb-search-input { min-width: 0; }
.rb-nav-links {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rb-footer-logo { max-width: none; }

/* Desktop grid: brand and links are content-sized, the search box absorbs the
   squeeze (floor 140px, then it shrinks) and the links wrap instead of pushing
   the brand out of the row. Scoped to >720px so the existing ≤720px two-column
   mobile nav still wins. */
@media (min-width: 721px) {
  .rb-nav { grid-template-columns: max-content minmax(140px, 1fr) minmax(0, max-content); }
}
@media (min-width: 721px) and (max-width: 900px) {
  .rb-nav-links { gap: 10px; font-size: 13px; }
}
