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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* === Back Link === */
.back-link {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: #999;
  line-height: 1;
}
.back-link:hover {
  color: #d32f2f;
}

/* === Header === */
header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.title {
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0.75rem;
  color: #f0f0f0;
  letter-spacing: 0.02em;
}

.subtitle {
  margin-top: 0.4rem;
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  margin-top: 1.25rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.badge img {
  height: 48px;
  width: auto;
  display: block;
}

.badge:hover {
  opacity: 0.8;
}

/* === Tabs === */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 1.5rem auto 0;
  max-width: 400px;
  border-bottom: 2px solid #2a2a2a;
}

.tab {
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
  color: #bbb;
}

.tab.active {
  color: #d32f2f;
  border-bottom-color: #d32f2f;
}

/* === Tab Content === */
.tab-content {
  display: none;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

.tab-content.active {
  display: block;
}

/* === Section Headings === */
.features h2,
.screenshots h2,
.privacy h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #f0f0f0;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: #c62828;
  box-shadow: 0 2px 16px rgba(198, 40, 40, 0.1);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #999;
}

.feature-card.upcoming {
  border-color: #333;
  border-style: dashed;
}

.coming-soon-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #d32f2f;
  background: #1a1a1a;
  border: 1px solid #c62828;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.4em;
}

/* === Screenshots === */
.screenshots {
  margin-bottom: 1rem;
}

.screenshot-gallery {
  display: flex;
  gap: 1rem;
  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: 16px;
  border: 1px solid #2a2a2a;
  scroll-snap-align: start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

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

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  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: #999;
  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.08);
  border: none;
  color: #ccc;
  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(198, 40, 40, 0.3);
  color: #fff;
}

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

/* === Privacy Policy === */
.privacy h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy p {
  font-size: 0.925rem;
  line-height: 1.7;
  color: #999;
  margin-bottom: 0.75rem;
}

.privacy-updated {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

.privacy a {
  color: #d32f2f;
  text-decoration: none;
  transition: color 0.2s;
}

.privacy a:hover {
  color: #ef5350;
}

/* === 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 #1a1a1a;
}

footer .contact a {
  color: #d32f2f;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer .contact a:hover {
  color: #ef5350;
}

footer .copyright {
  font-size: 0.8rem;
  color: #555;
}

/* === Scrollbar (WebKit) === */
.screenshot-gallery::-webkit-scrollbar {
  height: 6px;
}

.screenshot-gallery::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
  background: #c62828;
  border-radius: 3px;
}

/* === Responsive === */
@media (max-width: 600px) {
  header {
    padding: 2rem 1rem 1rem;
  }

  .tab-content {
    padding: 1.5rem 1rem;
  }

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

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

  .privacy p,
  .privacy h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
