/* MOBero — the brand is pixel-art degen, so the page is too. The hero is the
   Telegram banner rebuilt in CSS: violet ground, a glitch tear across it, the
   mobster on the left, sky and a rocket on the right. Below the fold it goes
   dark so the prose stays readable — and the prose is pixels too, just in a
   face built to hold a paragraph rather than a wordmark. */

/* Three pixel faces, one job each. Jersey 25 is the display face — chunky,
   square counters, the letterform the banner wordmark is built from. Pixelify
   Sans carries the prose: a pixel face with a real x-height, so paragraphs
   survive it. Press Start 2P is kept for the install command alone, because a
   shell command wants a monospace and every glyph in it is one em wide. All
   three self-hosted, all three OFL. */
@font-face {
  font-family: "Jersey 25";
  src: url("jersey-25.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Press Start 2P";
  src: url("press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pixelify Sans";
  src: url("pixelify-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --void: #0b0518;
  --deep: #150a30;
  --panel: #1c1138;
  --line: #35215f;
  --line-lit: #573399;

  /* The banner's own five. Nothing gets added without earning it. */
  --lime: #7bff4f;
  --violet: #a06bff;
  --grape: #6c3fe0;
  --magenta: #ff5cc8;
  --cyan: #5ce4ff;
  --gold: #ffc93c;
  --ink: #08040f;
  --grape-deep: #2b0d4d;

  --text: #f4efff;
  /* Aliased pixel glyphs have thinner stems than smoothed ones, so the greys
     had to come up a step to hold the same contrast they did before. */
  --muted: #c6b8e4;
  --faint: #9384bb;

  --display: "Jersey 25", "Press Start 2P", ui-monospace, monospace;
  --pixel: "Press Start 2P", ui-monospace, Menlo, monospace;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --sans: "Pixelify Sans", ui-rounded, -apple-system, system-ui, sans-serif;

  /* The hard black keyline every pixel glyph on this page wears. */
  --keyline:
    -3px -3px 0 var(--ink), -3px 0 0 var(--ink), -3px 3px 0 var(--ink),
    0 -3px 0 var(--ink), 0 3px 0 var(--ink),
    3px -3px 0 var(--ink), 3px 0 0 var(--ink), 3px 3px 0 var(--ink);
  --keyline-2:
    -2px -2px 0 var(--ink), -2px 0 0 var(--ink), -2px 2px 0 var(--ink),
    0 -2px 0 var(--ink), 0 2px 0 var(--ink),
    2px -2px 0 var(--ink), 2px 0 0 var(--ink), 2px 2px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 0 90px;
  background: var(--void);
  color: var(--text);
  /* Pixelify runs small and tight for its size — 18px is where it lands at the
     same reading weight the old system face had at 16px. */
  font: 18px/1.7 var(--sans);
  letter-spacing: 0.01em;
  /* Grey-blending a pixel glyph defeats the point. Let the edges stay edges. */
  -webkit-font-smoothing: none;
  font-synthesis: none;
  overflow-x: hidden;
}

/* The hero's violet doesn't stop at the keyline — it bleeds down into the dark
   half so the page reads as one room with the lights turned off. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1600px;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 30% at 20% 34%, rgba(160, 107, 255, 0.3) 0%, transparent 65%),
    radial-gradient(ellipse 60% 26% at 84% 42%, rgba(255, 92, 200, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 22% at 55% 62%, rgba(92, 228, 255, 0.08) 0%, transparent 68%);
}

/* Faint pixel grid over the dark half, masked so it never reaches an edge. */
body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1900px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(160, 107, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 107, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 34% at 50% 40%, #000 10%, transparent 74%);
  mask-image: radial-gradient(ellipse 75% 34% at 50% 40%, #000 10%, transparent 74%);
}

/* Art is pixels. Never let the renderer soften an edge. */
svg {
  shape-rendering: crispEdges;
}

.sprites {
  position: absolute;
}

a {
  color: var(--cyan);
  text-decoration-color: rgba(92, 228, 255, 0.4);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime);
  text-decoration-color: var(--lime);
}

code {
  font-family: var(--mono);
}

em {
  font-style: normal;
  color: var(--lime);
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 4px solid var(--ink);
  background:
    radial-gradient(ellipse 70% 90% at 18% 20%, #7b48ff 0%, transparent 62%),
    radial-gradient(ellipse 60% 80% at 78% 84%, rgba(255, 92, 200, 0.35) 0%, transparent 60%),
    linear-gradient(170deg, #5a2fc4 0%, var(--grape) 45%, #3d1f8c 100%);
}

/* --------------------------------------------------------------- hero scene */

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Pixel grid, the same 44px cell as the extension popup. */
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 2px, transparent 2px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, #000 20%, transparent 78%);
}

/* The blue that the rocket is climbing into — bottom right, like the banner. */
.sky {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: 58%;
  height: 92%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #6fc9f2 0%, #a8e2ff 55%, #d8f2ff 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 62% 78%, #000 30%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 62% 78%, #000 30%, transparent 72%);
  opacity: 0.9;
}

.cloud {
  position: absolute;
  width: 190px;
  height: 95px;
  filter: drop-shadow(4px 4px 0 rgba(8, 4, 15, 0.25));
  animation: drift 26s ease-in-out infinite;
}

.cloud-a {
  right: 4%;
  bottom: 8%;
  width: 260px;
  height: 130px;
}

.cloud-b {
  right: 24%;
  bottom: 0;
  opacity: 0.92;
  animation-duration: 34s;
  animation-delay: -8s;
}

.cloud-c {
  right: 13%;
  bottom: 34%;
  width: 130px;
  height: 65px;
  opacity: 0.75;
  animation-duration: 40s;
  animation-delay: -19s;
}

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-22px); }
}

.rocket {
  position: absolute;
  right: 8%;
  top: 12%;
  width: 88px;
  height: 128px;
  transform: rotate(28deg);
  filter: drop-shadow(5px 5px 0 rgba(8, 4, 15, 0.45));
  animation: launch 5.5s ease-in-out infinite;
}

@keyframes launch {
  0%, 100% { transform: rotate(28deg) translateY(0); }
  50% { transform: rotate(28deg) translateY(-16px); }
}

.coin {
  position: absolute;
  width: 42px;
  height: 42px;
  filter: drop-shadow(3px 3px 0 rgba(8, 4, 15, 0.5));
  animation: bob 4s ease-in-out infinite;
}

.coin-1 { left: 6%; top: 16%; }
.coin-2 { left: 7%; top: 72%; width: 30px; height: 30px; animation-delay: -1.1s; }
.coin-3 { left: 44%; top: 10%; width: 34px; height: 34px; animation-delay: -2.3s; }
.coin-4 { left: 55%; bottom: 12%; width: 26px; height: 26px; animation-delay: -3.2s; opacity: 0.85; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* The tear: three offset channel bars ripped across the banner. */
.tear {
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 74%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 74%, transparent);
}

.tear-1 {
  top: 22%;
  background: repeating-linear-gradient(
    90deg,
    var(--magenta) 0 46px, transparent 46px 72px,
    var(--magenta) 72px 118px, transparent 118px 190px
  );
  opacity: 0.6;
  animation: tear-shift 7s steps(3) infinite;
}

.tear-2 {
  top: calc(22% + 5px);
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 30px, var(--cyan) 30px 96px,
    transparent 96px 150px, var(--cyan) 150px 178px
  );
  opacity: 0.5;
  animation: tear-shift 9s steps(4) infinite reverse;
}

.tear-3 {
  top: 63%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--lime) 0 22px, transparent 22px 64px,
    var(--lime) 64px 88px, transparent 88px 210px
  );
  opacity: 0.55;
  animation: tear-shift 11s steps(5) infinite;
}

@keyframes tear-shift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-38px); }
}

/* ---------------------------------------------------------------- hero copy */

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 84px 24px 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 46px;
  align-items: center;
}

/* Pixel mobster. Rendered crisp, never smoothed. */
.mob {
  width: 168px;
  height: 168px;
  filter: drop-shadow(7px 7px 0 rgba(8, 4, 15, 0.65));
}

.mob svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* The wordmark, built the way the banner builds it: a magenta-to-lime ramp
   down the glyph faces, a dark grape keyline hugging them, and a fat white
   outline around the whole word so it survives any background it lands on. */
h1 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(44px, 8.4vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  /* Chunky letterforms need air or the two outlines weld them together. */
  letter-spacing: 0.045em;
  /* The stops are placed against the glyph band, not the box: a line box is
     taller than the letters in it, and a 0-to-100% ramp spends most of itself
     on leading, leaving a grey blend across the faces. */
  background: linear-gradient(
    180deg,
    #f05ce8 26%,
    #cf4cf0 42%,
    #8de85c 58%,
    #4ad63f 72%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The outlines have to be their own layer. A text-shadow on the h1 itself
   paints above the element background — and here the background IS the fill,
   so the shadows would bury the gradient they are supposed to frame. */
h1::before {
  content: attr(data-text);
  position: absolute;
  /* Full width, not shrink-to-fit: the copy has to inherit the h1's alignment
     or it sits left while the real word is centred. */
  inset: 0;
  z-index: -1;
  color: var(--grape-deep);
  pointer-events: none;
  letter-spacing: inherit;
  text-shadow:
    -3px -3px 0 var(--grape-deep), 0 -3px 0 var(--grape-deep), 3px -3px 0 var(--grape-deep),
    -3px 0 0 var(--grape-deep), 3px 0 0 var(--grape-deep),
    -3px 3px 0 var(--grape-deep), 0 3px 0 var(--grape-deep), 3px 3px 0 var(--grape-deep),
    -8px -8px 0 #fff, 0 -8px 0 #fff, 8px -8px 0 #fff,
    -8px 0 0 #fff, 8px 0 0 #fff,
    -8px 8px 0 #fff, 0 8px 0 #fff, 8px 8px 0 #fff;
}

/* No background-clip, no fill — the word would vanish. Hand it a flat lime. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    color: var(--lime);
  }
}

.tag {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.8;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--keyline-2);
}

.kicker {
  margin: 22px 0 30px;
  font-size: clamp(19px, 2.1vw, 23px);
  line-height: 1.5;
  color: #ede6ff;
  max-width: 22em;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ install */

.install {
  display: flex;
  background: var(--ink);
  border: 3px solid var(--ink);
  outline: 2px solid var(--lime);
  border-radius: 4px;
  overflow: hidden;
  /* Wide enough that the command fits at pixel-font advance widths without
     scrolling — every glyph in Press Start 2P is a full em. */
  max-width: 580px;
  box-shadow: 7px 7px 0 rgba(8, 4, 15, 0.55);
}

.install code {
  flex: 1;
  /* A flex item's min-width is auto, and this one never wraps — without this
     the whole command becomes the floor and the Copy button leaves the screen. */
  min-width: 0;
  padding: 15px 14px;
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.6;
  color: var(--lime);
  overflow-x: auto;
  white-space: nowrap;
}

.install button {
  flex: none;
  padding: 0 16px;
  border: 0;
  border-left: 2px solid var(--line);
  background: transparent;
  color: var(--faint);
  font-family: var(--display);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.install button:hover {
  background: var(--lime);
  color: var(--ink);
}

.install button.done {
  color: var(--lime);
}

.micro {
  color: var(--faint);
  font-size: 15px;
  margin: 15px 0 0;
}

.hero .micro {
  color: #cbb9f0;
}

.hero .micro a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.hero .micro a:hover {
  color: var(--lime);
}

/* -------------------------------------------------------------------- main */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------- proof: shot+strip */

.proof {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 46px;
  align-items: center;
  margin: 76px 0 92px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 310px;
  max-width: 100%;
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow:
    0 0 0 2px var(--line-lit),
    10px 10px 0 rgba(255, 92, 200, 0.3);
}

.shot figcaption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cyan);
}

.strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.strip div {
  background: var(--deep);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 5px 5px 0 rgba(160, 107, 255, 0.28);
}

.strip b {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.1;
  text-shadow: var(--keyline-2);
}

.strip span {
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------- glitch strip */

/* Three offset scanlines — an RGB channel split, not a row of dashes. */
.glitch {
  position: relative;
  height: 9px;
  margin: 0 -24px 92px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.glitch::before,
.glitch::after,
.glitch span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
}

.glitch::before {
  top: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--magenta) 0 7px,
    transparent 7px 11px,
    var(--magenta) 11px 31px,
    transparent 31px 38px
  );
  opacity: 0.75;
}

.glitch span {
  top: 3px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 5px,
    var(--cyan) 5px 24px,
    transparent 24px 29px,
    var(--cyan) 29px 36px
  );
  opacity: 0.6;
}

.glitch::after {
  top: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--lime) 0 13px,
    transparent 13px 19px,
    var(--lime) 19px 26px,
    transparent 26px 41px
  );
  opacity: 0.7;
}

/* -------------------------------------------------------------------- pitch */

.pitch {
  max-width: 780px;
  margin: 0 auto 104px;
  text-align: center;
}

.pitch h2 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(23px, 3.2vw, 37px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  text-shadow: var(--keyline-2), 4px 4px 0 var(--magenta);
}

.pitch p {
  margin: 0;
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
}

/* -------------------------------------------------------------------- steps */

.steps {
  margin-bottom: 104px;
}

.steps ol {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 22px 20px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 5px 5px 0 rgba(92, 228, 255, 0.18);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 21px;
  color: var(--magenta);
  margin-bottom: 8px;
}

.steps b {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--lime);
}

.steps span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

/* --------------------------------------------------------------------- fine */

.fine {
  max-width: 780px;
  margin: 0 auto;
  padding: 30px 32px;
  background: var(--deep);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(255, 201, 60, 0.22);
}

.fine h3 {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  color: var(--gold);
}

.fine ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.fine li {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

/* Gold coin bullet. */
.fine li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px var(--ink);
}

.fine b {
  color: var(--text);
  font-weight: 700;
}

/* ------------------------------------------------------------------- footer */

footer {
  max-width: 1080px;
  margin: 88px auto 0;
  padding: 28px 24px 0;
  border-top: 2px solid var(--line);
  text-align: center;
  color: var(--faint);
  font-size: 15.5px;
}

footer p {
  margin: 0 0 10px;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 56px 24px 64px;
    text-align: center;
  }
  /* min-width:0 or the nowrap install command blows the column open and the
     Copy button ends up off-screen. */
  .hero-copy {
    min-width: 0;
  }
  .mob {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  .kicker {
    margin-left: auto;
    margin-right: auto;
  }
  .install {
    margin: 0 auto;
  }
  /* The scene is decoration. One column wide it sits under the copy instead of
     beside it, so it drops back and gets out of the way. */
  .scene {
    opacity: 0.5;
  }
  .rocket,
  .coin-3,
  .coin-4 {
    display: none;
  }
  .cloud-a {
    right: -8%;
    bottom: -10%;
  }
  .cloud-c {
    display: none;
  }
  .proof {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }
  .steps ol {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  main {
    padding: 0 16px;
  }
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero-inner {
    padding: 44px 16px 52px;
  }
  .glitch {
    margin: 0 -16px 72px;
  }
  .cloud-b,
  .coin-2 {
    display: none;
  }
  .strip,
  .steps ol {
    grid-template-columns: 1fr;
  }
  .install code {
    font-size: 8px;
  }
  h1::before {
    text-shadow:
      -2px -2px 0 var(--grape-deep), 0 -2px 0 var(--grape-deep), 2px -2px 0 var(--grape-deep),
      -2px 0 0 var(--grape-deep), 2px 0 0 var(--grape-deep),
      -2px 2px 0 var(--grape-deep), 0 2px 0 var(--grape-deep), 2px 2px 0 var(--grape-deep),
      -5px -5px 0 #fff, 0 -5px 0 #fff, 5px -5px 0 #fff,
      -5px 0 0 #fff, 5px 0 0 #fff,
      -5px 5px 0 #fff, 0 5px 0 #fff, 5px 5px 0 #fff;
  }
}

/* Motion is flavour, never information. Take it all away on request. */
@media (prefers-reduced-motion: reduce) {
  .cloud,
  .rocket,
  .coin,
  .tear {
    animation: none;
  }
}
