/* Monkey Tribe marketing site — jungle green + gold, matches the in-game
   visual language (dark glass panels, rgba(226,177,90,*) gold trim). */

:root {
  color-scheme: dark light;
  --jungle-deep: #0c2013;
  --jungle: #14301d;
  --jungle-mid: #1d4227;
  --leaf: #3f9c52;
  --leaf-bright: #c6ee89;
  --gold: #e2b15a;
  --gold-bright: #ffd95a;
  --gold-trim: rgba(226, 177, 90, 0.45);
  --gold-trim-soft: rgba(226, 177, 90, 0.22);
  --paper: #f7efdd;
  --muted: #d8ccb0;
  --panel: rgba(17, 20, 14, 0.88);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  background: var(--jungle-deep);
  color: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1060px, 92%);
  margin: 0 auto;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(9, 22, 13, 0.55) 0%, rgba(12, 32, 19, 0.82) 62%, var(--jungle-deep) 100%),
    url("assets/bg.png") center 30% / cover no-repeat;
}

.hero-logo {
  width: min(420px, 78vw);
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 18px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

.hero h1 .accent {
  color: var(--gold-bright);
}

.hero .tagline {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--muted);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* ---------- Store badges / coming soon ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  padding: 12px 22px;
  border-radius: 14px;
  border: 2px solid var(--gold-trim);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.store-badge svg {
  width: 30px;
  height: 30px;
  flex: none;
  fill: var(--paper);
}

.store-badge .small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 700;
}

.store-badge .big {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.25;
}

/* ---------- Feature cards ---------- */

.features {
  padding: 72px 0 30px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 800;
  color: var(--gold-bright);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 8px auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.feature-card {
  position: relative;
  padding: 30px 24px 26px;
  border-radius: 18px;
  border: 2px solid var(--gold-trim-soft);
  background: linear-gradient(180deg, rgba(29, 66, 39, 0.55), var(--panel));
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-trim);
}

.feature-card img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.feature-card h3 {
  margin-top: 14px;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--paper);
}

.feature-card p {
  margin-top: 8px;
  font-size: 0.96rem;
  color: var(--muted);
}

/* ---------- Studio strip ---------- */

.studio {
  margin: 56px 0 72px;
  padding: 30px 28px;
  border-radius: 18px;
  border: 2px solid var(--gold-trim-soft);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.studio img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid var(--gold-trim);
}

.studio h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.studio p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Subpages (privacy / support / terms) ---------- */

.subheader {
  border-bottom: 1px solid var(--gold-trim-soft);
  background: linear-gradient(180deg, var(--jungle-mid), var(--jungle));
}

.subheader .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.subheader .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--paper);
}

.subheader .brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--gold-trim);
}

.subheader nav {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

.subheader nav a[aria-current="page"] {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--gold-bright);
  text-underline-offset: 5px;
}

.page {
  flex: 1;
  padding: 48px 0 64px;
}

.page .wrap {
  width: min(820px, 92%);
}

.page h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--gold-bright);
}

.page .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.page h2 {
  margin-top: 40px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--leaf-bright);
}

.page h3 {
  margin-top: 24px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--paper);
}

.page p,
.page li {
  margin-top: 10px;
  color: var(--muted);
}

.page ul,
.page ol {
  padding-left: 22px;
}

.page strong {
  color: var(--paper);
}

.divider {
  border: none;
  border-top: 1px solid var(--gold-trim-soft);
  margin: 44px 0;
}

.callout {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 2px solid var(--gold-trim-soft);
  background: var(--panel);
}

.callout p {
  margin-top: 6px;
}

.callout p:first-child {
  margin-top: 0;
}

.email-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 13px 30px;
  border-radius: 12px;
  border: 2px solid var(--gold-trim);
  background: linear-gradient(180deg, #57371c, #3d2712);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: var(--shadow);
}

.email-btn:hover {
  text-decoration: none;
  border-color: var(--gold-bright);
}

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

footer {
  border-top: 1px solid var(--gold-trim-soft);
  background: var(--jungle);
  padding: 30px 0 36px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-weight: 700;
  font-size: 0.95rem;
}

footer .studio-line {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

footer .studio-line + .studio-line {
  margin-top: 5px;
}

footer .studio-line a {
  color: var(--muted);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .hero {
    padding: 52px 0 64px;
  }

  .subheader nav {
    gap: 12px;
    font-size: 0.85rem;
  }

  .subheader .wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-badge {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background: #f7f3e8;
    color: #182318;
  }

  .subheader {
    background: linear-gradient(180deg, #e5eee0, #d5e5d2);
    border-bottom-color: rgba(94, 63, 20, 0.24);
  }

  .subheader .brand,
  .subheader nav a[aria-current="page"],
  .page h3,
  .page strong {
    color: #182318;
  }

  .subheader a,
  .page a,
  footer a {
    color: #6d4715;
  }

  .page h1 {
    color: #754b13;
  }

  .page h2 {
    color: #285f37;
  }

  .page p,
  .page li,
  .page .updated,
  footer .studio-line {
    color: #4c574a;
  }

  .callout {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(117, 75, 19, 0.27);
    box-shadow: 0 12px 30px rgba(35, 50, 32, 0.1);
  }

  .email-btn {
    background: linear-gradient(180deg, #fff6dd, #ebd5a6);
    border-color: rgba(117, 75, 19, 0.5);
    color: #5c390d;
    box-shadow: 0 8px 20px rgba(35, 50, 32, 0.14);
  }

  footer {
    background: #e1eadc;
    border-top-color: rgba(94, 63, 20, 0.22);
  }

  /* Keep the illustrated marketing home cinematic in light device mode. */
  .hero,
  .features {
    color: var(--paper);
  }

  .features {
    background: var(--jungle-deep);
  }
}
