/* =============================================
   RESET & BASE
   ============================================= */

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

:root {
  --red:        #D42B1E;
  --red-dark:   #8C1C12;
  --red-mid:    #B02418;
  --yellow:     #F2C12E;
  --yellow-dim: #8A6D18;
  --black:      #0E0E14;
  --surface-1:  #14141C;
  --surface-2:  #1C1C28;
  --surface-3:  #242433;
  --border:     rgba(255,255,255,0.07);
  --text-1:     #F0F0F0;
  --text-2:     #9898B0;
  --text-3:     #5A5A72;

  --font-pixel: 'Press Start 2P', monospace;
  --font-cond:  'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;

  /* type colors */
  --t-normal:   #9A9A78;
  --t-fire:     #E8722A;
  --t-water:    #5A8EE8;
  --t-electric: #D4A81A;
  --t-grass:    #5AB840;
  --t-ice:      #7ACECE;
  --t-fighting: #B82820;
  --t-poison:   #8830A0;
  --t-ground:   #C8A840;
  --t-flying:   #8878E0;
  --t-psychic:  #E04060;
  --t-bug:      #90A010;
  --t-rock:     #A89028;
  --t-ghost:    #584880;
  --t-dragon:   #5018E0;
  --t-dark:     #504030;
  --t-steel:    #9898B8;
  --t-fairy:    #D070A8;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================
   NAV
   ============================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(14,14,20,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.wordmark {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.wordmark span {
  color: var(--red);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-family: var(--font-cond);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-2);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text-1);
}

.nav-open {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--red);
  color: white;
  padding: 8px 22px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: background 0.15s;
  box-shadow: 0 3px 0 var(--red-dark);
}

.nav-open:hover {
  background: #E03020;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 80px;
  position: relative;
}

.hero-kicker {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-cond);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1px;
  color: var(--text-1);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--red);
  color: white;
  padding: 13px 32px;
  border-radius: 3px;
  box-shadow: 0 4px 0 var(--red-dark);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: #E03020;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--red-dark);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--red-dark);
}

.btn-ghost {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 13px 32px;
  border-radius: 3px;
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  color: var(--text-1);
  border-color: rgba(255,255,255,0.2);
}

/* DEX CARD */

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dex-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 320px;
  padding: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  animation: dex-float 5s ease-in-out infinite;
}

@keyframes dex-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.dex-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dex-card-num {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-3);
}

.dex-card-types {
  display: flex;
  gap: 6px;
}

.dex-card-sprite {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.sprite-ring {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
}

.sprite-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.45;
}

.fire-glow  { background: #E8722A; }
.water-glow { background: #5A8EE8; }
.grass-glow { background: #5AB840; }

.sprite-char {
  font-family: var(--font-pixel);
  font-size: 42px;
  color: rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
  user-select: none;
}

.dex-card-name {
  font-family: var(--font-cond);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 2px;
}

.dex-card-category {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
  font-weight: 500;
}

.dex-stat-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-name {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  width: 22px;
  flex-shrink: 0;
}

.stat-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  width: var(--pct);
  background: var(--col);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-val {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-2);
  width: 20px;
  text-align: right;
}

.dex-card-footer {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.dex-tab {
  flex: 1;
  font-family: var(--font-pixel);
  font-size: 5px;
  padding: 7px 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}

.dex-tab:hover {
  color: var(--text-1);
  border-color: var(--border);
}

.dex-tab.active {
  background: var(--red);
  color: white;
}

/* =============================================
   TICKER
   ============================================= */

.ticker-wrap {
  overflow: hidden;
  background: var(--red);
  border-top: 2px solid var(--red-dark);
  border-bottom: 2px solid var(--red-dark);
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 32px;
  align-items: center;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

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

.ticker-track span {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}

.ticker-dot {
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.4) !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* =============================================
   SHARED SECTION STYLES
   ============================================= */

.content-section {
  padding: 120px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 48px;
}

.section-heading {
  font-family: var(--font-cond);
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--text-1);
  margin-bottom: 24px;
}

.section-heading.centered {
  text-align: center;
}

.section-body {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 32px;
}

.section-body.centered {
  text-align: center;
  margin: 0 auto 56px;
}

.section-body.narrow {
  max-width: 560px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 15px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
  font-weight: 500;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 2px;
  background: var(--red);
}

/* SPLIT LAYOUT */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

/* =============================================
   SECTION BACKGROUNDS (alternating)
   ============================================= */

.dex-section      { background: var(--black); border-top: 1px solid var(--border); }
.typechart-section { background: var(--surface-1); border-top: 1px solid var(--border); }
.tools-section    { background: var(--black); border-top: 1px solid var(--border); }
.regions-section  { background: var(--surface-1); border-top: 1px solid var(--border); }
.tracking-section { background: var(--black); border-top: 1px solid var(--border); }
.info-section     { background: var(--surface-1); border-top: 1px solid var(--border); }

/* Override max-width for full-bleed bg */
.dex-section, .typechart-section, .tools-section,
.regions-section, .tracking-section, .info-section {
  max-width: none;
}

.dex-section > *,
.typechart-section > *,
.tools-section > *,
.regions-section > *,
.tracking-section > *,
.info-section > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.dex-section,
.typechart-section,
.tools-section,
.regions-section,
.tracking-section,
.info-section {
  padding: 100px 80px;
}

/* =============================================
   TYPE TAGS (shared)
   ============================================= */

.type-tag {
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 4px 9px;
  border-radius: 2px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-block;
}

.type-tag.normal   { background: var(--t-normal); }
.type-tag.fire     { background: var(--t-fire); }
.type-tag.water    { background: var(--t-water); }
.type-tag.electric { background: var(--t-electric); color: rgba(0,0,0,0.7); }
.type-tag.grass    { background: var(--t-grass); }
.type-tag.ice      { background: var(--t-ice); color: rgba(0,0,0,0.7); }
.type-tag.fighting { background: var(--t-fighting); }
.type-tag.poison   { background: var(--t-poison); }
.type-tag.ground   { background: var(--t-ground); color: rgba(0,0,0,0.7); }
.type-tag.flying   { background: var(--t-flying); }
.type-tag.psychic  { background: var(--t-psychic); }
.type-tag.bug      { background: var(--t-bug); }
.type-tag.rock     { background: var(--t-rock); }
.type-tag.ghost    { background: var(--t-ghost); }
.type-tag.dragon   { background: var(--t-dragon); }
.type-tag.dark     { background: var(--t-dark); }
.type-tag.steel    { background: var(--t-steel); color: rgba(0,0,0,0.6); }
.type-tag.fairy    { background: var(--t-fairy); }

/* =============================================
   DEX ENTRY PREVIEW TABLE
   ============================================= */

.entry-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.entry-row {
  display: grid;
  grid-template-columns: 54px 1fr 1fr 54px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  gap: 12px;
}

.entry-row:last-child { border-bottom: none; }

.entry-row.header-row {
  background: var(--surface-3);
  padding: 10px 20px;
}

.entry-row:not(.header-row):hover {
  background: var(--surface-3);
  cursor: pointer;
}

.entry-row[data-caught="true"] .entry-num {
  color: var(--red);
}

.entry-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.entry-num {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-3);
}

.entry-name {
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.entry-types {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.entry-bst {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-2);
  text-align: right;
}

/* =============================================
   TYPE CHART UI
   ============================================= */

.type-selector-ui {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.ui-instruction {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-3);
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.type-btn {
  font-family: var(--font-pixel);
  font-size: 5.5px;
  padding: 8px 4px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  text-align: center;
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.type-btn:hover { opacity: 1; transform: scale(1.04); }

.type-btn.selected {
  opacity: 1;
  box-shadow: 0 0 0 2px white;
  transform: scale(1.05);
}

.type-btn.normal   { background: var(--t-normal); }
.type-btn.fire     { background: var(--t-fire); }
.type-btn.water    { background: var(--t-water); }
.type-btn.electric { background: var(--t-electric); color: rgba(0,0,0,0.75); }
.type-btn.grass    { background: var(--t-grass); }
.type-btn.ice      { background: var(--t-ice); color: rgba(0,0,0,0.75); }
.type-btn.fighting { background: var(--t-fighting); }
.type-btn.poison   { background: var(--t-poison); }
.type-btn.ground   { background: var(--t-ground); color: rgba(0,0,0,0.75); }
.type-btn.flying   { background: var(--t-flying); }
.type-btn.psychic  { background: var(--t-psychic); }
.type-btn.bug      { background: var(--t-bug); }
.type-btn.rock     { background: var(--t-rock); }
.type-btn.ghost    { background: var(--t-ghost); }
.type-btn.dragon   { background: var(--t-dragon); }
.type-btn.dark     { background: var(--t-dark); }
.type-btn.steel    { background: var(--t-steel); color: rgba(0,0,0,0.65); }
.type-btn.fairy    { background: var(--t-fairy); }

.type-result {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 48px;
}

.type-result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.result-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

/* =============================================
   TOOLS TABLE
   ============================================= */

.tools-table {
  border-top: 1px solid var(--border);
}

.tool-row {
  display: grid;
  grid-template-columns: 260px 1fr 160px;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.tool-row:hover {
  background: rgba(255,255,255,0.015);
}

.tool-name-col {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.tool-number {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-3);
  flex-shrink: 0;
}

.tool-title {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-1);
}

.tool-description {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.tool-link {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  text-align: right;
  transition: color 0.15s;
  white-space: nowrap;
}

.tool-link:hover {
  color: #E84030;
}

/* =============================================
   REGIONS
   ============================================= */

.region-list {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.region-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.region-item:last-child { border-bottom: none; }

.region-item:hover,
.region-item.active {
  background: var(--surface-3);
}

.region-item.active .region-name {
  color: var(--red);
}

.region-num {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  text-align: center;
}

.region-name {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-1);
  transition: color 0.15s;
}

.region-games {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  text-align: right;
}

/* =============================================
   TRACKING / CHECKLIST
   ============================================= */

.checklist-ui {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
}

.checklist-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-1);
}

.checklist-progress {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-3);
}

.checklist-item {
  display: grid;
  grid-template-columns: 28px 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.checklist-item:last-of-type {
  border-bottom: none;
}

.checklist-item:hover {
  background: rgba(255,255,255,0.02);
}

.item-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  color: white;
}

.checklist-item.caught .item-check {
  background: var(--red);
  border-color: var(--red);
}

.item-check.uncaught {
  background: transparent;
}

.item-num {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
}

.item-name {
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-1);
}

.checklist-item.caught .item-name {
  color: var(--text-2);
}

.item-actions {
  display: flex;
  gap: 6px;
}

.item-action {
  font-family: var(--font-pixel);
  font-size: 5px;
  padding: 5px 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-action:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-2);
}

.item-action.fav.active {
  background: rgba(242,193,46,0.15);
  border-color: var(--yellow);
  color: var(--yellow);
}

.checklist-bar-wrap {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-3);
}

.checklist-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.checklist-bar-fill {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.checklist-pct {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-3);
  white-space: nowrap;
}

/* =============================================
   DATABASE COLUMNS
   ============================================= */

.db-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.db-col {
  padding: 0 40px;
}

.db-col:first-child { padding-left: 0; }
.db-col:last-child  { padding-right: 0; }

.db-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 4px 0;
}

.db-col-heading {
  font-family: var(--font-cond);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-1);
  margin-bottom: 14px;
}

.db-col-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 40px 80px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-wordmark {
  font-size: 10px;
  flex-shrink: 0;
}

.footer-note {
  font-size: 12px;
  color: var(--text-3);
  flex: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text-2);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 40px 60px;
    text-align: center;
  }

  .hero-body { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-right { display: none; }

  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .dex-section,
  .typechart-section,
  .tools-section,
  .regions-section,
  .tracking-section,
  .info-section {
    padding: 72px 40px;
  }

  .tool-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-link { text-align: left; }

  .db-columns {
    grid-template-columns: 1fr;
  }

  .db-divider { display: none; }
  .db-col { padding: 0 0 32px; }

  .nav-links { display: none; }
  .nav-inner { gap: 24px; }

  .type-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 640px) {
  .nav-open { display: none; }

  .hero { padding: 90px 24px 48px; }

  .dex-section,
  .typechart-section,
  .tools-section,
  .regions-section,
  .tracking-section,
  .info-section {
    padding: 60px 24px;
  }

  .site-footer { padding: 32px 24px; }

  .type-grid { grid-template-columns: repeat(4, 1fr); }

  .region-games { display: none; }
  .region-item { grid-template-columns: 28px 1fr; }
}