:root {
  --rb-midnight: #050511;
  --rb-electric: #5c7cfa;
  --rb-fuchsia: #f72585;
  --rb-amber: #f5c518;
  --rb-mist: rgba(255, 255, 255, 0.08);
  --rb-ice: #f8f9ff;
  --rb-text: #dfe7ff;
  --rb-card: rgba(7, 16, 41, 0.7);
  --rb-glass: rgba(255, 255, 255, 0.05);
  --rb-border: rgba(255, 255, 255, 0.12);
  --rb-success: #5be49b;
  --rb-gradient: linear-gradient(135deg, #2231ff, #ed3bbb 58%, #ffa62b);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--rb-midnight);
  color: var(--rb-text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20% 0 auto;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at 20% 20%, rgba(92, 124, 250, 0.25), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(247, 37, 133, 0.2), transparent 40%);
  filter: blur(35px);
  animation: rbNebula 28s linear infinite;
  z-index: -2;
}

body::after {
  animation-duration: 36s;
  animation-direction: reverse;
  opacity: 0.7;
}

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

.rb-orbit {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 2px,
      transparent 2px,
      transparent 12px
    ),
    radial-gradient(circle at 30% 20%, rgba(92, 124, 250, 0.18), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(247, 37, 133, 0.15), transparent 55%);
  opacity: 0.25;
  z-index: -3;
  pointer-events: none;
}

@keyframes rbNebula {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-5%, -4%, 0) rotate(4deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.rb-wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.rb-nav-shell {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9000;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 17, 0.92);
  border-bottom: 1px solid var(--rb-border);
}

.rb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.rb-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rb-brand img {
  width: 46px;
  height: 46px;
}

.rb-brand span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rb-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.rb-links a {
  padding: 0.45rem 0.35rem;
  position: relative;
}

.rb-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--rb-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.rb-links a:hover::after,
.rb-links a:focus-visible::after {
  transform: scaleX(1);
}

.rb-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--rb-border);
  background: var(--rb-glass);
  color: var(--rb-ice);
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.rb-toggle span,
.rb-toggle::before,
.rb-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.rb-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.rb-toggle::before {
  top: 16px;
}

.rb-toggle::after {
  bottom: 16px;
}

.rb-toggle.rb-is-open span {
  opacity: 0;
}

.rb-toggle.rb-is-open::before {
  transform: translateY(5px) rotate(45deg);
}

.rb-toggle.rb-is-open::after {
  transform: translateY(-7px) rotate(-45deg);
}

.rb-hero {
  position: relative;
  padding: 7rem 0 4rem;
}

.rb-hero::before,
.rb-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 42% 58% 37% 63% / 44% 61% 39% 56%;
  background: radial-gradient(circle at 30% 30%, rgba(92, 124, 250, 0.5), transparent);
  filter: blur(10px);
  opacity: 0.45;
  animation: rbPulse 16s ease-in-out infinite;
  z-index: -1;
}

.rb-hero::after {
  right: 12%;
  top: 8%;
  animation-delay: 3s;
}

.rb-hero::before {
  left: 5%;
  bottom: 2%;
}

@keyframes rbPulse {
  0%,
  100% {
    transform: scale(0.8) translateY(10px);
  }
  40% {
    transform: scale(1.1) translateY(-10px);
  }
}

.rb-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.rb-hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.rb-hero-copy p {
  font-size: 1.2rem;
  color: #c8d3ff;
  margin-bottom: 2rem;
}

.rb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rb-btn-main,
.rb-btn-ghost {
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rb-btn-main {
  background: var(--rb-gradient);
  color: #010209;
  box-shadow: 0 15px 35px rgba(92, 124, 250, 0.35);
}

.rb-btn-ghost {
  border-color: var(--rb-border);
  color: var(--rb-ice);
  background: transparent;
}

.rb-btn-main:hover,
.rb-btn-ghost:hover {
  transform: translateY(-4px);
}

.rb-hero-panel {
  position: relative;
  padding: 2.5rem;
  border-radius: 28px;
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  overflow: hidden;
}

.rb-hero-panel::after {
  content: "";
  position: absolute;
  inset: -120px;
  background: url('/assets/media/hero-bg.webp') center/cover no-repeat;
  opacity: 0.3;
  filter: blur(6px);
  z-index: -1;
}

.rb-panel-metric {
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-panel-metric:last-child {
  border-bottom: none;
}

.rb-panel-metric span:first-child {
  color: #9fb6ff;
  font-size: 0.88rem;
}

.rb-panel-metric strong {
  font-size: 1.4rem;
}

.rb-chip-train {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rb-chip {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rb-section-head {
  margin-bottom: 2rem;
}

.rb-section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.rb-section-head p {
  color: #aebce8;
}

.rb-split {
  padding: 4rem 0;
}

.rb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.rb-card {
  background: var(--rb-card);
  border-radius: 20px;
  padding: 1.6rem;
  border: 1px solid var(--rb-border);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.rb-card::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 30% 0%, rgba(92, 124, 250, 0.5), transparent 60%),
    radial-gradient(circle at 80% 120%, rgba(247, 37, 133, 0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
}

.rb-card > * {
  position: relative;
  z-index: 1;
}

.rb-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 197, 24, 0.7);
}

.rb-card:hover::before {
  opacity: 0.7;
}

.rb-card img {
  width: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
}

.rb-card-gradient {
  border-image: linear-gradient(120deg, rgba(92, 124, 250, 0.7), rgba(247, 37, 133, 0.7)) 1;
  border: 1px solid transparent;
}

.rb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #b5c7ff;
}

.rb-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rb-list {
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.rb-list li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.rb-list li::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rb-gradient);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.rb-contact-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.rb-contact-art img {
  max-width: 220px;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.45));
}

.rb-modal {
  position: fixed;
  inset: 0;
  background: rgba(1, 2, 12, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9001;
}

.rb-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.rb-modal-box {
  background: linear-gradient(135deg, rgba(5, 8, 24, 0.96), rgba(31, 36, 80, 0.96));
  border-radius: 28px;
  padding: 2.5rem;
  width: min(460px, 92vw);
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  text-align: center;
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.55);
}

.rb-modal-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.rb-modal-box p {
  color: #cbd6ff;
}

.rb-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
}

.rb-modal-close::before,
.rb-modal-close::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 18px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}

.rb-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.rb-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.rb-testimonials {
  padding: 4rem 0;
}

.rb-voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.rb-voice {
  background: rgba(8, 20, 49, 0.85);
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.rb-voice::before {
  content: '“';
  position: absolute;
  top: -35px;
  left: 1rem;
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.05);
}

.rb-stars {
  color: var(--rb-amber);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.rb-faq {
  padding: 4rem 0 5rem;
}

.rb-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rb-accordion details {
  background: rgba(8, 17, 44, 0.85);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--rb-border);
}

.rb-accordion summary {
  cursor: pointer;
  font-weight: 600;
  outline: none;
}

.rb-accordion summary::-webkit-details-marker {
  display: none;
}

.rb-accordion summary::after {
  content: '+';
  float: right;
  transition: transform 0.3s ease;
}

.rb-accordion details[open] summary::after {
  transform: rotate(45deg);
}

.rb-cta {
  padding: 4rem 0 5rem;
}

.rb-cta-box {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(120deg, rgba(92, 124, 250, 0.18), rgba(247, 37, 133, 0.18));
  padding: 2.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.rb-form {
  display: grid;
  gap: 1rem;
}

.rb-form input,
.rb-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 7, 29, 0.7);
  color: var(--rb-ice);
  font-size: 1rem;
}

.rb-form textarea {
  min-height: 140px;
  resize: vertical;
}

.rb-foot-shell {
  border-top: 1px solid var(--rb-border);
  padding: 2.5rem 0 3rem;
}

.rb-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.92rem;
}

.rb-foot-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.rb-legal {
  font-size: 0.85rem;
  color: #9fafdb;
}

@media (max-width: 991px) {
  .rb-toggle {
    display: block;
  }
  .rb-links {
    position: absolute;
    right: 0;
    top: 100%;
    flex-direction: column;
    width: min(320px, 85vw);
    background: rgba(5, 8, 24, 0.98);
    border: 1px solid var(--rb-border);
    border-top: none;
    padding: 1.5rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }
  .rb-links.rb-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .rb-nav {
    position: relative;
  }
}

@media (max-width: 640px) {
  .rb-hero-panel {
    padding: 2rem;
  }
  .rb-btn-main,
  .rb-btn-ghost {
    width: 100%;
    text-align: center;
  }
  .rb-cta-box {
    padding: 1.8rem;
  }
}
