:root {
  --bg-1: #05070f;
  --bg-2: #090f1e;
  --card: #0f1628cc;
  --line: #47f8ff66;
  --text: #eff4ff;
  --muted: #a5b4d6;
  --accent: #3cf4ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, #11224466, transparent),
    radial-gradient(1000px 600px at 80% 90%, #00c8ff22, transparent),
    linear-gradient(150deg, var(--bg-1), var(--bg-2));
}

body.no-scroll {
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 31px, #ffffff06 32px),
    linear-gradient(90deg, transparent 31px, #ffffff06 32px);
  background-size: 32px 32px;
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 4vw, 40px);
  gap: clamp(20px, 4vh, 36px);
}

.top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.brand-logo {
  width: min(84vw, 280px);
  height: auto;
  border-radius: 28%;
  filter: drop-shadow(0 0 18px #3cf4ff88);
}

.app-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
}

.app-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.slider {
  width: min(100%, 960px);
  flex: 1;
  min-height: 320px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 12px;
}

.slides {
  grid-column: 2;
  grid-row: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--card);
  box-shadow: 0 16px 60px #00000066, inset 0 0 40px #3cf4ff14;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 450ms ease;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: clamp(10px, 2vw, 16px);
}

.slide.active {
  opacity: 1;
}

.shot {
  border-radius: 14px;
  overflow: hidden;
  background: #0a1020;
  border: 1px solid #ffffff14;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a1020;
  cursor: zoom-in;
}

.nav {
  grid-row: 1;
  width: 42px;
  height: 42px;
  border: 1px solid #5be2ff66;
  background: #0d1730cc;
  color: var(--text);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.nav:hover {
  border-color: #8cf7ff;
  color: var(--accent);
}

.dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #99b0ff88;
  background: #ffffff12;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px #3cf4ffaa;
}

.footer {
  width: 100%;
  display: flex;
  justify-content: center;
}

.playstore-link img {
  width: min(70vw, 220px);
  height: auto;
  transition: transform 180ms ease;
}

.playstore-link:hover img {
  transform: translateY(-2px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.92);
  padding: clamp(12px, 3vw, 28px);
}

.lightbox[hidden] {
  display: none;
}

#lightboxImage {
  width: auto;
  height: auto;
  max-width: min(90vw, 1800px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #7cf2ff66;
  box-shadow: 0 20px 80px #000000aa;
  background: #050a16;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #7cf2ff88;
  background: #0c1630e6;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #7cf2ff88;
  background: #0c1630e6;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: clamp(10px, 2.2vw, 30px);
}

.lightbox-next {
  right: clamp(10px, 2.2vw, 30px);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  color: var(--accent);
  border-color: #a5fbff;
}

@media (max-width: 640px) {
  .slider {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .slides {
    grid-column: 1;
    grid-row: 2;
  }

  .nav {
    width: 100%;
    border-radius: 12px;
    height: 38px;
  }

  .prev {
    grid-column: 1;
    grid-row: 1;
  }

  .next {
    grid-column: 1;
    grid-row: 3;
  }

  .dots {
    grid-row: 4;
  }

  .slide {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}