/**
 * Artalytics Metrics - Investor Showcase Edition
 * Main Stylesheet
 *
 * This is the entry point that imports all CSS modules
 * and defines critical component styles
 */

/* ============================================
   BOOTSTRAP OVERRIDES - CRITICAL
   Override Quarto's Bootstrap default colors (especially purple)
   ============================================ */

/* Override Bootstrap's link and purple/info colors globally */
:root,
[data-bs-theme="light"] {
  /* Override link colors */
  --bs-link-color: #2761e3 !important;
  --bs-link-hover-color: #1e4eb5 !important;
  --bs-link-color-rgb: 39, 97, 227 !important;
  --bs-link-hover-color-rgb: 30, 78, 181 !important;

  /* Override purple/info colors (Bootstrap uses purple for info) */
  --bs-purple: #0A1F44 !important;  /* Navy instead of purple */
  --bs-info: #2761e3 !important;    /* Blue instead of purple */
  --bs-cyan: #2761e3 !important;    /* Blue instead of purple */
  --bs-info-rgb: 39, 97, 227 !important;
}

/* Sidebar Navigation - Override Bootstrap Purple */
.sidebar,
.sidebar *,
#quarto-sidebar,
#quarto-sidebar *,
#quarto-document-sidebar,
#quarto-document-sidebar * {
  /* Remove purple/violet colors */
  --bs-purple: var(--color-navy-900) !important;
  --bs-info: var(--color-navy-900) !important;
  --bs-link-color: var(--color-text-primary) !important;
  --bs-link-hover-color: var(--color-navy-900) !important;
}

/* Sidebar links - Ultra-specific overrides */
.sidebar a,
.sidebar a:link,
.sidebar a:visited,
.sidebar .sidebar-item a,
.sidebar .sidebar-section a,
#quarto-sidebar a,
#quarto-sidebar .sidebar-item a,
#quarto-document-sidebar a {
  color: var(--color-text-primary) !important;
  text-decoration: none !important;
}

.sidebar a:hover,
.sidebar .sidebar-item a:hover,
#quarto-sidebar a:hover {
  color: var(--color-navy-900) !important;
  background: rgba(10, 31, 68, 0.06) !important;
}

.sidebar a.active,
.sidebar .sidebar-item.active > a,
#quarto-sidebar .sidebar-item.active > a {
  color: var(--color-navy-900) !important;
  background: rgba(212, 175, 55, 0.15) !important;
  font-weight: var(--weight-medium) !important;
  border-left: 3px solid var(--color-gold-medium) !important;
}

/* ============================================
   BASE RESET & GLOBAL STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

/* Landing page layout overrides */
body.landing-page #title-block-header,
body.landing-page nav#TOC,
body.landing-page #quarto-document-sidebar,
body.landing-page #quarto-sidebar,
body.landing-page #quarto-margin-sidebar,
body.landing-page .quarto-alternate-formats,
body.landing-page .quarto-title-meta {
  display: none !important;
}

body.landing-page main#quarto-document-content {
  max-width: 100%;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
  padding-bottom: var(--space-20);
  margin-top: var(--space-10);
}

body.landing-page .quarto-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.landing-page .hero-section {
  margin-top: 0;
}

body.landing-page {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
  background: linear-gradient(180deg,
    rgba(248, 248, 248, 1) 0%,
    #FFFFFF 45%,
    rgba(248, 248, 248, 1) 100%
  );
}

body.landing-page .navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) 0;
}

body.landing-page .navbar-brand,
body.landing-page .navbar-title,
body.landing-page .navbar-nav .nav-link,
body.landing-page .quarto-navbar-tools .quarto-color-scheme-toggle {
  color: var(--color-navy-900) !important;
}

body.landing-page .navbar-title {
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
}

body.landing-page .navbar-nav {
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================
   NAVBAR DROPDOWN MENUS
   ============================================ */

/* Dropdown menu container */
.navbar-nav .dropdown-menu {
  background: rgba(10, 31, 68, 0.98) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  padding: var(--space-2) 0 !important;
  margin-top: var(--space-2) !important;
  min-width: 240px;
}

/* Dropdown menu items */
.navbar-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  padding: var(--space-3) var(--space-5) !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--weight-medium) !important;
  transition: all var(--transition-base) !important;
  border-left: 3px solid transparent;
}

/* Dropdown item hover state */
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #ffffff !important;
  border-left-color: #3b82f6;
  transform: translateX(2px);
}

/* Dropdown divider */
.navbar-nav .dropdown-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: var(--space-2) 0 !important;
}

/* Dropdown toggle icon */
.navbar-nav .nav-link.dropdown-toggle::after {
  margin-left: var(--space-1);
  vertical-align: middle;
}

/* Active dropdown item */
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
  background: rgba(59, 130, 246, 0.25) !important;
  color: #ffffff !important;
  border-left-color: #3b82f6;
}

/* Remove bullets from navbar dropdowns */
.navbar-nav .dropdown-menu ul,
.navbar-nav .dropdown-menu li,
.navbar-nav ul,
.navbar-nav li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
}

/* Remove bullets from all navbar items */
.navbar-nav .nav-item {
  list-style: none !important;
  list-style-type: none !important;
}

/* Remove bullet markers */
.navbar-nav .nav-item::marker,
.navbar-nav .dropdown-item::marker,
.navbar-nav li::marker {
  content: '' !important;
  display: none !important;
}

body.landing-page .navbar-nav .nav-item {
  list-style: none;
}

body.landing-page .navbar-nav .nav-item::marker {
  content: '';
}

body.landing-page .navbar-nav .nav-link {
  font-weight: var(--weight-medium);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary) !important;
  transition: background var(--transition-base), color var(--transition-base);
}

body.landing-page .navbar-nav .nav-link:hover,
body.landing-page .navbar-nav .nav-link:focus {
  background: rgba(10, 31, 68, 0.08);
  color: var(--color-navy-900) !important;
}

body.landing-page .navbar-nav .nav-link.active {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-navy-900) !important;
  box-shadow: var(--shadow-sm);
}

body.landing-page .quarto-navbar-tools .quarto-color-scheme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: var(--space-2);
  color: var(--color-text-secondary) !important;
}

body.landing-page .navbar-container {
  width: 100%;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

body.landing-page .navbar-brand-container {
  margin: 0 !important;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

body.landing-page .navbar-brand-container.mx-auto {
  margin: 0 !important;
}

/* ============================================
   SIDEBAR NAVIGATION - REMOVE BULLETS
   ============================================ */

/* Remove bullets from sidebar navigation */
.sidebar ul,
.sidebar li,
.sidebar .sidebar-item,
.sidebar .sidebar-menu,
.sidebar .sidebar-menu-container ul,
.sidebar .sidebar-menu-container li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
}

/* Remove bullet markers from sidebar */
.sidebar ul::marker,
.sidebar li::marker,
.sidebar .sidebar-item::marker {
  content: '' !important;
  display: none !important;
}

/* Ensure TOC and navigation lists have no bullets */
#TOC ul,
#TOC li,
.sidebar-navigation ul,
.sidebar-navigation li,
.quarto-sidebar-section ul,
.quarto-sidebar-section li {
  list-style: none !important;
  list-style-type: none !important;
}

body.landing-page a {
  color: var(--color-link);
  transition: color var(--transition-fast);
}

body.landing-page a:hover {
  color: var(--color-link-hover);
}

body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page h4 {
  font-family: var(--font-display);
  color: var(--color-navy-900);
  letter-spacing: 0.01em;
}

body.landing-page p,
body.landing-page li {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}

body {
  background: var(--color-background);
  transition: background-color var(--transition-base),
              color var(--transition-base);
}

/* ============================================
   HERO SECTION - 10-Second Impact
   ============================================ */

.hero-section {
  position: relative;
  min-height: clamp(520px, 78vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: var(--space-12);
  align-items: center;
  padding: var(--space-20) var(--space-6);
  background: linear-gradient(180deg,
    var(--color-background) 0%,
    var(--color-platinum-100) 50%,
    var(--color-background) 100%
  );
  text-align: center;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

body.landing-page .hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  /* Color set in Phase 1.4 hero enhancements */
  max-width: 100%;
  margin-bottom: var(--space-4);
  overflow-wrap: normal;
  text-wrap: balance;
}

body.landing-page .hero-subtitle {
  max-width: 820px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  margin-bottom: var(--space-10);
}

.hero-stat {
  text-align: center;
  min-width: 140px;
  box-sizing: border-box;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-gold-medium);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: var(--border-width-medium) solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold-medium), var(--color-gold-light));
  color: var(--color-navy-900);
  border-color: var(--color-gold-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-medium));
  box-shadow: var(--shadow-gold-strong);
  color: var(--color-navy-900);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy-900);
  border-color: var(--color-navy-900);
}

.btn-secondary:hover {
  background: var(--color-navy-900);
  color: var(--color-platinum-100);
}

[data-theme="dark"] .btn-secondary {
  color: var(--color-platinum-100);
  border-color: var(--color-platinum-200);
}

[data-theme="dark"] .btn-secondary:hover {
  background: var(--color-platinum-100);
  color: var(--color-navy-900);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

/* ============================================
   METRIC CARDS - Grid Display
   ============================================ */

body.landing-page .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
  align-items: stretch;
}

body.landing-page .metric-card {
  position: relative;
  background: var(--color-surface-raised);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

body.landing-page .metric-card > *:first-child {
  margin-top: 0;
}

body.landing-page .metric-card > *:last-child {
  margin-bottom: 0;
}

body.landing-page .metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent-color, var(--color-gold-medium));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

body.landing-page .metric-card:hover::before {
  transform: scaleX(1);
}

body.landing-page .metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--card-accent-color, var(--color-gold-medium));
}

body.landing-page .metric-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    var(--card-accent-color, var(--color-gold-medium)),
    var(--card-accent-light, var(--color-gold-light))
  );
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

body.landing-page .metric-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

body.landing-page .metric-card-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
}

body.landing-page .metric-card-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-4);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  background: var(--card-accent-color, var(--color-gold-medium));
  color: white;
  border-radius: var(--radius-full);
  min-height: 32px;
}

body.landing-page .metric-card .btn {
  display: inline-flex;
}

body.landing-page .metric-card-cta {
  margin-top: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

body.landing-page .metric-card-cta .btn {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  max-width: 100%;
  text-align: center;
  white-space: normal;
  border-radius: var(--radius-lg);
}

/* Category-specific card colors */
body.landing-page .metric-card[data-category="time"] {
  --card-accent-color: var(--color-time-medium);
  --card-accent-light: var(--color-time-light);
}

body.landing-page .metric-card[data-category="skill"] {
  --card-accent-color: var(--color-skill-medium);
  --card-accent-light: var(--color-skill-light);
}

body.landing-page .metric-card[data-category="complexity"] {
  --card-accent-color: var(--color-complexity-medium);
  --card-accent-light: var(--color-complexity-light);
}

/* ============================================
   METRICS FOUNDATION - Shared Profile Component
   ============================================ */

.metrics-foundation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.foundation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
  border-top: 4px solid var(--foundation-accent-color, var(--color-gold-medium));
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
}

.foundation-card[data-category="time"] {
  --foundation-accent-color: var(--color-time-medium);
  --foundation-accent-light: var(--color-time-light);
}

.foundation-card[data-category="skill"] {
  --foundation-accent-color: var(--color-skill-medium);
  --foundation-accent-light: var(--color-skill-light);
}

.foundation-card[data-category="complexity"] {
  --foundation-accent-color: var(--color-complexity-medium);
  --foundation-accent-light: var(--color-complexity-light);
}

.foundation-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    var(--foundation-accent-color, var(--color-gold-medium)),
    var(--foundation-accent-light, var(--color-gold-light))
  );
  color: var(--color-text-inverse);
  font-size: var(--text-2xl);
}

.foundation-card-kicker {
  margin: 0 0 var(--space-2);
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  text-transform: uppercase;
}

.foundation-card h3 {
  margin: 0 0 var(--space-3);
  color: var(--color-text-primary);
  font-size: var(--text-xl);
}

.foundation-card p {
  color: var(--color-text-secondary);
}

.foundation-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-5);
}

.foundation-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: var(--space-2) var(--space-3);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* ============================================
   FRAMEWORK CARDS - Public Framework Pages
   ============================================ */

body.landing-page .framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
  align-items: stretch;
}

body.landing-page .framework-card {
  position: relative;
  background: var(--color-surface-raised);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

body.landing-page .framework-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--framework-accent-color, var(--color-navy-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

body.landing-page .framework-card:hover::before {
  transform: scaleX(1);
}

body.landing-page .framework-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--framework-accent-color, var(--color-navy-500));
}

body.landing-page .framework-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    var(--framework-accent-color, var(--color-navy-500)),
    var(--framework-accent-light, var(--color-navy-300))
  );
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
  color: white;
}

body.landing-page .framework-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

body.landing-page .framework-card-description {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  flex: 1;
  margin-bottom: var(--space-3);
}

body.landing-page .framework-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

body.landing-page .framework-card-cta {
  margin-top: auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

body.landing-page .framework-card-cta .btn {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  max-width: 100%;
  text-align: center;
  white-space: normal;
  border-radius: var(--radius-lg);
}

/* Framework type-specific colors */
body.landing-page .framework-card[data-type="overview"] {
  --framework-accent-color: #3b82f6;
  --framework-accent-light: #60a5fa;
}

body.landing-page .framework-card[data-type="summary"] {
  --framework-accent-color: #8b5cf6;
  --framework-accent-light: #a78bfa;
}

body.landing-page .framework-card[data-type="validation"] {
  --framework-accent-color: #10b981;
  --framework-accent-light: #34d399;
}

/* ============================================
   FEATURE PANELS - Financial Insights
   ============================================ */

body.landing-page .feature-panel {
  padding: var(--space-6);
  margin: 0;
  border-left: 4px solid var(--panel-color, var(--color-gold-medium));
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

body.landing-page .feature-panel > *:first-child {
  margin-top: 0;
}

body.landing-page .feature-panel > *:last-child {
  margin-bottom: 0;
}

body.landing-page .feature-panel-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--panel-color, var(--color-gold-medium));
}

body.landing-page .feature-panel-title::before {
  content: var(--panel-icon, '💡');
  font-size: var(--text-2xl);
}

body.landing-page .feature-panel-content {
  color: var(--color-text-primary);
  flex: 1;
}

body.landing-page .feature-panel-impact {
  --panel-color: var(--color-gold-medium);
  --panel-icon: '💡';
}

body.landing-page .feature-panel .checklist {
  margin-top: var(--space-4);
}

body.landing-page .finance-layout {
  display: grid;
  gap: var(--space-6);
}

body.landing-page .finance-links .link-list {
  margin-top: 0;
  flex: 1;
}

body.landing-page .finance-links {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}

body.landing-page .finance-links > *:first-child {
  margin-top: 0;
}

body.landing-page .finance-links > *:last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  body.landing-page .finance-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  body.landing-page .finance-links {
    height: 100%;
  }
}

@media (min-width: 1100px) {
  body.landing-page .finance-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.landing-page .finance-links .link-list {
  flex: 1;
  display: grid;
  gap: var(--space-3);
}

/* ============================================
   BENCHMARK VISUALIZER
   ============================================ */

.benchmark-viz {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
}

.percentile-scale {
  position: relative;
  height: 60px;
  background: linear-gradient(90deg,
    var(--color-error-light),
    var(--color-warning-light),
    var(--color-success-light)
  );
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}

.percentile-marker {
  position: absolute;
  top: -10px;
  width: 4px;
  height: 80px;
  background: var(--color-navy-900);
  transform: translateX(-2px);
  transition: left var(--transition-base);
}

.percentile-label {
  position: absolute;
  top: -35px;
  transform: translateX(-50%);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
}

.percentile-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

body.landing-page .content-section {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: var(--space-12) var(--space-8);
  background: var(--color-surface-raised);
  border: 1px solid rgba(10, 31, 68, 0.06);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

body.landing-page .content-section > *:first-child {
  margin-top: 0;
}

body.landing-page .content-section > *:last-child {
  margin-bottom: 0;
}

body.landing-page .content-section-narrow {
  max-width: var(--max-width-content);
}

body.landing-page .content-section + .content-section {
  margin-top: var(--space-12);
}

/* Add spacing after last content section */
body.landing-page .content-section:last-of-type {
  margin-bottom: var(--space-16);
}

body.landing-page .section-title {
  position: relative;
  font-size: clamp(2rem, 2.8vw, var(--text-3xl));
  font-weight: var(--weight-extrabold);
  text-align: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  display: inline-block;
  width: 100%;
}

body.landing-page .section-subtitle {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin: var(--space-8) 0 var(--space-4);
  text-align: center;
}

body.landing-page .section-subtitle.section-subtitle--left {
  text-align: left;
}

body.landing-page .section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}

body.landing-page .section-card p:last-child {
  margin-bottom: 0;
}

body.landing-page .section-card > *:first-child {
  margin-top: 0;
}

body.landing-page .section-card > *:last-child {
  margin-bottom: 0;
}

body.landing-page .section-card .section-subtitle {
  text-align: left;
  margin-top: 0;
}

body.landing-page .link-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 var(--space-2);
  display: grid;
  gap: var(--space-3);
}

body.landing-page .link-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(10, 31, 68, 0.03);
  transition: background var(--transition-base), transform var(--transition-base);
  list-style: none;
  height: 100%;
}

body.landing-page .link-list li::marker {
  content: '';
}

body.landing-page .link-list a {
  font-weight: var(--weight-semibold);
  color: var(--color-navy-900);
}

body.landing-page .link-list a:hover {
  color: var(--color-link-hover);
}

body.landing-page .link-list span {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

body.landing-page .link-list li:hover {
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

body.landing-page .section-card-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

@media (min-width: 992px) {
  body.landing-page .section-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.landing-page .checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  display: grid;
  gap: var(--space-3);
}

body.landing-page .checklist li {
  position: relative;
  padding-left: var(--space-6);
  line-height: var(--leading-relaxed);
}

body.landing-page .checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-success-medium);
  font-weight: var(--weight-semibold);
}

body.landing-page .checklist li::marker {
  content: '';
}

body.landing-page .cta-link {
  margin-top: var(--space-4);
  text-align: center;
  font-weight: var(--weight-semibold);
}

/* ============================================
   VALUE PROPOSITION GRID
   ============================================ */

body.landing-page .value-prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin: var(--space-10) 0 var(--space-4);
  align-items: stretch;
}

body.landing-page .value-prop-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 31, 68, 0.08);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

body.landing-page .value-prop-item > *:first-child {
  margin-top: 0;
}

body.landing-page .value-prop-item > *:last-child {
  margin-bottom: 0;
}

body.landing-page .value-prop-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

body.landing-page .value-prop-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-gradient);
  border-radius: var(--radius-full);
  font-size: var(--text-4xl);
  box-shadow: var(--shadow-gold);
}

body.landing-page .value-prop-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-navy-900);
}

body.landing-page .value-prop-description {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

body.landing-page .comparison-table {
  width: 100%;
  margin: var(--space-8) 0;
  border-collapse: collapse;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

body.landing-page .comparison-table thead {
  background: var(--color-surface);
}

body.landing-page .comparison-table th {
  padding: var(--space-4);
  text-align: left;
  font-weight: var(--weight-semibold);
  border-bottom: var(--border-width-medium) solid var(--color-border);
  font-size: var(--text-lg);
}

body.landing-page .comparison-table td {
  padding: var(--space-4);
  border-bottom: var(--border-width) solid var(--color-border);
  font-size: var(--text-base);
}

body.landing-page .comparison-table tbody tr:hover {
  background: var(--color-surface);
}

body.landing-page .comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  margin-top: var(--space-24);
  padding: var(--space-12) var(--space-6);
  background: var(--color-surface);
  border-top: var(--border-width) solid var(--color-border);
  text-align: center;
  color: var(--color-text-secondary);
}

.footer-content {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Tablet Breakpoint (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  body.landing-page .hero-title {
    font-size: var(--text-4xl);
  }

  body.landing-page .metrics-grid,
  .metrics-foundation,
  body.landing-page .value-prop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.landing-page .content-section-wide {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .navbar-nav .dropdown-menu {
    min-width: 200px;
  }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 768px) {
  html,
  body.landing-page {
    overflow-x: hidden;
  }

  /* Hero Section */
  body.landing-page .hero-section {
    min-height: 80vh;
    max-width: 100vw;
    padding: var(--space-16) var(--space-4) var(--space-12);
    overflow-x: hidden;
  }

  body.landing-page .hero-content {
    max-width: calc(100vw - (2 * var(--space-4)));
  }

  body.landing-page .hero-title {
    font-size: var(--text-3xl);
    line-height: 1.2;
    width: 100%;
    white-space: normal;
  }

  body.landing-page .hero-subtitle {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    max-width: 34ch;
    white-space: normal;
  }

  body.landing-page .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
  }

  body.landing-page .hero-stat {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  body.landing-page .hero-stat-value {
    font-size: var(--text-4xl);
  }

  /* Button Groups */
  body.landing-page .btn-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  body.landing-page .btn {
    width: 100%;
    max-width: 100%;
    min-height: 48px; /* Touch target */
    justify-content: center;
    white-space: normal;
  }

  /* Card Grids - Stack on Mobile */
  body.landing-page .metrics-grid,
  .metrics-foundation,
  body.landing-page .value-prop-grid,
  body.landing-page .framework-grid,
  body.landing-page .feature-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-5);
  }

  /* Content Sections */
  body.landing-page .content-section,
  body.landing-page .content-section-wide,
  body.landing-page .content-section-narrow {
    padding: var(--space-10) var(--space-4) !important;
  }

  body.landing-page .section-title {
    font-size: var(--text-2xl);
  }

  body.landing-page .section-subtitle {
    font-size: var(--text-lg);
  }

  /* Tables */
  body.landing-page table {
    font-size: var(--text-xs);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  body.landing-page th,
  body.landing-page td {
    padding: var(--space-2);
  }

  /* Navbar Mobile */
  .navbar-collapse {
    background: rgba(10, 31, 68, 0.98);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2);
    padding: var(--space-3);
  }

  .navbar-nav {
    gap: 0 !important;
  }

  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
  }

  .navbar-nav .nav-link {
    padding: var(--space-3) !important;
    min-height: 48px; /* Touch target */
    display: flex;
    align-items: center;
  }

  /* Mobile Dropdown Menus */
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    box-shadow: none !important;
  }

  .navbar-nav .dropdown-item {
    padding: var(--space-3) var(--space-6) !important;
    min-height: 44px; /* Touch target */
  }

  /* Finance Layout */
  body.landing-page .finance-layout {
    flex-direction: column;
  }

  body.landing-page .feature-panel,
  body.landing-page .finance-links {
    width: 100%;
  }

  /* Section Cards */
  body.landing-page .section-card-grid {
    grid-template-columns: 1fr;
  }

  /* Metric Cards */
  .metric-card,
  .framework-card {
    min-height: auto;
  }

  .metric-card-icon,
  .framework-card-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-xl);
  }

  /* Framework Pages Mobile */
  body.framework-page .title {
    font-size: var(--text-2xl);
    line-height: 1.3;
  }

  body.framework-page .subtitle {
    font-size: var(--text-base);
  }

  body.framework-page h2 {
    font-size: var(--text-xl);
  }

  body.framework-page h3 {
    font-size: var(--text-lg);
  }

  body.framework-page #quarto-document-content {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Documentation Pages Mobile */
  body.documentation-page .title {
    font-size: var(--text-2xl);
  }

  body.documentation-page h2 {
    font-size: var(--text-xl);
  }

  body.documentation-page table {
    font-size: var(--text-xs);
    display: block;
    overflow-x: auto;
  }

  /* Sidebar on Mobile */
  .sidebar {
    font-size: var(--text-sm);
  }

  .sidebar .sidebar-title {
    font-size: var(--text-base);
  }
}

/* Small Mobile Breakpoint (< 480px) */
@media (max-width: 480px) {
  body.landing-page .hero-section {
    padding: var(--space-12) var(--space-3);
  }

  body.landing-page .hero-content {
    max-width: calc(100vw - (2 * var(--space-3)));
  }

  body.landing-page .hero-title {
    font-size: var(--text-2xl);
    line-height: 1.18;
  }

  body.landing-page .hero-subtitle {
    max-width: 30ch;
  }

  body.landing-page .hero-stat-value {
    font-size: var(--text-3xl);
  }

  body.landing-page .content-section {
    padding: var(--space-8) var(--space-3) !important;
  }

  body.landing-page .section-title {
    font-size: var(--text-xl);
  }

  .navbar-brand {
    font-size: var(--text-base);
  }

  /* Tighter spacing on very small screens */
  body.landing-page .metric-card,
  body.landing-page .framework-card,
  body.landing-page .value-prop-item {
    padding: var(--space-4);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar,
  .sidebar,
  .theme-toggle,
  .btn-group {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .metric-card,
  .callout {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

/* ============================================
   PHOSPHOR ICON STYLING & ANIMATIONS
   ============================================ */

/* Value proposition icons */
body.landing-page .value-prop-icon i {
  font-size: 36px;
  color: var(--color-navy-900);
  transition: transform var(--transition-base);
}

body.landing-page .value-prop-item:hover .value-prop-icon i {
  transform: scale(1.15) rotate(5deg);
}

/* Metric card icons */
body.landing-page .metric-card-icon {
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.landing-page .metric-card-icon i {
  font-size: 24px;
  color: white;
  transition: transform var(--transition-base);
}

body.landing-page .metric-card:hover .metric-card-icon i {
  transform: scale(1.1) rotate(-5deg);
}

/* ============================================
   BUTTON ICON STYLING & ANIMATIONS
   ============================================ */

.btn-icon {
  display: inline-block;
  margin-left: var(--space-2);
  font-size: var(--text-lg);
  transition: transform var(--transition-base);
}

.btn-secondary .btn-icon {
  margin-left: 0;
  margin-right: var(--space-2);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

.btn-secondary:hover .btn-icon {
  transform: translateX(0) translateY(-2px);
}

/* Primary button pulse animation */
.btn-primary {
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px 0 rgba(212, 175, 55, 0.6);
  }
}

/* Enhanced button sizing for primary CTA */
.btn-primary {
  padding: calc(var(--space-4) * 1.1) calc(var(--space-8) * 1.2);
  font-size: calc(var(--text-lg) * 1.05);
  font-weight: var(--weight-semibold);
}

/* ============================================
   PHASE 1.4: HERO VISUAL ENHANCEMENTS
   ============================================ */

/* Animated gradient background for hero */
body.landing-page .hero-section {
  background: linear-gradient(-45deg,
    var(--color-navy-900),
    #1a2f5a,
    var(--color-navy-700),
    #0d1a33
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

/* Overlay for better text contrast */
body.landing-page .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(212, 175, 55, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

/* Ensure hero content is above overlay */
body.landing-page .hero-content {
  position: relative;
  z-index: 1;
}

/* Light text on dark hero background - HIGH CONTRAST */
body.landing-page .hero-title {
  color: #FFFFFF !important;
  /* Remove gradient text effect from typography.css */
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background-clip: unset !important;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 255, 255, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.landing-page .hero-subtitle {
  color: rgba(248, 248, 248, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Frosted glass effect on hero stat cards */
body.landing-page .hero-stat {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-base);
}

body.landing-page .hero-stat:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Light text for stat values and labels */
body.landing-page .hero-stat-value {
  color: var(--color-gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.landing-page .hero-stat-label {
  color: rgba(248, 248, 248, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Subtle floating animation for decorative elements */
body.landing-page .hero-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

/* Adjust button styles for dark hero background */
body.landing-page .hero-section .btn-primary {
  background: linear-gradient(135deg,
    var(--color-gold-medium) 0%,
    var(--color-gold-dark) 100%
  );
  color: var(--color-navy-900);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

body.landing-page .hero-section .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.45);
  transform: translateY(-2px);
}

body.landing-page .hero-section .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-platinum-100);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

body.landing-page .hero-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}


/* ============================================
   PHASE 2.1: COMPARISON TABLE ICON ENHANCEMENTS
   ============================================ */

/* Table icon styling */
.table-icon-negative,
.table-icon-positive {
  display: inline-block;
  margin-right: var(--space-2);
  font-size: 1.25rem;
  vertical-align: middle;
  transition: transform var(--transition-base);
}

.table-icon-negative {
  color: #DC2626; /* Red-600 */
}

.table-icon-positive {
  color: #16A34A; /* Green-600 */
}

/* Hover effect on table rows */
body.landing-page .comparison-table tbody tr:hover .table-icon-negative {
  transform: scale(1.1);
}

body.landing-page .comparison-table tbody tr:hover .table-icon-positive {
  transform: scale(1.1) rotate(5deg);
}

/* Ensure proper alignment in table cells */
body.landing-page .comparison-table td {
  vertical-align: middle;
}

body.landing-page .comparison-table td i {
  margin-right: var(--space-2);
  vertical-align: middle;
}


/* ============================================
   PHASE 2.2: METRIC CARD REFINEMENTS
   ============================================ */

/* Enhanced hover state with glow effect */
body.landing-page .metric-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px var(--card-accent-color, var(--color-gold-medium)),
    0 0 20px rgba(212, 175, 55, 0.15);
}

/* Category-specific accent colors */
body.landing-page .metric-card[data-category="time"] {
  --card-accent-color: var(--color-time-medium);
  --card-accent-light: var(--color-time-light);
}

body.landing-page .metric-card[data-category="skill"] {
  --card-accent-color: var(--color-skill-medium);
  --card-accent-light: var(--color-skill-light);
}

body.landing-page .metric-card[data-category="complexity"] {
  --card-accent-color: var(--color-complexity-medium);
  --card-accent-light: var(--color-complexity-light);
}

/* Enhanced icon animation with scale and rotate */
body.landing-page .metric-card:hover .metric-card-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.landing-page .metric-card:hover .metric-card-icon i {
  transform: scale(1.15) rotate(8deg);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Category badge pulse on hover */
body.landing-page .metric-card:hover .metric-card-category {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* CTA button enhancement within cards */
body.landing-page .metric-card .metric-card-cta {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  transition: border-color var(--transition-base);
}

body.landing-page .metric-card:hover .metric-card-cta {
  border-color: var(--card-accent-color);
}

body.landing-page .metric-card-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Staggered entrance animation enhancement */
body.landing-page .metrics-grid.stagger-children.visible .metric-card {
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

/* Title underline effect on hover */
body.landing-page .metric-card-title {
  position: relative;
  display: inline-block;
  transition: color var(--transition-base);
}

body.landing-page .metric-card:hover .metric-card-title {
  color: var(--card-accent-color);
}


/* ============================================
   PHASE 2.3: SECTION BACKGROUND VARIATION
   ============================================ */

/* Alternating section backgrounds for visual rhythm */
body.landing-page .content-section:nth-child(even) {
  background: linear-gradient(180deg,
    var(--color-background) 0%,
    rgba(248, 248, 248, 0.4) 50%,
    var(--color-background) 100%
  );
}

body.landing-page .content-section:nth-child(odd) {
  background: var(--color-background);
}

/* Special treatment for key sections */
body.landing-page .content-section:has(.metrics-grid) {
  background: linear-gradient(180deg,
    var(--color-background) 0%,
    rgba(10, 31, 68, 0.02) 30%,
    rgba(212, 175, 55, 0.03) 70%,
    var(--color-background) 100%
  );
  position: relative;
}

/* Subtle decorative elements for depth */
body.landing-page .content-section:has(.metrics-grid)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.1) 50%,
    transparent 100%
  );
}

/* Finance section special styling */
body.landing-page .content-section:has(.finance-layout) {
  background: linear-gradient(135deg,
    rgba(10, 31, 68, 0.02) 0%,
    var(--color-background) 40%,
    rgba(212, 175, 55, 0.02) 100%
  );
}

/* Academic rigor section emphasis */
body.landing-page .content-section:has(.checklist) {
  background: linear-gradient(180deg,
    var(--color-background) 0%,
    rgba(10, 31, 68, 0.015) 50%,
    var(--color-background) 100%
  );
  border-top: 1px solid rgba(10, 31, 68, 0.06);
  border-bottom: 1px solid rgba(10, 31, 68, 0.06);
}

/* Explore section with subtle gold tint */
body.landing-page .content-section:has(.section-card-grid) {
  background: radial-gradient(ellipse at center,
    rgba(212, 175, 55, 0.02) 0%,
    var(--color-background) 60%
  );
}

/* Dark mode adjustments */
[data-theme="dark"] body.landing-page .content-section:nth-child(even) {
  background: linear-gradient(180deg,
    var(--color-background) 0%,
    rgba(255, 255, 255, 0.01) 50%,
    var(--color-background) 100%
  );
}

[data-theme="dark"] body.landing-page .content-section:has(.metrics-grid) {
  background: linear-gradient(180deg,
    var(--color-background) 0%,
    rgba(212, 175, 55, 0.02) 50%,
    var(--color-background) 100%
  );
}


/* ============================================
   PHASE 2.5: VALUE PROPOSITION CARD POLISH
   ============================================ */

/* Enhanced hover state with glow */
body.landing-page .value-prop-item {
  position: relative;
  overflow: hidden;
}

body.landing-page .value-prop-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-gold-medium),
    var(--color-gold-light)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.landing-page .value-prop-item:hover::before {
  transform: scaleX(1);
}

body.landing-page .value-prop-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 0 30px rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
}

/* Icon animation enhancement */
body.landing-page .value-prop-icon {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.landing-page .value-prop-item:hover .value-prop-icon {
  transform: scale(1.1);
  box-shadow: 
    0 12px 28px rgba(212, 175, 55, 0.3),
    0 0 20px rgba(212, 175, 55, 0.2);
}

/* Title color shift on hover */
body.landing-page .value-prop-title {
  transition: color var(--transition-base);
}

body.landing-page .value-prop-item:hover .value-prop-title {
  color: var(--color-gold-dark);
}

/* Description fade-in effect */
body.landing-page .value-prop-description {
  transition: color var(--transition-base);
}

body.landing-page .value-prop-item:hover .value-prop-description {
  color: var(--color-text-primary);
}

/* Staggered animation for value props */
body.landing-page .value-prop-grid.stagger-children.visible .value-prop-item {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* ============================================
   PHASE 3: MICRO-INTERACTIONS & POLISH
   ============================================ */

/* Enhanced link styling with underline animation */
body.landing-page .content-section a:not(.btn) {
  position: relative;
  color: var(--color-gold-dark);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: color var(--transition-base);
  background-image: linear-gradient(
    to right,
    var(--color-gold-medium) 0%,
    var(--color-gold-medium) 100%
  );
  background-size: 0% 2px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.2s ease;
}

body.landing-page .content-section a:not(.btn):hover {
  color: var(--color-navy-900);
  background-size: 100% 2px;
}

/* Checklist enhancements */
body.landing-page .checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

body.landing-page .checklist li {
  position: relative;
  padding-left: var(--space-10);
  line-height: var(--leading-relaxed);
  transition: transform var(--transition-base), color var(--transition-base);
}

body.landing-page .checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg,
    var(--color-gold-medium),
    var(--color-gold-light)
  );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.landing-page .checklist li::after {
  content: '✓';
  position: absolute;
  left: 6px;
  top: 5px;
  color: white;
  font-weight: var(--weight-bold);
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.landing-page .checklist li:hover {
  transform: translateX(4px);
  color: var(--color-text-primary);
}

body.landing-page .checklist li:hover::before {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

body.landing-page .checklist li:hover::after {
  transform: scale(1.2);
}

/* CTA link enhancements */
body.landing-page .cta-link {
  text-align: center;
  margin-top: var(--space-6);
}

body.landing-page .cta-link a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

body.landing-page .cta-link a::after {
  content: '→';
  transition: transform var(--transition-base);
}

body.landing-page .cta-link a:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(4px);
}

body.landing-page .cta-link a:hover::after {
  transform: translateX(4px);
}

/* Link list styling */
body.landing-page .link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

body.landing-page .link-list li {
  padding: var(--space-4);
  border-left: 3px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

body.landing-page .link-list li:hover {
  background: rgba(212, 175, 55, 0.05);
  border-left-color: var(--color-gold-medium);
  transform: translateX(4px);
}

body.landing-page .link-list a {
  display: block;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
  background-size: 0% 2px !important;
}

body.landing-page .link-list li:hover a {
  background-size: 100% 2px !important;
}

body.landing-page .link-list span {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: var(--weight-normal);
}

/* Section card hover effects */
body.landing-page .section-card {
  transition: all var(--transition-base);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(10, 31, 68, 0.08);
  background: var(--color-surface);
}

body.landing-page .section-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.2);
}

/* Feature panel enhancements */
body.landing-page .feature-panel {
  transition: all var(--transition-base);
}

body.landing-page .feature-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}


/* ============================================
   ACCESSIBILITY: FOCUS STATES
   ============================================ */

/* Enhanced focus visibility for keyboard navigation */
body.landing-page *:focus-visible {
  outline: 3px solid var(--color-gold-medium);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Button focus states */
body.landing-page .btn:focus-visible {
  outline: 3px solid var(--color-gold-medium);
  outline-offset: 4px;
  box-shadow: 
    0 8px 24px rgba(212, 175, 55, 0.3),
    0 0 0 4px rgba(212, 175, 55, 0.1);
}

body.landing-page .btn-secondary:focus-visible {
  outline-color: var(--color-navy-900);
}

/* Link focus states */
body.landing-page a:focus-visible {
  outline: 2px solid var(--color-gold-medium);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Card focus states */
body.landing-page .metric-card:focus-visible,
body.landing-page .value-prop-item:focus-visible,
body.landing-page .section-card:focus-visible {
  outline: 3px solid var(--color-gold-medium);
  outline-offset: 4px;
  transform: translateY(-4px);
}

/* Ensure focus is never hidden */
body.landing-page *:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link for screen readers */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-navy-900);
  color: white;
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  body.landing-page {
    --color-border: #000000;
  }
  
  body.landing-page .btn {
    border: 2px solid currentColor;
  }
  
  body.landing-page *:focus-visible {
    outline-width: 4px;
    outline-color: currentColor;
  }
}

/* Print styles */
@media print {
  body.landing-page .hero-section {
    background: white !important;
    color: black !important;
    animation: none !important;
  }
  
  body.landing-page .hero-stat {
    background: white !important;
    border: 1px solid #ccc !important;
  }
  
  body.landing-page * {
    animation: none !important;
    transition: none !important;
  }
}


/* ============================================
   FIX: METRIC CARD ICON ALIGNMENT
   ============================================ */

/* Ensure icons are perfectly centered */
body.landing-page .metric-card-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
}

/* Remove default paragraph margins that break alignment */
body.landing-page .metric-card-icon p {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.landing-page .metric-card-icon i {
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
}


/* Fix value-prop-icon centering - same paragraph issue */
body.landing-page .value-prop-icon p {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.landing-page .value-prop-icon i {
  display: block;
  line-height: 1;
  margin: 0;
  padding: 0;
}


/* ============================================
   FIX: COMPARISON TABLE ALIGNMENT & HIERARCHY
   ============================================ */

/* Left-align table headers with offset to match icon-indented content */
body.landing-page .comparison-table th {
  text-align: left !important;
  font-weight: var(--weight-bold) !important;
  font-size: var(--text-xl) !important;
  /* Indent header text to align with content text (after icons) */
  padding: var(--space-5) var(--space-6) var(--space-5) calc(var(--space-6) + 1.25rem + var(--space-2)) !important;
  color: var(--color-navy-900);
  background: linear-gradient(180deg,
    rgba(248, 248, 248, 0.5),
    var(--color-surface)
  );
}

/* Better spacing for competitive advantage subtitle */
body.landing-page .section-subtitle + .comparison-table,
body.landing-page .comparison-table {
  margin-top: var(--space-8);
}

/* Ensure even column width */
body.landing-page .comparison-table {
  table-layout: fixed;
  width: 100%;
}

body.landing-page .comparison-table th,
body.landing-page .comparison-table td {
  width: 50%;
}

/* Improve row spacing and readability */
body.landing-page .comparison-table td {
  padding: var(--space-4) var(--space-6) !important;
  vertical-align: middle;
}

/* Add subtle background to thead for separation */
body.landing-page .comparison-table thead {
  background: transparent !important;
}

/* ============================================
   RESTRICTED CONTENT STYLING
   Navbar items with lock icons (restricted PDFs)
   ============================================ */

/* Style navbar dropdown items containing 🔒 as disabled/muted */
.navbar-nav .dropdown-menu .dropdown-item:has-text("🔒"),
.navbar-nav .dropdown-menu a.dropdown-item[href*="request-access"] {
  opacity: 0.5;
  color: var(--bs-secondary-color) !important;
  cursor: not-allowed;
  position: relative;
}

/* Fallback for browsers that don't support :has-text */
.navbar-nav .dropdown-menu a.dropdown-item {
  /* Check if text content starts with 🔒 */
}

/* More specific selector for locked items */
.navbar-nav .dropdown-menu a[href*="request-access"] {
  opacity: 0.5;
  color: #6c757d !important;
  font-style: italic;
  position: relative;
}

.navbar-nav .dropdown-menu a[href*="request-access"]:hover {
  opacity: 0.6;
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #6c757d !important;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .navbar-nav .dropdown-menu a[href*="request-access"] {
  color: #adb5bd !important;
}

[data-bs-theme="dark"] .navbar-nav .dropdown-menu a[href*="request-access"]:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #adb5bd !important;
}

/* ============================================
   LOCKED CTA PILL BUTTONS
   Applied by _scripts/clean-public-leaks.py to links whose targets are not
   rendered in the public profile. Each such <a> is rewritten to point at
   request-access.html with the .locked-cta class. Renders inline as a
   prominent pill so readers get a clear funnel toward requesting access
   instead of a dead link.
   ============================================ */
.locked-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.18em 0.7em 0.22em;
  margin: 0 0.08em;
  background: linear-gradient(135deg, rgba(39, 97, 227, 0.10), rgba(10, 31, 68, 0.06));
  border: 1px solid rgba(39, 97, 227, 0.35);
  border-radius: 9999px;
  color: var(--color-navy-900, #0A1F44) !important;
  font-weight: 600;
  font-size: 0.92em;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}

.locked-cta::before {
  content: "\1F512";
  font-size: 0.8em;
  filter: grayscale(0.2);
}

.locked-cta:hover,
.locked-cta:focus-visible {
  background: linear-gradient(135deg, #2761e3, #0A1F44);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(39, 97, 227, 0.35);
  transform: translateY(-1px);
  text-decoration: none !important;
  outline: none;
}

.locked-cta:hover::before,
.locked-cta:focus-visible::before {
  content: "\1F513";
}

[data-bs-theme="dark"] .locked-cta {
  background: linear-gradient(135deg, rgba(39, 97, 227, 0.18), rgba(10, 31, 68, 0.32));
  border-color: rgba(39, 97, 227, 0.5);
  color: #e5edff !important;
}

[data-bs-theme="dark"] .locked-cta:hover,
[data-bs-theme="dark"] .locked-cta:focus-visible {
  background: linear-gradient(135deg, #2761e3, #1e4eb5);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(39, 97, 227, 0.45);
}

