/* ============================================================
   resources.css — Shared CSS for the hatiOS Resources section

   IMPORTANT: This file does NOT redefine :root variables.
   Pages that use this CSS must define design-system variables
   (--navy-*, --amber-*, --cream-*, --font-display, --font-mono,
   --ease, etc.) inline or in a preceding stylesheet.
   ============================================================ */


/* ------------------------------------------------------------
   1. Base resets & shared fundamentals
   ------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-display);
  background: var(--navy-950);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.mono { font-family: var(--font-mono); }
.text-amber { color: var(--amber-500); }


/* ------------------------------------------------------------
   2. Animations
   ------------------------------------------------------------ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ------------------------------------------------------------
   3. Navigation
   ------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cream-10);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(232, 145, 58, 0.3));
  transition: filter 0.3s;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 16px rgba(232, 145, 58, 0.5));
}

.nav-wm {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-wm span { color: var(--amber-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--cream-60);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--amber-500);
  color: var(--navy-950);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--amber-400);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 145, 58, 0.3);
}

.mob-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 8px;
}

.nav-login {
  color: var(--cream-60) !important;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-login:hover {
  color: var(--amber-500) !important;
}


/* ------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------ */

.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--amber-500);
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-p:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 145, 58, 0.35);
}

.btn-s {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid var(--cream-20);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-s:hover {
  border-color: var(--cream-40);
  background: var(--cream-10);
  transform: translateY(-2px);
}


/* ------------------------------------------------------------
   5. Form styles
   ------------------------------------------------------------ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wl-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--navy-800);
  border: 1px solid var(--cream-10);
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 15px;
  transition: border-color 0.3s;
  outline: none;
}

.wl-input::placeholder { color: var(--cream-40); }

.wl-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(232, 145, 58, 0.15);
}

.wl-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f5f0e8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.wl-select option {
  background: var(--navy-800);
  color: var(--cream);
}


/* ------------------------------------------------------------
   6. Footer
   ------------------------------------------------------------ */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--cream-10);
}

.fgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.fbrand {
  font-size: 14px;
  color: var(--cream-40);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.fcol h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--cream-60);
  margin-bottom: 20px;
}

.fcol a {
  display: block;
  font-size: 14px;
  color: var(--cream-40);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.fcol a:hover { color: var(--cream); }

.fbot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--cream-10);
}

.fbot-t { font-size: 13px; color: var(--cream-40); }

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

.fbot-links a {
  font-size: 13px;
  color: var(--cream-40);
  text-decoration: none;
  transition: color 0.2s;
}

.fbot-links a:hover { color: var(--cream); }


/* ------------------------------------------------------------
   7. Resources hub page
   ------------------------------------------------------------ */

/* Hub hero */
.resources-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.resources-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.resources-hero p {
  font-size: 18px;
  color: var(--cream-60);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Filter bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid var(--cream-10);
  border-radius: 100px;
  color: var(--cream-40);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--cream-20);
  color: var(--cream-60);
}

.filter-btn.active {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--navy-950);
}

/* Content grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

/* Content cards */
.content-card {
  background: var(--navy-800);
  border: 1px solid var(--cream-10);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s var(--ease);
  text-decoration: none;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.content-card:hover {
  border-color: var(--amber-500);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.content-card:hover::before { transform: scaleX(1); }

/* Type badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.type-badge.blog {
  background: var(--amber-glow);
  color: var(--amber-400);
  border: 1px solid rgba(232, 145, 58, 0.25);
}

.type-badge.whitepaper {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-500);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.type-badge.guide {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green-500);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.type-badge.report {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.type-badge.buyers-guide {
  background: var(--amber-glow);
  color: var(--amber-400);
  border: 1px solid rgba(232, 145, 58, 0.25);
}

/* Card content */
.content-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.content-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--cream-60);
  margin-bottom: 16px;
  flex: 1;
}

.card-meta {
  font-size: 12px;
  color: var(--cream-40);
  font-family: var(--font-mono);
  display: flex;
  gap: 16px;
  margin-top: auto;
}

/* Featured card */
.featured-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: linear-gradient(135deg, var(--navy-800), rgba(232, 145, 58, 0.06));
  border: 1px solid rgba(232, 145, 58, 0.2);
  border-radius: 16px;
  padding: 48px;
  align-items: center;
  text-decoration: none;
  color: var(--cream);
  margin-bottom: 40px;
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.featured-card:hover {
  border-color: var(--amber-500);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.featured-card h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.featured-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cream-60);
  margin-bottom: 24px;
}

.featured-stats { display: flex; gap: 32px; }

.featured-stat { display: flex; flex-direction: column; }

.featured-stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--amber-500);
}

.featured-stat-label {
  font-size: 12px;
  color: var(--cream-40);
  margin-top: 2px;
}

.featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  border: 1px solid var(--cream-10);
  border-radius: 12px;
  padding: 40px;
  min-height: 200px;
}

.featured-visual-icon {
  width: 80px;
  height: 80px;
  color: var(--amber-500);
  opacity: 0.6;
}

/* Gated banner */
.gated-banner {
  background: linear-gradient(135deg, var(--navy-800), rgba(59, 130, 246, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin-bottom: 80px;
}

.gated-banner h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gated-banner p {
  font-size: 16px;
  color: var(--cream-60);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.gated-banner-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}

.gated-banner-form .wl-input { flex: 1; }
.gated-banner-form .btn-p { white-space: nowrap; padding: 14px 24px; }

/* Newsletter strip */
.newsletter-strip {
  background: var(--navy-900);
  border: 1px solid var(--cream-10);
  border-radius: 16px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.newsletter-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter-info p {
  font-size: 14px;
  color: var(--cream-60);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  min-width: 400px;
}

.newsletter-form .wl-input { flex: 1; }
.newsletter-form .btn-p { white-space: nowrap; padding: 14px 24px; }


/* ------------------------------------------------------------
   8. Blog article layout
   ------------------------------------------------------------ */

/* Reading progress bar */
.reading-progress-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: var(--navy-800);
}

.reading-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-400));
  transition: width 0.1s linear;
}

/* Article hero */
.article-hero {
  padding: 120px 0 48px;
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--cream-40);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--cream-40);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--cream); }
.breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }

.article-hero h1 {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.article-hero .subtitle {
  font-size: 18px;
  color: var(--cream-60);
  line-height: 1.7;
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--cream-40);
  font-family: var(--font-mono);
  padding-top: 24px;
  border-top: 1px solid var(--cream-10);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article layout (body + sidebar) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Article body prose */
.article-body { max-width: 720px; }

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--cream-80);
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 48px 0 16px;
  letter-spacing: -0.5px;
  color: var(--cream);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--cream);
}

.article-body ul,
.article-body ol {
  margin: 0 0 24px 24px;
  color: var(--cream-80);
}

.article-body li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.article-body strong { color: var(--cream); font-weight: 600; }
.article-body em { color: var(--cream-60); }

.article-body blockquote {
  border-left: 3px solid var(--amber-500);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--cream-60);
}

.article-body pre {
  background: var(--navy-900);
  border: 1px solid var(--cream-10);
  border-radius: 12px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 24px 0;
  color: var(--cream-60);
}

.article-body code {
  font-family: var(--font-mono);
  background: var(--navy-800);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 15px;
  color: var(--amber-400);
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  color: var(--cream-60);
}

/* Callout boxes */
.callout {
  background: var(--amber-glow);
  border-left: 3px solid var(--amber-500);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout-title {
  font-weight: 700;
  color: var(--amber-400);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.callout p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-80);
  margin-bottom: 0;
}

/* Key insight boxes */
.key-insight {
  background: var(--navy-800);
  border: 1px solid var(--cream-10);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0;
}

.key-insight-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--amber-500);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.key-insight p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-80);
  margin-bottom: 0;
}

/* Sidebar */
.sidebar { position: sticky; top: 100px; }

.toc {
  background: var(--navy-800);
  border: 1px solid var(--cream-10);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.toc-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cream-40);
  margin-bottom: 16px;
}

.toc a {
  display: block;
  padding: 6px 0;
  color: var(--cream-40);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.toc a:hover,
.toc a.active {
  color: var(--amber-500);
  border-left-color: var(--amber-500);
}

/* Sidebar CTA card */
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy-800), rgba(232, 145, 58, 0.06));
  border: 1px solid rgba(232, 145, 58, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.sidebar-cta h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 13px;
  color: var(--cream-60);
  margin-bottom: 16px;
  line-height: 1.6;
}

.sidebar-cta .btn-p {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
}

/* CTA banner (bottom of articles) */
.article-cta-banner {
  background: linear-gradient(135deg, var(--navy-800), rgba(232, 145, 58, 0.08));
  border: 1px solid rgba(232, 145, 58, 0.2);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin: 0 auto 80px;
  max-width: 1080px;
}

.article-cta-banner h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.article-cta-banner p {
  font-size: 16px;
  color: var(--cream-60);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* Related posts */
.related-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.related-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


/* ------------------------------------------------------------
   9. Gated content page layout
   ------------------------------------------------------------ */

.gated-hero { padding: 140px 0 80px; }

.gated-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.gated-info h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.gated-info .subtitle {
  font-size: 17px;
  color: var(--cream-60);
  line-height: 1.7;
  margin-bottom: 32px;
}

.gated-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.gated-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--cream-80);
  line-height: 1.6;
}

.gated-checklist-item svg {
  color: var(--amber-500);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Gated form card */
.gated-form-card {
  background: var(--navy-800);
  border: 1px solid var(--cream-10);
  border-radius: 16px;
  padding: 36px;
  position: sticky;
  top: 100px;
}

.gated-form-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gated-form-card p {
  font-size: 14px;
  color: var(--cream-60);
  margin-bottom: 24px;
  line-height: 1.6;
}

.gated-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gated-form .wl-input { width: 100%; }
.gated-form .btn-p { width: 100%; justify-content: center; }

.gated-form-note {
  font-size: 12px;
  color: var(--cream-40);
  text-align: center;
  margin-top: 8px;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 24px 0;
}

.form-success svg { margin-bottom: 12px; }

.form-success h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--cream-60);
}


/* ------------------------------------------------------------
   10. Fade-in utility
   ------------------------------------------------------------ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ------------------------------------------------------------
   11. Responsive breakpoints
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; padding: 36px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .gated-layout { grid-template-columns: 1fr; }
  .gated-form-card { position: static; }
  .newsletter-strip { flex-direction: column; text-align: center; }
  .newsletter-form { min-width: auto; width: 100%; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mob-btn { display: block; }

  .nav-links.mob-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--cream-10);
    animation: fadeIn 0.3s ease;
  }

  .nav-links.mob-open a { font-size: 16px; color: var(--cream-80); }

  .content-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .gated-banner-form { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .featured-stats { flex-wrap: wrap; }
  .fgrid { grid-template-columns: 1fr; }
  .fbot { flex-direction: column; gap: 16px; text-align: center; }
  .resources-hero { padding: 100px 0 40px; }
  .resources-hero h1 { font-size: 32px; }
  .article-hero { padding: 100px 0 36px; }
  .article-hero h1 { font-size: 28px; }
  .article-meta { flex-wrap: wrap; gap: 12px; }
  .gated-hero { padding: 100px 0 60px; }
}

@media (max-width: 480px) {
  html, body { max-width: 100vw; overflow-x: hidden; }
  .container, .container-wide { max-width: 100vw; overflow: hidden; box-sizing: border-box; padding: 0 16px; }
  .nav { padding: 0 12px; }
  .nav-cta { padding: 8px 16px; font-size: 12px; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 6px 14px; font-size: 12px; }
}
