/* Landing page — full-bleed art sections with smooth dark transitions,
   fixed glass nav, black pill CTAs, Press Start 2P throughout */

:root {
  --cream: #f4e7d0;
  --wood: #3a2731;
  --ink: #0d0d0d;
  --gold: #CCFF00;
  --fade: #0c1710;          /* shared dark tone where sections blend */
  --radius: 14px;
  --font-pixel: 'Press Start 2P', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--fade);
  color: var(--cream);
  font-family: var(--font-pixel);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Shared ---------- */

.eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(16px, 2.4vw, 26px);
  line-height: 1.6;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  margin-bottom: 26px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 18px 36px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.btn-pill:active { transform: translateY(1px); }

/* Full-bleed sections share this base; gradients blend them into --fade
   at the top and bottom so one flows smoothly into the next */
.features,
.story,
.hero-full {
  position: relative;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.features::before,
.story::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: linear-gradient(to bottom, var(--fade), transparent);
  pointer-events: none;
}

.hero-full::after,
.features::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to top, var(--fade), transparent);
  pointer-events: none;
}

/* Sections 2 & 3 match the hero's full-viewport height */
.features,
.story {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 110px 24px;
  text-align: center;
}

/* ---------- Fixed glass nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px clamp(24px, 4vw, 56px);
}

.nav-logo { justify-self: start; }
.nav > .btn-outline { justify-self: end; }

/* Progressive blur: strongest at the top edge, fading to none at the
   nav's bottom. Two masked backdrop layers approximate the gradient. */
.nav::before,
.nav::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.nav::before {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, black 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 75%);
}

.nav::after {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 35%, transparent 100%);
}

.nav-logo img { height: 48px; }

.btn-outline {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 12px 24px;
  transition: background 0.12s, color 0.12s;
}

.btn-outline:hover {
  background: #fff;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  opacity: 0.85;
  transition: opacity 0.12s;
}

.nav-link:hover { opacity: 1; }

.nav-social {
  display: inline-flex;
  align-items: center;
  color: #fff;
  opacity: 0.85;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  transition: opacity 0.12s;
}

.nav-social:hover { opacity: 1; }

.nav-social svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */

.hero-full {
  min-height: 100vh;
  background-image: url('assets/landing/hero.png');
  display: flex;
  flex-direction: column;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 10vh;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: clamp(300px, 36vw, 520px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: clamp(10px, 1.3vw, 13px);
  color: #fff;
  text-shadow: 2px 2px 0 rgba(20, 40, 24, 0.75);
  margin-bottom: 36px;
}

/* ---------- Features ---------- */

.features {
  background-image: url('assets/landing/forest.png');
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  text-align: left;
}

.card {
  background: var(--cream);
  border: 6px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  padding: 28px 24px;
}

.card h3 {
  font-size: 12px;
  line-height: 1.7;
  color: var(--wood);
  margin-bottom: 14px;
}

.card p {
  font-size: 9px;
  line-height: 2;
  color: #6d5440;
}

/* ---------- Story ---------- */

.story {
  background-image: url('assets/landing/camp.png');
}

.story-inner {
  max-width: 720px;
}

.story-copy {
  font-size: 10px;
  line-height: 2.2;
  color: rgba(244, 231, 208, 0.92);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
  margin-bottom: 40px;
}

.story-copy em {
  font-style: normal;
  color: var(--gold);
}

/* ---------- Footer ---------- */

.footer {
  background: #000;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 8px;
  color: rgba(244, 231, 208, 0.65);
}

.footer a { color: var(--gold); }

.footer .x-link {
  display: inline-flex;
  color: rgba(244, 231, 208, 0.65);
  transition: color 0.12s;
}

.footer .x-link:hover { color: #fff; }

/* ---------- Lore page ---------- */

.lore-hero {
  position: relative;
  min-height: 100vh;
  background: url('assets/landing/hero.png') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.lore-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 23, 16, 0.55) 0%, rgba(12, 23, 16, 0.35) 40%, var(--fade) 100%);
  z-index: 0;
  pointer-events: none;
}

.lore-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 130px 24px 60px;
  text-align: center;
}

.lore-hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.6vw, 28px);
  line-height: 1.7;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  margin-bottom: 32px;
}

.lore-intro {
  font-size: 11px;
  line-height: 2.2;
  color: rgba(244, 231, 208, 0.92);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
  margin-bottom: 18px;
}

.lore-intro-soft {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}

.lore-lands,
.lore-factions,
.lore-people,
.lore-cta {
  background: var(--fade);
  position: relative;
  isolation: isolate;
}

.lore-factions {
  background: url('assets/landing/forest.png') center / cover no-repeat var(--fade);
}

.lore-factions::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--fade) 0%, rgba(12, 23, 16, 0.78) 30%, rgba(12, 23, 16, 0.78) 70%, var(--fade) 100%);
  z-index: 0;
  pointer-events: none;
}

.lore-factions .section-inner { z-index: 1; }

/* The Lands — single column, narrative entries */
.land-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  margin: 44px auto 0;
  text-align: left;
}

.land {
  background: var(--cream);
  border: 6px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
  padding: 22px 28px;
}

.land h3 {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--wood);
  margin-bottom: 12px;
}

.land p {
  font-size: 10px;
  line-height: 2;
  color: var(--ink-soft, #6d5440);
}

/* Factions — pixel sprite + text card. 6-col grid lets us center the bottom row of 2 cards under the row of 3. */
.faction-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  margin: 44px auto 0;
  max-width: 1000px;
  text-align: left;
}

.faction-card { grid-column: span 2; }
.faction-card:nth-child(4) { grid-column: 2 / span 2; }
.faction-card:nth-child(5) { grid-column: 4 / span 2; }

.faction-card {
  background: var(--cream);
  border: 6px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Show the first 192x192 frame natively — sprite sheets stored as <img> use object-fit */
.faction-img {
  width: 144px;
  height: 144px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: 6px;
}

.faction-card h3 {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--wood);
  margin: 4px 0 14px;
  line-height: 1.7;
}

.faction-card p {
  font-size: 9px;
  line-height: 2;
  color: var(--ink-soft, #6d5440);
}

.faction-card.faction-red    { box-shadow: 0 10px 0 rgba(120, 30, 30, 0.45); }
.faction-card.faction-purple { box-shadow: 0 10px 0 rgba(60, 30, 110, 0.45); }
.faction-card.faction-black  { box-shadow: 0 10px 0 rgba(20, 20, 30, 0.55); }
.faction-card.faction-goblin { box-shadow: 0 10px 0 rgba(80, 60, 30, 0.45); }

/* The People — avatar-led cards */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 44px;
  text-align: left;
}

.person-card {
  background: var(--cream);
  border: 6px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  padding: 24px 22px 26px;
  text-align: center;
}

.person-avatar {
  width: 128px;
  height: 128px;
  image-rendering: pixelated;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.25));
}

.person-card h3 {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--wood);
  margin-bottom: 8px;
}

.person-tag {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--gold);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
  margin-bottom: 14px;
}

.person-card p:not(.person-tag) {
  font-size: 9px;
  line-height: 2;
  color: var(--ink-soft, #6d5440);
  text-align: left;
}

/* Final CTA */
.lore-cta {
  text-align: center;
}

.lore-cta .section-inner {
  padding: 130px 24px;
}

.lore-cta h2 {
  margin-bottom: 18px;
}

.lore-cta .lore-intro {
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---------- Roadmap page ---------- */

.roadmap-hero {
  position: relative;
  background: url('assets/landing/camp.png') center / cover no-repeat var(--fade);
  isolation: isolate;
}

.roadmap-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 23, 16, 0.6) 0%, rgba(12, 23, 16, 0.45) 45%, var(--fade) 100%);
  z-index: 0;
  pointer-events: none;
}

.roadmap-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 24px 90px;
  text-align: center;
}

.roadmap-hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 3vw, 30px);
  line-height: 1.7;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  margin-bottom: 28px;
}

.roadmap-intro {
  font-size: 11px;
  line-height: 2.2;
  color: rgba(244, 231, 208, 0.92);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
}

.hl-now  { color: #7fd17f; }
.hl-next { color: #6fb7ec; }

.roadmap-board {
  background: var(--fade);
  padding: 20px 0 40px;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.phase {
  background: var(--cream);
  border: 6px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  padding: 24px 20px;
}

.phase-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 3px solid rgba(58, 39, 49, 0.15);
}

.phase-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--wood);
  flex-shrink: 0;
}

.phase-head h2 {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--wood);
  text-shadow: none;
  margin: 0;
}

.phase-sub {
  width: 100%;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #9b7e63;
}

.phase-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phase-items li {
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.9;
  color: var(--ink-soft, #6d5440);
  padding-left: 16px;
  position: relative;
}

.phase-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--wood);
}

.phase-items li strong { color: var(--wood); }

.phase-note {
  display: block;
  margin-top: 8px;
  font-size: 8px;
  line-height: 1.9;
  color: #a3733b;
  padding: 8px 10px;
  background: rgba(243, 179, 64, 0.16);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
}

/* Phase accent colors */
.phase-now  .phase-dot { background: #5bbf5b; }
.phase-next .phase-dot { background: var(--blue); }
.phase-later .phase-dot { background: #a07bd6; }
.phase-exploring .phase-dot { background: #b8ad9c; }

.phase-exploring { opacity: 0.92; }

/* ---------- Token utility spotlight ---------- */

.token-spotlight {
  background: var(--fade);
  padding: 0 0 10px;
}

.token-spotlight-inner {
  max-width: 820px;
  padding: 0 24px;
  text-align: left;
}

.token-card {
  background: var(--cream);
  border: 6px solid var(--wood);
  border-radius: var(--radius);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  padding: 40px clamp(24px, 5vw, 56px);
  text-align: center;
}

.token-eyebrow {
  color: #a3733b;
  text-shadow: none;
  margin-bottom: 16px;
}

.token-heading {
  color: var(--wood);
  text-shadow: none;
  font-size: clamp(15px, 2vw, 20px);
  margin-bottom: 20px;
}

.token-copy {
  color: #6d5440;
  text-shadow: none;
  max-width: 600px;
  margin: 0 auto 36px;
}

.econ-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
  margin-bottom: 32px;
}

.econ-item {
  background: rgba(58, 39, 49, 0.05);
  border: 3px solid var(--wood);
  border-radius: 10px;
  padding: 18px 16px;
  transition: transform 0.12s ease;
}

.econ-item:hover { transform: translateY(-3px); }

.econ-item-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--wood);
  margin-bottom: 10px;
}

.econ-item-copy {
  font-size: 9px;
  line-height: 1.9;
  color: #6d5440;
}

.token-note {
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
}

.roadmap-cta {
  background: var(--fade);
  text-align: center;
}

.roadmap-cta .section-inner {
  padding: 110px 24px 130px;
}

.roadmap-cta h2 { margin-bottom: 18px; }

.roadmap-cta .roadmap-intro {
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---------- Herald's Purse page (reuses the roadmap blocks) ---------- */

.herald-hero {
  background-image: url('assets/landing/herald.jpg');
}

/* Stacked roadmap cards need breathing room between them */
.herald-hero + main .token-spotlight { padding-bottom: 36px; }

.herald-rules { text-align: left; }
.herald-rules .token-heading { text-align: center; }
.herald-rules .eyebrow { text-align: center; }

.herald-list {
  max-width: 600px;
  margin: 0 auto 32px;
}

.herald-winners {
  display: grid;
  gap: 16px;
  text-align: left;
}

.herald-empty {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.herald-week-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.herald-week-list a {
  color: var(--wood);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .board-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 110px 24px; }
  .nav-logo img { height: 38px; }
  .nav-links { gap: 18px; }
  .faction-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .econ-grid { grid-template-columns: 1fr; }
  /* .section-inner's mobile padding would put 220px between the stacked herald cards */
  .herald-hero + main .token-spotlight-inner { padding: 0 24px; }
}

@media (max-width: 560px) {
  .board-grid { grid-template-columns: 1fr; }
}
