/* ===== Shelter Fall — GitHub Pages Stylesheet ===== */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #14141f;
  --bg-section: #0e0e18;
  --accent: #e8a624;
  --accent-dim: #b8841a;
  --text-primary: #e8e6e3;
  --text-secondary: #9a9a9a;
  --text-muted: #666;
  --danger: #c9302c;
  --success: #3d8b37;
  --border: #1e1e2e;
  --radius: 12px;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dim);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-section) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 166, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(232, 166, 36, 0.1);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge img {
  height: 54px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-section);
}

.section-alt .section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-dim);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== GAMEPLAY DETAILS ===== */
.gameplay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.gameplay-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.gameplay-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.gameplay-text ul {
  list-style: none;
  padding: 0;
}

.gameplay-text li {
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
}

.gameplay-text li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.gameplay-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.gameplay-visual .emoji-grid {
  font-size: 2.5rem;
  line-height: 1.8;
  letter-spacing: 0.3em;
}

/* ===== DIFFICULTY TABLE ===== */
.difficulty-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.difficulty-table th,
.difficulty-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.difficulty-table th {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.difficulty-table td {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.difficulty-table tr:hover td {
  color: var(--text-primary);
}

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-dark) 100%);
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

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

/* ===== LEGAL / TEXT PAGES ===== */
.legal-page {
  padding: 120px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
  display: block;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--accent);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-page p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-page ul {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.8;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--accent);
}

/* ===== SUPPORT PAGE ===== */
.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.support-card .icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.support-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .hero-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

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

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

  .stats-bar {
    gap: 32px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .difficulty-table {
    font-size: 0.85rem;
  }

  .difficulty-table th,
  .difficulty-table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .nav-links {
    gap: 12px;
  }

  .section {
    padding: 60px 16px;
  }

  .footer-links {
    gap: 16px;
  }
}
