/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #F0D650;
  --red: #D42B2B;
  --maroon: #4A1020;
  --blue: #169CE5;
  --dark: #1A0A12;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #fff;
  background: #4A1020;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px;
  opacity: 0.45;
  mix-blend-mode: overlay;
}

h1, h2, h3 {
  font-family: 'Outfit', system-ui, sans-serif;
}

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


/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 28px;
  line-height: 1;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: scale(1.04);
}

.btn:active {
  transform: scale(0.97);
}

.btn-trailer {
  background: #D42B2B;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-family: 'Mark', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 32px;
  box-shadow: 0 4px 0 #6B1520;
}

.btn-appstore {
  background: #F0D650;
  color: #4A1020;
  text-transform: uppercase;
  font-size: 0.8125rem;
  font-family: 'Mark', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 32px;
  box-shadow: 0 4px 0 #C0A639;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 50% 60% at 3% 0%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #E8A030 0%, #D85030 20%, #A82020 45%, #6B1520 75%, #5E1625 100%);
  overflow: hidden;
  padding: 160px 24px 140px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-content {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  align-self: center;
  margin-top: -80px;
  animation: slideFromLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-logo {
  width: 288px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.2));
}

.hero-tagline {
  font-size: 19px;
  font-family: 'Mark', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  opacity: 0.9;
  margin-top: -19px;
  margin-bottom: 56px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 288px;
}

.hero-buttons .btn {
  width: 100%;
  justify-content: center;
}

.hero-screenshots {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-self: center;
  animation: slideFromRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-phones-img {
  width: 100%;
  max-width: 744px;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.3));
}

/* ── Device Frame ─────────────────────────────── */
.device-frame {
  background: #111;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: inline-block;
}

.device-frame img {
  border-radius: 20px;
}

/* ── Sections (shared) ────────────────────────── */
section {
  position: relative;
  overflow: hidden;
  padding: 100px 24px;
}

.section-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ── Screenshot Grids ─────────────────────────── */
.screenshot-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-grid-1 .device-frame img {
  width: 280px;
}

.screenshot-grid-3 .device-frame img,
.screenshot-grid-4 .device-frame img {
  width: 220px;
}

/* ── Screenshots Grid ─────────────────────────── */
.screenshots-section {
  position: relative;
  background: #4A1020;
  padding: 40px 24px 60px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.screenshots-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.screenshots-grid img:hover {
  transform: scale(1.03);
}

/* ── Arcade ───────────────────────────────────── */
.arcade {
  background: linear-gradient(170deg, #0B5A8E 0%, var(--blue) 50%, #0E4E7A 100%);
}

.arcade-tiles {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.arcade-tile {
  flex: 0 1 200px;
}

.arcade-tile img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* ── Footer ───────────────────────────────────── */
.footer {
  background: #4A1020;
  text-align: center;
  padding: 60px 24px;
}

.btn-appstore-footer {
  margin-bottom: 32px;
}

.footer-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.6;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.35;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
}

.footer-links a {
  color: #fff;
  opacity: 0.4;
  font-size: 0.8rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* ── Modal ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 24px;
  max-width: 1100px;
  width: 95%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-video-placeholder {
  padding: 40px 0;
  color: rgba(255,255,255,0.6);
}

.modal-video-placeholder p {
  margin-top: 20px;
  font-size: 1.1rem;
}

/* ── Lightbox ─────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 40px;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  border-radius: 16px;
  transform: scale(0.92);
  transition: transform 0.25s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #FFFFFF;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
  padding: 0;
}

.lightbox-nav:hover {
  opacity: 0.8;
}

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

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

/* ── Responsive ───────────────────────────────── */
/* Tablet */
@media (max-width: 900px) {
  .hero {
    padding: 100px 24px 0;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
    margin-top: 0;
    animation-name: slideUp;
  }

  .hero-screenshots {
    animation-name: slideUp;
  }

  .hero-logo {
    width: 300px;
  }

  .hero-buttons {
    max-width: 300px;
    width: 100%;
  }

  .hero-phones-img {
    max-width: 480px;
    margin-bottom: -100px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
  }

  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .lightbox-prev {
    left: 16px;
  }

  .lightbox-next {
    right: 16px;
  }

  .modal-content {
    padding: 36px 28px;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .hero {
    padding: 60px 16px 0;
  }

  .hero-logo {
    width: 260px;
  }

  .hero-tagline {
    font-size: 14px;
  }

  .hero-buttons {
    max-width: 260px;
  }

  .hero-buttons .btn {
    font-size: 0.7rem;
    height: 36px;
  }

  .hero-phones-img {
    max-width: 340px;
    margin-bottom: -80px;
  }

  .screenshots-section {
    padding: 40px 16px;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  section {
    padding: 60px 16px;
  }

  .footer {
    padding: 40px 16px;
  }
}
