/* ============================================================
   ZenCreator Review — Site styles
   ============================================================ */
:root {
  --brand: #6d28d9;
  --brand-dark: #5b21b6;
  --brand-light: #8b5cf6;
  --brand-bg: #f5f3ff;
  --ink: #1e1b2e;
  --ink-soft: #4b4763;
  --ink-mute: #7c7894;
  --line: #e7e4f2;
  --bg: #fbfaff;
  --card: #ffffff;
  --amber-bg: #fffbeb;
  --amber-line: #fde68a;
  --amber-ink: #92400e;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(30, 27, 46, .06), 0 8px 24px rgba(109, 40, 217, .07);
  --shadow-lg: 0 4px 10px rgba(30, 27, 46, .08), 0 18px 44px rgba(109, 40, 217, .13);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 22px; }

/* ---------------- Header ---------------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.18rem; color: var(--ink);
  letter-spacing: -.02em; white-space: nowrap;
}
.site-logo:hover { text-decoration: none; }
.site-logo .logo-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.site-logo .logo-review { color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-soft); font-weight: 600; font-size: .92rem;
  padding: 7px 11px; border-radius: 8px;
}
.main-nav a:hover { background: var(--brand-bg); color: var(--brand); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff !important; font-weight: 700 !important;
  padding: 9px 16px !important; border-radius: 999px !important;
  box-shadow: 0 3px 10px rgba(109, 40, 217, .3);
}
.nav-cta:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%) !important; color: #fff !important; }
@media (max-width: 720px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

/* ---------------- Hero (home) ---------------- */
#hero-section {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(139, 92, 246, .18), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(109, 40, 217, .12), transparent 60%),
    linear-gradient(180deg, #f6f3ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 60px;
  text-align: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--brand);
  padding: 6px 14px; margin-bottom: 22px; box-shadow: var(--shadow);
}
#hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; margin: 0 0 18px;
}
#hero-section h1 .accent {
  background: linear-gradient(120deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 680px; margin: 0 auto 30px; color: var(--ink-soft); font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(109, 40, 217, .32);
  transition: transform .15s ease, filter .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); text-decoration: none; color: #fff; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.btn-secondary:hover { transform: translateY(-2px); text-decoration: none; color: var(--brand); }
.hero-stats {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; margin-top: 44px;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num { font-size: 1.7rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.hero-stat .stat-label { font-size: .82rem; color: var(--ink-mute); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ---------------- Disclosure banner ---------------- */
.disclosure-banner {
  background: var(--amber-bg); border: 1px solid var(--amber-line);
  color: var(--amber-ink); border-radius: var(--radius);
  padding: 13px 18px; font-size: .9rem; margin: 26px auto;
  display: flex; gap: 10px; align-items: flex-start;
}
.disclosure-banner i { margin-top: 4px; flex: none; }

/* ---------------- Batch sections / cards ---------------- */
.batch-section { padding: 46px 0 10px; }
.batch-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.batch-head h2 {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; margin: 0;
}
.batch-badge {
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); background: var(--brand-bg); border: 1px solid #ddd6fe;
  padding: 4px 10px; border-radius: 999px;
}
.batch-desc { color: var(--ink-soft); margin: 4px 0 24px; max-width: 760px; }
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 20px;
}
.article-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 0 24px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.article-card > .card-top, .article-card > h3, .article-card > p, .article-card > .card-link {
  margin-left: 24px; margin-right: 24px;
}
.card-thumb {
  position: relative; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 9; background: var(--brand-bg);
}
.card-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100% !important; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.22, .8, .3, 1);
}
.article-card:hover .card-thumb img { transform: scale(1.07); }
.card-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(30, 27, 46, .28) 100%);
  pointer-events: none;
}
.card-thumb-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(4px);
  color: var(--brand-dark); font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(30, 27, 46, .18);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-num {
  font-size: .74rem; font-weight: 800; color: var(--ink-mute); letter-spacing: .1em;
}
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--brand-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.article-card h3 { margin: 0; font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1.45; }
.article-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; flex: 1; }
.card-link { font-weight: 700; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- Trust / method section ---------------- */
#method-section { padding: 56px 0 66px; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-top: 28px; }
.method-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.method-card .m-icon {
  width: 44px; height: 44px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.method-card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.method-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ---------------- CTA band ---------------- */
#cta-band {
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%);
  color: #fff; text-align: center; padding: 56px 22px; margin-top: 20px;
}
#cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
#cta-band p { color: rgba(255, 255, 255, .85); max-width: 620px; margin: 0 auto 26px; }
#cta-band .btn-primary { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
#cta-band .cta-note { font-size: .8rem; color: rgba(255, 255, 255, .7); margin-top: 16px; }

/* ---------------- Article page ---------------- */
#article-hero {
  background: linear-gradient(180deg, #f6f3ff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line); padding: 34px 0 30px;
}
.breadcrumb { font-size: .84rem; color: var(--ink-mute); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-mute); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }
.article-meta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: .8rem; font-weight: 600; color: var(--ink-soft);
}
.meta-chip i { color: var(--brand); font-size: .78rem; }

.article-layout { padding: 36px 0 40px; }

/* Article hero image */
.article-hero-figure {
  margin: 0 0 28px; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
  border: 1px solid var(--line);
}
.article-hero-figure img {
  width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover;
}
.article-hero-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(109, 40, 217, .06) 0%, transparent 40%);
  pointer-events: none;
}

/* Article body typography */
#article-body h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem); font-weight: 800; letter-spacing: -.025em;
  line-height: 1.2; margin: 0 0 20px;
}
#article-body h2 {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em;
  margin: 44px 0 14px; padding-top: 10px; scroll-margin-top: 90px;
}
#article-body h2::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  margin-bottom: 12px;
}
#article-body h3 { font-size: 1.12rem; font-weight: 700; margin: 28px 0 10px; scroll-margin-top: 90px; }
#article-body p { margin: 0 0 16px; color: var(--ink-soft); }
#article-body ul, #article-body ol { color: var(--ink-soft); padding-left: 24px; margin: 0 0 18px; }
#article-body li { margin-bottom: 7px; }
#article-body strong { color: var(--ink); }
#article-body a { font-weight: 600; border-bottom: 1px solid rgba(109, 40, 217, .25); }
#article-body a:hover { text-decoration: none; border-bottom-color: var(--brand); }
#article-body code {
  background: var(--brand-bg); color: var(--brand-dark);
  border: 1px solid #e6e0fb; border-radius: 6px;
  padding: 1px 7px; font-size: .86em; word-break: break-all;
}
#article-body blockquote {
  margin: 22px 0; padding: 14px 20px;
  background: var(--amber-bg); border: 1px solid var(--amber-line);
  border-left: 4px solid #f59e0b; border-radius: 10px;
  color: var(--amber-ink); font-size: .93rem;
}
#article-body blockquote p { margin: 0; color: inherit; }

/* Tables */
.table-wrap {
  overflow-x: auto; margin: 22px 0; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch; max-width: 100%;
}
#article-body table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .92rem; background: #fff; }
.table-scroll-hint {
  display: none; align-items: center; gap: 7px;
  font-size: .74rem; font-weight: 700; color: var(--brand);
  background: var(--brand-bg); border: 1px solid #ddd6fe; border-radius: 8px;
  padding: 6px 11px; margin: 20px 0 -14px; width: fit-content;
}
.table-wrap.has-scroll { border-color: #ddd6fe; }
.table-wrap.has-scroll::-webkit-scrollbar { height: 7px; }
.table-wrap.has-scroll::-webkit-scrollbar-thumb { background: #c4b5fd; border-radius: 99px; }
.table-wrap.has-scroll::-webkit-scrollbar-track { background: var(--brand-bg); }
@media (max-width: 720px) {
  .table-scroll-hint { display: inline-flex; }
}
#article-body th {
  background: var(--brand-bg); color: var(--brand-dark); text-align: left;
  font-weight: 700; padding: 12px 16px; border-bottom: 2px solid #ddd6fe; white-space: nowrap;
}
#article-body td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
#article-body tr:last-child td { border-bottom: none; }
#article-body tr:nth-child(even) td { background: #fcfbff; }

/* Affiliate CTA link inside article */
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff !important; font-weight: 700;
  padding: 13px 24px; border-radius: 999px; margin: 6px 0 10px;
  box-shadow: 0 5px 16px rgba(109, 40, 217, .3);
  border-bottom: none !important;
  transition: transform .15s ease, filter .15s ease;
}
.cta-btn:hover { transform: translateY(-2px); filter: brightness(1.06); text-decoration: none; }
.cta-btn::after { content: "\2192"; font-weight: 800; }

/* Table of contents */
#article-toc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 26px 0 34px; box-shadow: var(--shadow);
}
#article-toc .toc-title {
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-mute); margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
#article-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
#article-toc li { margin: 4px 0; font-size: .9rem; break-inside: avoid; }
#article-toc a { color: var(--ink-soft); font-weight: 600; }
#article-toc a:hover { color: var(--brand); }
@media (max-width: 640px) { #article-toc ol { columns: 1; } }

/* ---------------- FAQ — premium Q/A design ---------------- */
.faq-wrap {
  background: linear-gradient(180deg, #f8f6ff 0%, #fdfcff 100%);
  border: 1px solid #e6e0fb; border-radius: 18px;
  padding: 26px 24px 18px; margin: 18px 0 10px;
}
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: #ddd6fe; }
.faq-item[open] {
  border-color: #c4b5fd;
  box-shadow: 0 6px 20px rgba(109, 40, 217, .12);
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex;
  align-items: flex-start; gap: 14px; padding: 16px 18px;
  font-weight: 700; font-size: .98rem; color: var(--ink); line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-badge {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; font-size: .82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(109, 40, 217, .3); margin-top: -2px;
}
.faq-q-text { flex: 1; }
.faq-chevron {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; transition: transform .3s cubic-bezier(.4, 0, .2, 1), background .25s ease;
  margin-top: -1px;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--brand); color: #fff;
}
.faq-item .faq-answer {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 0 18px 18px;
  animation: faqSlide .35s cubic-bezier(.4, 0, .2, 1);
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.faq-a-badge {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669;
  font-size: .82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.faq-a-body {
  flex: 1; background: #faf9ff; border: 1px solid #eeeafb;
  border-radius: 10px; padding: 12px 16px; font-size: .93rem;
}
.faq-a-body p { margin: 0 0 8px; }
.faq-a-body p:last-child { margin-bottom: 0; }

/* ---------------- Author box ---------------- */
.author-box {
  position: relative; margin: 46px 0 8px;
  background: linear-gradient(135deg, #1d1834 0%, #2b2050 55%, #3b2a6e 100%);
  border-radius: 20px; padding: 30px 30px 26px;
  color: #d8d3f0; overflow: hidden;
  box-shadow: 0 14px 40px rgba(43, 32, 80, .35);
}
.author-box::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 200px at 90% -20%, rgba(139, 92, 246, .35), transparent 65%),
    radial-gradient(300px 200px at 0% 120%, rgba(109, 40, 217, .3), transparent 60%);
  pointer-events: none;
}
.author-box-inner { position: relative; display: flex; gap: 24px; align-items: flex-start; }
.author-avatar-ring {
  flex: none; width: 96px; height: 96px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 0deg, #8b5cf6, #d8b4fe, #6d28d9, #8b5cf6);
  animation: ringSpin 6s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.author-avatar-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 3px solid #1d1834; display: block;
  animation: ringSpinReverse 6s linear infinite;
}
@keyframes ringSpinReverse { to { transform: rotate(-360deg); } }
.author-info { flex: 1; min-width: 0; }
.author-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: #c4b5fd; background: rgba(139, 92, 246, .16);
  border: 1px solid rgba(139, 92, 246, .35);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.author-name {
  font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.01em;
  margin: 0 0 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.author-name .verified-badge { color: #60a5fa; font-size: .95rem; }
.author-role { font-size: .84rem; font-weight: 600; color: #a89fd6; margin-bottom: 12px; }
.author-bio { font-size: .9rem; line-height: 1.65; margin: 0 0 14px; color: #cfc9ec; }
.author-meta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.author-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; color: #d8d3f0;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  padding: 5px 12px; border-radius: 999px;
}
.author-stat i { color: #a78bfa; }
.author-socials { display: flex; gap: 8px; margin-left: auto; }
.author-socials a {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #d8d3f0; display: flex; align-items: center; justify-content: center;
  font-size: .88rem; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.author-socials a:hover { transform: translateY(-3px); background: var(--brand-light); color: #fff; text-decoration: none; }
@media (max-width: 620px) {
  .author-box-inner { flex-direction: column; align-items: center; text-align: center; }
  .author-name { justify-content: center; }
  .author-meta-row { justify-content: center; }
  .author-socials { margin-left: 0; }
}

/* Editors note */
.editors-note {
  background: var(--brand-bg); border: 1px solid #ddd6fe; border-radius: var(--radius);
  padding: 16px 20px; font-size: .88rem; color: var(--ink-soft); margin: 30px 0 0;
}
.editors-note strong { color: var(--brand-dark); }

/* Prev / next nav */
.article-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 44px 0 8px;
}
.pager-link {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pager-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pager-link .pager-label {
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-mute); display: block; margin-bottom: 5px;
}
.pager-link .pager-title { font-weight: 700; font-size: .93rem; color: var(--ink); line-height: 1.4; }
.pager-link.pager-next { text-align: right; }
@media (max-width: 560px) { .article-pager { grid-template-columns: 1fr; } }

/* Related articles */
#related-section { margin-top: 40px; }
#related-section h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 14px; }
.related-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 16px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: .9rem;
  color: var(--ink); line-height: 1.45; display: block; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-thumb {
  display: block; position: relative; margin: 0 -16px 12px; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--brand-bg);
}
.related-kicker { display: block; }
.related-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100% !important; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.related-card:hover .related-thumb img { transform: scale(1.06); }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--brand); }
.related-card .related-kicker {
  display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--brand); margin-bottom: 6px;
}

/* Loading state */
.article-loading { text-align: center; padding: 80px 0; color: var(--ink-mute); }
.article-loading .spinner {
  width: 38px; height: 38px; margin: 0 auto 16px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Footer ---------------- */
#site-footer {
  background: #17142a; color: #b9b4d6; margin-top: 70px;
  padding: 50px 0 30px; font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
#site-footer .footer-brand { font-weight: 800; font-size: 1.1rem; color: #fff; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
#site-footer .footer-brand .logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: .82rem;
}
#site-footer p { margin: 0 0 10px; color: #9c96c2; font-size: .85rem; }
#site-footer h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  margin: 0 0 14px;
}
#site-footer ul { list-style: none; margin: 0; padding: 0; }
#site-footer ul li { margin-bottom: 8px; }
#site-footer ul a { color: #b9b4d6; font-size: .86rem; }
#site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 20px;
  font-size: .8rem; color: #8a84b0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ============================================================
   Premium effects — inspired by reactbits.dev
   ============================================================ */

/* ---- Scroll reveal (Fade Content / Animated Content) ---- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-left.is-visible, .reveal-right.is-visible { transform: translateX(0); }
.reveal-scale { transform: scale(.92); }
.reveal-scale.is-visible { transform: scale(1); }

/* ---- Split-text style hero entrance ---- */
.split-word {
  display: inline-block; opacity: 0; transform: translateY(30px) rotate(3deg);
  animation: wordIn .7s cubic-bezier(.22, .8, .3, 1) forwards;
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0) rotate(0); } }

/* ---- Shiny text (ReactBits ShinyText) ---- */
.shiny-text {
  background: linear-gradient(120deg, var(--brand) 30%, #e9d5ff 50%, var(--brand-light) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 3.2s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.shiny-text-light {
  background: linear-gradient(120deg, #fff 35%, rgba(255,255,255,.35) 50%, #fff 65%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 3.5s linear infinite;
}

/* ---- Gradient border card (ReactBits StarBorder / GradientBorder) ---- */
.article-card, .method-card {
  position: relative; overflow: hidden;
}
.article-card::before, .method-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, transparent 30%, rgba(139, 92, 246, .55), transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.article-card:hover::before, .method-card:hover::before { opacity: 1; }

/* ---- Spotlight card (ReactBits SpotlightCard) ---- */
.spotlight {
  position: relative;
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .13), transparent 65%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.spotlight:hover::after { opacity: 1; }

/* ---- Card icon pop ---- */
.article-card:hover .card-icon {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; transform: scale(1.1) rotate(-6deg);
}
.card-icon { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .3s ease, color .3s ease; }
.card-link i { transition: transform .25s ease; }
.article-card:hover .card-link i { transform: translateX(5px); }

/* ---- Glow / magnetic CTA buttons ---- */
.btn-primary, .cta-btn, .nav-cta {
  position: relative; overflow: hidden;
}
.btn-primary::after, .cta-btn::before, .nav-cta::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  animation: btnSheen 3.4s ease-in-out infinite;
}
@keyframes btnSheen {
  0%, 55% { left: -80%; }
  85%, 100% { left: 130%; }
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(109, 40, 217, .5); }

/* ---- Hero aurora / floating orbs (ReactBits Aurora) ---- */
#hero-section { position: relative; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  opacity: .5; z-index: 0;
}
.hero-orb-1 {
  width: 340px; height: 340px; top: -120px; right: 6%;
  background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 70%);
  animation: orbFloat 9s ease-in-out infinite;
}
.hero-orb-2 {
  width: 280px; height: 280px; bottom: -110px; left: 4%;
  background: radial-gradient(circle, rgba(109, 40, 217, .45), transparent 70%);
  animation: orbFloat 11s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, 22px) scale(1.08); }
}
#hero-section .container { position: relative; z-index: 1; }

/* ---- Hero badge pulse ---- */
.hero-kicker i { animation: kickerPulse 2s ease-in-out infinite; }
@keyframes kickerPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ---- Count-up stat styling ---- */
.hero-stat .stat-num { font-variant-numeric: tabular-nums; }

/* ---- Sticky reading progress bar ---- */
#read-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), #d8b4fe);
  z-index: 90; transition: width .1s linear;
  box-shadow: 0 0 8px rgba(139, 92, 246, .6);
}

/* ---- Back-to-top button ---- */
#back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff; font-size: 1rem;
  box-shadow: 0 6px 20px rgba(109, 40, 217, .4);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, filter .2s ease;
}
#back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { filter: brightness(1.12); }

/* ---- CTA band aurora ---- */
#cta-band { position: relative; overflow: hidden; }
#cta-band::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 90deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, .08) 90deg, transparent 180deg, rgba(255, 255, 255, .06) 270deg, transparent 360deg);
  animation: ctaSpin 14s linear infinite; pointer-events: none;
}
@keyframes ctaSpin { to { transform: rotate(360deg); } }
#cta-band > * { position: relative; }

/* ---- Table row hover ---- */
#article-body tr { transition: background .2s ease; }
#article-body tbody tr:hover td { background: var(--brand-bg); }

/* ---- Blockquote entrance accent ---- */
#article-body blockquote { position: relative; }

/* ============================================================
   Mobile responsiveness — comprehensive fixes
   ============================================================ */

/* Prevent any long word/URL from forcing horizontal scroll */
#article-body, .article-card p, .method-card p, .author-bio, .faq-a-body {
  overflow-wrap: break-word; word-wrap: break-word;
}
#article-body a { word-break: break-word; }

img, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-stats { gap: 22px; }
  .footer-grid { gap: 26px; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container, .container-narrow { padding: 0 16px; }

  /* Header: compact logo + CTA only (nav links already hidden) */
  .header-inner { padding: 11px 0; gap: 10px; }
  .site-logo { font-size: 1.02rem; }
  .site-logo .logo-mark { width: 30px; height: 30px; font-size: .82rem; }
  .nav-cta { padding: 8px 14px !important; font-size: .84rem !important; }

  /* Hero */
  #hero-section { padding: 44px 0 40px; }
  #hero-section h1 { font-size: clamp(1.65rem, 7.4vw, 2.2rem); }
  .hero-sub { font-size: .97rem; margin-bottom: 24px; }
  .hero-kicker { font-size: .74rem; padding: 5px 12px; margin-bottom: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; padding: 0 6px; }
  .btn-primary, .btn-secondary { justify-content: center; padding: 13px 20px; font-size: .95rem; }
  .hero-stats { margin-top: 32px; gap: 8px 4px; display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero-stat .stat-num { font-size: 1.35rem; }
  .hero-stat .stat-label { font-size: .7rem; }
  .hero-orb-1 { width: 220px; height: 220px; }
  .hero-orb-2 { width: 180px; height: 180px; }

  /* Sections & cards */
  .batch-section { padding: 34px 0 6px; }
  .batch-head h2 { font-size: 1.3rem; }
  .batch-desc { font-size: .92rem; }
  .card-grid { gap: 16px; }
  .article-card > .card-top, .article-card > h3, .article-card > p, .article-card > .card-link {
    margin-left: 18px; margin-right: 18px;
  }
  .article-card { padding-bottom: 18px; }
  .article-card h3 { font-size: 1rem; }
  #method-section { padding: 40px 0 46px; }
  .method-card { padding: 20px; }
  #cta-band { padding: 42px 16px; }

  /* Article pages */
  #article-hero { padding: 22px 0 20px; }
  .breadcrumb { font-size: .76rem; }
  .article-meta-row { gap: 7px; }
  .meta-chip { font-size: .72rem; padding: 4px 10px; }
  .article-layout { padding: 24px 0 30px; }
  #article-body h1 { font-size: clamp(1.4rem, 6.2vw, 1.8rem); }
  #article-body h2 { font-size: 1.22rem; margin: 34px 0 12px; }
  #article-body h3 { font-size: 1.04rem; }
  #article-body p, #article-body ul, #article-body ol { font-size: .95rem; }
  #article-body ul, #article-body ol { padding-left: 20px; }
  .article-hero-figure { margin-bottom: 22px; border-radius: 12px; }
  #article-toc { padding: 16px 18px; margin: 20px 0 26px; }
  #article-toc li { font-size: .85rem; }
  .cta-btn { padding: 12px 18px; font-size: .9rem; width: 100%; justify-content: center; text-align: center; }
  #article-body blockquote { padding: 12px 15px; font-size: .88rem; margin: 18px 0; }
  #article-body th, #article-body td { padding: 9px 12px; font-size: .85rem; }

  /* FAQ */
  .faq-wrap { padding: 16px 12px 10px; border-radius: 14px; }
  .faq-item summary { padding: 13px 13px; gap: 10px; font-size: .9rem; }
  .faq-q-badge { width: 26px; height: 26px; font-size: .72rem; border-radius: 8px; }
  .faq-chevron { width: 24px; height: 24px; font-size: .68rem; }
  .faq-item .faq-answer { padding: 0 13px 14px; gap: 10px; }
  .faq-a-badge { width: 26px; height: 26px; font-size: .72rem; border-radius: 8px; }
  .faq-a-body { padding: 10px 12px; font-size: .88rem; }

  /* Author box */
  .author-box { padding: 22px 18px 20px; border-radius: 16px; margin-top: 36px; }
  .author-avatar-ring { width: 82px; height: 82px; }
  .author-name { font-size: 1.1rem; }
  .author-bio { font-size: .86rem; }
  .author-stat { font-size: .72rem; padding: 4px 10px; }

  /* Pager & related */
  .article-pager { margin: 32px 0 6px; }
  .pager-link { padding: 13px 16px; }
  .pager-link .pager-title { font-size: .86rem; }
  #related-section { margin-top: 30px; }
  #related-section h2 { font-size: 1.15rem; }

  /* Footer */
  #site-footer { padding: 38px 0 24px; margin-top: 48px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  /* Floating controls */
  #back-to-top { width: 42px; height: 42px; right: 14px; bottom: 14px; }

  /* Disclosure */
  .disclosure-banner { font-size: .82rem; padding: 11px 14px; }
}

@media (max-width: 400px) {
  .container, .container-narrow { padding: 0 13px; }
  #hero-section h1 { font-size: 1.55rem; }
  .site-logo { font-size: .95rem; }
  #article-body table { min-width: 420px; }
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .split-word { opacity: 1; transform: none; animation: none; }
  .shiny-text, .shiny-text-light, .hero-orb, .author-avatar-ring, .author-avatar-ring img,
  #cta-band::before, .btn-primary::after, .cta-btn::before, .nav-cta::after { animation: none !important; }
}
