/* Mega8Bit landing page. Self-contained: no web fonts, no scripts, no outside files. */

:root {
  --bg: #120d0a;
  --bg-2: #19120e;
  --panel: #211812;
  --line: #34261c;
  --ink: #fff3e0;
  --muted: #d2bda4;
  --dim: #9a8470;
  --yellow: #ffd23f;
  --yellow-hi: #ffe680;
  --amber: #ffa52e;
  --orange: #ff7a1f;
  --deep: #ef5418;
  --shadow: #7a2e08;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--yellow); color: #1a0f07; padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 12px; }

:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 6px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 13, 10, .8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 165, 46, .14);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: block; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; gap: 30px; font: 700 13px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.nav a { position: relative; padding: 10px 0; color: var(--muted); text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  transform: scaleX(0); transform-origin: left;
  transition: transform .24s steps(4);
}
.nav a:hover, .nav a:focus-visible { color: var(--yellow); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* ---------- Shared bits ---------- */

.grad {
  background: linear-gradient(90deg, var(--yellow), var(--orange) 70%, var(--deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.kicker {
  margin: 0 0 18px;
  font: 700 13px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--orange);
}

h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.04; letter-spacing: -.028em; font-weight: 800; margin-bottom: 20px; }

/* Pixel buttons: notched corners and a hard drop shadow, drawn with box-shadows. */
.btn {
  --c: var(--yellow);
  --s: var(--shadow);
  display: inline-block;
  margin: 4px;
  padding: 15px 26px;
  font: 800 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  color: #1a0f07;
  background: var(--c);
  box-shadow:
    0 -4px 0 var(--c), 0 4px 0 var(--c), -4px 0 0 var(--c), 4px 0 0 var(--c),
    4px 4px 0 var(--s), 4px 8px 0 var(--s), 8px 4px 0 var(--s);
  transition: transform .1s steps(2), box-shadow .1s steps(2), background-color .1s;
}
.btn:hover { --c: var(--yellow-hi); }
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 -4px 0 var(--c), 0 4px 0 var(--c), -4px 0 0 var(--c), 4px 0 0 var(--c);
}
.btn-ghost {
  --c: var(--amber);
  color: var(--amber);
  background: transparent;
  box-shadow: 0 -4px 0 var(--c), 0 4px 0 var(--c), -4px 0 0 var(--c), 4px 0 0 var(--c);
}
.btn-ghost:hover { --c: var(--yellow); color: var(--yellow); background: rgba(255, 210, 63, .08); }
.btn-ghost:active { transform: translate(2px, 2px); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 112px 0 220px;
  text-align: center;
  background:
    radial-gradient(60% 55% at 50% 36%, rgba(255, 150, 40, .17), transparent 70%),
    linear-gradient(#0c0807, var(--bg));
}

/* CRT scanlines that fade out from left (retro) to right (modern), like the logo. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 4px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 70%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 70%);
}

/* Horizon glow above the grid floor. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 200px; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 170, 50, .7) 30%, rgba(255, 120, 30, .9) 50%, rgba(255, 170, 50, .7) 70%, transparent);
  box-shadow: 0 0 24px 6px rgba(255, 120, 30, .35);
}

.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.eyebrow {
  margin: 0 0 34px;
  font: 700 14px/1 var(--mono); letter-spacing: .34em; text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow .blink { margin-right: 8px; }

.hero-logo { width: min(780px, 100%); }
.hero-logo img { width: 100%; filter: drop-shadow(0 14px 36px rgba(255, 120, 30, .28)); }

.lede {
  margin: 46px 0 0;
  font-weight: 800; font-size: clamp(28px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.025em;
}
.sub { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 19px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 42px; }

.ticker {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px;
  margin: 58px 0 0; padding: 0; list-style: none;
  font: 700 13px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
  color: var(--dim);
}
.ticker li::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px;
  background: var(--orange);
}
.ticker li:nth-child(1)::before { background: var(--yellow); }
.ticker li:nth-child(2)::before { background: #ffbe38; }
.ticker li:nth-child(3)::before { background: var(--amber); }
.ticker li:nth-child(4)::before { background: #ff8f26; }

/* Pixel stars: one tiny square, copied many times with box-shadow. */
.stars, .stars::before, .stars::after {
  position: absolute; top: 0; left: 0; width: 4px; height: 4px;
}
.stars {
  z-index: 0;
  box-shadow:
    6vw 90px #ffd23f, 14vw 260px #fff3c4, 21vw 40px #ffa52e, 27vw 180px #ffd23f,
    34vw 320px #fff3c4, 9vw 420px #ffa52e, 41vw 70px #ffd23f, 47vw 230px #fff3c4,
    55vw 120px #ffa52e, 61vw 380px #ffd23f, 68vw 60px #fff3c4, 73vw 210px #ffa52e,
    79vw 330px #ffd23f, 86vw 110px #fff3c4, 92vw 250px #ffa52e, 96vw 40px #ffd23f,
    3vw 300px #fff3c4, 17vw 500px #ffa52e, 88vw 470px #ffd23f, 64vw 520px #fff3c4;
  animation: twinkle 3.2s steps(2) infinite;
}
.stars::before {
  content: "";
  box-shadow:
    11vw 150px #fff3c4, 24vw 360px #ffd23f, 31vw 100px #ffa52e, 38vw 450px #fff3c4,
    44vw 170px #ffd23f, 51vw 30px #ffa52e, 58vw 280px #fff3c4, 66vw 160px #ffd23f,
    71vw 430px #ffa52e, 77vw 90px #fff3c4, 83vw 380px #ffd23f, 90vw 180px #ffa52e,
    97vw 300px #fff3c4, 2vw 200px #ffd23f, 19vw 230px #ffa52e, 52vw 480px #fff3c4;
  animation: twinkle 4.6s steps(2) infinite .9s;
}
.stars::after {
  content: ""; width: 2px; height: 2px;
  box-shadow:
    4vw 30px #d9b98a, 8vw 210px #d9b98a, 13vw 340px #d9b98a, 16vw 120px #d9b98a,
    23vw 280px #d9b98a, 29vw 60px #d9b98a, 36vw 230px #d9b98a, 40vw 380px #d9b98a,
    46vw 20px #d9b98a, 49vw 330px #d9b98a, 57vw 190px #d9b98a, 63vw 90px #d9b98a,
    69vw 300px #d9b98a, 75vw 30px #d9b98a, 81vw 240px #d9b98a, 85vw 400px #d9b98a,
    94vw 140px #d9b98a, 99vw 360px #d9b98a, 26vw 450px #d9b98a, 60vw 440px #d9b98a;
  animation: twinkle 2.4s steps(2) infinite .4s;
}
@keyframes twinkle { 50% { opacity: .3; } }

/* Retro grid floor. */
.floor {
  position: absolute; z-index: 0; left: -50%; right: -50%; top: calc(100% - 200px); height: 280px;
  background-image:
    linear-gradient(90deg, rgba(255, 140, 40, .55) 0 2px, transparent 2px),
    linear-gradient(0deg, rgba(255, 140, 40, .55) 0 2px, transparent 2px);
  background-size: 60px 30px;
  background-position: 50% 0;
  transform: perspective(300px) rotateX(62deg);
  transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%);
  mask-image: linear-gradient(to bottom, transparent, #000 40%);
  animation: floor 1.2s linear infinite;
}
@keyframes floor { to { background-position: 50% 30px; } }

/* ---------- Sections ---------- */

.section { position: relative; padding: 116px 0; }
.alt { background: var(--bg-2); }

/* Dithered checkerboard edges where a section changes colour, like an 8-bit fade. */
.alt::before, .alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: conic-gradient(var(--bg-2) 25%, transparent 0 50%, var(--bg-2) 0 75%, transparent 0) 0 0 / 8px 8px;
}
.alt::before { top: -8px; }
.alt::after { bottom: -8px; transform: scaleY(-1); }

.section-head { max-width: 660px; margin-bottom: 58px; }
.section-head > p:last-child { margin: 0; color: var(--muted); font-size: 19px; }

/* ---------- About ---------- */

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.about .copy > p:not(.kicker) { color: var(--muted); font-size: 18px; margin: 0 0 16px; }

.checks { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; font-weight: 650; }
.checks li { position: relative; padding-left: 36px; }
/* Pixel tick mark built from one 4px square and four copies. */
.checks li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--yellow), 8px 0 0 var(--amber), 12px -4px 0 var(--orange), 16px -8px 0 var(--orange);
}

.art { margin: 0; }
.art img { width: 100%; filter: drop-shadow(0 34px 60px rgba(0, 0, 0, .55)); }
.art figcaption {
  display: flex; align-items: center; gap: 16px; margin: 22px 8px 0;
  font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}
.art .scale {
  flex: 1; height: 8px;
  background:
    linear-gradient(90deg, transparent 0 50%, var(--bg) 50%) 0 0 / 16px 100%,
    linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-mask-image: none;
}

/* ---------- Services ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  position: relative;
  padding: 34px 30px 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 150, 40, .55);
  box-shadow: 0 24px 48px -24px rgba(255, 110, 20, .45);
}
/* A little cluster of loose pixels in the corner of each card. */
.card::after {
  content: ""; position: absolute; top: 22px; right: 22px; width: 6px; height: 6px;
  background: var(--orange); opacity: .5;
  box-shadow: -12px 0 0 rgba(255, 122, 31, .5), 0 12px 0 rgba(255, 122, 31, .3), -24px 0 0 rgba(255, 122, 31, .2);
}
.card .icon { width: 48px; height: 48px; margin-bottom: 24px; }
.card h3 { margin-bottom: 8px; font-size: 21px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Process ---------- */

.stages {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
/* Dashed pixel track the stage markers sit on. */
.stages::before {
  content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, rgba(255, 140, 40, .45) 0 8px, transparent 8px 16px);
}
.stage { position: relative; padding-top: 54px; }
.stage::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 24px; height: 24px;
  background: var(--c, var(--yellow));
  box-shadow: 0 0 0 6px var(--bg), 4px 4px 0 6px var(--shadow);
}
.stage:nth-child(1) { --c: var(--yellow); }
.stage:nth-child(2) { --c: #ffbb36; }
.stage:nth-child(3) { --c: var(--amber); }
.stage:nth-child(4) { --c: var(--orange); }
.stage-no { font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--c); }
.stage h3 { margin: 12px 0 8px; font-size: 27px; letter-spacing: -.015em; }
.stage p { margin: 0; color: var(--muted); font-size: 16px; }

.continue {
  margin: 64px 0 0; padding: 22px 26px;
  border: 2px dashed rgba(255, 165, 46, .35);
  border-radius: 14px;
  font-family: var(--mono); font-size: 15px; color: var(--muted);
}
.continue .blink { margin-right: 14px; color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }

/* ---------- Included ---------- */

.perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 0; padding: 0; list-style: none;
  background: var(--line);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.perks li { display: flex; flex-direction: column; gap: 8px; padding: 30px 30px 32px; background: var(--bg-2); }
.perks strong { display: flex; align-items: center; gap: 14px; font-size: 19px; }
.perks strong::before {
  content: ""; flex: none; width: 12px; height: 12px;
  background: var(--c, var(--orange));
  box-shadow: 3px 3px 0 var(--shadow);
}
.perks li:nth-child(1) { --c: var(--yellow); }
.perks li:nth-child(2) { --c: #ffc23a; }
.perks li:nth-child(3) { --c: #ffb032; }
.perks li:nth-child(4) { --c: var(--amber); }
.perks li:nth-child(5) { --c: #ff9026; }
.perks li:nth-child(6) { --c: var(--orange); }
.perks span { color: var(--muted); font-size: 16px; }

/* ---------- Final call ---------- */

.final {
  position: relative; overflow: hidden;
  padding: 128px 0 136px;
  text-align: center;
  background: radial-gradient(70% 90% at 50% 115%, rgba(255, 120, 30, .32), transparent 70%), var(--bg);
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 72px; height: 72px; margin-bottom: 30px; }
.final p { max-width: 560px; margin: 0 auto 40px; color: var(--muted); font-size: 19px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; color: var(--dim); font-size: 14px; }
.foot img { width: 32px; height: 32px; }
.foot p { margin: 0; }
.foot .foot-tag { margin-left: auto; font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Smaller screens ---------- */

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .stages::before { display: none; }
  .perks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .bar { height: 64px; }
  .brand img { height: 34px; }
  .hero { padding: 80px 0 180px; }
  .hero::after { bottom: 160px; }
  .floor { top: calc(100% - 160px); }
  .section { padding: 84px 0; }
  .cards, .stages, .perks { grid-template-columns: 1fr; }
  .foot .foot-tag { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
