/* Neat — landing page styles */

:root {
  --plum: #3b2140;
  --plum-deep: #2c1731;
  --plum-mid: #47264b;
  --maroon: #52252e;
  --cream: #f7ecc9;
  --gold: #f2d98c;
  --ink-on-gold: #47264b;
  --text: #f5ead8;
  --text-soft: #e8d9e2;
  --text-muted: #c9b3c6;
  --text-faint: #9a7d99;
  --blurple: #5865F2;
  --display: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --body: 'Nunito', 'Trebuchet MS', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--plum);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--cream);
  margin: 0;
}

h2 { font-weight: 800; font-size: clamp(25px, 3vw, 34px); }

p { margin: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: #ffe9ad; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; }

section, footer, .hero-content { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.2;
}

.btn-steam {
  background: var(--gold);
  color: var(--ink-on-gold);
  box-shadow: 0 5px 0 rgba(38, 17, 42, 0.55);
}
.btn-steam:hover { background: #ffe9ad; color: var(--ink-on-gold); }

.btn-discord {
  background: var(--blurple);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 0 rgba(24, 10, 28, 0.55);
}
.btn-discord:hover { background: #6b77f5; color: #fff; }

/* Hero */
.hero { position: relative; }

.hero-art { display: block; width: 100%; height: auto; }

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(59, 33, 64, 0) 0%, rgba(59, 33, 64, 0.72) 58%, var(--plum) 100%);
}

.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 4vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  padding: 0 24px;
}

.hero-content h1 {
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.15;
  text-shadow: 0 3px 0 rgba(43, 20, 46, 0.55);
  text-wrap: balance;
}

.hero-date {
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfa9c4;
}

/* About */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(48px, 7vw, 88px) 24px clamp(40px, 5vw, 72px);
}

.about .quote {
  max-width: 780px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--text-soft);
  text-wrap: pretty;
}

.about .muted {
  max-width: 780px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Trailer */
.trailer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  padding: clamp(8px, 2vw, 24px) 24px clamp(40px, 6vw, 80px);
}

.trailer-frame {
  position: relative;
  width: min(880px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(24, 10, 28, 0.6);
  background: var(--plum-deep);
}

.trailer-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.trailer-poster {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
  position: relative;
}

.trailer-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trailer-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 20, 46, 0.28);
  transition: background 0.2s;
}
.trailer-poster:hover::before { background: rgba(43, 20, 46, 0.12); }

.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(62px, 9vw, 92px);
  height: clamp(62px, 9vw, 92px);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 6px 0 rgba(38, 17, 42, 0.55);
  transition: transform 0.15s;
}
.trailer-poster:hover .play-badge { transform: translate(-50%, -50%) scale(1.06); }
.play-badge svg { width: 42%; height: 42%; }

.trailer-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(43, 20, 46, 0) 0%, rgba(43, 20, 46, 0.75) 100%);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--cream);
  text-align: left;
}

/* Features */
.features {
  padding: clamp(32px, 4vw, 48px) 24px clamp(44px, 6vw, 88px);
  background: var(--plum-mid);
}

.feature-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--plum);
  border-radius: 18px;
  padding: 26px 24px;
  text-align: left;
}

.feature-grid h3 { font-weight: 700; font-size: 20px; }

.feature-grid p {
  font-size: 15.5px;
  line-height: 1.6;
  color: #cbb5c8;
}

/* Screenshots */
.screenshots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(40px, 6vw, 80px) 24px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 1200px;
}

.shot {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 14px;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(24, 10, 28, 0.5);
  transition: transform 0.15s;
}
.shot:hover img { transform: scale(1.02); }

/* Lightbox */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 10, 28, 0.94);
}

.lightbox img {
  max-width: 94vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.lb-close,
.lb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(247, 236, 201, 0.12);
  color: var(--cream);
  flex-shrink: 0;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(247, 236, 201, 0.25); }

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

@media (max-width: 640px) {
  .lightbox img { max-width: 100%; }
  .lb-nav { width: 44px; height: 44px; top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
}

/* CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(40px, 6vw, 72px) 24px;
  background-color: var(--maroon);
  background-image: linear-gradient(45deg, rgba(247, 236, 201, 0.04) 25%, transparent 25%, transparent 50%, rgba(247, 236, 201, 0.04) 50%, rgba(247, 236, 201, 0.04) 75%, transparent 75%, transparent);
  background-size: 18px 18px;
}

.cta h2 { font-size: clamp(26px, 3.2vw, 38px); text-wrap: balance; }

.cta p { font-size: clamp(16px, 1.5vw, 18px); color: #dcbfc0; }

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(36px, 5vw, 56px) 24px clamp(32px, 4vw, 48px);
  background: var(--plum-deep);
}

.footer h2 { font-size: clamp(21px, 2.2vw, 26px); }

.socials {
  display: flex;
  gap: clamp(12px, 1.6vw, 18px);
  flex-wrap: wrap;
  justify-content: center;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #6d4a6b;
  color: var(--gold);
}
.socials a:hover { border-color: var(--gold); color: #ffe9ad; }

.footer-links {
  display: flex;
  gap: 30px;
  font-size: 15px;
  font-weight: 700;
}

.copyright {
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* Hero: art on top, content below (no overlay) */
  .hero-content {
    position: static;
    padding: 4px 24px 40px;
  }
  .hero-content h1 { text-shadow: none; }
  .hero-fade { height: 70px; }
  .btn-steam { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-grid li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    row-gap: 4px;
    padding: 18px;
  }
  .feature-grid li svg { grid-row: 1 / 3; width: 28px; height: 28px; margin-top: 2px; }
  .feature-grid li h3 { font-size: 17px; }
  .shot-grid { grid-template-columns: 1fr; gap: 14px; }
}
