/* ═══════════════════════════════════════════════════════════
   Homepage Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Segmented control separators ──────────────────────── */

.segment-separator {
  width: 1px;
  background: #ccc;
  margin: 6px 2px;
  flex-shrink: 0;
}

body.dark-mode .segment-separator {
  background: #555;
}

/* ── Intro ─────────────────────────────────────────────── */

.home-intro {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 36px 0 28px;
}

.home-intro-left {
  min-width: 0;
  max-width: 560px;
  flex: 0 1 560px;
}

.home-intro-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: #667eea;
  margin: 0 0 8px;
  font-style: italic;
}

.home-intro-desc {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #444;
  margin: 0 0 16px;
  max-width: 520px;
  font-weight: 500;
}

.home-intro-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.home-intro-point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
}

.home-intro-point-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--point-color) 12%, transparent);
}

.home-intro-point-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--point-color);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-intro-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
  box-shadow: 0 1px 2px rgba(29, 141, 128, 0.18);
}

.home-intro-cta:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 88%, white);
}

/* Secondary CTA — outline pill alongside the main one. Lower visual
   weight, but still prominent enough to be a real choice. */
.home-intro-cta--secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 18px;
  box-shadow: none;
}
.home-intro-cta--secondary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-intro-cta--secondary:hover {
  background: var(--accent-dim);
  box-shadow: none;
  transform: translateY(-1px);
}

.home-intro-right {
  /* Take all the space left over by the fixed-width left column so
     the intro row uses the full viewport like the rest of the home
     page. Cards stretch to fill via flex:1 each (capped by max-width
     so they don't get absurdly large on ultrawide screens). */
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
  justify-content: space-evenly;
}

.home-intro-card {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 220px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

/* Each card in the strip has a small tilt for visual rhythm */
.home-intro-card:nth-child(1) { transform: rotate(2deg); }
.home-intro-card:nth-child(2) { transform: rotate(-2deg); }
.home-intro-card:nth-child(3) { transform: rotate(1.5deg); }
.home-intro-card:nth-child(4) { transform: rotate(-1deg); }
.home-intro-card:nth-child(5) { transform: rotate(2deg); }
.home-intro-card:nth-child(6) { transform: rotate(-1.5deg); }

.home-intro-card:hover {
  transform: scale(1.08) rotate(0deg);
  z-index: 2;
}

/* ── Jumbo cards explainer ─────────────────────────────── */

.home-jumbo-explainer {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  margin-bottom: 24px;
  align-items: flex-start;
}

.home-jumbo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-jumbo-icon svg {
  width: 28px;
  height: 28px;
  stroke: #667eea;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-jumbo-content {
  flex: 1;
  min-width: 0;
}

.home-jumbo-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a2e;
}

.home-jumbo-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 12px;
}

/* ── Card type showcase ────────────────────────────────── */
.home-type-showcase {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.home-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.home-type-item:hover {
  background: rgba(102, 126, 234, 0.06);
}

.home-type-card {
  width: 100px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s;
}

.home-type-item:hover .home-type-card {
  transform: scale(1.05);
}

.home-type-legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.home-type-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--type-color);
  margin-bottom: 2px;
}

.home-type-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary, #888);
}

.home-type-desc {
  font-size: 12px;
  color: var(--text-secondary, #666);
  line-height: 1.5;
  margin: 0;
}

/* ── Stats strip — 2 visual clusters with their own labels ── */

.home-stats-strip {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 22px 28px;
  background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f9 100%);
  border-radius: 12px;
  margin-bottom: 28px;
  border: 1px solid #eef0f5;
}

.home-stats-cluster {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-stats-cluster-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary, #9ca3af);
}

.home-stats-cluster-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 16px;
}

.home-stats-cluster-sep {
  width: 1px;
  background: linear-gradient(to bottom, transparent, #d8dbe6, transparent);
  flex-shrink: 0;
  margin: 0 16px;
}

.home-stat {
  text-align: center;
  padding: 0 4px;
  min-width: 76px;
}

.home-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.home-stat--accent1 strong { color: #667eea; }
.home-stat--accent2 strong { color: #ef4444; }
.home-stat--accent3 strong { color: #10b981; }
.home-stat--accent4 strong { color: #f59e0b; }
.home-stat--accent5 strong { color: #8b5cf6; }
.home-stat--accent6 strong { color: #3b82f6; }
.home-stat--accent7 strong { color: #06b6d4; }

.home-stat span {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Sections ──────────────────────────────────────────── */

.home-section {
  padding: 24px 0;
}

.home-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a2e;
}

.home-section-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 20px;
}

/* ── Features header ──────────────────────────────────── */

.home-features-header {
  text-align: center;
  padding: 20px 0 4px;
}

.home-features-header .home-section-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.home-features-header .home-section-subtitle {
  margin-bottom: 0;
}

/* ── Features grid (2-column) ─────────────────────────── */

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 8px 0 24px;
}

/* ── Feature block (vertical card) ────────────────────── */

.home-feature-block {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
  border-top: 3px solid var(--feat-color, #667eea);
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-feature-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.home-feature-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.home-feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.home-feature-icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-feature-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1a1a2e;
}

.home-feature-block-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #666;
  margin: 0 0 12px;
}

.home-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: #555;
  line-height: 1.45;
  padding: 2px 0;
}

.home-feature-bullets li svg {
  width: 15px;
  height: 15px;
  stroke: var(--feat-color, #10b981);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Screenshot placeholder ───────────────────────────── */

.home-feature-screen {
  min-height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f8fc 0%, #eef0f8 100%);
  border: 2px dashed #d0d5e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-feature-screen--filled {
  border: none;
  background: none;
}

.home-feature-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.home-feature-screen--clickable {
  cursor: pointer;
  position: relative;
}
.home-feature-screen--clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
}
.home-feature-screen--clickable:hover::after {
  background: rgba(0,0,0,0.08);
}

/* ── Lightbox gallery ───────────────────────────── */

.home-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.home-lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.home-lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.home-lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  z-index: 2;
  line-height: 1;
}
.home-lightbox-close:hover { opacity: 1; }

.home-lightbox-prev,
.home-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
  z-index: 2;
  line-height: 1;
}
.home-lightbox-prev { left: 16px; }
.home-lightbox-next { right: 16px; }
.home-lightbox-prev:hover,
.home-lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.22); }

.home-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
}

.home-screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #b0b8c8;
  font-size: 0.78rem;
  text-align: center;
  padding: 20px;
}

.home-screen-placeholder-icon svg {
  width: 32px;
  height: 32px;
  stroke: #c8ceda;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Quick features row ───────────────────────────────── */

.home-quick-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 0 24px;
}

.home-quick-feat {
  text-align: center;
  padding: 20px 16px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eee;
  border-top: 3px solid var(--qf-color, #667eea);
  transition: transform 0.15s, box-shadow 0.15s;
}

.home-quick-feat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.home-quick-feat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  background: color-mix(in srgb, var(--qf-color, #667eea) 10%, transparent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-quick-feat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--qf-color, #667eea);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-quick-feat-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a2e;
}

.home-quick-feat-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #777;
  margin: 0;
}

/* ── Data quality banner ──────────────────────────────── */

.home-data-banner {
  padding: 24px;
  background: linear-gradient(135deg, #f7f8fc 0%, #eef0f8 100%);
  border-radius: 12px;
  margin-bottom: 24px;
}

.home-data-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.home-data-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-data-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-data-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.home-data-subtitle {
  font-size: 0.82rem;
  color: #888;
  margin: 2px 0 0;
}

.home-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.home-data-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  border-left: 3px solid var(--card-accent, #667eea);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.home-data-card strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--card-accent, #667eea);
  line-height: 1.2;
}

.home-data-card span {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Explore: Trivia & History ────────────────────────── */

.home-explore {
  padding: 24px 0;
}

.home-explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-explore-card {
  padding: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}

.home-explore-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.home-explore-card--trivia {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
}

.home-explore-card--history {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
}

.home-explore-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.home-explore-card--trivia .home-explore-card-icon {
  background: rgba(245, 158, 11, 0.2);
}

.home-explore-card--history .home-explore-card-icon {
  background: rgba(59, 130, 246, 0.2);
}

.home-explore-card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-explore-card--trivia .home-explore-card-icon svg {
  stroke: #d97706;
}

.home-explore-card--history .home-explore-card-icon svg {
  stroke: #2563eb;
}

.home-explore-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.home-explore-card--trivia h3 { color: #92400e; }
.home-explore-card--history h3 { color: #1e3a5f; }

.home-explore-card p {
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

.home-explore-card--trivia p { color: #a16207; }
.home-explore-card--history p { color: #1e40af; }

.home-explore-link {
  font-size: 0.82rem;
  font-weight: 600;
}

.home-explore-card--trivia .home-explore-link { color: #b45309; }
.home-explore-card--history .home-explore-link { color: #1d4ed8; }

.home-link {
  display: inline-block;
  margin-top: 14px;
  color: #667eea;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.home-link:hover {
  text-decoration: underline;
}

/* ── Footer ────────────────────────────────────────────── */

.home-footer {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid #eee;
  margin-top: 16px;
}

.home-footer-brand {
  font-family: 'ChonkyBrand', sans-serif;
  font-size: 1rem;
}

.home-footer-sep {
  margin: 0 6px;
  color: #ccc;
}

.home-footer-link {
  color: #667eea;
  text-decoration: none;
}

.home-footer-link:hover {
  text-decoration: underline;
}

/* ── Animations ────────────────────────────────────────── */

@keyframes homeFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .home-animate {
    opacity: 0;
    transform: translateY(16px);
  }

  .home-animate.home-visible {
    animation: homeFadeInUp 0.5s ease-out forwards;
  }
}

@media print {
  .home-animate {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Dark Mode ─────────────────────────────────────────── */

body.dark-mode .home-intro-desc { color: #bbb; }
body.dark-mode .home-intro-point { color: #bbb; }
body.dark-mode .home-intro-point-icon {
  background: color-mix(in srgb, var(--point-color) 18%, transparent);
}
body.dark-mode .home-section-title { color: #e0e0e0; }
body.dark-mode .home-section-subtitle { color: #888; }

body.dark-mode .home-jumbo-explainer {
  background: var(--surface2);
  border-left-color: var(--accent);
  border-color: var(--border);
}
body.dark-mode .home-jumbo-title { color: #e0e0e0; }
body.dark-mode .home-jumbo-text { color: #aaa; }
body.dark-mode .home-type-item:hover {
  background: rgba(102, 126, 234, 0.1);
}
body.dark-mode .home-type-badge {
  background: color-mix(in srgb, var(--type-color) 15%, transparent);
  border-color: color-mix(in srgb, var(--type-color) 30%, transparent);
}
body.dark-mode .home-type-card {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}
body.dark-mode .home-type-desc {
  color: #aaa;
}
body.dark-mode .home-type-count {
  color: #777;
}

body.dark-mode .home-stats-strip {
  background: var(--surface);
}
body.dark-mode .home-stat span { color: #888; }
body.dark-mode .home-stat-divider { background: #333; }

body.dark-mode .home-feature-block {
  background: var(--surface);
  border-color: #333;
}
body.dark-mode .home-feature-block:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
body.dark-mode .home-feature-block-title { color: #e0e0e0; }
body.dark-mode .home-feature-block-desc { color: #999; }
body.dark-mode .home-feature-bullets li { color: #aaa; }

body.dark-mode .home-feature-screen {
  background: linear-gradient(135deg, #151520, #1a1a2a);
  border-color: #444;
}
body.dark-mode .home-screen-placeholder { color: #555; }
body.dark-mode .home-screen-placeholder-icon svg { stroke: #444; }
body.dark-mode .home-feature-icon-wrap { background: #2a2a3e !important; }

body.dark-mode .home-quick-feat {
  background: var(--surface);
  border-color: #333;
}
body.dark-mode .home-quick-feat:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
body.dark-mode .home-quick-feat-icon {
  background: color-mix(in srgb, var(--qf-color, #667eea) 15%, transparent);
}
body.dark-mode .home-quick-feat-title { color: #e0e0e0; }
body.dark-mode .home-quick-feat-desc { color: #999; }

body.dark-mode .home-data-banner {
  background: linear-gradient(135deg, var(--surface), #252538);
}
body.dark-mode .home-data-title { color: #e0e0e0; }
body.dark-mode .home-data-subtitle { color: #888; }
body.dark-mode .home-data-card {
  background: #1a1a2a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
body.dark-mode .home-data-card span { color: #888; }

body.dark-mode .home-explore-card--trivia {
  background: linear-gradient(135deg, #422006, #451a03);
  border-color: #78350f;
}
body.dark-mode .home-explore-card--trivia h3 { color: #fbbf24; }
body.dark-mode .home-explore-card--trivia p { color: #d97706; }
body.dark-mode .home-explore-card--trivia .home-explore-link { color: #f59e0b; }
body.dark-mode .home-explore-card--trivia .home-explore-card-icon { background: rgba(245, 158, 11, 0.15); }
body.dark-mode .home-explore-card--trivia .home-explore-card-icon svg { stroke: #f59e0b; }

body.dark-mode .home-explore-card--history {
  background: linear-gradient(135deg, #172554, #1e3a5f);
  border-color: #1e40af;
}
body.dark-mode .home-explore-card--history h3 { color: #60a5fa; }
body.dark-mode .home-explore-card--history p { color: #3b82f6; }
body.dark-mode .home-explore-card--history .home-explore-link { color: #60a5fa; }
body.dark-mode .home-explore-card--history .home-explore-card-icon { background: rgba(59, 130, 246, 0.15); }
body.dark-mode .home-explore-card--history .home-explore-card-icon svg { stroke: #60a5fa; }

body.dark-mode .home-footer {
  border-color: #333;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 900px) {
  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .home-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-explore-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-intro {
    flex-direction: column;
    gap: 24px;
    padding: 24px 0 20px;
  }

  .home-intro-right {
    justify-content: center;
  }

  .home-intro-card {
    width: 95px;
  }

  .home-jumbo-explainer {
    flex-direction: column;
    gap: 12px;
  }

  .home-type-showcase {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-type-item {
    flex: 0 0 auto;
    width: calc(33% - 8px);
  }

  .home-type-card {
    width: 70px;
  }

  .home-stats-strip {
    flex-direction: column;
    gap: 18px;
    padding: 18px;
  }

  .home-stats-cluster-sep {
    width: auto;
    height: 1px;
    margin: 0;
    background: linear-gradient(to right, transparent, #d8dbe6, transparent);
  }

  .home-stat {
    flex: 0 0 calc(33% - 8px);
  }

  .home-quick-features {
    grid-template-columns: 1fr 1fr;
  }

  .home-data-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-explore-grid {
    grid-template-columns: 1fr;
  }

}

/* ──────────────────────────────────────────────────────────
   Dark-mode contrast tweaks (kept from prior pass)
   ────────────────────────────────────────────────────────── */
body.dark-mode .home-stats-strip {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 100%);
  border-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .home-type-item {
  background: rgba(255, 255, 255, 0.025);
}
body.dark-mode .home-type-item:hover {
  background: rgba(102, 126, 234, 0.10);
}
body.dark-mode .home-quick-feat {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
