/* Scoped styles for the new home page to avoid impacting existing pages */

.home-body {
  --bg: #090c12;
  --surface: #10141d;
  --surface-solid: #0d1119;
  --text: #f4f6fb;
  --muted: #d8dfe8;
  --card: #11131a;
  --border: #2c3143;
  --accent-1: #7fb9ff;
  --accent-2: #9f82ff;
  --accent-3: #4ad4ef;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg), #0d121c 55%, #05070b 100%);
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  isolation: isolate;
  scroll-padding-top: 86px;
}

.magnetic-dots {
  position: fixed;
  inset: 0;
  z-index: -9999;
  pointer-events: none;
}

.home-body a { color: var(--text); text-decoration: none; }
.home-body a:hover { opacity: 0.9; }

.home-body .container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

@media (prefers-reduced-motion: reduce) {
  .magnetic-dots {
    display: none;
  }
}

/* Header / nav */
.home-header, .blog-header { position: sticky; top: 0; backdrop-filter: saturate(140%) blur(8px); background: rgba(8,11,18,0.58); border-bottom: 1px solid rgba(82,88,110,0.4); z-index: 9999; }
.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand-icon { border-radius: 8px; box-shadow: var(--shadow); }
.brand-name { letter-spacing: 0.2px; font-size: 1.1rem; }
.brand-name { letter-spacing: 0.2px; }
.blog-brand-combo { display: inline-flex; align-items: center; gap: 8px; }
.blog-brand-combo > a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.blog-brand-combo > a .brand-name { font-size: 1.1rem; }
.brand-name-blog { color: #f97316; font-weight: 600; font-size: 1.1rem; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(92,102,132,0.55);
  background: rgba(19,25,39,0.85);
  color: inherit;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  transition: border-color 160ms ease, background 160ms ease;
  z-index: 1100; /* ensure hamburger sits above other header elements and is clickable */
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: #f5f7ff;
  display: block;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); margin: 0 0 24px; padding-top: 12px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; padding: 90px 0 90px; align-items: center; }
.hero-title { font-size: clamp(28px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 14px; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 18px); line-height: 1.55; margin: 0 0 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-ctas { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-copy { padding-bottom: 16px; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-logo { width: clamp(120px, 40vw, 220px); height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); opacity: 0.95; }
.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(124,92,255,0.35), rgba(110,168,255,0.25), transparent);
  filter: blur(36px);
  opacity: 0.8;
  pointer-events: none;
}

/* Buttons */

/* Bands / sections */
.band { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(22px, 3.2vw, 28px); }
.muted { color: var(--muted); }

/* Compact hero variant for index (merged with Use Cases) */
.hero--compact .hero-inner { grid-template-columns: 1fr; padding: 28px 0 32px; position: relative; }
.hero--compact .hero-title { font-size: clamp(26px, 4vw, 40px); }
.hero--compact .hero-sub { margin-bottom: 16px; }
.hero--compact .glow, .hero--compact .hero-logo { display: none; }
.hero--compact .hero-corner { position: absolute; right: 78px; top: 59px; }
.hero--compact .corner-glow { position: absolute; right: -10px; top: -46px; width: 230px; height: 230px; background: radial-gradient(closest-side, rgba(124,92,255,0.25), rgba(110,168,255,0.18), transparent); filter: blur(24px); opacity: 0.7; pointer-events: none; }
.hero--compact .hero-logo-mini { position: relative; width: clamp(68px, 8.5vw, 104px); height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35)); opacity: 0.95; }

@media (max-width: 920px) {
  .hero--compact .hero-corner { right: 0px; top: 73px; }
  .hero--compact .corner-glow { right: -30px; top: -40px; width: 180px; height: 180px; }
  .hero--compact .hero-logo-mini { width: 72px; }
}

@media (max-width: 820px) {
  .home-body { scroll-padding-top: 125px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    flex-direction: column;
    gap: 12px;
    background: rgba(13, 18, 28, 0.96);
    border: 1px solid rgba(92,102,132,0.4);
    border-radius: 16px;
    padding: 18px;
    min-width: 210px;
    box-shadow: 0 18px 38px rgba(5, 7, 14, 0.65);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 140ms ease, transform 160ms ease;
    display: none;
  }
  .nav-links a { color: #f5f7ff; }
  .home-header.is-menu-open .nav-links {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .home-header.is-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .home-header.is-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .home-header.is-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  position: relative;
  background: rgba(21, 27, 43, 0.97);
  border: 1px solid rgba(92,102,132,0.55);
  border-radius: 12px;
  padding: 27px;
  box-shadow: 0 22px 52px rgba(3, 4, 9, 0.55);
  overflow: hidden;
  min-height: 240px;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(5,6,12,0.65));
  opacity: 0.88;
  mix-blend-mode: normal;
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.tile-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(110,168,255,0.18)); color: var(--text); box-shadow: 0 6px 16px rgba(124,92,255,0.15); }
.tile-tilt { will-change: transform, box-shadow; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.tile-tilt:hover { transform: scale(1.02); box-shadow: 0 14px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(124,92,255,0.25) inset; }
.tile-tilt:active { transform: scale(1.005); }
.highlight-card h3 { margin: 0 0 6px; font-size: 18px; }
.highlight-card p { color: var(--muted); margin: 0 0 12px; }
.card-link { color: var(--text); font-weight: 600; }

/* Stripe-style top accent for tiles using theme colors */
.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

/* About */
.about-main__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 6px;
}
.about-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-photo figcaption {
  color: var(--muted);
  font-size: 0.95rem;
}
.bullets { padding-left: 18px; }
.bullets li { margin: 6px 0; }
.bullets--compact li { margin: 4px 0; }
.about-card h3 { margin-top: 0; }
.about-ctas { margin-top: 12px; }
.about-signature {
  text-align: right;
  margin: -4px 0 12px;
  color: #f2f4ff;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: #a9b4ca;
  margin-bottom: 12px;
}
.about-main__panels {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.about-panel {
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.about-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  min-height: 72px;
}
.about-panel img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.about-panel p {
  padding: 16px 24px 24px;
  color: #eef2f9;
}
.about-panel__cta {
  display: flex;
  justify-content: flex-end;
  padding: 0 24px 24px;
}
.about-panel__cta .btn {
  margin-top: 8px;
}
.icon-card__glyph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(120, 173, 255, 0.12);
}
.icon-card__glyph--heart { background: transparent; }
.icon-card__glyph--bird { background: transparent; }
.icon-card__glyph svg { color: inherit; }
.icon-card__glyph img {
  width: 42px;
  height: auto;
  max-height: 42px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .about-panel img {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }
}

/* Blog list */
.list { display: grid; gap: 8px; }
.post {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(92,102,132,0.45);
  background: rgba(22, 29, 46, 0.96);
  box-shadow: 0 12px 32px rgba(9, 12, 20, 0.32);
}
.post:hover { border-color: rgba(114,124,156,0.6); background: rgba(26, 34, 54, 0.98); }
.post-meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.post-title { font-weight: 600; }

/* APIs */
.apis-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start; }
.code-block { margin: 10px 0 14px; border-radius: 12px; border: 1px solid rgba(92,102,132,0.55); background: rgba(15, 21, 34, 0.96); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); overflow: auto; }
.code-block pre { margin: 0; padding: 16px; color: #f0f3ff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 13.5px; line-height: 1.45; }
.apis-card h3 { margin-top: 0; }

/* Footer */
.home-footer { padding: 36px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-links { display: inline-flex; gap: 16px; justify-self: center; }
.footer-copy { color: var(--muted); text-align: right; }

/* Responsive */
@media (max-width: 920px) {
  .band.highlights { padding-top: 28px; padding-bottom: 48px; }
  .hero-inner, .about-inner, .apis-inner { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
}

/* Reduce space above the Explore band on wide screens */
.band.highlights { padding-top: 40px; padding-bottom: 64px; }

/* --- Legal pages (dark theme) --- */
.home-body .legal-header { background: rgba(9,12,20,0.55); color: var(--text); padding: 48px 20px; text-align: center; border-bottom: 1px solid rgba(82,88,110,0.4); }
.home-body .brand-logo-link {
  display: inline-flex;
  border-radius: 20px;
  padding: 4px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.home-body .brand-logo-link:focus,
.home-body .brand-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 20, 35, 0.45);
}
.home-body .legal-subtitle { color: var(--muted); }
.home-body .legal-main { max-width: 900px; margin: 32px auto; padding: 0 20px 64px; }
.home-body .legal-card {
  background: rgba(21, 27, 43, 0.97);
  border: 1px solid rgba(92,102,132,0.55);
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(9, 12, 20, 0.35);
  position: relative;
  overflow: hidden;
}
.home-body .legal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(10,12,20,0.57));
  pointer-events: none;
  mix-blend-mode: normal;
}
.home-body .legal-content h2 { margin-top: 28px; font-size: 1.35rem; }
.home-body .legal-content h3 { margin-top: 20px; font-size: 1.1rem; }
.home-body .site-footer { color: var(--muted); background: transparent; }
.home-body .site-footer a { color: inherit; }

/* --- Index FAQ readability on dark theme --- */
.home-body .faq-card { background: rgba(21, 27, 43, 0.97); border: 1px solid rgba(92,102,132,0.55); border-radius: 12px; box-shadow: 0 18px 46px rgba(9, 12, 20, 0.35); }
.home-body .faq-item { padding: 6px 0; }
.home-body .faq-summary {
  background: rgba(24,31,50,0.96);
  color: var(--text);
  border: 1px solid rgba(96,105,134,0.55);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 180ms ease, background 180ms ease;
}
.home-body .faq-summary::before {
  content: '\25BA';
  font-size: 0.9rem;
  color: #ccd4f0;
  transition: transform 200ms ease;
}
.home-body .faq-summary::after { display: none; }
.home-body .faq-summary::-webkit-details-marker { display: none; }
.home-body .faq-item[open] .faq-summary {
  border-color: rgba(148,168,255,0.7);
  background: rgba(34,43,68,0.96);
}
.home-body .faq-item[open] .faq-summary::before {
  transform: rotate(90deg);
}
.home-body .faq-content {
  color: var(--text);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 8px;
  transition: max-height 460ms cubic-bezier(0.32, 0.04, 0.24, 1), opacity 320ms ease, padding 240ms ease;
}
.home-body .faq-item[open] .faq-content {
  opacity: 1;
  max-height: 1200px;
  padding: 12px 8px 4px;
}
.home-body .faq-content p,
.home-body .faq-content li { color: #eef1ff; }
.home-body .faq-content li { margin-bottom: 4px; }
.home-body .note { color: #dce1f0; }
.home-body .faq-content a { color: var(--accent-1); text-decoration: underline; }

/* --- Index page form + metrics (dark theme overrides) --- */
.home-body textarea {
  background: rgba(22, 29, 46, 0.96);
  color: var(--text);
  border: 1px solid rgba(96,105,134,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.home-body #submit-urls textarea { min-height: 260px; }
@media (max-width: 640px) {
  .home-body #submit-urls textarea { min-height: 200px; }
}
.home-body textarea::placeholder { color: #b6bed1; }
.home-body #run-mode,
.home-body select#run-mode {
  background: rgba(24,31,50,0.95);
  color: var(--text);
  border: 1px solid rgba(96,105,134,0.55);
}
.home-body .form-subtext,
.home-body main.container .note { color: #dce1f0; }

.home-body .metrics .metric {
  background: rgba(21, 27, 43, 0.97);
  border: 1px solid rgba(92,102,132,0.55);
}
.home-body .metric--success,
.home-body .metric--failed,
.home-body .metric--success-noimg { background: rgba(21, 27, 43, 0.97); }
.home-body .metrics dt { color: #c6cde0; }
.home-body .metrics dd { color: var(--text); }
.home-body .metric--requested dd { color: var(--accent-1); }
.home-body .metric--processed dd { color: #60a5fa; }
.home-body .metric--success dd { color: #22c55e; }
.home-body .metric--failed dd { color: #f87171; }

.home-body .badge {
  border: 1px solid rgba(92,102,132,0.45);
  background: rgba(21,27,43,0.9);
  color: var(--text);
}
.home-body .badge--idle { color: #b9c1d8; }
.home-body .badge--ok {
  background: rgba(34,197,94,0.18);
  border-color: rgba(34,197,94,0.55);
  color: #5df7a8;
}
.home-body .badge--warn {
  background: rgba(251,191,36,0.18);
  border-color: rgba(251,191,36,0.45);
  color: #facc15;
}
.home-body .badge--fail {
  background: rgba(248,113,113,0.2);
  border-color: rgba(248,113,113,0.45);
  color: #fda4af;
}
.home-body .status-text { color: #f5f7ff; }
.home-body .status-text--muted { color: #cfd5e7; }

/* --- Index Use Cases tiles (match home Explore tiles, compact) --- */
.home-body .usecases { margin-top: 8px; }
.home-body .usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 14px; }
.home-body .usecase-card { min-height: 190px; padding: 18px; }
.home-body .usecase-card h3 { margin: 0 0 6px; font-size: 18px; }
.home-body .usecase-card p { margin: 0; color: var(--muted); line-height: 1.5; }

/* Disable hover animation for tiles on the app page (use cases are inside .hero--compact) */
.hero--compact .tile-tilt { transition: none; }
.hero--compact .tile-tilt:hover { transform: none; box-shadow: var(--shadow); }

@media (max-width: 1024px) {
  .home-body .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .home-body .usecases-grid { grid-template-columns: 1fr; }
}

/* --- Index results table + details (dark theme) --- */
.home-body .results-header h2 { color: var(--text); }
.home-body .results-intro { color: var(--muted); }
.home-body .results-table-cell-with-expander {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-body .expander {
  color: var(--muted);
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, color 160ms ease;
}
.home-body .expander.expanded {
  transform: rotate(90deg);
  color: #f5f7ff;
}

.home-body #results-table th,
.home-body table#results-table th {
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 6px 10px;
}
.home-body #results-table td,
.home-body table#results-table td {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
}
.home-body #results-table tbody tr:hover,
.home-body table#results-table tbody tr:hover { background: rgba(124, 92, 255, 0.06); }
.home-body #results-table tbody tr.empty td,
.home-body table#results-table tbody tr.empty td { color: var(--muted); background: transparent; }

.home-body .details-row { background: #0f131a; }
.home-body .details-cell { color: var(--text); border-bottom: 1px solid var(--border); }
.home-body .details-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 4px;
  transition: max-height 460ms cubic-bezier(0.32, 0.04, 0.24, 1), opacity 320ms ease, padding 240ms ease;
}
.home-body .details-row.expanded .details-content {
  max-height: 2000px;
  opacity: 1;
  padding: 18px 4px 12px;
}
.home-body .details-row.collapsed .details-content {
  pointer-events: none;
}
.home-body .tag { background: #151823; color: var(--text); border: 1px solid var(--border); }
.home-body .desc-cell { color: var(--muted); }

.home-body .row-failed td { background: rgba(244, 63, 94, 0.06); color: var(--muted); }
.home-body tbody tr.row-failed:hover { background: rgba(244, 63, 94, 0.09); }

/* Anchor offset so sticky header doesn't cover the Submit URLs section */
#submit-urls { scroll-margin-top: 96px; }
#about,
#apis {
  scroll-margin-top: 40px;
}

.blog-body {
  --blog-teal: #4ad4ef;
  --blog-orange: #f97316;
  scroll-padding-top: 80px;
}
.blog-body .cursor-glow { display: none; }
.blog-header .brand-name { font-size: 1.1rem; }
.blog-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 72px;
}
.blog-post-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 32px 0 40px;
}
.blog-post-card > header {
  background: transparent !important;
  padding: 0 !important;
}
.blog-title {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 8px;
  color: var(--blog-teal);
  position: relative;
  padding: 0;
  z-index: 5;
  background: transparent;
}
body.blog-body table thead th,
body.blog-body .post-body table th {
  color: var(--blog-orange) !important;
  font-weight: 600;
}
.blog-post-meta {
  color: rgba(244,246,251,0.75);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Blog post content links - CohesionStack Orange */
.blog-post-content a,
.blog-post-card article a,
.post-body a {
  color: var(--blog-orange);
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-post-content a:hover,
.blog-post-card article a:hover,
.post-body a:hover {
  color: #fb923c;
  text-decoration-color: rgba(251, 146, 60, 0.6);
}

.blog-index-subtitle {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 12px 0 24px;
}
.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5 {
  color: var(--blog-teal);
}
.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}
.blog-post-footer {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}

/* ---- Global reveal + cursor glow effects ---- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 260ms ease;
  opacity: 0;
  z-index: 1;
}
.cursor-glow.is-active {
  opacity: 0.35;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1), opacity 420ms ease;
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Generic thumbnail used across index cards and related-post items */
.post-card-thumb {
  width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
.related-thumb {
  width: 120px !important;
  height: 80px !important;
}

/* Make card thumbnails responsive on narrow viewports (index + related lists) */
@media (max-width: 720px) {
  .post-card-thumb {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 0.75rem;
  }
  .related-thumb {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 0.75rem;
  }
}
