/* home.css — the landing page. Shared tokens and components are in site.css. */

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  background:
    linear-gradient(to top, var(--bg-abyss) 0%, transparent 45%),
    radial-gradient(circle at 50% 42%, rgba(6, 7, 9, 0.42) 0%, rgba(6, 7, 9, 0.88) 88%),
    radial-gradient(circle at 50% 18%, rgba(200, 155, 60, 0.18), transparent 62%),
    url("/images/hero.webp") center 60% / cover no-repeat;
}

/* Hero background video — sits under the copy, poster is the still fallback. */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, var(--bg-abyss) 0%, transparent 50%),
    radial-gradient(circle at 50% 42%, rgba(6, 7, 9, 0.35) 0%, rgba(6, 7, 9, 0.82) 92%);
}
.hero-inner, .hero .scroll-hint { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  html:not([data-a11y-motion="full"]) .hero-video { display: none; }
}
html[data-a11y-motion="reduced"] .hero-video { display: none; }
.hero-inner { position: relative; padding: 110px 24px 130px; max-width: 900px; }
.hero .badge--gold { margin-bottom: 28px; padding: 7px 18px; border-radius: 999px; letter-spacing: 0.22em; }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem); font-weight: 900; letter-spacing: 0.1em;
  line-height: 1.02; text-transform: uppercase; color: var(--gold-highlight);
}
.hero h1 .gilded { letter-spacing: 0.04em; }
.tagline {
  color: var(--parchment); max-width: 640px; margin: 24px auto 38px;
  font-size: 1.15rem; line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}
.hero .btn-row { gap: 16px; }
/* Pause control for the background loop (WCAG 2.2.2: anything that moves for more than
   five seconds can be stopped). Shown by home.js once the video can play. */
.hero-motion {
  position: absolute; left: 20px; bottom: 20px; z-index: 2; cursor: pointer; /* left: the accessibility button owns the right corner */
  background: rgba(6, 7, 9, 0.72); color: var(--parchment); border: 1px solid var(--gold-antique);
  border-radius: 999px; padding: 8px 16px; min-height: 40px; font-size: 0.78rem; letter-spacing: 0.06em;
}
.hero-motion:hover { border-color: var(--gold-highlight); color: var(--gold-highlight); }
.hero-motion::before { content: "\275A\275A"; margin-right: 8px; font-size: 0.7em; }
.hero-motion[aria-pressed="true"]::before { content: "\25B6"; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--gold-primary); letter-spacing: 0.3em; font-size: 0.7rem; text-transform: uppercase;
  text-decoration: none;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--stone-border); }
.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center; margin-bottom: 10px;
}
.lead { color: var(--muted); max-width: 760px; margin: 0 auto 46px; text-align: center; line-height: 1.75; }
.lead em, .lead strong { color: var(--gold-highlight); font-style: normal; font-weight: 600; }
.subhead {
  font-family: var(--font-display); color: var(--gold-highlight); letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 1.15rem; margin-bottom: 14px;
}
.section-note { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* Feature cards with an image */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.feature { padding: 0; overflow: hidden; }
.feature .shot { overflow: hidden; border-bottom: 1px solid var(--gold-antique); }
.feature .shot img { width: 100%; display: block; transition: transform 0.6s ease; }
.feature:hover .shot img { transform: scale(1.05); }
.feature .body { padding: 22px; }
.feature p { font-size: 0.93rem; line-height: 1.65; }
.feature--banner { max-width: 640px; margin: 0 auto; }

/* World */
.world { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.world .frame { border: 1px solid var(--gold-antique); box-shadow: 0 0 30px rgba(200, 155, 60, 0.15); }
.world .frame img { width: 100%; display: block; }
.world .section-note { margin-bottom: 18px; }
.world .section-note em { color: var(--gold-highlight); font-style: normal; }
.region-list { list-style: none; margin-top: 18px; }
.region-list li {
  padding: 10px 0 10px 30px; position: relative; color: var(--parchment);
  border-bottom: 1px dashed var(--stone-border); font-size: 0.95rem;
}
.region-list li::before { content: "✦"; position: absolute; left: 0; top: 10px; color: var(--gold-primary); }
.region-list strong { color: var(--gold-highlight); letter-spacing: 0.05em; }
.region-list li > strong:first-child { text-transform: uppercase; font-size: 0.9rem; }
.world .section-note.after { margin-top: 18px; font-size: 0.9rem; }
.next-build { max-width: 860px; margin: 36px auto 0; }
.next-build h4 {
  font-family: var(--font-display); color: var(--gold-primary); letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.85rem; margin: 22px 0 0;
}
.check-list { list-style: none; margin-top: 12px; display: grid; gap: 8px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.check-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.check-list li::before { content: "\2726"; position: absolute; left: 0; top: 0; color: var(--gold-primary); font-size: 0.8em; }
.check-list code { color: var(--parchment); }
.atlas-link { margin-top: 22px; }
@media (max-width: 820px) { .world { grid-template-columns: 1fr; } }

/* Tiles: classes, combat, systems, ancestries */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.tile-grid--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .tile-grid, .tile-grid--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid, .tile-grid--four { grid-template-columns: 1fr; } }
.tile {
  text-align: center; padding: 22px 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--gold-highlight); }
.tile h3 { font-size: 1rem; margin-bottom: 4px; }
.tile-icon {
  display: block; width: 40px; height: 40px; margin: 0 auto 12px; padding: 8px;
  fill: none; stroke: var(--gold-highlight); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  border: 1px solid var(--gold-antique); border-radius: 50%; background: rgba(200, 155, 60, 0.08);
  overflow: visible; box-sizing: content-box;
}
.tile .role {
  display: block; margin: 2px 0 8px; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-primary);
}
.tile p { font-size: 0.86rem; line-height: 1.6; }
.tile .kit { display: block; margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--gold-primary); }
.tile .techniques { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--parchment); }
.combat-title {
  font-family: var(--font-display); color: var(--gold-highlight); text-align: center;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; font-size: 1.4rem;
}
.callout { max-width: 760px; margin: 36px auto 0; }
.callout p { font-size: 0.9rem; line-height: 1.7; }
.callout p + p { margin-top: 12px; font-size: 0.84rem; }
.callout p strong { color: var(--parchment); }

/* ── Playtest ──────────────────────────────────────────────────────────── */
#download {
  background:
    linear-gradient(to bottom, rgba(6, 7, 9, 0.9) 0%, rgba(6, 7, 9, 0.84) 100%),
    url("/images/download-banner.webp") center / cover no-repeat;
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; counter-reset: step; margin-bottom: 40px; }
.step { padding: 26px 22px; text-align: left; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  border: 1px solid var(--gold-primary); color: var(--gold-highlight);
  font-family: var(--font-display); font-weight: 700;
}
.step p { font-size: 0.9rem; }
.step .btn { margin-top: 16px; }
.dl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.dl-card { text-align: center; padding: 30px 26px; }
.game-icon { display: block; margin: 0 auto 14px; border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), 0 0 24px rgba(200, 155, 60, 0.25); }
.dl-card .version { color: var(--muted); font-size: 0.86rem; margin-bottom: 18px; }
.install-steps { margin: 20px auto 0; padding-left: 22px; max-width: 420px; text-align: left; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.install-steps li + li { margin-top: 6px; }
.install-steps li::marker { color: var(--gold-primary); font-weight: 700; }
.install-steps strong, .install-steps code { color: var(--parchment); }
.dl-row { max-width: 560px; margin: 0 auto; }
.lan-note { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 0.84rem; color: var(--muted); }
.lan-note strong { color: var(--parchment); font-weight: 600; }

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .hero-inner { padding: 80px 20px 110px; }
  .scroll-hint { display: none; }
  .hero-motion { left: 50%; transform: translateX(-50%); bottom: 16px; white-space: nowrap; }
}

/* Class sigils on the tiles come from the client's own textures, exported to webp. */
.tile .tile-icon { width: 48px; height: 48px; display: block; margin-bottom: 10px; }
