:root {
  --mrr-void: #04070e;
  --mrr-abyss: #070d18;
  --mrr-panel: #0a1322;
  --mrr-line: #15263c;
  --mrr-ice: #dde9f6;
  --mrr-read: #b9cbdd;
  --mrr-mute: #7b93ac;
  --mrr-cyan: #2ab6ff;
  --mrr-beam: #8ce6ff;
  --mrr-ember: #ff8a2b;
}

body.mrr-resources-page {
  overflow-x: hidden;
  background: var(--mrr-void);
  color: var(--mrr-ice);
}

body.mrr-resources-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(42, 182, 255, 0.15) 1px, transparent 1.4px);
  background-size: 34px 34px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 120% 84% at 62% 6%, #000 6%, transparent 68%);
  mask-image: radial-gradient(ellipse 120% 84% at 62% 6%, #000 6%, transparent 68%);
}

.mrr-resources-page .public-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.mrr-wrap {
  position: relative;
  z-index: 4;
  width: min(1600px, 100%);
  margin: 0 auto;
  padding-inline: clamp(24px, 5vw, 82px);
}

.mrr-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--mrr-cyan);
  font: 500 11px/1.3 "DM Mono", monospace;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mrr-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: var(--mrr-ember);
}

.mrr-hero {
  position: relative;
  min-height: clamp(560px, 71vh, 790px);
  overflow: hidden;
  border-bottom: 1px solid var(--mrr-line);
  background: linear-gradient(135deg, #06101d 0%, #04070e 76%);
}

.mrr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--mrr-void) 5%, rgba(4, 7, 14, 0.78) 43%, rgba(4, 7, 14, 0.05) 78%),
    linear-gradient(0deg, var(--mrr-void) 0%, transparent 28%);
}

.mrr-hero-figure {
  position: absolute;
  inset: 0 -5% 0 auto;
  z-index: 2;
  display: flex;
  width: 52%;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.mrr-hero-figure img {
  width: auto;
  max-width: none;
  height: 118%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.54;
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.06);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 39%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 11%, #000 83%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 39%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 11%, #000 83%, transparent 100%);
  mask-composite: intersect;
  animation: mrr-figure-in 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.mrr-hero-inner {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(72px, 9vh, 120px);
}

.mrr-hero h1,
.mrr-section h2,
.mrr-contact h2,
.mrr-route h3,
.mrr-modules h3,
.mrr-docs h3 {
  margin: 0;
  color: var(--mrr-ice);
  font-family: "Syne", sans-serif;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.mrr-hero h1 {
  max-width: 15ch;
  margin-top: 22px;
  font-size: clamp(44px, 5.7vw, 88px);
  line-height: 0.96;
}

.mrr-hero h1 span {
  background: linear-gradient(96deg, var(--mrr-ember), #ffc46b 40%, var(--mrr-beam) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mrr-lede {
  max-width: 61ch;
  margin: 24px 0 0;
  color: var(--mrr-mute);
  font-size: clamp(16px, 1.14vw, 19px);
  line-height: 1.72;
}

.mrr-jump {
  display: flex;
  width: fit-content;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--mrr-line);
  background: var(--mrr-line);
}

.mrr-jump a {
  min-width: 118px;
  padding: 14px 20px;
  background: var(--mrr-void);
  color: var(--mrr-mute);
  font: 500 10px/1.2 "DM Mono", monospace;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  transition: 180ms ease;
}

.mrr-jump a:hover {
  background: #0b1626;
  color: var(--mrr-beam);
}

.mrr-section {
  padding-block: clamp(80px, 8.5vw, 132px);
}

.mrr-divide {
  border-top: 1px solid var(--mrr-line);
}

.mrr-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 46px;
}

.mrr-section-head h2,
.mrr-contact h2 {
  max-width: 20ch;
  margin-top: 22px;
  font-size: clamp(30px, 3.25vw, 52px);
  line-height: 1.02;
}

.mrr-section-head > p,
.mrr-contact p {
  max-width: 46ch;
  margin: 0;
  color: var(--mrr-mute);
  font-size: 16px;
  line-height: 1.7;
}

.mrr-routes,
.mrr-modules {
  display: grid;
  gap: 1px;
  border: 1px solid var(--mrr-line);
  background: var(--mrr-line);
}

.mrr-routes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mrr-route,
.mrr-modules article {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mrr-abyss), var(--mrr-void));
  transition: background 260ms ease;
}

.mrr-route {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: clamp(32px, 3.2vw, 52px);
}

.mrr-route::after,
.mrr-modules article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mrr-cyan), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
}

.mrr-route:hover,
.mrr-modules article:hover {
  background: linear-gradient(180deg, #0c1728, var(--mrr-abyss));
}

.mrr-route:hover::after,
.mrr-modules article:hover::after {
  opacity: 1;
}

.mrr-route > span,
.mrr-modules article > span {
  color: var(--mrr-ember);
  font: 500 10px/1.3 "DM Mono", monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mrr-route h3,
.mrr-modules h3 {
  margin-top: 18px;
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.06;
}

.mrr-route p,
.mrr-modules p,
.mrr-docs p {
  margin: 16px 0 0;
  color: var(--mrr-mute);
  font-size: 15px;
  line-height: 1.7;
}

.mrr-route b {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--mrr-read);
  font: 500 11px/1.3 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mrr-route b::after {
  content: "→";
  transition: transform 180ms ease;
}

.mrr-route:hover b {
  color: var(--mrr-beam);
}

.mrr-route:hover b::after {
  transform: translateX(5px);
}

.mrr-modules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mrr-modules article {
  min-height: 280px;
  padding: clamp(30px, 3vw, 44px);
}

.mrr-modules h3 {
  font-size: clamp(22px, 2vw, 30px);
}

.mrr-docs {
  border-top: 1px solid var(--mrr-line);
}

.mrr-docs > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 46px);
  min-height: 126px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--mrr-line);
  transition: 220ms ease;
}

.mrr-docs > a:hover {
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(11, 22, 38, 0.76), transparent 75%);
}

.mrr-docs > a > span {
  border: 1px solid var(--mrr-line);
  padding: 7px 11px;
  color: var(--mrr-mute);
  font: 500 10px/1.2 "DM Mono", monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mrr-docs h3 {
  font-size: clamp(20px, 1.8vw, 28px);
}

.mrr-docs p {
  margin-top: 8px;
}

.mrr-docs b {
  color: var(--mrr-mute);
  font: 500 11px/1.2 "DM Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mrr-docs > a:hover b {
  color: var(--mrr-beam);
}

.mrr-contact {
  border-top: 1px solid var(--mrr-line);
  background: rgba(7, 13, 24, 0.72);
}

.mrr-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding-block: clamp(62px, 6.5vw, 96px);
}

.mrr-contact h2 {
  margin-top: 0;
}

.mrr-contact p {
  margin-top: 16px;
}

.mrr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mrr-actions a {
  border: 1px solid var(--mrr-line);
  padding: 15px 22px;
  color: var(--mrr-ice);
  font: 500 11px/1.2 "DM Mono", monospace;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.mrr-actions a.is-primary {
  border-color: transparent;
  background: linear-gradient(100deg, var(--mrr-beam), var(--mrr-cyan) 55%, #0e7fd0);
  color: #04070e;
}

.mrr-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mrr-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes mrr-figure-in {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 0.54; transform: scale(1); }
}

@media (max-width: 1000px) {
  .mrr-hero-figure {
    right: -20%;
    width: 82%;
  }
  .mrr-routes,
  .mrr-modules {
    grid-template-columns: 1fr;
  }
  .mrr-section-head,
  .mrr-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .mrr-wrap {
    padding-inline: 20px;
  }
  .mrr-hero {
    min-height: 640px;
  }
  .mrr-hero::after {
    background: linear-gradient(180deg, rgba(4, 7, 14, 0.5), var(--mrr-void) 88%);
  }
  .mrr-hero-figure {
    right: -48%;
    width: 130%;
    opacity: 0.48;
  }
  .mrr-hero h1 {
    font-size: clamp(38px, 12vw, 58px);
  }
  .mrr-jump {
    width: 100%;
  }
  .mrr-jump a {
    flex: 1 1 45%;
  }
  .mrr-docs > a {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mrr-hero-figure img,
  .mrr-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
