/* =============================================================================
   ACADEMY UPGRADES — Scroll Animations, Footer Redesign, Micro-interactions
   ============================================================================= */

/* ─────────────────────────────────────────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
   ─────────────────────────────────────────────────────────────────────────────*/

/* Base state — hidden */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Revealed state */
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Variant: slide from left */
[data-reveal="left"] {
  transform: translateX(-40px);
}
[data-reveal="left"].revealed {
  transform: translateX(0);
}

/* Variant: slide from right */
[data-reveal="right"] {
  transform: translateX(40px);
}
[data-reveal="right"].revealed {
  transform: translateX(0);
}

/* Variant: scale up */
[data-reveal="scale"] {
  transform: scale(0.92);
}
[data-reveal="scale"].revealed {
  transform: scale(1);
}

/* Variant: fade only (no movement) */
[data-reveal="fade"] {
  transform: none;
}

/* Stagger delays for child elements */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal-stagger].revealed > *:nth-child(1)  { transition-delay: 0.05s; }
[data-reveal-stagger].revealed > *:nth-child(2)  { transition-delay: 0.10s; }
[data-reveal-stagger].revealed > *:nth-child(3)  { transition-delay: 0.15s; }
[data-reveal-stagger].revealed > *:nth-child(4)  { transition-delay: 0.20s; }
[data-reveal-stagger].revealed > *:nth-child(5)  { transition-delay: 0.25s; }
[data-reveal-stagger].revealed > *:nth-child(6)  { transition-delay: 0.30s; }
[data-reveal-stagger].revealed > *:nth-child(7)  { transition-delay: 0.35s; }
[data-reveal-stagger].revealed > *:nth-child(8)  { transition-delay: 0.40s; }
[data-reveal-stagger].revealed > *:nth-child(9)  { transition-delay: 0.45s; }
[data-reveal-stagger].revealed > *:nth-child(10) { transition-delay: 0.50s; }
[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax subtle shift for hero elements */
.parallax-slow {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ENHANCED HOVER / MICRO-INTERACTIONS
   ─────────────────────────────────────────────────────────────────────────────*/

/* Course cards — lift + glow on hover */
.course-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35),
              0 0 0 1px var(--color-border);
}

/* Strategy cards — tilt + glow */
.strategy-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.strategy-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* Stat items — count up highlight */
.stat-item {
  transition: transform 0.3s ease, color 0.3s ease;
}
.stat-item:hover {
  transform: translateY(-2px);
}
.stat-item:hover .stat-value {
  color: var(--color-primary);
}

/* Buttons — refined press feedback */
.btn {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.15s ease,
              background-color 0.2s ease,
              opacity 0.2s ease;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn-primary:hover {
  box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Nav links — underline slide */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

/* Quiz options — interactive feedback */
.answer-option {
  transition: transform 0.2s ease,
              border-color 0.2s ease,
              background-color 0.2s ease,
              box-shadow 0.2s ease;
}
.answer-option:hover:not(.correct):not(.incorrect) {
  transform: translateX(4px);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

/* Sidebar lesson items — smooth active transition */
.sidebar-lesson {
  transition: background-color 0.2s ease,
              border-color 0.2s ease,
              padding-left 0.2s ease;
}
.sidebar-lesson:hover {
  padding-left: calc(var(--space-4) + 4px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   REDESIGNED FOOTER
   ─────────────────────────────────────────────────────────────────────────────*/

.footer-redesigned {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border);
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.footer-redesigned::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--color-border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

.footer-redesigned .footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Top section with CTA accent */
.footer-top-accent {
  padding: var(--space-12) 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.footer-redesigned .footer-brand {
  padding-right: var(--space-8);
}
.footer-redesigned .footer-brand .footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  text-decoration: none;
  color: var(--color-text);
}
.footer-redesigned .footer-brand .footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}
.footer-redesigned .footer-brand .footer-brand-name span {
  color: var(--color-primary);
  font-weight: 800;
}
.footer-redesigned .footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 300px;
}

/* Social links row */
.footer-social-row {
  display: flex;
  gap: var(--space-3);
}
.footer-social-row .social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-social-row .social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  transform: translateY(-2px);
}

/* Footer column titles */
.footer-redesigned .footer-col-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

/* Footer links */
.footer-redesigned .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}
.footer-redesigned .footer-links li {
  list-style: none;
}
.footer-redesigned .footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}
.footer-redesigned .footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

/* Footer bottom bar */
.footer-bottom-bar {
  border-top: 1px solid var(--color-border);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom-bar .footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom-bar .footer-disclaimer {
  font-size: 11px;
  color: var(--color-text-faint);
  max-width: 500px;
  line-height: 1.5;
  opacity: 0.7;
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer-top-accent {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-redesigned .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: var(--space-4);
  }
}
@media (max-width: 640px) {
  .footer-top-accent {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION QUIZ (Module Exam)
   ─────────────────────────────────────────────────────────────────────────────*/
.module-exam {
  margin: var(--space-10) 0;
  background: linear-gradient(135deg, var(--color-card) 0%, var(--color-surface-2) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}
.module-exam::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-success));
}
.module-exam-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-4);
}
.module-exam-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.module-exam-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
}
.module-exam-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

/* Progress ring for exam score */
.exam-score-ring {
  width: 80px;
  height: 80px;
  position: relative;
}
.exam-score-ring svg {
  transform: rotate(-90deg);
}
.exam-score-ring .ring-bg {
  stroke: var(--color-border);
}
.exam-score-ring .ring-fill {
  stroke: var(--color-primary);
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.exam-score-ring .ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SMOOTH SCROLL INDICATOR
   ─────────────────────────────────────────────────────────────────────────────*/
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
.scroll-hint svg {
  opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTION DIVIDERS
   ─────────────────────────────────────────────────────────────────────────────*/
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin: var(--space-4) 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   NOTE: Strategies section has been redesigned into Strategy Library.
   The old courses-grid rules below are superseded by .strategy-library-grid
   and .strategy-feature-card defined later in this file.
   ─────────────────────────────────────────────────────────────────────────────*/

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-hint { animation: none; }
  .parallax-slow { transition: none; }
  .eco-connector svg { animation: none; }
}


/* =============================================================================
   ECOSYSTEM MAP
   ============================================================================= */

.ecosystem-section {
  background: var(--color-bg);
  overflow: hidden;
}

/* Scroll container wrapper for the map row */
.ecosystem-map {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: var(--space-6) var(--space-2) var(--space-8);
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  /* Let it scroll horizontally on small screens */
}
.ecosystem-map::-webkit-scrollbar {
  height: 4px;
}
.ecosystem-map::-webkit-scrollbar-track {
  background: transparent;
}
.ecosystem-map::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

/* Individual node card */
.eco-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  min-width: 120px;
  width: 120px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  overflow: hidden;
}

/* Colored top border */
.eco-node::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eco-color, var(--color-primary));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Subtle color glow behind card */
.eco-node::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--eco-color, var(--color-primary)) 10%, transparent) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.eco-node:hover::after {
  opacity: 1;
}

.eco-node:hover {
  transform: translateY(-6px);
  border-color: var(--eco-color, var(--color-primary));
  box-shadow: 0 16px 40px -8px color-mix(in srgb, var(--eco-color, var(--color-primary)) 25%, transparent),
              0 0 0 1px color-mix(in srgb, var(--eco-color, var(--color-primary)) 30%, transparent);
}

/* Non-link final node (not anchor) */
.eco-node-final {
  cursor: default;
}
.eco-node-final:hover {
  transform: translateY(-4px);
}

/* Icon circle */
.eco-node-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--eco-color, var(--color-primary)) 15%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eco-color, var(--color-primary));
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

/* Step number */
.eco-node-step {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--eco-color, var(--color-primary));
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
  opacity: 0.8;
}

/* Course name */
.eco-node-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

/* Module/lesson count */
.eco-node-sub {
  font-size: 10px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Umbrella badge for Strategies node */
.eco-node-umbrella .eco-node-sub::before {
  content: '';
}

/* Connector arrow between nodes */
.eco-connector {
  flex-shrink: 0;
  width: 48px;
  height: 20px;
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}
.eco-connector svg {
  width: 100%;
  height: 100%;
  /* Animated dash for the connecting line */
  stroke-dasharray: 6 3;
  animation: ecoDash 1.8s linear infinite;
}
@keyframes ecoDash {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -18; }
}

/* Desktop: wrap into 2 rows at medium viewports */
@media (max-width: 1280px) {
  .ecosystem-map {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
  .eco-connector {
    /* Hide connectors between wrapping rows */
  }
}

/* Mobile: 2-column grid, hide connectors */
@media (max-width: 640px) {
  .ecosystem-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-4) 0;
  }
  .eco-connector {
    display: none;
  }
  .eco-node {
    width: 100%;
    min-width: 0;
  }
}


/* =============================================================================
   STRATEGY LIBRARY — Premium Redesign
   ============================================================================= */

.strategy-library-section {
  background: var(--color-surface, #111827);
}

/* ── Featured (Hero) Card ────────────────────────────────────────────────────*/

.strategy-feature {
  margin-bottom: var(--space-8);
}

.strategy-feature-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
}

.strategy-feature-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 30px 60px -15px rgba(244, 63, 94, 0.2),
              0 0 0 1px rgba(244, 63, 94, 0.15);
}

/* Thumbnail side */
.strategy-feature-thumb {
  position: relative;
  min-height: 340px;
  overflow: hidden;
}

.strategy-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.strategy-feature-card:hover .strategy-feature-thumb img {
  transform: scale(1.04);
}

/* Gradient overlay on thumbnail */
.strategy-feature-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--strat-color) 40%, transparent) 0%,
    transparent 60%
  );
  mix-blend-mode: multiply;
}

/* "Featured Strategy" badge on thumb */
.strategy-feature-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(10, 15, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F43F5E;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-full);
  padding: 5px 12px;
}

/* Content side */
.strategy-feature-content {
  position: relative;
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

/* Left accent stripe inside content */
.strategy-feature-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0;
  opacity: 0.8;
}

.strategy-feature-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.strategy-feature-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl, 2rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  margin: 0;
}

.strategy-feature-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Stats row */
.strategy-feature-stats {
  display: flex;
  gap: var(--space-6);
}

.strategy-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strategy-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
}

.strategy-stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* CTA button in featured card */
.strategy-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.strategy-feature-card:hover .strategy-feature-cta {
  opacity: 0.9;
  transform: translateX(2px);
}

/* ── 2×2 Library Grid ────────────────────────────────────────────────────────*/

.strategy-library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.strategy-lib-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  position: relative;
}

.strategy-lib-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: color-mix(in srgb, var(--strat-color) 40%, transparent);
  box-shadow: 0 20px 50px -10px color-mix(in srgb, var(--strat-color) 25%, transparent),
              0 0 0 1px color-mix(in srgb, var(--strat-color) 20%, transparent);
}

/* Thumbnail area */
.strategy-lib-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.strategy-lib-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.strategy-lib-card:hover .strategy-lib-thumb img {
  transform: scale(1.06);
}

/* Gradient overlay on thumbnail (dark-to-transparent from bottom) */
.strategy-lib-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    color-mix(in srgb, var(--strat-color) 20%, rgba(10, 15, 26, 0.7)) 100%
  );
}

/* Left accent bar on top of thumb */
.strategy-lib-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--strat-color, var(--color-primary));
  opacity: 0.85;
}

/* Content body */
.strategy-lib-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.strategy-lib-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--strat-color, var(--color-primary));
}

.strategy-lib-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
  margin: 0;
}

.strategy-lib-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.strategy-lib-meta {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: auto;
  padding-top: var(--space-3);
}

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

@media (max-width: 960px) {
  .strategy-feature-card {
    grid-template-columns: 1fr;
  }
  .strategy-feature-thumb {
    min-height: 240px;
  }
  .strategy-feature-content {
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 640px) {
  .strategy-library-grid {
    grid-template-columns: 1fr;
  }
  .strategy-lib-thumb {
    height: 200px;
  }
  .strategy-feature-stats {
    gap: var(--space-4);
  }
  .strategy-feature-title {
    font-size: var(--text-2xl, 1.5rem);
  }
}
