/* Monkey Jungle website: the launcher's palette (dark jungle panels, gold
   calls to action, green accents) around bright screenshots. */
:root {
  --bg: #0b1110;
  --panel: #111a18;
  --panel-2: #16211e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef2ef;
  --muted: #a6b5ae;
  --faint: #6f8078;
  --gold: #f5c542;
  --gold-strong: #ffd666;
  --gold-ink: #231a02;
  --green: #3ddc97;
  --radius: 14px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; font-weight: 700; }
.skip:focus { top: 12px; }
.faint { color: var(--faint); }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(11, 17, 16, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .14em; font-size: 14px; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.links a:hover { color: var(--text); }
.language select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 6px 10px; font: 600 14px var(--font);
}

/* --------------------------------------------------------------- buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800;
  border-radius: 12px; padding: 16px 26px; font-size: 17px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px rgba(245, 197, 66, .25); }
.button.primary:hover { background: var(--gold-strong); transform: translateY(-1px); }
.button.primary[aria-disabled="true"] { background: #56503a; color: #b9b29a; box-shadow: none; pointer-events: none; }
.button.ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .04); }
.button.ghost:hover { background: rgba(255, 255, 255, .09); }
.button.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0; background: url("img/island.jpg") center / cover no-repeat;
  transform: scale(1.04); animation: drift 24s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 17, 16, .92) 0%, rgba(11, 17, 16, .6) 45%, rgba(11, 17, 16, .05) 80%),
              linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 16, 0) 35%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 clamp(16px, 6vw, 96px) clamp(48px, 9vh, 110px); max-width: 780px; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -.02em; }
.lead { color: #d2ddd8; font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.meta { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }

/* -------------------------------------------------------------- sections */
.section { padding: clamp(64px, 10vh, 110px) clamp(16px, 6vw, 96px) 0; max-width: 1280px; margin: 0 auto; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 620px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 14px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shot.wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.03); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; display: grid; gap: 6px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 800; margin-bottom: 8px; }
.steps span { color: var(--muted); font-size: 15.5px; }
.requirements { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.requirements h3 { margin: 0 0 12px; font-size: 18px; }
.requirements dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.requirements dt { color: var(--faint); font-weight: 700; }
.requirements dd { margin: 0; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.closing { text-align: center; padding: clamp(80px, 12vh, 130px) 16px; }
.closing h2 { margin-bottom: 26px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px clamp(16px, 6vw, 96px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- narrow */
@media (max-width: 960px) {
  .links { display: none; }
  .language { margin-left: auto; }
  .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .top { gap: 12px; }
  .brand span { display: none; }
  .features, .steps, .gallery { grid-template-columns: minmax(0, 1fr); }
  .shot.wide { grid-column: auto; }
  .hero { min-height: 92vh; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(11, 17, 16, .72) 55%, rgba(11, 17, 16, .25) 100%); }
  .cta .button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art { animation: none; }
  .button, .shot img { transition: none; }
}
