/* March On Olympus - landing page (layout modeled on inkborn.acram.eu) */

:root {
  --bg: #0b0810;          /* page background - near-black purple, matches the edges of bg-purple.jpg */
  --bg-black: rgba(6, 4, 9, 0.55);   /* about section - translucent so the purple haze shows through */
  --bg-rgb: 11, 8, 16;
  --accent: #ffef4c;      /* title yellow */
  --accent-2: #ff7f4d;    /* orange hover */
  --text: #ffffff;
  --muted: #9ca3af;
  --ph-border: rgba(190, 150, 220, 0.35);
  --ph-bg: rgba(14, 9, 20, 0.55);      /* translucent so the purple haze shows through placeholders */
  --ph-text: #d6cbe0;
  --font-title: "Barlow Condensed", "DIN", sans-serif;
  --font-body: "Mukta", sans-serif;
  --font-alt: "Lato", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}
/* ---------- Page background: purple haze, pinned to the viewport ---------- */
/* A fixed layer (not background-attachment: fixed) so it also stays put on iOS. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg) url("assets/bg-purple.jpg") center / cover no-repeat;
  pointer-events: none;
}
/* Soft vignette + slow drifting glow so the haze feels alive, not like a flat photo */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 25%, rgba(168, 120, 200, 0.18), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, rgba(var(--bg-rgb), 0.75) 100%);
  animation: haze-drift 28s ease-in-out infinite alternate;
}
@keyframes haze-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.04); }
  to   { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
main { position: relative; z-index: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Placeholders (swap for real art later) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ph-bg);
  border: 2px dashed var(--ph-border);
  color: var(--ph-text);
  font-family: var(--font-alt);
  font-size: 12px;
  text-align: center;
  padding: 6px;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  line-height: 1.3;
}
.ph-logo      { width: 150px; height: 44px; }
.ph-icon      { width: 48px; height: 48px; border-radius: 6px; font-size: 11px; }
.ph-wide      { width: 72px; }
.ph-hero      { width: 100%; aspect-ratio: 1920 / 760; font-size: 18px; }
.ph-divider   { width: 100%; height: 56px; background: rgba(6, 4, 9, 0.5); }
.ph-button    { width: 380px; max-width: 90vw; height: 76px; font-size: 13px; margin-top: 10px; }
.ph-video     { width: 100%; aspect-ratio: 16 / 9; font-size: 15px; border-color: var(--accent); }
.ph-platform  { width: 44px; height: 44px; margin: 8px; font-size: 11px; }
.ph-shot      { width: 100%; aspect-ratio: 16 / 9; font-size: 15px; }
.ph-submit    { width: 190px; height: 48px; font-size: 12px; cursor: pointer; }
.ph-newsletter-bg { position: absolute; inset: 0; width: 100%; height: 100%; font-size: 16px; }
.ph-footer-art { width: 100%; height: 160px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: center; pointer-events: none; }
.menu {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  pointer-events: auto;
}
.menu-socials { display: none; gap: 6px; }
@media (min-width: 768px) {
  .menu { width: 700px; justify-content: space-between; }
  .menu-socials { display: flex; }
}
@media (min-width: 1024px) { .menu { width: 1100px; } }
@media (min-width: 1280px) { .menu { width: 1420px; } }

/* ---------- Titles ---------- */
.title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 12px;
}
.title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@media (min-width: 1024px) { .title { font-size: 26px; } }

/* ---------- Hero ---------- */
.hero { position: relative; width: 100%; background: transparent; overflow: hidden; }
.hero-img {
  display: block; width: 100%; height: auto; max-height: 860px; object-fit: cover; object-position: center top;
  /* mask the edges to transparent so the key art melts into the purple haze behind it */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, #000 0, #000 72%, transparent 100%);
  mask-composite: intersect;
}

/* ---------- About ---------- */
.about { background: var(--bg-black); padding: 32px 0 0; }
.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}
.about-text { display: flex; flex-direction: column; align-items: center; width: 100%; }
.game-desc {
  font-size: 16px;
  line-height: 25px;
  font-weight: 500;
  text-align: center;
  padding: 16px 24px 25px;
  margin: 0;
  max-width: 560px;
}
.about-video { width: 100%; }
@media (min-width: 768px) {
  .about-text { width: 608px; }
  .about-video { width: 600px; }
  .game-desc { text-align: left; }
}
@media (min-width: 1024px) {
  .about-inner { flex-direction: row; justify-content: center; align-items: center; }
  .about-text { width: 552px; }
}
@media (min-width: 1280px) {
  .about-video { width: 700px; }
  .game-desc { font-size: 18px; line-height: 28px; }
}
.platforms {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-top: 40px;
  padding-bottom: 20px;
}
.platforms-icons { display: flex; align-items: center; }
@media (min-width: 768px) {
  .platforms { flex-direction: row; gap: 10px; }
}

/* ---------- Screenshots ---------- */
.screenshots { padding: 40px 16px 20px; display: flex; flex-direction: column; align-items: center; }
.carousel { width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.slide { min-width: 100%; padding: 12px 8px 10px; }
@media (min-width: 768px)  { .carousel { width: 530px; } .slide { min-width: 530px; } }
@media (min-width: 1024px) { .carousel { width: 1328px; max-width: 100%; } .slide { min-width: 664px; } }
@media (min-width: 1280px) { .carousel { width: 1304px; } .slide { min-width: 652px; } }
.carousel-dots { display: flex; justify-content: center; gap: 10px; padding: 14px 0 30px; }
.carousel-dots button {
  width: 12px; height: 12px; padding: 0; border: 0; cursor: pointer;
  background: var(--muted); transform: rotate(45deg); opacity: 0.6;
}
.carousel-dots button.active { background: var(--accent); opacity: 1; }

/* ---------- Features ---------- */
.features { padding: 30px 8vw 40px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.feature-row { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; max-width: 1400px; }
.feature-list {
  width: 100%;
  background: rgba(6, 4, 9, 0.45);
  border: 1px solid rgba(190, 150, 220, 0.12);
  border-radius: 8px;
  padding: 12px 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px; font-size: 16px; line-height: 1.5; }
.bullet {
  flex-shrink: 0; margin-top: 7px; width: 14px; height: 14px;
  background: var(--accent); clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
}
.feature-art { display: block; width: 100%; max-width: 560px; height: auto; flex-shrink: 0; }
@media (min-width: 1024px) {
  .feature-row { flex-direction: row; }
  .feature-row.reverse { flex-direction: row-reverse; }
  .feature-art { width: 48%; }
}

/* ---------- Newsletter ---------- */
.newsletter { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; padding: 60px 16px; }
.newsletter-box {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  background: rgba(0, 0, 0, 0.82);
  padding: 28px 24px 22px;
  text-align: center;
}
.newsletter-form { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.newsletter-form input {
  width: 100%; height: 44px; padding: 0 14px;
  font-family: var(--font-body); font-size: 15px;
  border: 1px solid #ccc; border-radius: 3px;
}
.newsletter-note { font-size: 10px; line-height: 1.5; color: #ddd; margin: 0; }
.newsletter-note a { text-decoration: underline; }
.newsletter-status { font-size: 12px; color: var(--accent); margin: 0; min-height: 1em; }
@media (min-width: 1024px) { .newsletter { justify-content: flex-start; padding-left: 18vw; } }

/* ---------- Socials ---------- */
.socials { padding: 60px 16px 40px; display: flex; flex-direction: column; align-items: center; }
.socials-row { display: flex; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 20px 0 0; background: linear-gradient(to bottom, transparent, rgba(var(--bg-rgb), 0.85) 40%); }
.copyright { font-size: 13px; color: #ddd; padding: 30px 16px; margin: 0; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 50;
  width: 340px; max-width: calc(100vw - 32px);
  background: #fff; color: #111;
  padding: 18px 20px; border-radius: 6px; font-size: 13px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 8px 0 14px; line-height: 1.5; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button {
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  padding: 8px 14px; border-radius: 3px; cursor: pointer;
  background: #6d2a86; color: #fff; border: 2px solid #6d2a86;
}
.cookie-actions button.ghost { background: transparent; color: #6d2a86; }
