/* Landing page only */

#top-icon {
  display: block;
  max-width: 350px;
  min-width: 150px;
  width: 40vw;
  height: auto;
}

/* Docs on landing */
.rb-list--numbered {
  list-style: decimal;
  padding-left: 1.25rem;
  color: #1f2e56;
  font-weight: 550;
}

.rb-docs-table code {
  background: rgba(15, 23, 42, 0.08);
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: 0.95rem;
}

.rb-code {
  background: rgba(26, 39, 69, 0.06);
  border: 1px solid var(--rb-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 1rem;
}

.rb-docs-example {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.rb-docs-example__title {
  font-weight: 800;
  margin-bottom: .35rem;
  font-size: 1.05rem;
  color: #1f2e56;
}

.rb-docs-example__hint {
  margin: 0.35rem 0 0;
  color: #2a3b66;
  font-size: 0.95rem;
}

.rb-docs {
  max-width: 58vw;
}

.rb-docs .rb-card__title {
  font-size: clamp(1.65rem, 2.8vw, 1.35rem);
  letter-spacing: 0.01em;
}

.rb-docs .rb-card__subtitle {
  font-size: clamp(1.2rem, 2.1vw, 1.35rem);
  font-weight: 750;
}

.rb-docs .rb-card__text {
  font-size: 1.05rem;
}

.rb-docs-table th,
.rb-docs-table td {
  font-size: 1.02rem;
}

.rb-list {
  font-size: 1.02rem;
}

.rb-nav {
  gap: 1.8rem;
  font-size: 0.8rem;
}

/* Landing hero */
.rb-landing {
  background: #a4d8fe;
  padding: 0px;
  width: 100%;
}

.rb-landing__hero {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
}

.rb-landing__logo {
  font-size: clamp(2.2rem, 6vw, 5rem);
  margin: 0;
  color: #2a3b66;
  letter-spacing: .02em;
  font-weight: 800;
}

.rb-landing__illustration {
  margin-top: .25rem;
}

.rb-landing__tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  margin: .25rem 0 .5rem;
  color: #1f2e56;
  font-weight: 700;
}

.rb-landing__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Capabilities highlight */
.rb-docs-highlight--capabilities {
  background: linear-gradient(120deg, rgba(88, 101, 242, 0.18), rgba(164, 216, 254, 0.32));
  border-radius: 20px;
  padding: 32px 36px;
  border: 1px solid color-mix(in srgb, var(--rb-border) 60%, #5865f2 40%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  max-width: min(1100px, 92vw);
  margin: 1.5rem auto;
}

.rb-docs-highlight__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}


.rb-docs-highlight__header h3 {
  margin: 4px 0 0;
  font-size: clamp(1.85rem, 2.6vw, 2.25rem);
}

.rb-docs-highlight__grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rb-docs-highlight__item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.rb-docs-highlight__item-title {
  margin: 0 0 8px;
  font-size: 1.18rem;
  color: #1f2e56;
  font-weight: 800;
}

.rb-docs-highlight__item-text {
  margin: 0;
  color: #2a3b66;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Scroll-snap for landing */
/* Use viewport scroll; avoid inner scroll to prevent double scroll */
html,
body {
  height: 100%;
}

body {
  scroll-snap-type: y mandatory;
}

.rb-snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Center following sections and limit width */
.rb-grid.rb-snap-section,
.rb-docs-section.rb-snap-section {
  width: 100%;
}

/* Section background variations based on first section color (#a4d8fe) */
.rb-grid.rb-snap-section {
  background: #bfe4ff;
  /* slightly lighter */
  padding: 2rem 1.5rem;
}

.rb-docs-section.rb-snap-section {
  /* lightest */
  padding: 2rem 1.5rem;
}

.rb-capabilities-section {
  background: #bfe4ff;
}

.rb-commands-section {
  background: #d4edff;
}

/* Make inner cards align to center visually */
.rb-grid.rb-snap-section {
  text-align: center;
}

.rb-docs-section .rb-card__title,
.rb-docs-section .rb-card__subtitle {
  text-align: center;
}

.rb-card {
  /* keep default card bg from global styles; no override here */
  border-radius: 0px;
  margin: 0;
  border: none;
}

.rb-card__text {
  color: #1f2e56;
  font-weight: 550;
}

/* Override public container width on landing */
.rb-main.rb-main--landing.rb-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.rb-button--secondary {
  padding: 0.35rem 0.6rem;
  min-height: 0;
  color: #3f48b3;
  border: 2px solid #3f48b3;
}

.ld-button {
  font-size: 1.1rem;
}

@media (max-width: 1650px) {
  .rb-docs {
    max-width: 70vw;
  }

  .rb-nav {
    gap: 1rem;
  }
}

@media (max-width: 1115px) {
  .rb-docs {
    max-width: 85vw;
  }
}

@media (max-width: 600px) {
  .rb-docs {
    max-width: 90vw;
  }
}