/* =====================================================================
   HoodValley - landing site
   "Sunlit voxel" design system: the game's warm palette and rounded
   type, flattened into an airy modern layout. Signature motif: the
   pixel-stair edge (a voxel crenellation, pure static CSS) that marks
   the hero transition and frames the dark lake band.
   Performance rules: no blur/backdrop-filter, no infinite animations,
   transitions on transform/opacity only. Idle page = zero work.
   ===================================================================== */

:root {
  /* surfaces */
  --cream:#faf3e0; --cream-2:#f3e8cb; --card:#fffdf4;
  --line:#e6d7ae; --line-soft:#efe4c6;
  /* ink */
  --ink:#33261a; --ink-soft:#705c3e; --ink-faint:#a38d6b;
  /* brand accents (from the game) */
  --leaf:#57a23e; --leaf-dark:#3d7a2a; --leaf-deep:#2e5f20; --leaf-tint:#e9f2dc;
  --gold:#e6a93b; --gold-2:#ffd36b; --gold-dark:#b9842a;
  --water:#3f9fc4; --water-dark:#2b7fa3; --sky:#8ecae6;
  --red:#c0492f; --red-dark:#9a3520;
  /* lake band (fish collection) */
  --lake:#0e2a31; --lake-2:#143840; --lake-3:#17414b; --lake-line:#2a5a66;
  --lake-text:#f3ecd8; --lake-sub:#a3c3bd;

  /* legacy aliases (docs.css builds on these) */
  --wood-dark:#3a2b18; --wood:#5e3f28; --wood-2:#6f4c2e; --wood-edge:#c9a878;
  --parch:#f7eed6; --parch-2:#f0e3c0; --parch-edge:#e2d3a8;

  /* rarity (from game's FishCard) */
  --r-common:#b0bec5;    --r-common-deep:#5a6b73;
  --r-uncommon:#81c784;  --r-uncommon-deep:#3a6b41;
  --r-rare:#5b9bf6;      --r-rare-deep:#274b86;
  --r-epic:#c06cda;      --r-epic-deep:#5e2a73;
  --r-legendary:#ffb74d; --r-legendary-deep:#8a5a14;
  --r-mythic:#ff5e7e;    --r-mythic-deep:#7a1d36;

  --radius:18px; --radius-sm:12px; --radius-pill:999px;
  --shadow:0 16px 40px rgba(52,38,16,.18);
  --shadow-sm:0 2px 6px rgba(52,38,16,.10);
  --shadow-soft:0 8px 22px rgba(52,38,16,.08);

  --font-display:'Fredoka',system-ui,sans-serif;
  --font-body:'Nunito',system-ui,sans-serif;
  --font-hand:'Fredoka','Nunito',system-ui,sans-serif; /* legacy alias */

  --px:14px; /* pixel-edge cell size */
  --maxw:1160px;
}

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

html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  font-family:var(--font-body);
  color:var(--ink);
  background:linear-gradient(180deg,#fdf8ec 0%, var(--cream) 420px);
  background-color:var(--cream);
  line-height:1.55;
  overflow-x:hidden;
}

a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }

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

/* legacy atmosphere layers (docs.html still renders them): now inert */
.atmosphere, .mesh, .grain { display:none; }

/* =====================================================================
   Pixel-stair edge (signature motif)
   Two static background layers: a solid bar plus a row of square teeth.
   ===================================================================== */
.px-edge {
  --c:var(--cream);
  height:calc(var(--px) * 2); pointer-events:none;
  background:
    repeating-linear-gradient(90deg, var(--c) 0 var(--px), transparent var(--px) calc(var(--px) * 2))
      left top / calc(var(--px) * 2) var(--px) repeat-x,
    linear-gradient(var(--c), var(--c))
      left bottom / 100% var(--px) repeat-x;
}
.px-edge-flip { transform:scaleY(-1); }

/* =====================================================================
   Buttons: chunky game-style push buttons, flat colors
   ===================================================================== */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  flex-direction:column;
  font-family:var(--font-display); font-weight:600; cursor:pointer;
  border:none; border-radius:var(--radius-sm); color:#fff; line-height:1.05;
  text-align:center; position:relative;
  transition:transform .12s ease;
}
.btn-sm { font-size:14px; padding:9px 18px; }
.btn-lg { font-size:18px; padding:15px 28px; }
.btn-leaf { background:var(--leaf); box-shadow:0 3px 0 var(--leaf-dark); }
.btn-gold { background:linear-gradient(180deg,var(--gold-2),var(--gold)); color:#4a2f06;
  box-shadow:0 3px 0 var(--gold-dark); }
.btn-wood { background:#3a2b18; color:var(--parch); box-shadow:0 3px 0 #1f1508; }
.btn:hover { transform:translateY(-2px); }
.btn:active { transform:translateY(2px); }
.btn:focus-visible { outline:3px solid var(--water); outline-offset:2px; }
.btn-note { font-family:var(--font-body); font-weight:700; font-size:11px;
  opacity:.8; letter-spacing:.2px; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position:sticky; top:0; z-index:50;
  padding:12px 0;
  transition:background .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  background:rgba(250,243,224,.97);
  border-bottom:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.header-inner { display:flex; align-items:center; gap:18px; }
.wordmark { display:flex; align-items:center; gap:10px; }
.wordmark-mascot { height:34px; width:auto; image-rendering:pixelated; }
.wordmark-text { font-family:var(--font-display); font-weight:700; font-size:24px;
  color:var(--ink); letter-spacing:.3px; }
.wordmark-accent { color:var(--leaf-dark); }
.header-nav { display:flex; gap:24px; margin-left:auto; }
.header-nav a { font-family:var(--font-display); font-weight:500; font-size:15px;
  color:var(--ink-soft); position:relative; padding:2px 0; }
.header-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-2px;
  height:2px; border-radius:2px; background:var(--leaf); transition:right .2s ease; }
.header-nav a:hover { color:var(--ink); }
.header-nav a:hover::after { right:0; }
.header-x { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  margin:0 14px 0 20px; border-radius:10px; color:var(--ink); transition:background .15s ease; }
.header-x:hover { background:rgba(47,66,32,.08); }

/* =====================================================================
   Hero (video backdrop kept; overlay + copy polished)
   ===================================================================== */
.hero { position:relative; overflow:hidden; min-height:90vh; display:flex; flex-direction:column;
  justify-content:center; padding:110px 0 92px; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.hero-overlay { position:absolute; inset:0; z-index:-1;
  background:
    radial-gradient(120% 92% at 50% 42%, rgba(18,34,16,.30) 0%, rgba(11,22,10,.74) 100%),
    linear-gradient(180deg, rgba(11,22,10,.48) 0%, rgba(11,22,10,.16) 36%, rgba(14,24,12,.85) 100%); }
.hero-inner { position:relative; z-index:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center; text-align:center; }
.hero-copy { display:flex; flex-direction:column; align-items:center; max-width:820px; }

/* eyebrow pill: quiet leaf pill on light pages (docs), dark glass on video */
.eyebrow { display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-display); font-weight:500; font-size:13px; letter-spacing:.02em;
  color:var(--leaf-dark); background:var(--leaf-tint);
  border:1px solid #cfe4bd; padding:5px 14px; border-radius:var(--radius-pill); }
.eyebrow .dot { width:8px; height:8px; border-radius:50%; background:var(--leaf);
  box-shadow:0 0 0 4px rgba(98,165,68,.28); }
.hero .eyebrow { color:#eaf6df; background:rgba(12,26,10,.55); border-color:rgba(255,255,255,.28); }
.hero .eyebrow .dot { background:#8fdb6e; box-shadow:0 0 0 4px rgba(143,219,110,.25); }

.hero-title { font-family:var(--font-display); font-weight:600;
  font-size:clamp(40px, 5.8vw, 66px); line-height:1.04; color:#fff;
  margin:22px 0 16px; letter-spacing:.2px; text-shadow:0 3px 18px rgba(0,0,0,.5); }
.title-leaf { color:#c7f3a6; }
.hero-hook { font-size:18px; color:rgba(255,255,255,.94); max-width:36em; font-weight:600;
  margin:0 auto; text-shadow:0 1px 12px rgba(0,0,0,.55); }

.hero-ctas { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; margin:28px 0 20px; }
.hero .btn-wood { background:rgba(20,14,6,.72); box-shadow:0 3px 0 rgba(0,0,0,.55); }

.hero-bullets { display:flex; gap:18px; flex-wrap:wrap; justify-content:center; list-style:none;
  font-weight:800; color:#fff; font-size:14px; text-shadow:0 1px 8px rgba(0,0,0,.55); }
.hero-bullets li { display:flex; align-items:center; gap:7px; }
.tick { width:16px; height:16px; border-radius:50%; flex:none;
  background:var(--leaf); position:relative;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.35); }
.tick::after { content:""; position:absolute; left:5px; top:3px; width:4px; height:7px;
  border:solid #fff; border-width:0 2px 2px 0; transform:rotate(40deg); }

/* hero live-stats row: solid glass, no blur */
.hero-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:30px 0 18px;
  width:100%; max-width:640px; }
.hstat { display:flex; flex-direction:column; align-items:center; gap:2px; padding:12px 8px;
  background:rgba(10,20,8,.52); border:1px solid rgba(255,255,255,.20); border-radius:14px; }
.hstat-n { font-family:var(--font-display); font-weight:600; font-size:clamp(20px,3vw,28px); color:#fff;
  line-height:1.1; font-variant-numeric:tabular-nums; }
.hstat-l { font-family:var(--font-body); font-weight:700; font-size:11.5px; letter-spacing:.02em;
  color:rgba(255,255,255,.78); }

/* token contract-address pill */
.hero-ca { display:inline-flex; align-items:center; gap:10px; padding:8px 16px; max-width:96vw;
  background:rgba(10,20,8,.52); border:1px solid rgba(255,255,255,.20); border-radius:var(--radius-pill); }
.hero-ca-tag { font-family:var(--font-display); font-weight:600; font-size:12px; color:#c7f3a6;
  letter-spacing:.04em; flex:none; }
.hero-ca-addr { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12.5px; color:rgba(255,255,255,.92);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:46vw; }

/* pixel edge at the hero base: the page bites into the video */
.hero-edge { position:absolute; left:0; right:0; bottom:-1px; z-index:2; --c:var(--cream); }

/* =====================================================================
   Icon strip (static: what you'll gather in the valley)
   ===================================================================== */
.icon-strip { padding:30px 0 0; }
.icon-strip-row { display:flex; flex-wrap:wrap; justify-content:center; gap:20px 28px; }
.icon-strip-row img { width:40px; height:40px; object-fit:contain; opacity:.92; }

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding:84px 0; }
.section-head { text-align:center; max-width:700px; margin:0 auto 46px; }
.kicker { font-family:var(--font-body); font-weight:800; font-size:12.5px;
  letter-spacing:.14em; text-transform:uppercase; color:var(--leaf-dark); margin-bottom:8px; }
.section-title { font-family:var(--font-display); font-weight:600;
  font-size:clamp(30px,3.8vw,44px); color:var(--ink); letter-spacing:.2px; line-height:1.12; }
.section-sub { color:var(--ink-soft); font-size:17px; font-weight:600; margin-top:12px; }

/* ---------- shared flat card (also used by docs.css) ---------- */
.panel { background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow-soft); }
.panel-inner { height:100%; border-radius:inherit; }

/* ---------- features ---------- */
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.feature-wide { grid-column:span 2; }
.feature-card { transition:transform .18s ease; }
.feature-card:hover { transform:translateY(-4px); }
.feature-inner { padding:26px 26px 28px; display:flex; flex-direction:column; gap:12px; }
.feature-wallet { flex-direction:row; align-items:center; gap:22px; }
.feature-icons { display:flex; gap:8px; align-items:flex-end; }
.feature-icons img { width:44px; height:44px; object-fit:contain; }
.feature-wallet .feature-icons img { width:60px; height:60px; }
.feature-inner h3 { font-family:var(--font-display); font-weight:600; font-size:21px;
  color:var(--ink); }
.feature-inner p { color:var(--ink-soft); font-weight:600; font-size:15.5px; }

/* =====================================================================
   Fish showcase: the lake at dusk. The page's one dark, bold moment.
   ===================================================================== */
.fish-showcase { background:linear-gradient(180deg,var(--lake) 0%, var(--lake-2) 100%);
  margin-top:64px; }
.band-edge { --c:var(--cream); }
.fish-wrap { padding-top:56px; padding-bottom:72px; }

.fish-showcase .kicker { color:#8fd07a; }
.fish-showcase .section-title { color:var(--lake-text); }
.fish-showcase .fish-count { color:var(--gold-2); }
.fish-showcase .section-sub { color:var(--lake-sub); }
.fish-showcase .section-sub strong { color:var(--lake-text); }

.fish-tally { display:flex; flex-wrap:wrap; justify-content:center; gap:8px 0;
  margin:18px auto 0; width:fit-content; max-width:100%; padding:9px 18px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius-pill); }
.tally-item { font-family:var(--font-body); font-weight:700; font-size:12.5px;
  color:var(--lake-sub); letter-spacing:.2px; padding:0 11px; }
.tally-item b { color:var(--gold-2); font-weight:900; }
.tally-item + .tally-item { border-left:1px solid rgba(255,255,255,.14); }

.fish-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:start;
  max-width:960px; margin:0 auto; }
.fish-card { position:relative; background:var(--lake-3); border:1px solid var(--lake-line);
  border-radius:var(--radius); padding:10px 10px 8px; overflow:hidden;
  transition:transform .2s ease; }
/* rarity accent bar across the top of each card */
.fish-card::before { content:""; position:absolute; left:0; right:0; top:0; height:5px;
  background:var(--tier,transparent); }
.fish-card:hover { transform:translateY(-5px); }
.fish-frame { position:relative; border-radius:10px; overflow:hidden;
  display:grid; place-items:center; padding:14px; aspect-ratio:1/1;
  background:
    radial-gradient(62% 56% at 50% 46%, var(--frame-glow,transparent), transparent 74%),
    linear-gradient(180deg,#0d232a,#0a1c22); }
.fish-frame img { width:auto; height:auto; max-width:84%; max-height:84%;
  object-fit:contain; transition:transform .25s ease; }
.fish-card:hover .fish-frame img { transform:translateY(-4px) scale(1.04); }
.fish-meta { display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:11px 4px 2px; }
.fish-name { font-family:var(--font-display); font-weight:500; font-size:14.5px;
  color:var(--lake-text); }
.fish-sub { font-family:var(--font-body); font-weight:700; font-size:11.5px; letter-spacing:.2px;
  color:rgba(243,236,216,.55); padding:1px 4px 4px; }
.fish-sub b { color:var(--gold-2); }

.rarity-chip { font-family:var(--font-display); font-weight:600; font-size:12.5px;
  color:#fff; padding:4px 13px; border-radius:var(--radius-pill); letter-spacing:.3px;
  white-space:nowrap; }
.rarity-common    { background:var(--r-common); color:#22303a; }
.rarity-uncommon  { background:var(--r-uncommon); color:#173a1d; }
.rarity-rare      { background:var(--r-rare); color:#0c2350; }
.rarity-epic      { background:var(--r-epic); color:#33103f; }
.rarity-legendary { background:var(--r-legendary); color:#3a2606; }
.rarity-mythic    { background:var(--r-mythic); color:#4a0d1f; }

.r-common    { --frame-glow:rgba(176,190,197,.30); --tier:var(--r-common); }
.r-uncommon  { --frame-glow:rgba(129,199,132,.30); --tier:var(--r-uncommon); }
.r-rare      { --frame-glow:rgba(91,155,246,.32);  --tier:var(--r-rare); }
.r-epic      { --frame-glow:rgba(192,108,218,.34); --tier:var(--r-epic); }
.r-legendary { --frame-glow:rgba(255,183,77,.36);  --tier:var(--r-legendary); }
.r-mythic    { --frame-glow:rgba(255,94,126,.38);  --tier:var(--r-mythic); }

/* ---------- how it works ---------- */
.steps { list-style:none; display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.step-inner { padding:26px 22px 24px; }
.step-num { display:grid; place-items:center; width:40px; height:40px;
  font-family:var(--font-display); font-weight:600; font-size:19px; color:#fff;
  border-radius:10px; background:var(--leaf); box-shadow:0 3px 0 var(--leaf-dark);
  margin-bottom:16px; }
.step-inner h3 { font-family:var(--font-display); font-weight:600; font-size:19px;
  color:var(--ink); margin-bottom:6px; }
.step-inner p { color:var(--ink-soft); font-weight:600; font-size:15px; }

/* ---------- roadmap ---------- */
.roadmap-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:64px; }
.roadmap-grid-3 { grid-template-columns:repeat(3,1fr); }
.road-inner { padding:24px 22px; }
.road-tag { display:inline-block; font-family:var(--font-body); font-weight:800;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:#7a5510;
  background:#faedcb; border:1px solid #ecd9a4; padding:3px 11px;
  border-radius:var(--radius-pill); margin-bottom:14px; }
.road-inner h3 { font-family:var(--font-display); font-weight:600; font-size:19px;
  color:var(--ink); margin-bottom:6px; }
.road-inner p { color:var(--ink-soft); font-weight:600; font-size:15px; }

/* ---------- closing CTA: leaf panel with the villager mascot ---------- */
.cta-banner { max-width:960px; margin:0 auto; overflow:visible; }
.cta-banner.panel { background:linear-gradient(180deg,#3f7c2b,var(--leaf-deep));
  border:none; box-shadow:var(--shadow); }
.cta-inner { display:flex; align-items:center; gap:30px;
  flex-wrap:wrap; padding:30px 38px; }
.cta-mascot { width:104px; height:auto; image-rendering:pixelated; flex:none;
  margin:-56px 0 -8px 0; filter:drop-shadow(0 10px 14px rgba(14,30,8,.35)); }
.cta-copy h3 { font-family:var(--font-display); font-weight:600; font-size:27px;
  color:#fdf7e4; }
.cta-copy p { color:rgba(253,247,228,.85); font-weight:700; margin-top:2px; }
.cta-actions { display:flex; gap:12px; margin-left:auto; }
.cta-actions .btn-wood { background:rgba(16,28,10,.6); box-shadow:0 3px 0 rgba(0,0,0,.45); }
/* docs.html reuses .cta-banner without the mascot; same panel, same buttons */

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background:#2b2013; padding:44px 0 36px; margin-top:84px; }
.footer-inner { display:flex; justify-content:space-between; align-items:center;
  gap:26px; flex-wrap:wrap; }
.footer-mark { font-size:26px; color:var(--parch); }
.footer-mark .wordmark-accent { color:var(--gold-2); }
.footer-note { color:#b7a483; font-weight:600; font-size:14px; max-width:36em;
  margin-top:6px; }
.footer-links { display:flex; flex-direction:column; align-items:flex-end; gap:10px; }
.footer-copy { color:#8f7d5e; font-size:13px; font-weight:600; }

/* =====================================================================
   Reveal animation (finite: runs once per element, then rests)
   ===================================================================== */
.reveal { opacity:0; transform:translateY(22px); }
.reveal.in { opacity:1; transform:none;
  transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
/* staggering handled in JS via transition-delay */

@media (prefers-reduced-motion:reduce) {
  .reveal { opacity:1 !important; transform:none !important; }
  html { scroll-behavior:auto; }
  .btn, .feature-card, .fish-card, .fish-frame img { transition:none !important; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width:980px) {
  .feature-grid { grid-template-columns:repeat(2,1fr); }
  .feature-wide { grid-column:span 2; }
  .fish-grid { grid-template-columns:repeat(2,1fr); gap:20px; max-width:620px; }
  .steps, .roadmap-grid, .roadmap-grid-3 { grid-template-columns:repeat(2,1fr); }
  .cta-actions { margin-left:0; }
}

@media (max-width:680px) {
  .header-nav { display:none; }
  .header-x { margin-left:auto; margin-right:10px; }
  .header-inner .btn { margin-left:0; }
  .hero { padding:96px 0 76px; min-height:78vh; }
  .hero-ctas .btn { flex:1 1 auto; }
  .hero-stats { grid-template-columns:repeat(2,1fr); max-width:380px; }
  .hero-ca-addr { max-width:38vw; }
  :root { --px:10px; }
  .icon-strip-row { gap:16px 20px; }
  .icon-strip-row img { width:32px; height:32px; }
  .section { padding:56px 0; }
  .fish-showcase { margin-top:44px; }
  .fish-wrap { padding-top:44px; padding-bottom:56px; }
  .feature-grid { grid-template-columns:1fr; }
  .feature-wide { grid-column:span 1; }
  .feature-wallet { flex-direction:column; align-items:flex-start; }
  .fish-grid { grid-template-columns:1fr; max-width:340px; }
  .steps, .roadmap-grid, .roadmap-grid-3 { grid-template-columns:1fr; }
  .roadmap-grid { margin-bottom:76px; }
  .cta-inner { flex-direction:column; align-items:flex-start; text-align:left;
    padding:26px 26px 28px; }
  .cta-mascot { margin:-64px 0 -4px 0; width:92px; }
  .cta-actions { width:100%; }
  .cta-actions .btn { flex:1; }
  .footer-inner { flex-direction:column; align-items:flex-start; }
  .footer-links { align-items:flex-start; }
  .site-footer { margin-top:56px; }
}
