/* ==========================================================================
   Classic Raiders — landing page
   --------------------------------------------------------------------------
   Palette and type deliberately match the guild portal's WoW-themed pages
   (admin/src/style.css, the .rp-page block) so the landing page and the app
   read as one product rather than two projects that happen to be linked.
   ========================================================================== */

:root {
  --gold:      #c8a24e;
  --gold-lt:   #e8cf94;
  --gold-dim:  #6b5a35;
  --stone:     #211c15;
  --stone-dk:  #15110c;
  --stone-dkr: #0e0b07;
  --ink:       #f1e7d0;
  --ink-dim:   #c3b693;
  --ink-mute:  #8f8368;
  --line:      #4d3f25;
  --maxw:      1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone-dk);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

a { color: var(--gold-lt); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

em { color: var(--ink-dim); font-style: italic; }
strong { color: var(--gold-lt); font-weight: 600; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Keyboard users get out of the nav without tabbing the whole thing. */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--stone);
  border: 1px solid var(--gold);
  border-radius: 4px;
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-gold {
  background: linear-gradient(180deg, #f0d791, #c8a24e 55%, #9c7c33);
  border-color: #8a6c2c;
  color: #241c0c;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.btn-gold:hover { color: #241c0c; filter: brightness(1.08); }

.btn-ghost {
  background: rgba(200, 162, 78, 0.06);
  border-color: var(--gold-dim);
  color: var(--gold-lt);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); background: rgba(200, 162, 78, 0.14); }

/* ── top bar ────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 11, 7, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ink);
}
.brand:hover { color: var(--gold-lt); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}
.topnav > a:not(.btn) { color: var(--ink-dim); }
.topnav > a:not(.btn):hover { color: var(--gold-lt); text-decoration: none; }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(200, 162, 78, 0.16), transparent 70%),
    linear-gradient(180deg, var(--stone) 0%, var(--stone-dk) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
/* The thin gold rule the portal's cards use, reused as a section divider. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-inner { max-width: 800px; }

.eyebrow {
  margin: 0 0 18px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  font-size: clamp(30px, 5.2vw, 50px);
  margin-bottom: 22px;
  background: linear-gradient(180deg, #f7ead0, #c8a24e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 18px;
  color: var(--ink-dim);
  margin: 0 auto 32px;
  max-width: 680px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ── sections ───────────────────────────────────────────────────────────── */

.section { padding: 80px 0; }
.section-alt {
  background: linear-gradient(180deg, var(--stone-dkr), var(--stone-dk));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--gold-lt);
  text-align: center;
  margin-bottom: 14px;
}
.section-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-lede {
  max-width: 720px;
  margin: 26px auto 48px;
  text-align: center;
  color: var(--ink-dim);
  font-size: 17px;
}
.section-title + .cards,
.section-title + .start-grid { margin-top: 48px; }

/* ── addon cards ────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.25)),
    linear-gradient(180deg, #2c2415, #1a1510);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card h3 { font-size: 22px; color: var(--gold-lt); }
.card-sub {
  margin: 6px 0 20px;
  color: var(--ink-mute);
  font-size: 14px;
}
.tag {
  flex: none;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid;
}
.tag-live { color: #9ad39e; border-color: #3f6b43; background: rgba(102, 187, 106, 0.1); }

.feats { margin: 0; padding: 0; list-style: none; }
.feats li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 13px;
  color: var(--ink-dim);
  font-size: 15px;
}
.feats li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-size: 11px;
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  color: var(--ink-mute);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

/* ── sync flow ──────────────────────────────────────────────────────────── */

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.flow-step {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #221c12, #16110b);
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: #241c0c;
  background: linear-gradient(180deg, #f0d791, #c8a24e 55%, #9c7c33);
}
.flow-step h4 { font-size: 16px; color: var(--gold-lt); margin-bottom: 8px; }
.flow-step p { margin: 0; font-size: 14px; color: var(--ink-dim); }

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.note {
  padding: 20px 22px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 4px 4px 0;
}
.note h4 { font-size: 15px; color: var(--gold-lt); margin-bottom: 7px; }
.note p { margin: 0; font-size: 14px; color: var(--ink-dim); }

/* ── get started ────────────────────────────────────────────────────────── */

.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.start-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #2b2418, #1b150c);
  text-align: center;
}
.start-card h3 { font-size: 19px; color: var(--gold-lt); margin-bottom: 10px; }
.start-card p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 0 0 22px;
  flex: 1;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: var(--stone-dkr);
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold);
  margin: 0 0 12px;
}
.footer-legal {
  max-width: 620px;
  margin: 0 auto 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-mute);
}
.footer-links { margin: 0; font-size: 13px; }
.footer-links a { margin: 0 8px; }
.footer-links span { color: var(--gold-dim); }

/* ── narrow screens ─────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 58px 0; }
  .topnav { gap: 16px; font-size: 13px; }
  /* The anchors are all reachable by scrolling; the portal button is not, so
     it is the one that stays. */
  .topnav > a:not(.btn) { display: none; }
  .lede { font-size: 16px; }
}

/* Respect a reduced-motion preference: the only motion here is decorative. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
