/* MMax RGS — one-page site.
   Palette: ink navy text and bands, cool paper ground, felt green for
   actions, brass for step numbers. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-wdth-normal.v5-3-0.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-wdth-normal.v5-3-0.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/ibm-plex-mono-latin-400-normal.v5-3-0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/ibm-plex-mono-latin-500-normal.v5-3-0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f1e36;
  --ink-2: #1c3152;
  --paper: #f3f5f8;
  --white: #ffffff;
  --felt: #0b6e5a;
  --felt-dark: #08594a;
  --brass: #b07d24;
  --slate: #52627a;
  --rule: #d5dce5;
  --on-ink: #e6ecf4;
  --on-ink-2: #a9b7cb;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Type scale: 16 / 18 / 22 / 30 / 44 / 64 (roughly a 1.333 ratio). */
  --t-small: 0.9375rem;
  --t-body: 1.0625rem;
  --t-h3: 1.1875rem;
  --t-h2: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  --t-h1: clamp(2.3rem, 1.5rem + 3vw, 3.35rem);

  --wrap: 72rem;
  --gap: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 {
  font-stretch: 118%;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 650; font-stretch: 108%; }
p { margin: 0 0 1em; max-width: 38em; }
p:last-child { margin-bottom: 0; }
a { color: var(--felt); text-underline-offset: 0.18em; }
code { font-family: var(--mono); font-size: 0.92em; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 48rem; }
.small { font-size: var(--t-small); color: var(--slate); }
.section-intro { font-size: 1.1875rem; color: var(--slate); margin: 1rem 0 2.5rem; max-width: 36em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit; font-weight: 600; font-stretch: 105%;
  color: var(--white); background: var(--felt);
  border: 2px solid var(--felt);
  padding: 0.8rem 1.4rem; border-radius: 4px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--felt-dark); border-color: var(--felt-dark); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-small { padding: 0.45rem 0.95rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.mark { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 780; font-stretch: 120%; font-size: 1.2rem; }
.mark svg { width: 2rem; height: 2rem; }
.mark rect { fill: var(--ink); }
.mark path { fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: var(--t-small); }
.top nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 52rem) { .top nav a:not(.btn) { display: none; } }

/* Hero: one full-width picture of the product, the promise over it. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 56rem);
  display: flex; align-items: center;
  padding: clamp(4rem, 3rem + 5vw, 8rem) 0;
  background: var(--ink); color: var(--white);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(15, 30, 54, 0.92) 0%, rgba(15, 30, 54, 0.75) 40%, rgba(15, 30, 54, 0) 62%);
}
.hero-copy { width: 100%; }
.hero-copy > * { max-width: 27.5rem; }
.hero h1 { color: var(--white); }
.lede { font-size: 1.25rem; line-height: 1.55; margin: 1.5rem 0 2rem; color: var(--on-ink); }
.hero .btn-quiet { color: var(--white); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; color: var(--on-ink-2); font-size: var(--t-small); }
.facts b { display: block; font-size: 1.75rem; font-weight: 760; font-stretch: 112%; color: var(--white); line-height: 1.1; }
.aside { margin-top: 1.75rem; font-size: var(--t-small); color: var(--on-ink-2); }


/* Sections */
main > section { padding: var(--section) 0; }
main > section + section { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split h2 { margin-bottom: 1.25rem; }
.list-h { font-size: var(--t-body); font-stretch: 100%; font-weight: 650; margin-bottom: 1rem; }

/* Problems: a real two-column comparison, so a table. */
.pairs { width: 100%; border-collapse: collapse; }
.pairs th { text-align: left; font-size: var(--t-small); font-weight: 600; color: var(--slate); padding: 0 1.5rem 0.75rem 0; border-bottom: 2px solid var(--ink); }
.pairs td { vertical-align: top; padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 1px solid var(--rule); width: 50%; }
.pairs td:first-child { color: var(--slate); }
.pairs td:last-child { font-weight: 500; }

/* Money path: the dark band with the seven steps. */
main > section.money {
  color: var(--on-ink); border-top: 0;
  background:
    linear-gradient(90deg, rgba(15, 30, 54, 0.97) 0%, rgba(15, 30, 54, 0.9) 45%, rgba(15, 30, 54, 0.72) 100%),
    var(--ink) url(/img/band-waves.webp) center bottom / cover no-repeat;
}
main > section.money + section { border-top: 0; }
.money h2 { color: var(--white); }
.money .section-intro { color: var(--on-ink-2); }
.money-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.money-side .section-intro { margin-bottom: 2rem; }
.pipeline { list-style: none; margin: 0; padding: 0; counter-reset: pipe; }
.pipeline li {
  counter-increment: pipe;
  display: grid; grid-template-columns: 2.25rem 6.5rem 1fr; gap: 0.1rem 1rem; align-items: baseline;
  padding: 0.6rem 0; border-top: 1px solid var(--ink-2);
}
.pipeline li:last-child { border-bottom: 1px solid var(--ink-2); }
.pipeline li::before { content: counter(pipe); font-family: var(--mono); font-size: 0.875rem; color: var(--brass); }
.pipeline h3 { color: var(--white); font-family: var(--mono); font-weight: 500; font-size: 1rem; }
.pipeline .val { font-family: var(--mono); font-size: 0.875rem; color: var(--brass-light, #d9a948); overflow-wrap: anywhere; }
.pipeline p { grid-column: 2 / -1; font-size: 0.875rem; color: var(--on-ink-2); line-height: 1.4; }
.round-head { display: flex; justify-content: space-between; gap: 0 1rem; flex-wrap: wrap; line-height: 1.5; margin: 0 0 0.5rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--on-ink-2); }
.round-note { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--on-ink-2); }
.money-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.money-notes li { font-size: var(--t-small); color: var(--on-ink); padding-left: 1rem; border-left: 2px solid var(--felt); }



.faq-more { margin-top: 1rem; font-size: 1.0625rem; color: var(--ink-2); }
.faq-more a { color: var(--felt-dark); font-weight: 600; }
.backoffice 
/* Developers */
.arch-fig { margin: 2.5rem 0 0; }
.arch { display: block; width: 100%; height: auto; font-family: var(--sans, inherit); }
.arch .nd rect:first-child { fill: var(--white); stroke: var(--rule); }
.arch .nd.dark rect:first-child { fill: var(--white); stroke: var(--rule); }
.arch .panel { fill: #e9eef5; stroke: var(--rule); }
.arch .t { font-size: 17px; font-weight: 650; fill: var(--ink); }
.arch .dark .t { fill: var(--ink); }
.arch .s { font-size: 13.5px; fill: var(--ink-2); }
.arch .dark .s, .arch .s.on { fill: var(--ink-2); }
.arch .chip { fill: #eef1f6; stroke: none; }
.arch .c { font-family: var(--mono); font-size: 13px; fill: var(--ink-2); }
.arch .bl { font-family: var(--mono); font-size: 13px; fill: var(--slate); }
.arch .bl.on { fill: var(--ink); font-weight: 600; }
.arch .ar { stroke: #b07d24; stroke-width: 2; }
.arch .ar.dash { stroke-dasharray: 4 4; }
.arch .al { font-family: var(--mono); font-size: 12.5px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 5px; }
.arch-fig figcaption { margin-top: 0.9rem; font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 52rem) { .arch-fig { overflow-x: auto; } .arch { min-width: 46rem; } }

/* Engine: how a game is built */
.section-intro.wide { max-width: none; margin-bottom: 3rem; }
.build { margin: 0; }
.build-in, .build-out { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.build-in { grid-template-columns: repeat(3, 1fr); }
.build-out { grid-template-columns: repeat(2, 1fr); max-width: 44rem; margin: 0 auto; }
.build-in li, .build-out li { position: relative; display: grid; gap: 0.25rem; padding: 0.9rem 1.1rem; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; font-size: var(--t-small); color: var(--ink-2); }
.build-k { font-family: var(--mono); font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
.build-in li:not(:last-child)::after { content: "→"; position: absolute; right: -0.85rem; top: 50%; transform: translateY(-50%); color: var(--slate); }
.build-engine { position: relative; margin: 2.25rem 0; padding: 1.5rem; background: #e9eef5; border: 1px solid var(--rule); border-radius: 12px; }
.build-engine::before, .build-engine::after { content: "↓"; position: absolute; left: 50%; transform: translateX(-50%); color: var(--slate); font-size: 1.2rem; }
.build-engine::before { top: -2rem; }
.build-engine::after { bottom: -2rem; }
.build-title { margin: 0 0 1.25rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--slate); }
.blocks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; counter-reset: blk; }
.blocks li { counter-increment: blk; position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 0.9rem; border: 1px solid #dfe6ee; border-top: 4px solid var(--blk, var(--felt)); border-radius: 8px; background: var(--white); box-shadow: 0 6px 16px -10px rgba(15, 30, 54, 0.35); }
.blocks li:not(:last-child)::after { content: "→"; position: absolute; right: -0.65rem; top: 1.1rem; color: var(--brass); font-size: 0.9rem; }
.blocks h3 { color: var(--ink); font-size: 1rem; }
.blocks h3::before { content: counter(blk) " "; font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; color: var(--blk, var(--felt)); }
.blocks p { font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2); flex: 1; }
.blocks code { font-family: var(--mono); font-size: 0.6875rem; line-height: 1.6; color: var(--blk, var(--felt)); word-spacing: 100vw; }
.blocks li:nth-child(1) { --blk: #2f6fd6; }
.blocks li:nth-child(2) { --blk: #0b8a6a; }
.blocks li:nth-child(3) { --blk: #d0473a; }
.blocks li:nth-child(4) { --blk: #c47a12; }
.blocks li:nth-child(5) { --blk: #7a4fd0; }
.blocks li:nth-child(6) { --blk: #b07d24; }
.build-compose { margin: 1.25rem 0 0; font-size: 0.875rem; color: var(--ink-2); }
.build-compose code { font-family: var(--mono); color: var(--ink); font-size: 0.8125rem; }
.build figcaption { margin-top: 1.5rem; text-align: center; font-size: 0.8125rem; color: var(--slate); }
@media (max-width: 68rem) { .blocks { grid-template-columns: repeat(3, 1fr); } .blocks li:nth-child(3)::after { display: none; } }
@media (max-width: 40rem) { .blocks, .build-in, .build-out { grid-template-columns: 1fr; } .blocks li::after, .build-in li::after { display: none; } }



/* Audiences */
.audiences h2 { margin-bottom: 2rem; }
.aud { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem var(--gap); }
.aud dt { font-weight: 650; font-stretch: 108%; font-size: var(--t-h3); padding-bottom: 0.6rem; margin-bottom: 0.75rem; border-bottom: 2px solid var(--ink); }
.aud dd { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); }
.isnt { margin-top: 3rem; padding: 1.5rem 1.75rem; background: #e9eef5; border-radius: 10px; display: grid; grid-template-columns: 12rem 1fr; gap: 1rem 2rem; }
.isnt h3 { font-size: 1.125rem; }
.isnt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.isnt li { font-size: 1.0625rem; color: var(--ink-2); padding-left: 1.25rem; position: relative; }
.isnt li::before { content: "–"; position: absolute; left: 0; color: var(--slate); }


/* FAQ */
.faq h2 { margin-bottom: 1.5rem; }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; line-height: 1; color: var(--felt); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.25rem; color: var(--ink-2); }

/* Contact */
main > section.contact {
  color: var(--white); border-top: 0;
  background:
    linear-gradient(90deg, rgba(15, 30, 54, 0.92) 0%, rgba(15, 30, 54, 0.6) 100%),
    var(--ink) url(/img/band-shapes.webp) center / cover no-repeat;
}
.contact h2 { color: var(--white); }
.contact-in { text-align: center; }
.contact-in p { margin: 1rem auto 0; max-width: 34rem; font-size: 1.125rem; color: var(--on-ink); }
.contact .mail { display: inline-block; margin-top: 1rem; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; font-stretch: 112%; color: var(--white); text-decoration: none; border-bottom: 3px solid var(--brass); }
.contact .mail:hover, .contact .mail:focus-visible { color: #f1d9a6; }
.card { background: var(--white); color: var(--ink); border-radius: 10px; padding: clamp(1.25rem, 0.8rem + 2vw, 2rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-2); font-size: var(--t-small); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.foot-row span:first-child { color: var(--white); font-weight: 700; font-stretch: 118%; }

/* Responsive */
@media (max-width: 68rem) {
}
@media (max-width: 52rem) {
  .split { grid-template-columns: 1fr; }
  .hero::before { background: rgba(15, 30, 54, 0.8); }
  .money-grid { grid-template-columns: 1fr; }
  .pipeline li { grid-template-columns: 2rem 1fr; }
  .pipeline li::before { grid-row: span 3; }
  .pipeline p { grid-column: 2; margin-top: 0.25rem; }
  .pairs thead { display: none; }
  .pairs, .pairs tbody, .pairs tr, .pairs td { display: block; width: 100%; }
  .pairs tr { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
  .pairs td { border: 0; padding: 0.25rem 0; }
  .pairs td:first-child::before { content: "Elsewhere: "; font-weight: 600; }
  .pairs td:last-child::before { content: "MMax RGS: "; font-weight: 600; color: var(--felt-dark); }
}
@media (max-width: 34rem) {
    }


@media (max-width: 52rem) { .isnt { grid-template-columns: 1fr; } }

/* Developers: a dark band, alternating with the light sections around it. */
main > section.developers {
  color: var(--on-ink); border-top: 0;
  background:
    linear-gradient(270deg, rgba(15, 30, 54, 0.97) 0%, rgba(15, 30, 54, 0.9) 45%, rgba(15, 30, 54, 0.75) 100%),
    var(--ink) url(/img/band-waves.webp) center top / cover no-repeat;
}
main > section.developers + section { border-top: 0; }
.developers h2 { color: var(--white); }
.developers .section-intro { color: var(--on-ink-2); }
.developers .arch .bl { fill: var(--on-ink-2); }
.developers .arch .bl.on { fill: var(--ink); }
.developers .arch .al { fill: var(--on-ink); stroke: var(--ink); }
.developers .arch .ar { stroke: #d9a948; }
.developers .arch-fig figcaption { color: var(--on-ink-2); }
