/* 
   MARCOS DATA PRODUCT — MAIN STYLESHEET
   Primer Design System (Light Theme)
   Primary Brand Highlight: rgb(17, 55, 110)
*/

/* ── Reset & Base ─────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primer Design System Tokens (Light Theme) */
  --void: #f6f8fa;
  --void-rgb: 246, 248, 250;
  --canvas-default: #ffffff;
  --canvas-subtle: #f6f8fa;
  --canvas-inset: #f6f8fa;

  /* GitHub Primer Borders */
  --border-default: #d0d7de;
  --border-muted: #afb8c133;
  --border-subtle: rgba(31, 35, 40, 0.08);

  /* Primer Text / Foregrounds */
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-muted: #8c959f;

  /* Brand Blue requested by user: rgb(17, 55, 110) */
  --brand-blue: rgb(17, 55, 110);
  --brand-blue-rgb: 17, 55, 110;
  --brand-blue-hover: #184a91;
  --brand-blue-subtle: rgba(17, 55, 110, 0.08);

  /* Semantics & Accents (Primer Light) */
  --accent-blue: #11376e;
  --accent-blue-rgb: 17, 55, 110;
  --accent-amber: #9a6700;
  --accent-amber-rgb: 154, 103, 0;
  --accent-emerald: #1a7f37;
  --accent-emerald-rgb: 26, 127, 55;
  --accent-purple: #8250df;
  --accent-purple-rgb: 130, 80, 223;
  --accent-pink: #bf3989;
  --accent-pink-rgb: 191, 57, 137;

  /* Surfaces & Containers */
  --glass-bg: #ffffff;
  --glass-border: #d0d7de;
  --glass-blur: blur(12px);
  --glass-strong-bg: #ffffff;
  --glass-strong-border: #d0d7de;
  --glass-strong-blur: blur(16px);

  /* Motion & Animation Tokens (Emil Kowalski Standards) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-press: 160ms;
  --duration-fast: 180ms;
  --duration-normal: 250ms;
  --duration-moderate: 350ms;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: #f8fafc;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body, h1, h2, h3, h4, h5, h6, p, a, button, input, span, blockquote, label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* ── Three.js Canvas ─────────────────────────── */
#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

/* ── Glass / Box Surfaces (Primer Style) ──────── */
.glass {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.08), 0 1px 2px rgba(31, 35, 40, 0.04);
}

.glass-strong {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  box-shadow: 0 3px 6px rgba(31, 35, 40, 0.08), 0 2px 4px rgba(31, 35, 40, 0.04);
}

/* ── Gradient Text ───────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #11376e 0%, #1f6feb 55%, #0969da 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #11376e 0%, #0969da 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Reveal Animation ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

/* ── Subtle Technical Grid Overlay ───────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#d0d7de 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* ── Section Glow ────────────────────────────── */
.section-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.08;
}

/* ── Section Divider ─────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #d0d7de, transparent);
  margin: 0 auto;
  max-width: 60rem;
  position: relative;
  z-index: 10;
}

/* ── Scrollbar ───────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--void);
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #afb8c1;
}

section {
  position: relative;
  z-index: 10;
}

/* ── Keyframes ───────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--brand-blue);
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ── Button — Primary (GitHub Primer / Brand Blue) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-blue);
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  padding: 0.75rem 1.75rem;
  border: 1px solid rgba(27, 31, 36, 0.15);
  cursor: pointer;
  transition: transform var(--duration-press) var(--ease-out),
              background-color var(--duration-press) var(--ease-out),
              box-shadow var(--duration-press) var(--ease-out),
              border-color var(--duration-press) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1), 0 2px 6px rgba(17, 55, 110, 0.2);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(17, 55, 110, 0.25), 0 1px 0 rgba(27, 31, 36, 0.1);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary .ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ── Button — Secondary (Primer Box Button) ───── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f6f8fa;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 6px;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: transform var(--duration-press) var(--ease-out),
              color var(--duration-press) var(--ease-out),
              background-color var(--duration-press) var(--ease-out),
              border-color var(--duration-press) var(--ease-out),
              box-shadow var(--duration-press) var(--ease-out);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
}

.btn-secondary:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(17, 55, 110, 0.12);
}

.btn-secondary:active {
  transform: scale(0.97);
}

/* ── Nav — Segmented Pill Control ─────────────── */
#navbar {
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-default);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.05);
}

.nav-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f6f8fa;
  border: 1px solid var(--border-default);
  border-radius: 9999px;
  padding: 4px 6px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.06);
}

.nav-pill-group .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}

.nav-pill-group .nav-link:active {
  transform: scale(0.97);
}

/* Hover: subtle white pill */
.nav-pill-group .nav-link:hover {
  color: var(--text-primary);
  background: #ffffff;
  border-color: var(--border-default);
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.08);
  transform: translateY(-1px);
}

/* Active: Brand Blue capsule */
.nav-pill-group .nav-link.active {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(17, 55, 110, 0.15);
}

.nav-pill-group .nav-link.active:hover {
  color: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(17, 55, 110, 0.2);
}

/* ── Section Card (Legacy) ───────────────────── */
.section-card {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.08);
}

.section-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: 0 8px 24px rgba(17, 55, 110, 0.12), 0 2px 6px rgba(31, 35, 40, 0.08);
}

.section-card:active {
  transform: translateY(-2px) scale(0.985);
}

.section-card:hover .card-icon-wrap { transform: scale(1.08); }
.section-card:hover .card-arrow { transform: translateX(4px); opacity: 1; }
.section-card:hover .card-visual { transform: scale(1.02); }

.card-icon-wrap { transition: transform var(--duration-normal) var(--ease-out); }
.card-arrow { opacity: 0.4; transition: transform var(--duration-normal) var(--ease-out), opacity var(--duration-normal) var(--ease-out); }
.card-visual { transition: transform var(--duration-moderate) var(--ease-out); }

/* ── Hub Deck (Interactive Expanding Cards) ────────── */
.hub-deck {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 768px) {
  .hub-deck {
    flex-direction: row;
    height: 520px;
    align-items: stretch;
  }
}

.hub-card {
  --card-accent: #11376e;
  --card-accent-rgb: 17, 55, 110;
  position: relative;
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.75rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: flex 0.65s var(--ease-spring),
              background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
  min-width: 0;
}

/* Card color variants */
.hub-card-blue {
  --card-accent: #11376e;
  --card-accent-rgb: 17, 55, 110;
}
.hub-card-amber {
  --card-accent: #9a6700;
  --card-accent-rgb: 154, 103, 0;
}
.hub-card-emerald {
  --card-accent: #1a7f37;
  --card-accent-rgb: 26, 127, 55;
}
.hub-card-purple {
  --card-accent: #8250df;
  --card-accent-rgb: 130, 80, 223;
}
.hub-card-pink {
  --card-accent: #bf3989;
  --card-accent-rgb: 191, 57, 137;
}

/* Ambient glow inside card */
.hub-card-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--card-accent-rgb), 0.15) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

/* Top bar accent line */
.hub-card-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent);
  opacity: 0.6;
  transition: opacity 0.3s ease, height 0.3s ease;
}

/* Desktop sizing & hover expansion */
@media (min-width: 768px) {
  .hub-card {
    flex: 1;
  }

  /* When the deck is hovered, shrink cards not being hovered */
  .hub-deck:hover .hub-card {
    flex: 0.85;
    opacity: 0.75;
    transform: translateY(0);
    border-color: var(--border-default);
    background: #f6f8fa;
    box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04);
  }

  /* The card being hovered expands dynamically */
  .hub-deck .hub-card:hover {
    flex: 3.8;
    opacity: 1;
    border-color: rgba(var(--card-accent-rgb), 0.65);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 55, 110, 0.12), 0 2px 6px rgba(31, 35, 40, 0.08);
    transform: translateY(-4px);
  }
}

/* Card hover inner effects */
.hub-card:hover .hub-card-glow {
  opacity: 0.35;
  transform: scale(1.2);
}

.hub-card:hover .hub-card-line {
  opacity: 1;
  height: 4px;
}

/* Card Header (Icon) */
.hub-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
}

.hub-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  background: rgba(var(--card-accent-rgb), 0.08);
  border: 1px solid rgba(var(--card-accent-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
}

.hub-card:hover .hub-card-icon {
  transform: scale(1.06);
  background: rgba(var(--card-accent-rgb), 0.14);
  box-shadow: 0 2px 8px rgba(var(--card-accent-rgb), 0.2);
}

/* Card Spacer (Expands dynamically on hover to push body down) */
.hub-card-spacer {
  min-height: 1.25rem;
  height: 1.25rem;
  flex-grow: 0;
  transition: flex-grow 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card:hover .hub-card-spacer {
  flex-grow: 1;
}

@media (max-width: 767px) {
  .hub-card.active .hub-card-spacer {
    flex-grow: 1;
  }
}

/* Card Body / Titles */
.hub-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.hub-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  transition: font-size 0.35s ease, color 0.3s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hub-card:hover .hub-card-title {
    font-size: 1.75rem;
  }
}

/* Expandable details area */
.hub-card-details {
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.25s ease;
}

.hub-card-details-inner {
  padding-top: 0.85rem;
  max-width: 440px;
}

@media (min-width: 768px) {
  .hub-card-details-inner {
    min-width: 280px;
  }
}

/* Reveal details on hover or when active on mobile */
.hub-card:hover .hub-card-details {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.25s ease;
}

/* On mobile: .active opens details */
@media (max-width: 767px) {
  .hub-card.active .hub-card-details {
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .hub-card.active {
    border-color: rgba(var(--card-accent-rgb), 0.45);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(31, 35, 40, 0.1), 0 2px 6px rgba(31, 35, 40, 0.06);
  }
  .hub-card.active .hub-card-glow {
    opacity: 0.3;
  }
}

.hub-card-desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #24292f;
  margin-bottom: 1.35rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hub-card-desc {
    font-size: 0.925rem;
  }
}

/* Action Button inside card (GitHub Primer style with Brand Blue) */
.hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--brand-blue);
  color: #ffffff !important;
  border: 1px solid rgba(27, 31, 36, 0.15);
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1), 0 2px 6px rgba(17, 55, 110, 0.2);
  transition: transform var(--duration-press) var(--ease-out),
              background-color var(--duration-press) var(--ease-out),
              border-color var(--duration-press) var(--ease-out),
              box-shadow var(--duration-press) var(--ease-out);
  text-decoration: none;
  width: max-content;
}

.hub-btn:active {
  transform: scale(0.97);
}

.hub-card:hover .hub-btn {
  background: var(--brand-blue);
  border-color: rgba(27, 31, 36, 0.25);
  box-shadow: 0 4px 14px rgba(17, 55, 110, 0.3), 0 1px 0 rgba(27, 31, 36, 0.1);
  transform: translateY(-1px);
}

.hub-btn:hover {
  background: var(--brand-blue-hover) !important;
  box-shadow: 0 6px 18px rgba(17, 55, 110, 0.4) !important;
}

.hub-btn svg {
  color: #ffffff;
  stroke: #ffffff;
  transition: transform var(--duration-fast) var(--ease-out);
}

.hub-card:hover .hub-btn svg {
  transform: translateX(4px);
}

/* ── Badge / Label (Primer Pill Format) ───────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-blue {
  background: rgba(17, 55, 110, 0.08);
  color: #11376e;
  border: 1px solid rgba(17, 55, 110, 0.2);
}

.badge-amber {
  background: rgba(154, 103, 0, 0.08);
  color: #9a6700;
  border: 1px solid rgba(154, 103, 0, 0.2);
}

.badge-emerald {
  background: rgba(26, 127, 55, 0.08);
  color: #1a7f37;
  border: 1px solid rgba(26, 127, 55, 0.2);
}

.badge-pink {
  background: rgba(191, 57, 137, 0.08);
  color: #bf3989;
  border: 1px solid rgba(191, 57, 137, 0.2);
}

.badge-purple {
  background: rgba(130, 80, 223, 0.08);
  color: #8250df;
  border: 1px solid rgba(130, 80, 223, 0.2);
}

/* ── Mobile Menu (Primer Light) ──────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.55rem 1.8rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.mobile-menu a:active {
  transform: scale(0.97);
}

.mobile-menu a:hover {
  color: var(--text-primary);
  background: #f6f8fa;
  border-color: var(--border-default);
}

.mobile-menu a.active {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: rgba(17, 55, 110, 0.08);
  font-weight: 600;
}

/* ── Spec row for mini data (Primer Box) ───────── */
.stat-item {
  text-align: center;
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  background: #ffffff !important;
  border: 1px solid var(--border-default) !important;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.08);
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue) !important;
  box-shadow: 0 8px 24px rgba(17, 55, 110, 0.12);
}

/* ══════════════════════════════════════════════════
   PLAYBOOK PILLAR CARDS (Power BI, IA, Dataviz)
══════════════════════════════════════════════════ */
.pillar-card {
  --pillar-accent: #11376e;
  --pillar-accent-rgb: 17, 55, 110;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.06), 0 1px 2px rgba(31, 35, 40, 0.04);
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.pillar-card:active {
  transform: translateY(-2px) scale(0.985);
}

.pillar-card-amber {
  --pillar-accent: #9a6700;
  --pillar-accent-rgb: 154, 103, 0;
}

.pillar-card-blue {
  --pillar-accent: #11376e;
  --pillar-accent-rgb: 17, 55, 110;
}

.pillar-card-emerald {
  --pillar-accent: #1a7f37;
  --pillar-accent-rgb: 26, 127, 55;
}

/* Accent top bar */
.pillar-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pillar-accent);
  opacity: 0.75;
  transition: opacity 0.3s ease, height 0.3s ease;
}

/* Soft ambient background glow */
.pillar-card-glow {
  position: absolute;
  top: -25%;
  right: -25%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--pillar-accent-rgb), 0.16) 0%, transparent 70%);
  filter: blur(35px);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--pillar-accent-rgb), 0.45);
  box-shadow: 0 14px 32px rgba(var(--pillar-accent-rgb), 0.12), 0 2px 6px rgba(31, 35, 40, 0.06);
}

.pillar-card:hover .pillar-card-bar {
  opacity: 1;
  height: 5px;
}

.pillar-card:hover .pillar-card-glow {
  opacity: 0.45;
  transform: scale(1.25);
}

.pillar-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: rgba(var(--pillar-accent-rgb), 0.08);
  border: 1px solid rgba(var(--pillar-accent-rgb), 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pillar-accent);
  transition: transform var(--duration-normal) var(--ease-out),
              background-color var(--duration-normal) var(--ease-out);
}

.pillar-card:hover .pillar-icon-wrap {
  transform: scale(1.08);
  background: rgba(var(--pillar-accent-rgb), 0.14);
}

/* Topic tags inside pillar cards */
.pillar-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #f6f8fa;
  border: 1px solid var(--border-default);
  transition: border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.pillar-card:hover .pillar-topic-pill {
  border-color: rgba(var(--pillar-accent-rgb), 0.25);
  background: #ffffff;
}

/* Button inside pillar card */
.pillar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff !important;
  background: var(--pillar-accent);
  border: 1px solid rgba(27, 31, 36, 0.15);
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1), 0 2px 5px rgba(var(--pillar-accent-rgb), 0.2);
  transition: transform var(--duration-press) var(--ease-out),
              background-color var(--duration-press) var(--ease-out),
              box-shadow var(--duration-press) var(--ease-out);
  text-decoration: none;
}

.pillar-btn:active {
  transform: scale(0.97);
}

.pillar-btn svg {
  transition: transform var(--duration-fast) var(--ease-out);
}

.pillar-card:hover .pillar-btn svg {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════════
   PLAYBOOK RESOURCE CARDS (Primer Light Style)
══════════════════════════════════════════════════ */
.playbook-resource-card {
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.06);
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.playbook-resource-card:active {
  transform: translateY(-2px) scale(0.985);
}

.playbook-resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: 0 12px 28px rgba(17, 55, 110, 0.12), 0 2px 6px rgba(31, 35, 40, 0.06);
}

.playbook-preview-bg {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f6f8fa;
  border-bottom: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category Filter Pills */
.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.filter-pill-btn:active {
  transform: scale(0.97);
}

.filter-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--brand-blue);
  background: #f6f8fa;
  transform: translateY(-1px);
}

.filter-pill-btn.active {
  color: #ffffff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(17, 55, 110, 0.25);
}

/* ── Pastel Theme Badges ── */
.badge-theme-data {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.badge-theme-dataviz {
  background-color: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}
.badge-theme-analytics {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-theme-business {
  background-color: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.badge-theme-product {
  background-color: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.badge-theme-ai {
  background-color: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

/* ══════════════════════════════════════════════════
   MARCOS DATA PRODUCT — UNIFIED DESIGN SYSTEM TOKENS
══════════════════════════════════════════════════ */

/* Active Nav Item Indicator */
.nav-item-active {
  color: #0b1e3a !important;
  font-weight: 600;
  position: relative;
}
.nav-item-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #2563eb;
  border-radius: 2px;
}

/* Subtle Card Elevation */
.card-hover-clean {
  transition: transform var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.card-hover-clean:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(11, 30, 58, 0.08), 0 8px 12px -6px rgba(11, 30, 58, 0.04);
  border-color: rgba(37, 99, 235, 0.35);
}
.card-hover-clean:active {
  transform: translateY(-1px) scale(0.985);
}

/* Unified Hero Editorial Component */
.hero-editorial-container {
  position: relative;
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hero-editorial-gradient {
  background: linear-gradient(
    to right,
    rgba(11, 30, 58, 0.94) 0%,
    rgba(11, 30, 58, 0.88) 38%,
    rgba(11, 30, 58, 0.58) 62%,
    rgba(11, 30, 58, 0.20) 84%,
    rgba(11, 30, 58, 0.0) 100%
  );
}

@media (max-width: 1024px) {
  .hero-editorial-container {
    background-position: 70% center;
    min-height: 400px;
  }
  .hero-editorial-gradient {
    background: linear-gradient(
      to bottom,
      rgba(11, 30, 58, 0.95) 0%,
      rgba(11, 30, 58, 0.90) 65%,
      rgba(11, 30, 58, 0.50) 100%
    );
  }
}

/* Reading Progress Bar */
#reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ══════════════════════════════════════════════════
   ACCESSIBILITY & PREFERS-REDUCED-MOTION (Emil Kowalski Standard)
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Preserve gentle opacity fades so state changes remain legible */
  .fade-in,
  .mobile-menu {
    transition: opacity 150ms ease !important;
  }
}




