:root {
  --rm-bg: #07080a;
  --rm-bg-elevated: #0f1117;
  --rm-bg-card: #141820;
  --rm-blue: #0549ff;
  --rm-blue-hover: #1a5cff;
  --rm-text: #ffffff;
  --rm-text-muted: #a8a8a8;
  --rm-text-dim: #8a8a8a;
  --rm-border: rgba(255, 255, 255, 0.08);
  --rm-max: 1120px;
  --rm-radius: 20px;
  --rm-radius-sm: 14px;
  --rm-font-display: "Baloo Bhai 2", system-ui, sans-serif;
  --rm-font-body: "Inter Tight", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background: var(--rm-bg);
  color: var(--rm-text);
  font-family: var(--rm-font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

main {
  max-width: 100%;
}

.rm-wrap {
  width: min(100% - 40px, var(--rm-max));
  margin-inline: auto;
}

.rm-display {
  font-family: var(--rm-font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.rm-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rm-blue);
}

.rm-lead {
  margin: 0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--rm-text-muted);
}

.rm-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.rm-section--alt {
  background: var(--rm-bg-elevated);
  border-block: 1px solid var(--rm-border);
}

.rm-section__head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.rm-section__title {
  margin: 0 0 12px;
  font-family: var(--rm-font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
}

/* Header */
.rm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(12px);
}

.rm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 16px;
  box-sizing: border-box;
  min-height: 80px;
}

.rm-header__logo img {
  display: block;
  height: clamp(38px, 5.5vw, 46px);
  width: auto;
}

.rm-header__stores-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  margin-left: auto;
  flex-shrink: 0;
}

.rm-header__logo {
  flex-shrink: 1;
  min-width: 0;
}

.rm-header__store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 2px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rm-header__store-link:hover {
  transform: scale(1.06);
  background: rgba(0, 0, 0, 0.06);
}

.rm-header__store-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.rm-header__store-icon--android {
  width: 44px;
  height: auto;
}

/* Store buttons */
.rm-store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 24px;
}

.rm-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 20px;
  border-radius: 24px;
  background: var(--rm-blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--rm-font-display);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rm-store-btn:hover {
  background: var(--rm-blue-hover);
  transform: translateY(-1px);
}

.rm-store-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 34px;
}

.rm-store-btn__icon img {
  display: block;
}

.rm-store-btn__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.rm-store-btn__small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.92;
}

.rm-store-btn__small--caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
}

.rm-store-btn__label {
  font-size: 28px;
  font-weight: 600;
}

/* Hero */
.rm-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding: clamp(24px, calc(8vw - 24px), 64px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
  overflow: visible;
  max-width: 100%;
}

.rm-hero__avatars {
  --rm-avatar-band-height: calc(
    4 * clamp(64px, 18vw, 148px) + 3 * clamp(8px, 1.2vw, 16px)
  );
  --rm-avatar-rotate-pad: calc(var(--rm-avatar-band-height) * 0.09);
  grid-area: 1 / 1;
  z-index: 0;
  width: calc(100% + (2 * var(--rm-avatar-rotate-pad)));
  max-width: none;
  margin-inline: calc(-1 * var(--rm-avatar-rotate-pad));
  transform: rotate(5deg);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 16px);
  opacity: 1;
  pointer-events: none;
  align-self: center;
  justify-self: center;
}

.rm-hero__avatar-row {
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.rm-hero__avatar-track {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  width: max-content;
  animation: rm-marquee-left 120s linear infinite;
  will-change: transform;
}

.rm-hero__avatar-row--right .rm-hero__avatar-track {
  animation-name: rm-marquee-right;
}

@keyframes rm-marquee-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes rm-marquee-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-hero__avatar-track {
    animation: none;
  }
}

.rm-hero__avatar {
  flex: 0 0 auto;
  width: clamp(88px, 10vw, 148px);
  height: clamp(88px, 10vw, 148px);
  max-width: none;
  border-radius: 100000px;
  object-fit: cover;
}

.rm-hero__screenshot-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
}

.rm-hero__content {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding-inline: 16px;
}

.rm-hero__title {
  margin: 0 0 16px;
  font-family: var(--rm-font-display);
  font-size: clamp(3rem, 10vw, 6.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.rm-hero__title-line {
  display: block;
}

.rm-hero__subtitle {
  margin: 0 auto 32px;
  max-width: 28ch;
  font-family: var(--rm-font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  color: #d4d4d4;
}

.rm-hero__flags {
  margin: 0 0 28px;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}

.rm-hero__screenshot {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  width: 100%;
  max-width: min(100%, 420px);
  justify-self: center;
  background: transparent;
}

.rm-hero__screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.rm-hero__company {
  margin: 28px auto 0;
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--rm-text-dim);
}

.rm-hero__company a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Company bar */
.rm-company-bar {
  padding: 20px 0;
  background: var(--rm-bg-card);
  border-block: 1px solid var(--rm-border);
  text-align: center;
  font-size: 0.92rem;
  color: var(--rm-text-muted);
}

.rm-company-bar strong {
  color: #fff;
}

.rm-company-bar a {
  color: #fff;
}

/* Cards grid */
.rm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rm-card {
  padding: 24px;
  border-radius: var(--rm-radius);
  background: var(--rm-bg-card);
  border: 1px solid var(--rm-border);
}

.rm-card__title {
  margin: 0 0 10px;
  font-family: var(--rm-font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.rm-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rm-text-muted);
}

/* Story */
.rm-story {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.rm-story__step {
  padding: 20px 16px;
  border-radius: var(--rm-radius-sm);
  background: var(--rm-bg-card);
  border: 1px solid var(--rm-border);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rm-story__step strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--rm-font-display);
  font-size: 1.05rem;
  color: #fff;
}

.rm-story__arrow {
  color: var(--rm-blue);
  font-size: 1.25rem;
  font-weight: 700;
}

.rm-highlight {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: var(--rm-radius-sm);
  background: rgba(5, 73, 255, 0.12);
  border: 1px solid rgba(5, 73, 255, 0.28);
  font-size: 1rem;
  line-height: 1.55;
}

.rm-highlight strong {
  color: #fff;
}

/* Product features */
.rm-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(32px, 5vw, 48px) 0;
  border-bottom: 1px solid var(--rm-border);
}

.rm-feature:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rm-feature--reverse .rm-feature__media {
  order: 2;
}

.rm-feature--reverse .rm-feature__copy {
  order: 1;
}

.rm-feature__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 73, 255, 0.15);
  color: #7aabff;
  font-size: 0.8rem;
  font-weight: 600;
}

.rm-feature__title {
  margin: 0 0 12px;
  font-family: var(--rm-font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.rm-feature__list {
  margin: 16px 0 0;
  padding-left: 1.1rem;
  color: var(--rm-text-muted);
  line-height: 1.65;
}

.rm-feature__media img {
  display: block;
  width: 100%;
  border-radius: var(--rm-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* Social proof */
.rm-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.rm-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--rm-bg-card);
  border: 1px solid var(--rm-border);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Metrics */
.rm-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.rm-metric {
  padding: 20px 16px;
  border-radius: var(--rm-radius-sm);
  background: var(--rm-bg-card);
  border: 1px solid var(--rm-border);
  text-align: center;
}

.rm-metric__value {
  display: block;
  font-family: var(--rm-font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.rm-metric__label {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--rm-text-dim);
}

.rm-metrics-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* Topics chart */
.rm-topics {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: start;
}

.rm-topics__highlight {
  margin: 0 0 20px;
  font-family: var(--rm-font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.rm-topics__highlight span {
  color: var(--rm-blue);
}

.rm-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-bar-item {
  display: grid;
  grid-template-columns: 120px 1fr 44px;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.rm-bar-item__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rm-bar-item__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rm-blue), #5b8cff);
}

.rm-bar-item__pct {
  text-align: right;
  color: var(--rm-text-dim);
  font-variant-numeric: tabular-nums;
}

/* Timeline / business model */
.rm-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rm-timeline__item {
  padding: 20px;
  border-radius: var(--rm-radius-sm);
  background: var(--rm-bg-card);
  border: 1px solid var(--rm-border);
}

.rm-timeline__phase {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-blue);
}

.rm-timeline__title {
  margin: 0 0 8px;
  font-family: var(--rm-font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.rm-timeline__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--rm-text-muted);
}

/* Team */
.rm-team-card {
  padding: 28px;
  border-radius: var(--rm-radius);
  background: var(--rm-bg-card);
  border: 1px solid var(--rm-border);
}

.rm-team-card__role {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--rm-blue);
  font-weight: 600;
}

.rm-team-card__bio {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--rm-text-muted);
}

.rm-team-card__bio li::before {
  content: "→ ";
  color: var(--rm-blue);
}

/* Final CTA */
.rm-final-cta {
  text-align: center;
}

.rm-final-cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 24px;
  font-size: 0.95rem;
}

.rm-final-cta__contacts a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.rm-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--rm-border);
  background: var(--rm-bg);
}

.rm-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.rm-footer__legal {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--rm-text-dim);
  max-width: 36ch;
}

.rm-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.rm-footer__links a {
  color: var(--rm-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}

.rm-footer__links a:hover {
  color: #fff;
}

.rm-source {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--rm-text-dim);
}

@media (max-width: 960px) {
  .rm-grid-3,
  .rm-metrics,
  .rm-metrics-secondary,
  .rm-timeline,
  .rm-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .rm-feature,
  .rm-feature--reverse {
    grid-template-columns: 1fr;
  }

  .rm-feature--reverse .rm-feature__media,
  .rm-feature--reverse .rm-feature__copy {
    order: unset;
  }

  .rm-topics {
    grid-template-columns: 1fr;
  }

  .rm-story {
    grid-template-columns: 1fr;
  }

  .rm-story__arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .rm-wrap {
    width: min(100% - 32px, var(--rm-max));
  }

  .rm-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .rm-header__inner {
    min-height: 56px;
    padding-inline: 16px;
    gap: 12px;
  }

  .rm-header__logo img {
    height: 32px;
  }

  .rm-header__stores-pill {
    gap: 8px;
    padding: 6px 10px;
    border-width: 1px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }

  .rm-header__store-link {
    min-width: 24px;
    min-height: 24px;
    padding: 0;
  }

  .rm-header__store-icon {
    width: 22px;
    height: 22px;
  }

  .rm-header__store-icon--android {
    width: 28px;
  }

  .rm-hero__screenshot {
    max-width: min(68vw, 280px);
  }

  .rm-hero__avatar {
    width: clamp(64px, 18vw, 96px);
    height: clamp(64px, 18vw, 96px);
  }

  .rm-grid-3,
  .rm-metrics,
  .rm-metrics-secondary,
  .rm-timeline,
  .rm-grid-2 {
    grid-template-columns: 1fr;
  }

  .rm-bar-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .rm-bar-item__label {
    grid-column: 1;
  }

  .rm-bar-item__pct {
    grid-column: 2;
    grid-row: 1;
  }

  .rm-bar-item__track {
    grid-column: 1 / -1;
  }

  .rm-store-btn__label {
    font-size: 20px;
  }
}
