:root {
  --bg-top: #1f1208;
  --bg-bottom: #120d09;
  --panel: #2b1a10cc;
  --text: #f5e7cf;
  --muted: #ddc7a4;
  --accent: #f2bc55;
  --accent-strong: #f6a91a;
  --border: #7b5524;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, #78431266 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, #62410e66 0%, transparent 45%);
  pointer-events: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 14px 36px #00000066;
}

.app-icon {
  width: 160px;
  height: 160px;
  border-radius: 18px;
  border: 1px solid #ad7a34;
  object-fit: cover;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.play-btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #241408;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #8f5d16;
}

.play-btn:hover {
  filter: brightness(1.06);
}

.feature-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
}

.feature-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-section {
  margin-top: 1.2rem;
}

.gallery-header h2 {
  margin: 0;
}

.gallery-header p {
  margin: 0.35rem 0 0.8rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-empty {
  color: var(--muted);
  margin: 0;
}

.gallery-card {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #170f09;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gallery-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px #00000066;
  border-color: #d29437;
}

.gallery-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #170f09;
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #040404df;
  z-index: 50;
  padding: 2rem 4rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  width: min(95vw, 1400px);
  height: min(88vh, 920px);
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #94652a;
  background: #0f0b07;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #95662b;
  background: #1c120bcc;
  color: #f3d9ad;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #95662b;
  background: #1c120bcc;
  color: #f3d9ad;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

body.lightbox-open {
  overflow: hidden;
}

.footer {
  width: min(1100px, 92vw);
  margin: 0 auto 2rem;
  padding: 0.9rem 0;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--accent);
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-icon {
    margin: 0 auto;
  }

  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: 240px;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-image {
    width: 94vw;
    height: 80vh;
  }

  .lightbox-nav {
    bottom: 14px;
    top: auto;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }
}
