/* LifeQuest — landing styles. Palette: void/panel/bone/rank-gold/mana-violet/verified-green. */
:root {
  --void: #12141d;
  --panel: #1c2030;
  --panel-edge: #2a3047;
  --bone: #edebe4;
  --bone-dim: #a9a89f;
  --gold: #e8b44a;
  --violet: #8a79ff;
  --verified: #3ecf8e;
  --danger: #e06a5a;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Chakra Petch", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- HUD (signature): scroll-XP bar ---------- */
.hud {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-edge);
}
.hud-inner {
  max-width: 1060px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 16px;
}
.hud-logo {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bone); text-decoration: none; white-space: nowrap;
}
.hud-logo b { color: var(--gold); }
.xpbar {
  flex: 1; height: 10px; border: 1px solid var(--panel-edge);
  border-radius: 5px; overflow: hidden; background: var(--panel);
}
.xpbar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transition: width 120ms linear;
}
.hud-xp {
  font-family: var(--mono); font-size: 12px; color: var(--bone-dim);
  min-width: 15ch; text-align: right; white-space: nowrap;
}
.hud-xp .unverified { color: var(--danger); }
.hud-cta {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--void); background: var(--gold);
  padding: 7px 14px; border-radius: 4px; text-decoration: none; white-space: nowrap;
}
.hud-cta:hover { background: #f2c463; }

/* ---------- Hero ---------- */
.hero { padding: 130px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 18px;
}
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 6vw, 62px); line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.01em;
}
h1 .real { color: var(--gold); }
.hero p.lede { margin: 22px 0 30px; font-size: 19px; color: var(--bone-dim); max-width: 46ch; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px; border-radius: 5px;
}
.btn-gold { background: var(--gold); color: var(--void); }
.btn-gold:hover { background: #f2c463; }
.btn-ghost { border: 1px solid var(--panel-edge); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Rank card */
.rank-card {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 10px; padding: 26px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.35);
}
.rank-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.rank-name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.rank-badge {
  font-family: var(--display); font-weight: 700; font-size: 28px;
  color: var(--gold); border: 2px solid var(--gold); border-radius: 6px;
  width: 46px; height: 46px; display: grid; place-items: center;
}
.stat { margin-bottom: 14px; }
.stat-label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--bone-dim); margin-bottom: 5px;
}
.stat-label .v { color: var(--verified); }
.stat-label .u { color: var(--danger); }
.stat-track { height: 7px; background: var(--void); border-radius: 4px; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 4px; background: var(--violet); }
.stat-fill.gold { background: var(--gold); }
.rank-foot { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--bone-dim); }

/* ---------- Sections ---------- */
section { padding: 72px 0; border-top: 1px solid var(--panel-edge); }
h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 4vw, 36px); line-height: 1.15; margin-bottom: 14px;
}
.section-lede { color: var(--bone-dim); max-width: 60ch; margin-bottom: 40px; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 8px; padding: 22px;
}
.tier h3 { font-family: var(--display); font-size: 16px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.tier .xp-tag { font-family: var(--mono); font-size: 12px; margin-bottom: 12px; display: inline-block; padding: 2px 8px; border-radius: 3px; }
.xp-full { color: var(--verified); border: 1px solid var(--verified); }
.xp-half { color: var(--danger); border: 1px solid var(--danger); }
.tier p { font-size: 15px; color: var(--bone-dim); }

.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.loop-step { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 8px; padding: 20px; }
.loop-step .k { font-family: var(--mono); font-size: 12px; color: var(--violet); margin-bottom: 8px; }
.loop-step h3 { font-family: var(--display); font-size: 15px; text-transform: uppercase; margin-bottom: 8px; }
.loop-step p { font-size: 14px; color: var(--bone-dim); }

.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.domain { border: 1px solid var(--panel-edge); border-radius: 8px; padding: 20px; }
.domain h3 { font-family: var(--display); font-size: 16px; text-transform: uppercase; margin-bottom: 6px; }
.domain p { font-family: var(--mono); font-size: 12.5px; color: var(--bone-dim); line-height: 1.8; }

.honest { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 10px; padding: 30px; }
.honest h2 { font-size: 22px; }
.honest ul { list-style: none; margin-top: 14px; }
.honest li { font-size: 15px; color: var(--bone-dim); padding: 6px 0 6px 26px; position: relative; }
.honest li::before { content: "▸"; position: absolute; left: 4px; color: var(--gold); }

/* ---------- Download page ---------- */
.dl-hero { padding: 140px 0 40px; }
.quest-card {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 10px; padding: 30px; margin-bottom: 22px;
}
.quest-card h3 { font-family: var(--display); font-size: 17px; text-transform: uppercase; margin-bottom: 12px; }
.quest-meta { font-family: var(--mono); font-size: 12.5px; color: var(--bone-dim); line-height: 2; }
.quest-meta b { color: var(--bone); font-weight: 500; }
.steps { counter-reset: step; list-style: none; margin-top: 10px; }
.steps li {
  counter-increment: step; padding: 10px 0 10px 44px; position: relative;
  color: var(--bone-dim); font-size: 15px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  font-family: var(--display); font-weight: 700; color: var(--gold);
  border: 1px solid var(--panel-edge); border-radius: 5px;
  width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px;
}
.note { font-size: 14px; color: var(--bone-dim); border-left: 3px solid var(--violet); padding-left: 14px; margin-top: 18px; }

footer {
  border-top: 1px solid var(--panel-edge); padding: 36px 0 48px;
  font-family: var(--mono); font-size: 12.5px; color: var(--bone-dim);
}
footer a { color: var(--bone-dim); }

@media (max-width: 840px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .tier-grid, .loop, .domains { grid-template-columns: 1fr 1fr; }
  .hud-xp { display: none; }
}
@media (max-width: 540px) {
  .tier-grid, .loop, .domains { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
}
