/* ============ POKESTR — monochrome design system ============ */

:root {
  --bg: #050505;
  --bg-raise: #0a0a0a;
  --panel: #0c0c0c;
  --white: #ffffff;
  --grey-1: #e8e8e8;
  --grey-2: #9b9b9b;
  --grey-3: #5c5c5c;
  --grey-4: #2c2c2c;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --font: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--grey-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

::selection { background: var(--white); color: var(--bg); }

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

.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- type helpers ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.eyebrow::before { content: "✦ "; color: var(--white); }

.h-xl {
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--white);
  text-transform: uppercase;
}

.h-lg {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--white);
  text-transform: uppercase;
}

.lede {
  color: var(--grey-2);
  font-size: 17px;
  font-weight: 400;
  max-width: 60ch;
}

.mono { font-family: var(--mono); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.78);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.3s;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--white);
}

.brand img {
  width: 34px;
  height: 34px;
  mix-blend-mode: screen;
  animation: spin-slow 40s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.nav { display: flex; align-items: center; gap: 30px; }

.nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey-2);
  transition: color 0.25s;
  position: relative;
  padding: 4px 0;
}

.nav a:hover { color: var(--white); }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--white); }

/* X / Twitter icon button */
.nav a.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--grey-1);
  padding: 0;
  transition: all 0.25s;
}
.nav a.nav-x::after { display: none; }
.nav a.nav-x svg { width: 14px; height: 14px; fill: currentColor; }
.nav a.nav-x:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* profile tab — pill treatment */
.nav a.nav-profile {
  border: 1px solid var(--line);
  padding: 9px 20px;
  color: var(--white);
  transition: all 0.25s;
}
.nav a.nav-profile::after { display: none; }
.nav a.nav-profile:hover, .nav a.nav-profile.active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--white);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-solid { background: var(--white); color: var(--bg); }

.btn-solid:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline { background: transparent; color: var(--white); }

.btn-outline:hover { background: var(--white); color: var(--bg); }

.btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- panels / hairlines ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s;
}

.panel:hover { border-color: var(--line); }

.hairline {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey-1);
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 12px var(--white);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ---------- marquee ---------- */

.marquee-band {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
  background: var(--bg-raise);
}

.marquee {
  display: inline-block;
  animation: marquee 30s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.marquee span { margin: 0 30px; }
.marquee .w { color: var(--white); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- page hero ---------- */

.page-hero { padding: 96px 0 56px; text-align: center; }

.page-hero h1 { margin: 20px 0 16px; }

.page-hero .lede { margin: 0 auto; }

/* ---------- card slab (monochrome) ---------- */

.card-slab {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border: 1px solid var(--grey-4);
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.05), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 9px),
    #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-slab:hover {
  transform: translateY(-6px);
  border-color: var(--grey-2);
  box-shadow: 0 24px 60px -20px rgba(255, 255, 255, 0.12);
}

/* sheen sweep on hover */
.card-slab::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 43%, rgba(255,255,255,0.10) 50%, transparent 57%);
  transform: translateX(-70%);
  transition: transform 0.9s ease;
  pointer-events: none;
}

.card-slab:hover::after { transform: translateX(70%); }

.card-slab .top-row,
.card-slab .bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-3);
}

.card-slab .grade {
  padding: 4px 9px;
  border: 1px solid var(--grey-4);
  color: var(--grey-1);
  font-weight: 600;
}

.card-slab .art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.card-slab .art img {
  width: 46%;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.card-slab .name {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.card-slab .sub {
  text-align: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 12px;
}

.card-slab .rarity-line {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-2);
  margin-bottom: 14px;
}

/* rarity treatments — monochrome hierarchy */
.r-grail { border-color: var(--white); box-shadow: 0 0 40px -10px rgba(255,255,255,0.35); }
.r-grail .rarity-line { color: var(--white); }
.r-grail .grade { background: var(--white); color: var(--bg); border-color: var(--white); }
.r-holo { border-color: var(--grey-2); }
.r-holo .rarity-line { color: var(--grey-1); }
.r-rare { border-color: var(--grey-3); }
.r-core { border-color: var(--grey-4); }
.r-core .rarity-line { color: var(--grey-3); }

/* ---------- stats / counters ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft);
}

.stat-cell {
  padding: 40px 28px;
  border-right: 1px solid var(--line-soft);
  position: relative;
}

.stat-cell:last-child { border-right: none; }

.stat-cell .value {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}

.stat-cell .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-top: 10px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 130px;
  border-top: 1px solid var(--line-soft);
  padding: 56px 0;
}

.site-footer .top {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.site-footer .fine {
  font-size: 12px;
  color: var(--grey-3);
  line-height: 1.8;
  max-width: 640px;
}

.site-footer .links {
  display: flex;
  gap: 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-footer .links a { color: var(--grey-2); transition: color 0.25s; }
.site-footer .links a:hover { color: var(--white); }

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a { letter-spacing: 0.14em; }
  .brand { letter-spacing: 0.12em; font-size: 16px; }
}
