/* ===================================================
   Armor of God — Marketing Site Styles
   =================================================== */

:root {
  --bg-deep:    #080c18;
  --bg-mid:     #0e1528;
  --bg-card:    rgba(255, 255, 255, 0.04);
  --border:     rgba(201, 162, 39, 0.25);
  --gold:       #c9a227;
  --gold-light: #e8c060;
  --text:       #dde4f0;
  --text-dim:   #8a9ab8;
  --grass:      #3a7d2a;
  --danger:     #c0392b;
  --success:    #27ae60;
  --font-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-body:  'Segoe UI', system-ui, -apple-system, sans-serif;
  --pixel-size: 3; /* scale factor for pixel art */
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

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

/* ── Arrow Canvas Overlay ───────────────────────── */
#arrow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2; /* above sections (z-index:1) so arrows show on scroll; below nav (z-index:100) */
}

/* ── Scroll-reveal base ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Splash Section ─────────────────────────────── */
#splash {
  position: relative;
  height: clamp(50vh, 56vw + 6rem, 100vh); /* scales with image aspect ratio; tight on mobile, full-screen on desktop */
  /* Offset the image down so it starts below the fixed nav bar. */
  background-image:    url('../assets/armorOfGod.webp');
  background-position: center top 56px;
  background-size:     contain;
  background-repeat:   no-repeat;
  background-color:    var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,24,0)   0%,   /* fully clear — image shows as-is */
    rgba(8,12,24,0)  90%,   /* stays clear until 10% from bottom */
    rgba(8,12,24,1) 100%    /* fades into page background at the edge */
  );
  pointer-events: none;
}

/* Animated scroll-down chevron */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  animation: hint-bounce 2s ease-in-out infinite;
}

.scroll-hint-arrow {
  display: block;
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg) translateY(-4px);
}

@keyframes hint-bounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(8px); }
}

/* ── Inspiration / Video Section ────────────────── */
#inspiration {
  position: relative;
  z-index: 3; /* above arrow canvas (z-index:2) so arrows fly behind the video */
  padding: 6rem 2rem;
  background: var(--bg-deep);
}

#inspiration .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

#inspiration .section-header p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0.8rem auto 0;
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  z-index: 3; /* above arrow canvas (z-index:2) so arrows fly behind video */
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Navigation ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

nav .logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
nav ul a:hover { color: var(--gold-light); }

/* ── Hero Section ───────────────────────────────── */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201,162,39,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(30,60,140,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-character {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: center;  /* centers image within the container, handling asymmetric sprite padding */
}

.hero-character img {
  width: auto;
  height: 192px; /* 64px × 3 — scales pixel art cleanly */
  filter: drop-shadow(0 0 24px rgba(201,162,39,0.45));
  animation: idle-float 3s ease-in-out infinite;
}

@keyframes idle-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,162,39,0.4), 0 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.hero-verse {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 3rem;
  letter-spacing: 0.03em;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(201,162,39,0.4);
  color: #000;
}

/* ── Divider ────────────────────────────────────── */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1.5rem;
}

/* ── About Section ──────────────────────────────── */
#about {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}

.about-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.about-inner p {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-inner p strong {
  color: var(--text);
}

/* ── Armor Section ──────────────────────────────── */
#armor {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: var(--bg-mid);
}

#armor .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

#armor .section-header p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 1rem auto 0;
  font-style: italic;
}

.armor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.armor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.armor-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201,162,39,0.55);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(201,162,39,0.1);
}

.armor-card img {
  height: 80px;
  width: 96px;
  object-fit: contain;  /* keeps wide sprites like the belt from overflowing */
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.armor-card:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 16px rgba(201,162,39,0.35));
}

.armor-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.armor-card .armor-verse {
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.armor-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ── Get the Game Section ──────────────────────── */
#get-the-game {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  background: var(--bg-deep);
  text-align: center;
  scroll-margin-top: 5rem; /* offset so nav doesn't cover when linked */
}

#get-the-game .section-title {
  margin-bottom: 1.5rem;
}

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  background: rgba(8,12,24,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s;
}

.platform-btn svg,
.platform-btn .platform-icon {
  width: 200px;
  height: 50px;
  flex-shrink: 0;
}

.platform-btn .platform-icon {
  filter: brightness(0) invert(1); /* force white to match the monochrome theme */
}

.platform-btn .platform-name {
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.platform-btn .soon-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.5;
  margin-left: -0.2rem;
}

/* Coming-soon state */
.platform-btn.coming-soon {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* Live state */
.platform-btn:not(.coming-soon):hover {
  transform: translateY(-2px);
  background: rgba(8,12,24,0.9);
  color: #fff;
}

/* ── Support Section ────────────────────────────── */
#support {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
}

#support .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

#support .section-header p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0.8rem auto 0;
}

.support-contact {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.support-hint {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.support-btn {
  font-size: 1rem;
  padding: 0.85rem 2.5rem;
}

.support-template-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
}

/* ── Grass Footer ───────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg-deep);
  padding-top: 0;
}

.grass-strip {
  width: 100%;
  height: 66px; /* 22px × 3 */
  background-image: url('../assets/blockGrass22.webp');
  background-repeat: repeat-x;
  background-size: auto 66px;
  image-rendering: pixelated;
}

.footer-content {
  padding: 2rem 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  background: #040710;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-content p + p { margin-top: 0.4rem; }
.footer-content a { color: var(--gold); opacity: 0.8; }
.footer-content a:hover { opacity: 1; }


/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav wraps to two lines between ~640-900px; push image lower */
  #splash { background-position: center top 80px; }
}

@media (max-width: 640px) {
  nav ul { display: none; }
  /* Nav is single-line logo only */
  #splash { background-position: center top 48px; }

  .hero-character img { height: 128px; }

  .armor-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .armor-card { padding: 1.2rem 1rem; }

  .support-form-wrap { padding: 1.5rem 1.2rem; }
}
