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

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #0a1729;
  --bg-2: #0f2138;
  --surface: rgba(20, 43, 70, 0.7);
  --surface-solid: #142b46;
  --surface-2: rgba(26, 53, 86, 0.85);
  --border: rgba(120, 170, 220, 0.14);
  --border-strong: rgba(120, 170, 220, 0.32);
  --text: #e6eef9;
  --text-soft: #a8bcd6;
  --text-muted: #6b8099;
  --gold: #f5b942;
  --gold-soft: #ffd47a;
  --sky: #5BA9D9;
  --coral: #ef5350;
}

body {
  font-family: 'Fredoka', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse at top, rgba(91, 169, 217, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-weight: 400;
  position: relative;
}

/* === Hex Background === */
.hex-bg {
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='84' height='73' viewBox='0 0 84 73'><polygon points='42,2 80,23 80,50 42,71 4,50 4,23' fill='none' stroke='%235BA9D9' stroke-width='1.4'/></svg>");
  background-size: 84px 73px;
  background-position: center;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  mask-image:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 45%, transparent 80%);
  -webkit-mask-image:
    radial-gradient(ellipse 90% 70% at 50% 30%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 45%, transparent 80%);
}

body > *:not(.hex-bg):not(.lightbox) { position: relative; z-index: 1; }

/* === Back Link === */
.back-link {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-soft);
  line-height: 1;
  z-index: 10;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* === Hero === */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(120, 170, 220, 0.2);
}

.title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  margin-top: 0.85rem;
  color: var(--text);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.subtitle {
  margin-top: 0.4rem;
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
  color: var(--text-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.lead {
  margin: 1rem auto 0;
  max-width: 580px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding: 0.45rem 0.9rem;
  background: rgba(245, 185, 66, 0.08);
  border: 1px solid rgba(245, 185, 66, 0.4);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 560px;
  margin: 1.5rem auto 0;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stat-num {
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-num small {
  font-size: 0.65em;
  color: var(--gold-soft);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Sections === */
section {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0.5rem;
}

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  text-align: center;
  margin-bottom: 1.25rem;
}

/* === Features (compact grid) === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 0.55rem;
  color: var(--gold);
}

.feature-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.feature-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* === Zones (compact) === */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 880px) {
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
}

.zone-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--zone-color);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.zone-card:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}

.zone-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--zone-color);
  opacity: 0.9;
}

.zone-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.1rem;
  line-height: 1.2;
}

.zone-card p {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
  line-height: 1.35;
}

/* === Screenshots (horizontal scroll) === */
.screenshot-gallery {
  display: flex;
  gap: 1rem;
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.screenshot-gallery img {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  scroll-snap-align: start;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.screenshot-gallery img:hover {
  transform: scale(1.03);
  border-color: var(--gold);
}

.screenshot-gallery::-webkit-scrollbar { height: 6px; }
.screenshot-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}
.screenshot-gallery::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 18, 35, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-height: 90vh;
  max-width: 80vw;
  width: auto;
  border-radius: 24px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  user-select: none;
}

.lightbox.open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
  z-index: 1001;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-soft);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  z-index: 1001;
  line-height: 1;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(245, 185, 66, 0.25);
  color: #fff;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* === Privacy === */
.privacy {
  max-width: 760px;
  padding-top: 2.5rem;
}

.privacy .section-title {
  text-align: left;
  margin-bottom: 0.5rem;
}

.privacy p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

.privacy-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.privacy a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.privacy a:hover { color: var(--gold-soft); }

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
}

footer .contact a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
footer .contact a:hover { color: var(--gold-soft); }

footer .copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 760px) {
  .hero { padding: 2.5rem 1rem 1rem; }
  .app-icon { width: 84px; height: 84px; border-radius: 20px; }

  section { padding: 2rem 1rem 0.5rem; }

  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: repeat(2, 1fr); }

  .screenshot-gallery img { width: 180px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}
