/* =========================================================
   The BattleMage - Clean Indie Game Landing Page
   Simple, fast, responsive, zero fluff.
   ========================================================= */

:root {
  --bg: #121318;
  --bg-card: #1a1c24;
  --border: #2b2e3b;
  --text: #e6e8ee;
  --text-dim: #9aa0b0;
  --link: #4da3ff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background-color: rgba(18, 19, 24, 0.95);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link, .nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.back-link:hover, .nav-link:hover {
  color: var(--text);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
}

.app-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
}

.tagline {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.description {
  font-size: 15px;
  color: var(--text);
  max-width: 620px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.appstore-btn {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s;
}

.appstore-btn:hover {
  opacity: 0.85;
}

.appstore-btn img {
  height: 44px;
  width: auto;
  display: block;
}

/* Headings */
h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

/* Screenshots Gallery */
.screenshots-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.screenshot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.screenshot-item:hover {
  transform: translateY(-2px);
  border-color: #3f4455;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-item .caption {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}

/* Info List */
.info-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.info-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}

.info-list li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
}

.info-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--link);
  font-size: 16px;
  line-height: 1.2;
}

.info-list strong {
  color: #fff;
}

/* Support & Privacy */
.support-section {
  padding: 40px 0 60px;
}

.support-section p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.support-section a {
  color: var(--link);
  text-decoration: none;
}

.support-section a:hover {
  text-decoration: underline;
}

.privacy-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
}

.privacy-note h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
}

.privacy-note p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 13px;
  color: #666;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-inner a:hover {
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 680px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 36px 0 28px;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .cta-row {
    justify-content: center;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .info-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
