/* RBM page – layout and sections (v2 fork, no roadmap/parallax) */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared container */
.rbm-page .container {
  max-width: 1400px;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------- Hero --------------- */
.rbm-page .hero {
  min-height: 1080px;
  position: relative;
  overflow: hidden;
  padding-top: 0;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  z-index: 10;
}

.rbm-page .hero > .container {
  max-width: 1400px;
  width: calc(100% - 48px);
}

.rbm-page .hero__panel {
  position: relative;
  min-height: inherit;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  overflow: hidden;
}

.rbm-page .hero__background {
  position: absolute;
  inset: 0;
  border-bottom-left-radius: 64px;
  border-bottom-right-radius: 64px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.rbm-page .hero__background::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, #000 0%, #000 30%, #39D091 75%, #000 100%);
}

.rbm-page .hero__background::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}

.rbm-page .hero__content {
  text-align: center;
  position: relative;
  z-index: 3;
  min-height: 100%;
  padding-top: 60px;
  padding-bottom: 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 1400px;
  width: calc(100% - 48px);
  margin: 0 auto;
  gap: 16px;
}

.rbm-page .hero__title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff 0%, #fff 30%, #d6f7eb 36%, #39D091 50%, #d6f7eb 64%, #fff 70%, #fff 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rbm-titleGradientShift 6s linear infinite;
  letter-spacing: -0.01em;
}

.rbm-page .hero__subtitle {
  font-size: var(--fs-body);
  color: #fff;
  margin-bottom: 8px;
  opacity: 0.95;
}

.rbm-page .hero__visuals {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.rbm-page .hero__chains {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}

.rbm-page .hero__flames {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}

.rbm-page .hero__flames.active {
  opacity: 1;
  transform: translateZ(0);
}

.rbm-page .rbm-badge {
  display: block;
  margin: 16px auto 48px;
  width: clamp(160px, 18vw, 320px);
  max-width: 60%;
  border-radius: 12px;
  position: relative;
  z-index: 4;
}

.rbm-page .hero__tagline {
  margin-top: 24px;
  margin-bottom: 0;
  padding-bottom: 0;
  text-align: center;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.05;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transition: opacity 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rbm-page .hero__tagline.active {
  opacity: 1;
}

.rbm-page .hero__tagline-line {
  display: inline-block;
  background: linear-gradient(to bottom, #fff 0%, #fff 55%, #e65a29 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.rbm-page .mobile-only { display: none; }
.rbm-page .desktop-only { display: inline; }
.rbm-page br.mobile-only { display: none; }
.rbm-page .mobile-line { display: none; }

@media (max-width: 700px) {
  /* Toggle copy variants */
  .rbm-page .mobile-only { display: inline; }
  .rbm-page .desktop-only { display: none; }
  .rbm-page br.mobile-only { display: inline; }
  .rbm-page .mobile-line { display: block; margin: 12px 0; }

  /* Full-bleed hero panel on mobile (match v1 behavior) */
  .rbm-page .hero {
    min-height: 100vh;
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
  }

  .rbm-page .hero > .container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .rbm-page .hero__panel {
    min-height: 100vh;
    border-bottom-left-radius: 64px;
    border-bottom-right-radius: 64px;
  }

  .rbm-page .hero__content {
    max-width: none;
    width: 100%;
    padding-top: 88px;
    padding-inline: 24px;
  }

  /* Flames as bottom band on mobile (like v1) */
  .rbm-page .hero__flames {
    top: auto;
    bottom: 0;
    height: auto;
    min-height: 300px;
    max-height: 500px;
    object-fit: contain;
    object-position: bottom center;
  }
}

/* Teaser button */
.rbm-page .teaser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  color: #fff;
  background: linear-gradient(to bottom, #39D091 0%, #000 100%);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--fs-body);
  box-shadow: 0 6px 16px rgba(57, 208, 145, 0.35);
}

.rbm-page .teaser-btn:hover { filter: brightness(1.06); }

@keyframes rbm-titleGradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* --------------- Concept --------------- */
.rbm-page .concept {
  padding: 0;
  padding-top: 100px;
  position: relative;
  margin-top: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: center;
  overflow: visible;
}

.rbm-page .concept__head[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1), transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.rbm-page .concept__head.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Concept section container: same width as navbar (transparent) */
.rbm-page .concept .container {
  width: calc(100% - 160px);
  max-width: 1400px;
  padding-left: 0;
  padding-right: 0;
  overflow: visible;
}

/* Head: tag + title — viewport-wide and centered; no section-wide space after title; top margin matches .concept__body */
.rbm-page .concept__head {
  align-self: flex-start;
  width: 100vw;
  max-width: none;
  margin-top: 0;
  margin-left: calc(50% - 50vw);
  margin-bottom: 0;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
  box-sizing: border-box;
}

/* Row: gif1 | text | gif2. Stretch so body gets full row height; body centers its content inside that. */
.rbm-page .concept__wrap {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

/* Text block: width from content (no grow); stretch row height, content centered */
.rbm-page .concept__body {
  flex: 0 1 auto;
  order: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
  min-width: 200px;
}

/* Gifs: same dimensions; center in row, no shrink */
.rbm-page .concept__gif {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(31.63vw, 403px);
  height: min(31.63vw, 403px);
}

.rbm-page .concept__gif--left {
  order: 1;
  align-self: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.rbm-page .concept__gif--right {
  order: 3;
  align-self: center;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.rbm-page .concept__tag {
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  display: inline-block;
  background: linear-gradient(to bottom, #fff 0%, #39D091 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 4px 8px;
  border: 1px solid #39D091;
  border-radius: 6px;
}

.rbm-page .concept__title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h2);
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(90deg, #fff 0%, #fff 30%, #39D091 50%, #fff 70%, #fff 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rbm-titleGradientShift 3s ease-in-out infinite;
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.rbm-page .concept__subtitle {
  color: #fff;
  font-size: var(--fs-body);
  margin-bottom: 8px;
  line-height: 1.3;
}

.rbm-page .concept__bold {
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.rbm-page .concept__bold-line {
  display: block;
  background: linear-gradient(to bottom, #fff 0%, #757F8D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rbm-page .concept__spacing { height: 8px; }

.rbm-page .concept__description {
  color: #fff;
  font-size: var(--fs-body);
  line-height: 1.3;
}

.rbm-page .concept__highlight {
  color: #39D091;
  font-weight: 600;
}

.rbm-page .concept__nft-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* Right GIF: fill container (no black void); asset has baked padding so cover removes it */
.rbm-page .concept__gif--right .concept__nft-gif {
  object-fit: cover;
  object-position: center;
}

@media (min-width: 701px) and (max-width: 1024px) {
  .rbm-page .hero {
    min-height: 80vh;
  }

  .rbm-page .hero__content {
    padding-bottom: 24px;
  }

  .rbm-page .concept {
    padding-top: 8px;
  }
}

/* Narrow: column order gif1 → text → gif2; container same width as navbar mobile */
@media (max-width: 960px) {
  .rbm-page .concept .container {
    width: calc(100% - 48px);
  }
  .rbm-page .concept__wrap {
    flex-direction: column;
    gap: 24px;
  }
  .rbm-page .concept__body {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .rbm-page .concept__gif {
    width: min(86.25vw, 345px);
    height: min(86.25vw, 345px);
  }
}

@media (max-width: 700px) {
  /* Mobile: tighten vertical space between gifs and body */
  .rbm-page .concept__wrap {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .rbm-page .concept__gif {
    width: min(97.75vw, 368px);
    height: min(97.75vw, 368px);
  }
}

/* --------------- Diagram --------------- */
.rbm-page .rbm-diagram {
  padding: 0;
  background: transparent;
}

.rbm-page .diagram-text {
  background: transparent;
  padding: 60px 0;
}

.rbm-page .diagram-text--above { padding-bottom: 30px; }
.rbm-page .diagram-text--below { padding-top: 30px; padding-bottom: 30px; }

.rbm-page .diagram-title,
.rbm-page .section-title {
  font-family: 'Russo One', sans-serif;
  font-size: var(--fs-h2);
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.2;
  background: linear-gradient(90deg, #fff 0%, #fff 30%, #39D091 50%, #fff 70%, #fff 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rbm-titleGradientShift 3s ease-in-out infinite;
}

.rbm-page .diagram-description {
  font-size: var(--fs-body);
  color: #ccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.rbm-page .rbm-diagram iframe {
  border: none;
  background: transparent;
  display: block;
}

/* --------------- Scrolling marquee --------------- */
/* Offset so marquee sits in true middle of gap: diagram-text--below has padding-bottom 30px,
   FAQ has padding-top 120px. Center of gap = 30 + 14vh + 60 from diagram end.
   Content must be at 60 + 14vh from section start => padding-top 120px (120/2 + 14vh = 60 + 14vh). */
.rbm-page .scrolling-marquee {
  background: transparent;
  min-height: 28vh;
  padding-top: 120px;
  padding-bottom: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.rbm-page .marquee-content {
  display: flex;
  animation: rbm-scroll-left 20s linear infinite;
  width: max-content;
}

.rbm-page .marquee-text {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  background: linear-gradient(to bottom, #BFBFBF 0%, #FFF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  margin-right: 50px;
  line-height: 1.5;
}

.rbm-page .marquee-text::after {
  content: attr(data-text);
  margin-left: 50px;
}

@keyframes rbm-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------- FAQ --------------- */
.rbm-page .faq {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.rbm-page .faq::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 60vh;
  transform: translateY(-50%);
  background-image: url('../assets/RBM%20page/RBM-chains.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}

.rbm-page .faq .container {
  position: relative;
  z-index: 2;
}

.rbm-page .faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.rbm-page .faq-item {
  border: 1px solid rgba(57, 208, 145, 0.2);
  border-radius: 8px;
  margin-bottom: 16px;
  background: rgba(26, 26, 31, 0.7);
  overflow: hidden;
  transition: border-color 250ms ease, background 250ms ease;
}

.rbm-page .faq-item:hover {
  border-color: #39D091;
}

.rbm-page .faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  color: #f5f5f5;
  font-size: var(--fs-body);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 150ms ease;
}

.rbm-page .faq-question:hover { color: #39D091; }
.rbm-page .faq-question:focus {
  outline: 2px solid #39D091;
  outline-offset: 2px;
}

.rbm-page .faq-icon {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #fff;
  transition: transform 250ms ease, color 250ms ease;
  margin-left: 16px;
  flex-shrink: 0;
}

.rbm-page .faq-question[aria-expanded="true"] { color: #39D091; }
.rbm-page .faq-item:has(.faq-question[aria-expanded="true"]) { border-color: #39D091; }
.rbm-page .faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: #39D091;
}

.rbm-page .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background: rgba(10, 10, 15, 0.3);
}

.rbm-page .faq-answer.open { max-height: 300px; }

.rbm-page .faq-answer p {
  padding: 20px;
  color: #fff;
  line-height: 1.5;
  margin: 0;
  font-size: var(--fs-body);
}

@media (min-width: 701px) and (max-width: 1024px) {
  .rbm-page .scrolling-marquee {
    padding-top: 40px;
  }

  .rbm-page .faq {
    padding: 40px 0;
  }
}

@media (max-width: 700px) {
  /* Hide diagram section on mobile */
  .rbm-page .rbm-diagram {
    display: none;
  }

  /* Reduce marquee / FAQ vertical padding on mobile */
  .rbm-page .scrolling-marquee {
    padding-top: 40px;
  }

  .rbm-page .faq {
    padding: 40px 0;
  }
}

/* Teaser modal (shared with home) */
.rbm-page .teaser-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 10001; }
.rbm-page .teaser-modal.active { display: flex; }
.rbm-page .teaser-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.rbm-page .teaser-modal__dialog { position: relative; z-index: 1; width: min(96vw, 1200px); max-height: 90vh; }
.rbm-page .teaser-modal__player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.rbm-page .teaser-frame { width: 100%; height: 100%; border: 0; background: #000; display: block; }
.rbm-page .teaser-modal__close {
  position: absolute; top: -12px; right: -12px; background: #111; color: #39D091; border: 1px solid #39D091;
  border-radius: 9999px; width: 32px; height: 32px; line-height: 28px; text-align: center; font-size: 22px; cursor: pointer; z-index: 2;
}
