*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0b0f14;
  --bg2:      #060b12;
  --panel:    #1e232a;
  --border:   #1e2e46;
  --text:     #c8d8e8;
  --muted:    rgba(200, 216, 232, 0.55);
  --accent:   #6ee7ff;
  --accent-dk:#162e33;
  --divider:  rgba(200, 216, 232, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Lato", "Segoe UI", system-ui, sans-serif;
  background-color: var(--bg);
  background-image: url("https://img.itch.zone/aW1nLzI2ODcxOTUxLnBuZw==/original/hpCs5O.png");
  background-repeat: repeat;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-body {
  position: relative;
  padding: 3.5rem 2rem 4rem;
  width: 100%;
  background: linear-gradient(to bottom, rgba(6,11,18,0.7) 0%, var(--bg) 100%);
  margin-top: -80px;
}

.hero-taglines {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 2rem;
}

.badge-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: opacity 0.15s;
  letter-spacing: 0.02em;
}

.badge:hover { opacity: 0.82; text-decoration: none; }
.badge-row { align-items: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s;
}

.store-badge:hover { opacity: 0.82; }
.store-badge img { display: block; width: auto; }

/* Google Play PNG has built-in padding; App Store SVG is tight — match visual size */
#badge-android img { height: 60px; }
#badge-ios img     { height: 42px; }

.itch-link {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── SCREENSHOTS ── */
.screenshots {
  padding: 3rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshots-inner img {
  width: 260px;
  border-radius: 10px;
  border: 1px solid var(--border);
  image-rendering: pixelated;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ── CAROUSEL ── */
.carousel-section {
  background-color: var(--bg2);
  background-image: url("images/space-bg.png");
  background-repeat: repeat;
  background-size: 400px auto;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.carousel-viewport {
  width: min(680px, 96vw);
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
}

.carousel-viewport:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 16px 0;
  align-items: center;
}

.carousel-slide {
  flex-shrink: 0;
  width: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transform: scale(0.78);
  opacity: 0.35;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease,
              box-shadow 0.4s ease;
}

.carousel-slide.active {
  transform: scale(1);
  opacity: 1;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  border-color: rgba(110, 231, 255, 0.2);
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.carousel-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}

.carousel-btn:hover { background: var(--border); color: var(--accent); }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── SECTIONS ── */
.content-section {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.content-section + .content-section {
  border-top: 1px solid var(--divider);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

p { color: var(--muted); margin-bottom: 1rem; }

/* ── FEATURE GRID ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.875rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
}

.feature-card .icon { font-size: 1.3rem; margin-bottom: 0.4rem; display: block; }
.feature-card h3 { font-size: 0.875rem; font-weight: 700; color: var(--text); margin-bottom: 0.2rem; }
.feature-card p { font-size: 0.8rem; margin: 0; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

details {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}

details[open] { border-color: rgba(110, 231, 255, 0.25); }

summary {
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.925rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0.75rem 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  border-top: 1px solid var(--border);
}

/* ── SUPPORT ── */
.support-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.support-card p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  width: fit-content;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.8; text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--accent-dk); }

/* ── PRIVACY ── */
.privacy-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.privacy-block h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 1.25rem 0 0.4rem; }
.privacy-block h3:first-child { margin-top: 0; }
.privacy-block p, .privacy-block li { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.4rem; }
.privacy-block ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }

.privacy-block .last-updated {
  font-size: 0.75rem;
  color: rgba(200, 216, 232, 0.3);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(n+4) { display: none; }
  .content-section { padding: 3rem 1.25rem; }
  .hero-body { padding: 2.5rem 1.25rem 3rem; margin-top: -40px; }
  .hero-banner { max-height: 220px; }
  .screenshots-inner img { width: min(260px, 85vw); }
}
