/* RingCentral brand: primary orange #FF6B00, dark navy #1B2A3B */

[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #FF6B00;
  --md-primary-fg-color--light: #FF8C3A;
  --md-primary-fg-color--dark:  #CC5500;
  --md-accent-fg-color:         #FF6B00;
  --md-typeset-a-color:         #CC5500;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #FF6B00;
  --md-primary-fg-color--light: #FF8C3A;
  --md-primary-fg-color--dark:  #CC5500;
  --md-accent-fg-color:         #FF8C3A;
  --md-typeset-a-color:         #FF8C3A;
}

/* Nav tabs — deep indigo to complement the hero, with high-contrast white text */
.md-tabs {
  background-color: #0C0A2C;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
/* Override Material's default tab link colour (which uses primary = orange) */
.md-tabs__link {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.md-tabs__link:hover,
.md-tabs__link:focus {
  color: rgba(255, 255, 255, 0.95) !important;
}
.md-tabs__link--active {
  color: #fff !important;
  font-weight: 700;
}
/* Active tab underline — amber to echo the sunrise */
.md-tabs__indicator {
  background-color: #FFB020 !important;
  height: 2px;
}

/* ══════════════════════════════════════════════════════════════════════
   HOME PAGE — full-bleed custom layout
   All selectors are prefixed rc- to avoid collisions with Material theme.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --rc-orange:      #FF8800;
  --rc-orange-warm: #FF7A35;
  --rc-ink:         #1A1A1A;
  --rc-ink-mid:     #444444;
  --rc-ink-muted:   #888888;
  --rc-dark-bg:     #1B2A4A;
  --rc-dark-border: rgba(255,255,255,0.12);
  --rc-g-warm-1:    #FF7A35;
  --rc-g-warm-2:    #FFB347;
  --rc-g-warm-3:    #D4A5C9;
  --rc-g-warm-4:    #A8C8E8;
  --rc-g-light-1:   #FFF0E8;
  --rc-g-light-2:   #F5EAF5;
  --rc-g-light-3:   #EAF0FA;
  --rc-font:        'Inter Tight', 'Inter', sans-serif;
}

/* Make the Material content wrapper transparent on the home page */
.md-content[data-md-component="content"] {
  display: block;
}

/* Remove default article padding on the home page */
.rc-hero ~ * .md-content__inner,
body[data-page="home"] .md-content__inner {
  padding: 0;
  margin: 0;
}

/* ── HERO ── */
.rc-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Height is driven by content — no min-height so copy+window dictate it */
  background: linear-gradient(135deg, var(--rc-g-warm-1) 0%, var(--rc-g-warm-2) 45%,
                                var(--rc-g-warm-3) 75%, var(--rc-g-warm-4) 100%);
}
#heroCanvas { display: none; }
.rc-hero__inner {
  flex: 1;
  display: flex;
  /* Reduced vertical padding so copy column height ≈ chat window height */
  padding: 48px 48px 40px;
  position: relative;
  z-index: 2;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ── Chat window demo ──────────────────────────────────────────────── */
.rc-chat-window {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  height: 460px;
  /* Dark glass on the indigo hero */
  background: rgba(8, 6, 32, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 1px 0 rgba(255,255,255,0.1) inset;
  overflow: hidden;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(16px);
}
.rc-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
}
.rc-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8000 0%, #FF4040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--rc-font);
  flex-shrink: 0;
}
.rc-chat-header__info { flex: 1; min-width: 0; }
.rc-chat-header__name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  font-family: var(--rc-font);
  line-height: 1.2;
}
.rc-chat-header__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  font-family: var(--rc-font);
}
.rc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: rc-blink 2.8s ease-in-out infinite;
}
.rc-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.rc-chat-msgs::-webkit-scrollbar { width: 0; }
.rc-chat-msg { display: flex; flex-direction: column; animation: rc-fadeSlideUp 0.2s ease both; }
.rc-chat-msg--user { align-items: flex-end; }
.rc-chat-msg--ai   { align-items: flex-start; }
@keyframes rc-fadeSlideUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rc-chat-bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  font-family: var(--rc-font);
}
.rc-chat-msg--user .rc-chat-bubble {
  background: linear-gradient(135deg, #FF8C00, #FF4A00);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.rc-chat-msg--ai .rc-chat-bubble {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  border-bottom-left-radius: 4px;
}
.rc-chat-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.rc-chat-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,140,0,0.1);
  border: 1px solid rgba(255,140,0,0.25);
  border-radius: 100px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-family: var(--md-code-font, monospace);
  color: #FFB060;
  white-space: nowrap;
  animation: rc-fadeSlideIn 0.25s ease both;
}
.rc-chat-tool-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF8000;
  flex-shrink: 0;
  animation: rc-pulse 1.3s ease-in-out infinite;
}
@keyframes rc-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.3;transform:scale(0.65)} }
@keyframes rc-fadeSlideIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }
.rc-chat-thinking {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: 52px;
}
.rc-chat-thinking span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: rc-thinking 1.4s ease-in-out infinite;
}
.rc-chat-thinking span:nth-child(2) { animation-delay: 0.2s; }
.rc-chat-thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes rc-thinking { 0%,80%,100%{transform:scale(0.65);opacity:0.35} 40%{transform:scale(1);opacity:1} }
.rc-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  flex-shrink: 0;
}
.rc-chat-input-field {
  flex: 1;
  height: 34px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0 11px;
  font-size: 12.5px;
  font-family: var(--rc-font);
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.rc-chat-cursor {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: rgba(255,255,255,0.55);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: rc-cursor-blink 1s step-end infinite;
}
@keyframes rc-cursor-blink { 0%,100%{opacity:1} 50%{opacity:0} }
.rc-chat-send {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8C00, #FF4A00);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
  pointer-events: none;
}
.rc-hero__copy {
  flex: 1;
  max-width: 400px;
  position: relative;
  z-index: 2;
}
.rc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  font-family: var(--rc-font);
}
.rc-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  /* Amber dot matches the sunrise palette */
  background: #FFB020;
  animation: rc-blink 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes rc-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.rc-hero__h1 {
  font-family: var(--rc-font);
  /* Slightly smaller so copy column height ≈ 460px chat window */
  font-size: clamp(42px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -2.5px;
  color: #fff;
  margin-bottom: 18px;
  border: none !important;
}
/* "AI" in the headline picks up the sunrise gradient */
.rc-hero__accent {
  background: linear-gradient(135deg, #FFB020 0%, #FF6010 60%, #FF3060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rc-hero__sub {
  font-family: var(--rc-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 360px;
  margin-bottom: 32px;
}
.rc-hero__sub strong { color: rgba(255,255,255,0.95); font-weight: 600; }
.rc-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.rc-btn {
  font-family: var(--rc-font);
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
/* Primary CTA — warm sunrise gradient */
.rc-btn--sunrise {
  background: linear-gradient(135deg, #FF9D00 0%, #FF5A00 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(255,110,0,0.4);
}
.rc-btn--sunrise:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
/* Secondary — ghost / translucent */
.rc-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2) !important;
}
.rc-btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
/* Keep old names working (backwards compat with any other pages) */
.rc-btn--white  { background: #fff; color: var(--rc-orange-warm); }
.rc-btn--white:hover  { opacity: 0.88; color: var(--rc-orange-warm); }
.rc-btn--outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45) !important;
}
.rc-btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.75) !important; color: #fff; }

/* ── STATS BAR ── */
.rc-stats-bar {
  position: relative;
  z-index: 2;
  padding: 24px 48px;
  display: flex;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
.rc-stat {
  flex: 1;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.rc-stat:first-child { padding-left: 0; }
.rc-stat:last-child  { border-right: none; }
.rc-stat__val {
  font-family: var(--rc-font);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 4px;
  color: #fff;
}
.rc-stat__label {
  font-family: var(--rc-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── SECTIONS ── */
.rc-section {
  padding: 90px 48px;
}
.rc-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.rc-section--warm {
  background: linear-gradient(135deg, var(--rc-g-warm-1) 0%, var(--rc-g-warm-2) 45%, var(--rc-g-warm-3) 75%, var(--rc-g-warm-4) 100%);
}
.rc-section--light {
  background: linear-gradient(135deg, var(--rc-g-light-1) 0%, var(--rc-g-light-2) 60%, var(--rc-g-light-3) 100%);
}
/* Deep indigo dark section — used for the compat/LLM section */
.rc-section--dark {
  background: #0D0B30;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.rc-section--no-top { padding-top: 0; }

/* ── KICKER ── */
.rc-kicker {
  font-family: var(--rc-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rc-orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rc-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--rc-orange);
  flex-shrink: 0;
}
.rc-kicker--light {
  color: rgba(255,255,255,0.7);
}
.rc-kicker--light::before { background: rgba(255,255,255,0.7); }
/* Kicker for dark sections — amber tone to echo the sunrise palette */
.rc-kicker--dawn {
  color: rgba(255,180,60,0.85);
}
.rc-kicker--dawn::before { background: rgba(255,180,60,0.65); }

.rc-section__h2 {
  font-family: var(--rc-font);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--rc-ink);
  margin-bottom: 16px;
  border: none !important;
}
.rc-section__intro {
  font-family: var(--rc-font);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--rc-ink-mid);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── QUOTE ── */
.rc-quote-wrap { display: flex; justify-content: center; }
.rc-quote-card {
  background: #fff;
  border-radius: 16px;
  padding: 56px 64px;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  text-align: center;
}
.rc-quote__mark {
  font-family: var(--rc-font);
  font-size: 72px;
  font-weight: 900;
  color: var(--rc-orange);
  line-height: 0.7;
  margin-bottom: 20px;
  font-style: italic;
  display: block;
}
.rc-quote__text {
  font-family: var(--rc-font);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--rc-ink);
  letter-spacing: -0.8px;
  margin-bottom: 24px;
}
.rc-quote__text span { color: var(--rc-orange); }
.rc-quote__body {
  font-family: var(--rc-font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--rc-ink-mid);
  margin: 0;
}

/* ── DATA LAYER PIVOT ── */
.rc-pivot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.rc-pivot__body {
  font-family: var(--rc-font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--rc-ink-mid);
}
.rc-pivot__body p { margin-bottom: 20px; }
.rc-pivot__body strong { color: var(--rc-ink); font-weight: 600; }
.rc-pivot__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rc-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--rc-orange);
  text-decoration: none;
  margin-top: 8px;
  border-bottom: 1.5px solid var(--rc-orange);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.rc-pivot__cta:hover { opacity: 0.7; color: var(--rc-orange); }

/* ── STACK ROWS ── */
.rc-stack { display: flex; flex-direction: column; gap: 8px; }
.rc-stack__row {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.rc-stack__row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rc-orange);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transition: transform 0.25s;
}
.rc-stack__row:hover { border-color: rgba(255,136,0,0.35); transform: translateX(4px); }
.rc-stack__row:hover::before { transform: scaleY(1); }
.rc-stack__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--rc-g-light-1), var(--rc-g-light-3));
  border: 1px solid rgba(26,26,26,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.rc-stack__text { flex: 1; }
.rc-stack__name {
  font-family: var(--rc-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--rc-ink);
  margin-bottom: 2px;
}
.rc-stack__desc {
  font-family: var(--rc-font);
  font-size: 12px;
  color: var(--rc-ink-muted);
}
.rc-pill {
  font-family: var(--rc-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255,136,0,0.1);
  color: var(--rc-orange);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── SERVER CARDS ── */
.rc-servers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 0;
}
.rc-server-card {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 14px;
  padding: 36px;
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.rc-server-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rc-g-warm-1), var(--rc-g-warm-3));
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 14px 14px 0 0;
}
.rc-server-card:hover { box-shadow: 0 12px 48px rgba(26,26,26,0.1); transform: translateY(-3px); }
.rc-server-card:hover::after { opacity: 1; }
.rc-sc__header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.rc-sc__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,122,53,0.15), rgba(212,165,201,0.15));
  border: 1px solid rgba(255,122,53,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.rc-sc__title {
  font-family: var(--rc-font);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--rc-ink);
}
.rc-sc__badge {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--rc-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rc-orange);
  background: rgba(255,136,0,0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.rc-sc__desc {
  font-family: var(--rc-font);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--rc-ink-mid);
  margin-bottom: 24px;
}
.rc-sc__caps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.rc-sc__cap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rc-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--rc-ink-mid);
}
.rc-cap__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rc-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rc-sc__link {
  font-family: var(--rc-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--rc-orange);
  text-decoration: none;
  border-bottom: 1.5px solid var(--rc-orange);
  padding-bottom: 1px;
  transition: opacity 0.2s;
  display: inline-block;
}
.rc-sc__link:hover { opacity: 0.7; color: var(--rc-orange); }

/* ── LLM COMPAT ── */
.rc-compat__title {
  font-family: var(--rc-font);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 48px;
  border: none !important;
}
.rc-llm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rc-llm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.rc-llm-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,160,40,0.35);
  transform: translateY(-3px);
}
/* Logo image — invert to white for the dark background */
.rc-llm__logo {
  width: 120px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.2s;
  display: block;
}
.rc-llm-card:hover .rc-llm__logo { opacity: 1; }
/* Keep old emoji icon rules from harming anything */
.rc-llm__icon {
  font-size: 30px;
  margin-bottom: 12px;
  display: block;
}
.rc-llm__name {
  font-family: var(--rc-font);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.rc-llm__by {
  font-family: var(--rc-font);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ── SOLUTIONS — homepage + solutions/index.md shared grid ── */
.rc-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
}

/* Icon: must have explicit size and fill so inline SVG is visible */
.rc-sol__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--md-primary-fg-color, var(--rc-orange));
}
.rc-sol__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Homepage card (sits on the gradient section — light background) */
.rc-sol-card {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
}
.rc-sol-card:hover { box-shadow: 0 8px 32px rgba(26,26,26,0.08); transform: translateY(-2px); text-decoration: none; }
.rc-sol-card:hover * { text-decoration: none; }
.rc-sol__num {
  font-family: var(--rc-font);
  font-size: 28px;
  font-weight: 900;
  color: var(--rc-orange);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.6;
}
.rc-sol__title {
  font-family: var(--rc-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--rc-ink);
  margin-bottom: 8px;
}
.rc-sol__desc {
  font-family: var(--rc-font);
  font-size: 13px;
  line-height: 1.65;
  color: var(--rc-ink-mid);
  margin: 0;
}
.rc-sol__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rc-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--rc-orange);
  text-decoration: none;
  margin-top: 16px;
}
.rc-sol__link:hover { opacity: 0.75; color: var(--rc-orange); }

/* Solutions index page — override colours for md-typeset context */
.md-typeset .rc-sol-card {
  background: var(--md-code-bg-color);
  border-color: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
}
.md-typeset .rc-sol-card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-decoration: none;
}
.md-typeset .rc-sol-card:hover * { text-decoration: none; }
.md-typeset .rc-sol__title { color: var(--md-default-fg-color); }
.md-typeset .rc-sol__desc  { color: var(--md-default-fg-color--light); }
.md-typeset .rc-sol__num   { color: var(--md-primary-fg-color); }
.md-typeset .rc-sol__link  { color: var(--md-primary-fg-color); }
.md-typeset .rc-sol__icon  { color: var(--md-primary-fg-color); }


/* ── MERGED DATA + SOLUTIONS GRID ── */
.rc-pivot-grid--solutions {
  grid-template-columns: 2fr 3fr;
  gap: 72px;
  align-items: start;
}
.rc-sol-merge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rc-sol-merge-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(26,26,26,0.1);
  border-radius: 10px;
  padding: 22px 24px;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.rc-sol-merge-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rc-g-warm-1), var(--rc-g-warm-3));
  opacity: 0;
  transition: opacity 0.25s;
}
.rc-sol-merge-card:hover { box-shadow: 0 6px 24px rgba(26,26,26,0.09); transform: translateY(-2px); text-decoration: none; }
.rc-sol-merge-card:hover::after { opacity: 1; }
.rc-sol-merge__num {
  font-size: 12px;
  font-weight: 800;
  color: var(--rc-orange);
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 8px;
  font-family: var(--rc-font);
}
.rc-sol-merge__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rc-ink);
  margin-bottom: 7px;
  font-family: var(--rc-font);
  letter-spacing: -0.3px;
}
.rc-sol-merge__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--rc-ink-muted);
  margin: 0;
  font-family: var(--rc-font);
}

/* ── FOOTER ── */
.rc-footer {
  background: var(--rc-dark-bg);
  padding: 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rc-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.rc-footer__brand {
  font-family: var(--rc-font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.rc-footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rc-footer__links a {
  font-family: var(--rc-font);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.rc-footer__links a:hover { color: rgba(255,255,255,0.85); }
.rc-footer__copy {
  font-family: var(--rc-font);
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .rc-pivot-grid { grid-template-columns: 1fr; gap: 40px; }
  .rc-pivot-grid--solutions { grid-template-columns: 1fr; }
  .rc-servers-grid { grid-template-columns: 1fr; }
  .rc-llm-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-solutions-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .rc-chat-window { flex: 0 0 380px; height: 420px; }
}
@media (max-width: 780px) {
  .rc-chat-window { display: none; }
  .rc-hero__inner { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .rc-solutions-grid { grid-template-columns: 1fr; }
  .rc-sol-merge-grid { grid-template-columns: 1fr; }
  .rc-llm-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-quote-card { padding: 36px 24px; }
  .rc-stats-bar { flex-wrap: wrap; }
  .rc-stat { flex: 1 1 40%; border-right: none; padding: 8px 0; }
  .rc-section { padding: 60px 24px; }
  .rc-hero__inner { padding: 48px 24px; }
  .rc-stats-bar { padding: 20px 24px; }
}

/* Server / tool cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 2px 8px rgba(255,107,0,0.12);
}
.card h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
}
.card p {
  font-size: 0.875rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0;
}

/* Parameter tables */
.param-table th { white-space: nowrap; }
.param-table td:first-child { font-family: var(--md-code-font); font-size: 0.85rem; }
.param-table td:nth-child(2) { font-family: var(--md-code-font); font-size: 0.85rem; color: #0d6efd; }

/* Required / optional badges */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.badge-required { background: #fff0e8; color: #CC5500; }
.badge-optional { background: #f0f0f0; color: #666; }
.badge-crm      { background: #fff3cd; color: #856404; }

/* ══════════════════════════════════════════════════════════════════════
   CHAT BUBBLE COMPONENT — solution page example prompts
   ══════════════════════════════════════════════════════════════════════ */

.rc-chat {
  background: var(--md-code-bg-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.25rem 0;
}

/* ── Icon sizing helpers (Material grid cards use .lg and .middle) ── */
.md-typeset .lg { font-size: 2em !important; }
.md-typeset .middle { vertical-align: -0.1em !important; }
.md-typeset .twemoji svg { fill: currentColor; }
/* Ensure grid card icons inherit the primary colour */
.md-typeset .grid.cards li .twemoji { color: var(--md-primary-fg-color); }

/* User message — right-aligned, soft warm tint */
.rc-chat__user {
  display: flex;
  justify-content: flex-end;
}
.rc-chat__bubble--user {
  max-width: 72%;
  background: #FFF0E4;
  color: #7A3B00;
  border: 1px solid rgba(255, 136, 0, 0.22);
  padding: 10px 14px;
  border-radius: 14px 14px 3px 14px;
  font-size: 0.875rem;
  line-height: 1.55;
}
[data-md-color-scheme="slate"] .rc-chat__bubble--user {
  background: rgba(255, 136, 0, 0.13);
  color: #FFC896;
  border-color: rgba(255, 136, 0, 0.28);
}

/* AI message — left-aligned with avatar */
.rc-chat__ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.rc-chat__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: var(--md-default-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--md-default-fg-color--light);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.rc-chat__bubble--ai {
  max-width: 82%;
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  padding: 10px 14px;
  border-radius: 3px 14px 14px 14px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--md-default-fg-color);
}
.rc-chat__bubble--ai p {
  margin: 0 0 0.5em;
}
.rc-chat__bubble--ai p:last-child {
  margin-bottom: 0;
}
.rc-chat__bubble--ai ul {
  margin: 0.25em 0 0.5em 1.1em;
  padding: 0;
}
.rc-chat__bubble--ai ul:last-child {
  margin-bottom: 0;
}
.rc-chat__follow-up {
  color: var(--md-default-fg-color--light);
  font-style: italic;
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .rc-chat__bubble--ai {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── Solutions index page — grid cards (Variation D) ── */
.md-typeset .grid.cards {
  counter-reset: sol-card;
}
.md-typeset .grid.cards > li {
  counter-increment: sol-card;
  position: relative;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest) !important;
  border-radius: 10px !important;
  transition: border-color 0.2s ease;
}
.md-typeset .grid.cards > li::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  border: 1.5px solid var(--md-primary-fg-color);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.md-typeset .grid.cards > li:hover::after {
  opacity: 1;
}
.md-typeset .grid.cards > li::before {
  content: counter(sol-card, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: var(--md-code-font-family, monospace);
  color: var(--md-default-fg-color--lighter);
  line-height: 1;
  z-index: 1;
}
.md-typeset .grid.cards > li > :first-child {
  padding-right: 2rem;
}
.md-typeset .grid.cards > li hr {
  border-color: var(--md-default-fg-color--lightest);
  margin: 0.75rem 0;
}
.md-typeset .grid.cards > li a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--md-primary-fg-color);
  text-decoration: none;
}
.md-typeset .grid.cards > li a:hover {
  opacity: 0.75;
}
@media (max-width: 480px) {
  .rc-chat__bubble--user,
  .rc-chat__bubble--ai { max-width: 88%; }
}
