/* The home page (docs/legal/site/home.html). Builds on site.css. */

.section { padding: 64px 0 0; }
@media (min-width: 960px) { .section { padding-top: 104px; } }

.section h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(1.65rem, 4.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-lead { margin: 0; max-width: 40em; color: var(--text-dim); font-size: 1.05rem; }

/* ---------- hero ---------- */

.hero { position: relative; text-align: center; }
.hero-art { position: relative; overflow: hidden; }
.hero-art img {
  display: block;
  width: 100%;
  height: clamp(250px, 50vw, 640px);
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 12, 14, 0) 40%, rgba(11, 12, 14, 0.75) 78%, var(--bg) 100%),
    linear-gradient(to right, var(--bg) 0, rgba(11, 12, 14, 0) 12%, rgba(11, 12, 14, 0) 88%, var(--bg) 100%);
}
.hero-content { position: relative; margin-top: clamp(-150px, -9vw, -40px); }
.wordmark {
  margin: 0;
  padding-left: 0.2em; /* balances the letter-spacing after the last letter */
  font-size: clamp(2.7rem, 11vw, 5.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(95deg, var(--axiom) 10%, #e9f4f7 50%, var(--drift) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-pitch {
  margin: 14px auto 0;
  max-width: 26em;
  color: var(--white);
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  line-height: 1.35;
}
.hero-sub { margin: 12px auto 0; max-width: 34em; color: var(--text-dim); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-actions .button { min-width: 160px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: hero-art 1.6s ease-out both; }
  .hero-content > * { animation: hero-rise 0.7s ease-out both; }
  .hero-content > :nth-child(2) { animation-delay: 0.08s; }
  .hero-content > :nth-child(3) { animation-delay: 0.16s; }
  .hero-content > :nth-child(4) { animation-delay: 0.22s; }
  .hero-content > :nth-child(5) { animation-delay: 0.28s; }
  .button { transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
  .button:hover { transform: translateY(-1px); }
}
@keyframes hero-art { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- how it plays ---------- */

.beats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; }
.beat { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
@media (min-width: 560px) { .beat { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; } }
@media (min-width: 960px) {
  .beats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
  .beat { grid-template-columns: none; align-items: start; gap: 20px; }
}
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #05070a;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9), 0 0 0 5px #06080b;
}
@media (min-width: 960px) { .shot { border-radius: 22px; } }
.shot img { display: block; width: 100%; height: auto; }
.beat-num {
  margin: 0 0 6px;
  color: var(--axiom);
  font: 600 0.8rem/1 var(--mono);
  letter-spacing: 0.16em;
}
.beat:nth-child(even) .beat-num { color: var(--drift); }
.beat h3 { margin: 0 0 6px; color: var(--white); font-size: 1.15rem; line-height: 1.3; }
.beat p:last-child { margin: 0; color: var(--text-dim); }
.also {
  margin: 36px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

/* ---------- factions ---------- */

.faction-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 760px) { .faction-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.faction {
  --tone: var(--axiom);
  position: relative;
  overflow: hidden;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--tone);
  border-radius: var(--radius);
  background: var(--surface);
}
.faction-drift { --tone: var(--drift); }
.faction-scene {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 170px;
  object-fit: cover;
  opacity: 0.75;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.faction > :not(.faction-scene) { position: relative; }
.faction-sigil { display: block; width: 104px; height: 104px; margin: 0 0 18px; filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.6)); }
.faction h3 { margin: 0; color: var(--tone); font-size: 1.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.faction-keywords { margin: 4px 0 14px; color: var(--text-dim); font: 0.82rem/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.faction p { margin-top: 0; }
.faction blockquote {
  margin: 18px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 2px solid var(--tone);
  color: var(--white);
  font-style: italic;
}
.faction blockquote p { margin: 0; }

/* ---------- join ---------- */

.join-card {
  padding: 32px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(63, 201, 238, 0.13), transparent 60%),
    radial-gradient(120% 70% at 100% 100%, rgba(255, 163, 46, 0.11), transparent 60%),
    var(--surface);
}
@media (min-width: 720px) { .join-card { padding: 44px 40px; } }
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 12, 14, 0.55);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  margin-bottom: 10px;
  color: var(--axiom);
  font: 600 0.8rem/1 var(--mono);
  letter-spacing: 0.16em;
}
.step h3 { margin: 0 0 4px; color: var(--white); font-size: 1.1rem; }
.step p { margin: 0 0 16px; color: var(--text-dim); flex-grow: 1; }
.step .button { width: 100%; }
@media (min-width: 560px) and (max-width: 959px) { .step .button { width: auto; } }
.join-legal { margin: 24px 0 0; }
.join-help { margin: 8px 0 0; color: var(--text-dim); }

/* ---------- latest update ---------- */

.latest-card {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--drift);
  border-radius: var(--radius);
  background: var(--surface);
}
@media (min-width: 720px) { .latest-card { padding: 32px 36px; } }
.latest-card .eyebrow { color: var(--drift); }
.latest-card h2 { font-size: clamp(1.35rem, 3.8vw, 1.8rem); }
.latest-card h2 a { color: var(--white); text-decoration: none; }
.latest-card h2 a:hover { text-decoration: underline; }
.latest-body, .latest-meta { max-width: 46em; }
.latest-meta { margin: 0 0 12px; color: var(--text-dim); font: 0.85rem/1.5 var(--mono); }
.latest-body p { margin: 0 0 10px; }
.latest-body ul { margin: 0 0 10px; padding-left: 1.25em; }
.latest-body li { margin: 4px 0; }
.latest-body li::marker { color: var(--drift); }
.latest-body strong { color: var(--white); }
.latest-body .note-section {
  margin: 14px 0 4px;
  color: var(--drift);
  font: 600 0.78rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.latest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 20px 0 0; }
