/* Fear the Lord — landing page.
   Shares its design tokens (colors, fonts) with the live game's styles.css
   on purpose, so a visitor who clicks through into /index.html never feels
   like they left the brand. Self-contained: no JS, no framework, minimal
   external requests (fonts + this stylesheet + three local images). */

:root {
  --bg: #0c0d11;
  --bg-deep: #07080a;
  --panel: #171b22;
  --panel-2: #1d222b;
  --line: rgba(243, 239, 230, .10);
  --ink: #f3efe6;
  --muted: #aab2bf;
  --gold: #f0b84f;
  --gold-ink: #241a06;
  --red: #ef6262;
  --green: #67d99a;
  --blue: #6db4ff;
  --violet: #b37cff;
  --font-ui: "Inter", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-title: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-logo: "Cormorant Garamond", Georgia, serif;
  --container: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--gold-ink);
  padding: .75em 1.25em;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --- layout helpers --------------------------------------------------- */

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%); }
.center { text-align: center; }
.section-lede { max-width: 640px; margin: -8px auto 44px; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: .9fr 1.1fr; }
.two-col.reverse > *:first-child { order: 2; }

/* --- nav ---------------------------------------------------------------*/

.l-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 24px;
  background: rgba(12, 13, 17, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Without an explicit flex-basis, the logo (a bare <img>, no reserved box)
   was the item flexbox chose to crush to 0 width once the row ran out of
   room — adding the login link tipped narrow viewports over that edge.
   flex-shrink:0 keeps it at its natural size always; .l-nav's own
   flex-wrap above is what actually resolves the tight width, by letting
   the language switcher / actions drop to a second line instead. */
.l-nav-brand { flex: 0 0 auto; }
.l-nav-brand img { height: 40px; width: auto; }
.l-nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: .95rem;
}
.l-nav-links a {
  color: var(--muted);
  text-decoration: none;
}
.l-nav-links a:hover { color: var(--ink); }
.l-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.l-nav-login {
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  padding: .5em .3em;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.l-nav-login:hover { color: var(--gold); border-bottom-color: var(--gold); }
.l-nav-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  transition: color .12s ease, background .12s ease;
}
.l-nav-discord:hover { color: #ffffff; background: #5865f2; }
.l-nav-cta {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  padding: .6em 1.3em;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(240, 184, 79, .22);
}
.l-nav-cta:hover { filter: brightness(1.08); }
.l-nav-beta {
  display: inline-block;
  margin-left: .6em;
  padding: .2em .7em;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

/* --- language switcher --------------------------------------------------*/

.l-nav-lang {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.l-lang-chip {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .02em;
  padding: .4em .7em;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.l-lang-chip:hover { color: var(--ink); }
.l-lang-chip.active {
  background: var(--gold);
  color: var(--gold-ink);
}

/* --- buttons ------------------------------------------------------------*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.8em;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #ffd27a, var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 10px 26px rgba(240, 184, 79, .28);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-large { padding: 1.1em 2.4em; font-size: 1.1rem; }

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

.hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 30%, rgba(239, 98, 98, .16), transparent 62%),
    radial-gradient(700px 420px at 12% 82%, rgba(240, 184, 79, .10), transparent 60%),
    linear-gradient(180deg, #0d0e13 0%, var(--bg) 100%);
}
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--gold);
  background: rgba(240, 184, 79, .09);
  border: 1px solid rgba(240, 184, 79, .28);
  padding: .45em 1em;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.08;
  margin-bottom: .4em;
}
.hero h1 .accent { color: var(--red); display: block; }
.hero-lede {
  font-size: 1.12rem;
  max-width: 50ch;
  color: #c3cad6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 16px; }
.hero-login-line { font-size: .92rem; margin-bottom: 18px; }
.hero-login-line a { color: var(--gold); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .8rem; font-weight: 700; color: var(--ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: .4em .85em; border-radius: 999px;
}
.chip svg { width: 14px; height: 14px; color: var(--green); flex: none; }

.hero-art { position: relative; }
.hero-art .frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(240, 184, 79, .35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65), 0 0 0 6px rgba(255, 255, 255, .03), 0 0 90px rgba(239, 98, 98, .18);
  transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
  transition: transform .4s ease;
}
.hero-art:hover .frame { transform: none; }
.hero-art img { width: 100%; height: auto; }
.hero-badge {
  position: absolute;
  left: -14px; bottom: -16px;
  background: rgba(10, 11, 15, .92);
  border: 1px solid rgba(239, 98, 98, .45);
  color: var(--ink);
  font-weight: 800; font-size: .82rem;
  padding: .7em 1.1em;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.hero-badge b { color: var(--red); }

/* --- facts strip -----------------------------------------------------------*/

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.facts-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  text-align: center;
}
.fact b {
  display: block;
  font-family: var(--font-title);
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1.1;
}
.fact span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.fact.live b { color: var(--red); }
.fact[hidden] { display: none; }

/* --- sections ---------------------------------------------------------------*/

.section-title { text-align: center; margin-bottom: .35em; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-lede { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.kicker {
  display: block; text-align: center;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  font-size: .74rem; color: var(--red); margin-bottom: 10px;
}

/* hardcore */
.hardcore { background: linear-gradient(180deg, var(--bg) 0%, #120a0c 100%); }
.hardcore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hardcore h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.hardcore h2 em { font-style: normal; color: var(--red); }
.pillars { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.pillars li {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.pillars .ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(239, 98, 98, .14); color: var(--red);
}
.pillars .ico svg { width: 20px; height: 20px; }
.pillars b { display: block; color: var(--ink); margin-bottom: 2px; }
.pillars span { font-size: .93rem; color: var(--muted); }
.shot {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.shot img { width: 100%; height: auto; }

/* classes */
.class-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.class-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px 14px;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.class-card:hover { transform: translateY(-4px); border-color: rgba(240, 184, 79, .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.class-card img { width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 10px; }
.class-card b { display: block; font-family: var(--font-title); font-size: .98rem; color: var(--ink); }
.class-card span { font-size: .78rem; color: var(--gold); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* showcase rows */
.showcase { display: grid; gap: 72px; }
.row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.row.flip { grid-template-columns: .9fr 1.1fr; }
.row.flip .shot { order: 2; }
.row h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.row ul { margin: 14px 0 0; padding-left: 1.15em; color: var(--muted); }
.row li { margin-bottom: 6px; }
.row li::marker { color: var(--gold); }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 20px 22px;
}
.feature-card .ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 12px;
  display: grid; place-items: center;
  background: rgba(240, 184, 79, .12); color: var(--gold);
}
.feature-card .ico svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: .4em; }
.feature-card p { font-size: .92rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 22px 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: var(--gold-ink);
  font-family: var(--font-title); font-weight: 900;
}
.step h3 { font-size: 1.05rem; }

/* updates */
.updates { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 12px; }
.updates li {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 18px;
}
.updates time { color: var(--gold); font-weight: 800; font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.updates b { color: var(--ink); }
.updates span { color: var(--muted); font-size: .93rem; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink);
  padding: 16px 28px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 12px;
  font-size: 1.5rem; color: var(--gold); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; }

/* final cta */
.cta-final {
  position: relative; text-align: center; padding: 96px 0 104px;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(239, 98, 98, .20), transparent 70%),
    linear-gradient(180deg, #100b0d, var(--bg-deep));
  border-top: 1px solid var(--line);
}
.cta-final h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.cta-final p { max-width: 560px; margin: 0 auto 28px; }

/* footer */
.l-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.l-footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 14px 24px; padding-top: 28px; padding-bottom: 28px;
}
.l-footer-inner p { margin: 0; font-size: .86rem; flex: 1 1 260px; }
.l-footer-links { display: flex; gap: 18px; font-size: .86rem; }
.l-footer-links a { color: var(--muted); text-decoration: none; }
.l-footer-links a:hover { color: var(--gold); }
.l-footer-discord { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .9rem; }
.l-footer-discord:hover { color: #fff; }

/* sticky mobile cta */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 11, 15, .94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* --- responsive ----------------------------------------------------------*/

@media (max-width: 980px) {
  .hero, .hardcore-grid, .row, .row.flip { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .shot { order: 0; }
  .hero { padding-top: 40px; }
  .hero-art .frame { transform: none; }
  .class-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .l-nav-links { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .class-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .class-card img { width: 96px; height: 96px; }
  .feature-grid { grid-template-columns: 1fr; }
  .updates li { grid-template-columns: 1fr; gap: 4px; }
  .hero-badge { left: 8px; bottom: -14px; }
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
  .l-nav { padding: 10px 14px; }
  .l-nav-login { display: none; }
  .l-nav-cta { padding: .5em 1em; font-size: .85rem; }
}

.steps, .feature-grid { margin-top: 40px; }
.faq { margin-top: 32px; }
.step h3 { margin-top: 4px; }
@media (max-width: 600px) {
  .facts-inner { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; padding: 16px; }
  .fact b { font-size: 1.4rem; }
}

/* Desktop client download */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; max-width: 760px; margin-left: auto; margin-right: auto; }
.dl-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); text-align: center; }
.dl-card.is-mine { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(240, 184, 79, .25), 0 12px 32px rgba(240, 184, 79, .10); }
.dl-card h3 { margin: 0 0 16px; font-size: 1.15rem; }
.dl-actions { display: grid; gap: 10px; justify-items: center; }
.dl-actions small { color: var(--muted); }
.dl-off { cursor: default; opacity: .7; }
.dl-off:hover { transform: none; border-color: var(--line); color: var(--ink); }
.dl-note { margin: 22px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: .9rem; }
.dl-actions .btn { font-size: .95rem; padding: .8em 1.4em; text-align: center; }
