:root {
  --forest: #163528;
  --forest-deep: #0f241c;
  --sage: #4d6a47;
  --leaf: #6faf3a;
  --leaf-bright: #82c44a;
  --amber: #e39b1a;
  --cream: #f7faf4;
  --mist: #e7f0e2;
  --ink: #1a241c;
  --ink-muted: #4a5a4e;
  --paper: #ffffff;
  --line: rgba(22, 53, 40, 0.14);
  --shadow-soft: 0 16px 40px rgba(15, 36, 28, 0.16);
  --radius: 20px;
  --font-display: "Nunito", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --max: 68rem;
  --phone-ratio: 9 / 16;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 55% at 0% -5%, rgba(130, 196, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 5%, rgba(227, 155, 26, 0.14), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--mist) 55%, #d8e6d0 100%);
  min-height: 100vh;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--forest);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 250, 244, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(227, 155, 26, 0.35);
}

.site-header__inner {
  width: min(100% - 1.7rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
}

.site-header__brand img {
  width: auto;
  height: auto;
  max-height: 3.1rem;
  max-width: min(42vw, 10.5rem);
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  color: #163528;
  font-size: clamp(0.82rem, 2.8vw, 0.95rem);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(130, 196, 74, 0.18);
  color: #0f241c;
}

/* ——— Phone frame (shared) ——— */
.phone {
  position: relative;
  width: min(100%, 16.5rem);
  margin-inline: auto;
  padding: 0.5rem;
  border-radius: 1.65rem;
  background: linear-gradient(160deg, #2a3f34, #0f241c);
  border: 3px solid #e39b1a;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--phone-ratio);
  object-fit: cover;
  object-position: center top;
  border-radius: 1.15rem;
  background: var(--mist);
}

.phone--stage {
  width: min(100%, 18.5rem);
  display: flex;
  justify-content: center;
  background: linear-gradient(160deg, #243830, #0f241c);
}

.phone--stage img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(64vh, 34rem);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: #0f241c;
}

/* ——— Hero ——— */
.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(100% - 1.7rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0 2.75rem;
  color: #1a241c;
}

.hero__copy {
  max-width: 34rem;
}

.hero__logo {
  width: auto;
  max-width: min(100%, 17rem);
  height: auto;
  margin: 0 0 0.85rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(15, 36, 28, 0.12));
}

.hero__kicker {
  margin: 0 0 0.45rem;
  color: #4d6a47;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #163528;
}

.hero__lede {
  margin: 0 0 1.35rem;
  max-width: 32rem;
  color: #4a5a4e;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero__device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__device .phone {
  animation: float-soft 5.5s ease-in-out infinite;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    gap: clamp(2rem, 4vw, 4rem);
    min-height: auto;
    padding: 2.75rem 0 3.25rem;
  }

  .hero__copy {
    max-width: none;
    padding-block: 1rem;
  }

  .hero__logo {
    max-width: min(100%, 19rem);
  }

  .hero__device {
    justify-content: flex-end;
  }

  .hero__device .phone {
    width: 100%;
    max-width: 21rem;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 14px;
  border: 3px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--leaf-bright);
  color: var(--forest-deep);
  border-color: #5f9a2f;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #91d255;
}

.btn--secondary {
  background: var(--paper);
  color: var(--forest);
  border-color: var(--amber);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(227, 155, 26, 0.12);
}

/* ——— Sections ——— */
.section {
  padding: clamp(2.25rem, 6vw, 4.25rem) 0;
}

.section__inner {
  width: min(100% - 1.7rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--forest);
  line-height: 1.15;
}

.section__lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* ——— Game feature ——— */
.game-feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

@media (min-width: 900px) {
  .game-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
  }

  .game-feature__phones {
    min-height: 22rem;
    max-width: 26rem;
  }
}

.game-feature__phones {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: end;
  min-height: 16rem;
}

.game-feature__phones .phone {
  width: 100%;
}

.phone--tilt-left {
  transform: rotate(-4deg) translateY(0.75rem);
}

.phone--tilt-right {
  transform: rotate(3deg);
}

.phone--front {
  z-index: 1;
}

.game-logo {
  width: min(100%, 15rem);
  height: auto;
  margin: 0 0 0.85rem;
}

.game-tag {
  margin: 0 0 0.85rem;
  color: var(--leaf);
  font-weight: 800;
}

.game-feature__copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-muted);
}

.text-link {
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--leaf);
}

.coming-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0 0;
  border-top: 2px dashed rgba(92, 122, 85, 0.35);
}

.coming-soon h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--forest);
}

.coming-soon__copy p:last-child {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-muted);
}

.coming-soon__badge {
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--sage);
  border-radius: 10px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ——— Showcase ——— */
.showcase {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(231, 240, 226, 0.95));
  border-block: 2px solid rgba(227, 155, 26, 0.28);
}

.pitch-list {
  list-style: none;
  margin: 0 0 2.25rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 780px) {
  .pitch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.pitch-list li {
  padding-top: 0.75rem;
  border-top: 3px solid var(--leaf);
  color: var(--ink-muted);
}

.pitch-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.gallery {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }

  .gallery__thumbs {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
  }
}

.gallery__stage {
  margin: 0;
  text-align: center;
}

.gallery__stage figcaption {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.gallery__stage img.is-fading {
  opacity: 0.35;
  transition: opacity 200ms ease;
}

.gallery__stage img {
  transition: opacity 200ms ease;
}

.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(5.5rem, 7rem);
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 900px) {
  .gallery__thumbs {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow: visible;
  }
}

.gallery__thumb {
  display: grid;
  gap: 0.3rem;
  padding: 0.35rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--forest);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.gallery__thumb-frame {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest-deep);
}

.gallery__thumb-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--phone-ratio);
  object-fit: cover;
  object-position: center top;
}

.gallery__thumb:hover,
.gallery__thumb:focus-visible {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.gallery__thumb.is-active {
  border-color: var(--leaf);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(111, 175, 58, 0.35);
}

/* ——— Studio ——— */
.studio {
  text-align: center;
}

.studio__inner {
  max-width: 38rem;
}

.studio__mark {
  width: min(100%, 11rem);
  margin: 0 auto 1.1rem;
}

.studio p {
  margin: 0;
  color: var(--ink-muted);
}

/* ——— Footer ——— */
.site-footer {
  padding: 2rem clamp(0.85rem, 3.5vw, 2rem) 2.5rem;
  border-top: 2px solid rgba(227, 155, 26, 0.28);
  background: rgba(255, 255, 255, 0.5);
}

.site-footer__inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.25rem;
}

.site-footer__brand img {
  width: 8.5rem;
  margin-bottom: 0.4rem;
}

.site-footer__brand p,
.site-footer__copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-footer__nav a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--forest);
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--leaf);
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.55rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__device .phone,
  .btn,
  .gallery__thumb,
  .gallery__stage img {
    animation: none !important;
    transition: none !important;
  }
}
