/* global.css - Fables of Antiqua */

:root {
  --bg: #080604;
  --bg-soft: #12100d;
  --panel: rgba(22, 18, 13, 0.88);
  --panel-strong: rgba(12, 10, 8, 0.94);
  --text: #ece6d4;
  --muted: #b9aa8c;
  --gold: #f1c40f;
  --gold-deep: #b8860b;
  --ember: #c9632b;
  --green: #7fa36b;
  --border: rgba(241, 196, 15, 0.22);
  --shadow: rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

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

body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(241, 196, 15, 0.12), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(127, 163, 107, 0.12), transparent 34rem),
    linear-gradient(180deg, #17110b 0%, #080604 55%, #030201 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35)),
    radial-gradient(circle at 70% 35%, rgba(241, 196, 15, 0.2), transparent 20rem),
    linear-gradient(135deg, rgba(61, 42, 18, 0.9), rgba(10, 8, 6, 0.9));
  box-shadow: 0 24px 80px var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 420px;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.16), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(32px, 6vw, 72px);
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.12;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  color: #fff5d1;
  text-shadow: 0 4px 22px rgba(0,0,0,0.65);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff5d1;
  margin-bottom: 18px;
}

h3 {
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 780px;
  color: #d9ccb0;
  margin-top: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1b1407;
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.section {
  margin-top: 54px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-header p {
  max-width: 620px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.card strong,
.stat strong {
  color: #fff5d1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  border: 1px solid rgba(241, 196, 15, 0.28);
  background: rgba(241, 196, 15, 0.08);
  color: #ffe58a;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.88rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
}

.feature-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.page-title {
  padding: 70px 0 24px;
}

.page-title h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.lore-panel {
  background: linear-gradient(180deg, rgba(33,25,16,0.9), rgba(12,9,7,0.92));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(241,196,15,0.28);
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #16100a;
  box-shadow: 0 0 22px rgba(241,196,15,0.28);
}

.timeline-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.status {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(127, 163, 107, 0.14);
  color: #b8d8a3;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

footer {
  border-top: 1px solid rgba(241,196,15,0.18);
  background: rgba(0,0,0,0.42);
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

footer strong {
  color: var(--gold);
}

@media (max-width: 850px) {
  main {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .grid,
  .grid.two,
  .split,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 36px 22px;
  }

  .section-header {
    display: block;
  }
}
