:root {
  --bg: #fff8ec;
  --bg-2: #fff;
  --paper: #fffefb;
  --ink: #15121f;
  --ink-soft: #4a4458;
  --muted: #8a8499;
  --line: #ece4d2;
  --line-strong: #d9cfb6;
  --yellow: #ffcb05;
  --yellow-deep: #f0a500;
  --blue: #3d7dca;
  --red: #ee1515;
  --green: #41b95f;
  --pink: #ff7eb9;
  --purple: #8a5cf6;
  --teal: #1cc7c7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(21, 18, 31, 0.08), 0 2px 6px rgba(21, 18, 31, 0.04);
  --shadow-lift: 0 20px 50px rgba(21, 18, 31, 0.14), 0 4px 10px rgba(21, 18, 31, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(255, 126, 185, 0.25), transparent 60%),
    radial-gradient(700px 500px at -10% 0%, rgba(61, 125, 202, 0.18), transparent 60%),
    radial-gradient(500px 400px at 50% 110%, rgba(138, 92, 246, 0.12), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 0.4em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

/* nav + hero */
.hero {
  padding: 24px 24px 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,203,5,0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(61,125,202,0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(238,21,21,0.08) 0 2px, transparent 3px);
  background-size: 80px 80px, 120px 120px, 100px 100px;
  pointer-events: none;
  opacity: 0.7;
}
.nav {
  max-width: 1160px;
  margin: 0 auto 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative; z-index: 2;
}
.brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.poke {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 0 50%, #fff 50% 100%);
  box-shadow: inset 0 0 0 2.5px var(--ink), 0 2px 4px rgba(0,0,0,0.15);
  position: relative;
}
.poke::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; transform: translate(-50%,-50%);
  box-shadow: 0 0 0 2.5px var(--ink);
}
.nav-links { display: flex; gap: 26px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.nav-links a { position: relative; padding: 4px 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--yellow); border-radius: 3px;
}

.hero-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--ink);
  margin: 0 0 22px;
  font-weight: 700;
  background: var(--yellow);
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.98;
  max-width: 16ch;
}
.accent {
  background: linear-gradient(90deg, var(--red), var(--yellow-deep) 40%, var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.lede { color: var(--ink-soft); max-width: 58ch; font-size: 19px; margin-top: 22px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 2px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--yellow); color: var(--ink); }
.btn.ghost { background: #fff; color: var(--ink); }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-top: 64px;
}
.stat {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease;
}
.stat:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.stat:nth-child(4n+1) { background: #fff5b8; }
.stat:nth-child(4n+2) { background: #d6e6ff; }
.stat:nth-child(4n+3) { background: #ffd6e7; }
.stat:nth-child(4n+4) { background: #d4f5dd; }
.stat .num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.1; }
.stat .label { color: var(--ink-soft); font-size: 12px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* sections */
.section { padding: 96px 24px; position: relative; }
.section.alt { background: var(--bg-2); }
.section.alt::before, .section.alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px;
  background-image: linear-gradient(135deg, transparent 33%, var(--bg-2) 33%, var(--bg-2) 66%, transparent 66%),
                    linear-gradient(45deg, transparent 33%, var(--bg-2) 33%, var(--bg-2) 66%, transparent 66%);
  background-size: 24px 16px;
}
.section.alt::before { top: -16px; }
.section.alt::after { bottom: -16px; transform: scaleY(-1); }
.section-head { max-width: 1160px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 60ch; font-size: 17px; }

/* trending cards */
.card-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -50% -50% auto auto;
  width: 200%; height: 60%;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,126,185,0.18) 40%,
    rgba(61,125,202,0.18) 50%,
    rgba(255,203,5,0.18) 60%,
    transparent 70%);
  transform: translateX(-30%);
  transition: transform .6s ease;
  pointer-events: none;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.card:hover::before { transform: translateX(20%); }
.card .row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-soft); margin-bottom: 12px;
  position: relative; z-index: 1;
}
.card .set { font-weight: 600; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-size: 11px;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid var(--ink);
}
.tag.grail { background: var(--purple); color: #fff; }
.tag.chase { background: var(--red); color: #fff; }
.tag.flagship { background: var(--blue); color: #fff; }
.tag.trainer { background: var(--pink); color: var(--ink); }
.tag.new { background: var(--green); color: #fff; }
.tag.sleeper { background: var(--teal); color: #fff; }
.tag.bluechip { background: var(--ink); color: var(--yellow); }
.tag.moderngrail { background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; }
.card h3 { font-size: 22px; margin: 4px 0 6px; position: relative; z-index: 1; }
.card .why { font-size: 14px; color: var(--ink-soft); margin-top: 12px; position: relative; z-index: 1; }
.card .meta {
  display: flex; gap: 12px; margin-top: 18px; font-size: 13px;
  align-items: center; position: relative; z-index: 1;
  padding-top: 14px; border-top: 1.5px dashed var(--line-strong);
}
.card .meta .price { color: var(--ink); font-weight: 700; }
.card .meta .delta {
  margin-left: auto;
  font-weight: 800; font-size: 13px;
  padding: 3px 10px; border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.card .meta .delta.up { background: #ffe0e6; color: var(--red); }
.card .meta .delta.down { background: #d4f5dd; color: #1a8a3a; }

/* sets */
.set-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.set {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.set:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.set:nth-child(6n+1) { background: #fff5b8; }
.set:nth-child(6n+2) { background: #d6e6ff; }
.set:nth-child(6n+3) { background: #ffd6e7; }
.set:nth-child(6n+4) { background: #d4f5dd; }
.set:nth-child(6n+5) { background: #e8d9ff; }
.set:nth-child(6n+6) { background: #ffe5c2; }
.set h3 { font-size: 24px; }
.set .when { color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; display: inline-block; background: #fff; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--ink); margin-bottom: 10px; }
.set p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.set .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  background: rgba(255,255,255,0.7); color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 600;
}

/* movers */
.movers {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.mover-col {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 6px 6px 0 var(--ink);
}
.mover-col.up { background: #ffeef1; }
.mover-col.down { background: #e6f8ec; }
.mover-col h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.dot.up { background: var(--red); }
.dot.down { background: var(--green); }
.mover-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1.5px dashed var(--line-strong);
}
.mover-row:first-of-type { border-top: 0; }
.mover-row .name { font-weight: 600; }
.mover-row .sub { color: var(--ink-soft); font-size: 12px; }
.mover-row .pct {
  font-weight: 800; font-size: 14px;
  padding: 4px 12px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: #fff;
}
.mover-row .pct.up { color: var(--red); }
.mover-row .pct.down { color: #1a8a3a; }

/* stories */
.story-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.story {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .15s ease;
}
.story:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.story:nth-child(6n+1) { background: #fff5b8; }
.story:nth-child(6n+2) { background: #d6e6ff; }
.story:nth-child(6n+3) { background: #ffd6e7; }
.story:nth-child(6n+4) { background: #d4f5dd; }
.story:nth-child(6n+5) { background: #e8d9ff; }
.story:nth-child(6n+6) { background: #ffe5c2; }
.story h3 { font-size: 19px; }
.story p { color: var(--ink-soft); font-size: 14.5px; margin: 6px 0 0; }

/* guide */
.guide-list {
  max-width: 920px; margin: 0 auto; padding: 0; list-style: none; counter-reset: g;
}
.guide-list li {
  counter-increment: g; position: relative; padding: 22px 22px 22px 80px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: 5px 5px 0 var(--ink);
}
.guide-list li::before {
  content: counter(g, decimal-leading-zero);
  position: absolute; left: 22px; top: 18px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  color: var(--ink); font-size: 32px;
  background: var(--yellow);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  border: 2px solid var(--ink);
}
.guide-list li:nth-child(2)::before { background: #ffd6e7; }
.guide-list li:nth-child(3)::before { background: #d6e6ff; }
.guide-list li:nth-child(4)::before { background: #d4f5dd; }
.guide-list li:nth-child(5)::before { background: #e8d9ff; }
.guide-list strong { display: block; margin-bottom: 4px; font-size: 17px; }
.guide-list span { color: var(--ink-soft); font-size: 14.5px; }

.footer {
  border-top: 2px dashed var(--line-strong);
  padding: 40px 24px; max-width: 1160px; margin: 0 auto;
  color: var(--ink-soft); font-size: 13px;
}
.footer .muted { opacity: 0.7; margin-top: 6px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .movers { grid-template-columns: 1fr; }
  .section { padding: 64px 18px; }
  .hero { padding: 20px 18px 64px; }
  .nav { margin-bottom: 48px; }
  .card, .set, .story, .mover-col, .guide-list li { box-shadow: 4px 4px 0 var(--ink); }
  .btn { box-shadow: 3px 3px 0 var(--ink); }
}
