/* ==========================================================================
   PROFILERBOOK MASTER DOCUMENTATION & RESEARCH PORTAL
   Theme: Executive Studio Luxury, Royal Indigo & Emerald, Visual Infographics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=JetBrains+Mono:wght@600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-accent: #818cf8;

  --text-main: #090d16;
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-gradient: linear-gradient(135deg, #4338ca 0%, #3b82f6 100%);
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;

  --emerald: #047857;
  --emerald-gradient: linear-gradient(135deg, #047857 0%, #10b981 100%);
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;

  --secondary: #0284c7;
  --secondary-light: #f0f9ff;
  --secondary-border: #bae6fd;

  --amber: #b45309;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  --rose: #be123c;
  --rose-light: #fff1f2;
  --rose-border: #fecdd3;

  --purple: #6d28d9;
  --purple-light: #f5f3ff;
  --purple-border: #ddd6fe;

  --font-main: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 10px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 30px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(67, 56, 202, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --max-w: 1280px;
}

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

html {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-main);
  scroll-behavior: smooth;
  scroll-padding-top: 135px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 1rem;
}

/* Base Container */
.container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   PORTAL HEADER / NAVBAR (Desktop & Mobile Friendly)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border-subtle);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transform: translateZ(0);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-heading);
}

.brand-badge {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.3);
  transition: transform 0.2s ease;
}

.site-brand:hover .brand-badge {
  transform: scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.15;
}

.brand-title span {
  color: var(--primary);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}

/* Nav Links Desktop */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 42px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(67, 56, 202, 0.35);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text-heading);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-emerald {
  background: var(--emerald-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
}

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(4, 120, 87, 0.35);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--text-heading);
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER (Slide-in native dialog / sheet)
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(85vw, 360px);
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  border: none;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.2);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1.5px solid var(--border-subtle);
}

.drawer-close-btn {
  background: var(--bg-subtle);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  background: #ffffff;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.drawer-link:hover, .drawer-link.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.drawer-link-icon {
  font-size: 1.3rem;
  width: 32px;
  text-align: center;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1.5px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-subtle);
}

/* ==========================================================================
   STICKY RESEARCH SUB-NAVBAR (Scrollspy / Chapter Jump Bar)
   ========================================================================== */
.sticky-subnav {
  position: sticky;
  top: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 990;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
  transform: translateZ(0);
}

.subnav-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.subnav-track::-webkit-scrollbar {
  display: none;
}

.subnav-pill {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.subnav-pill:hover, .subnav-pill.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.25);
}

/* ==========================================================================
   HERO SECTION (Executive Thesis & Grand Portal Intro)
   ========================================================================== */
.portal-hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1.5px solid var(--border-subtle);
  position: relative;
}

.hero-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1.5px solid var(--primary-border);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.08);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1.35rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 980px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Key Metrics 4-Box Ribbon */
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.25rem;
}

.metric-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESEARCH SECTIONS COMMON STYLING
   ========================================================================== */
.research-section {
  padding: 5.5rem 0;
  border-bottom: 1.5px solid var(--border-subtle);
  scroll-margin-top: 135px;
}

.research-section:nth-child(even) {
  background: #ffffff;
}

.section-header {
  margin-bottom: 3rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.3rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.45rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.015em;
}

.section-desc {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 880px;
  line-height: 1.65;
}

/* Pro-Callout Notes */
.callout-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-left: 4.5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  margin: 2rem 0;
  color: var(--text-body);
}

.callout-box strong {
  color: var(--text-heading);
}

.callout-emerald {
  background: var(--emerald-light);
  border-color: var(--emerald-border);
  border-left-color: var(--emerald);
}

.callout-amber {
  background: var(--amber-light);
  border-color: var(--amber-border);
  border-left-color: var(--amber);
}

.callout-rose {
  background: var(--rose-light);
  border-color: var(--rose-border);
  border-left-color: var(--rose);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.pro-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.pro-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 1.15rem;
  display: inline-block;
}

.pro-card h3, .pro-card h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.pro-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   MODULES SHOWCASE & FILTER SYSTEM
   ========================================================================== */
.module-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 42px;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(67, 56, 202, 0.25);
}

.module-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.mod-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.mod-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-xl);
}

.mod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.mod-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.mod-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.badge-trust {
  background: var(--secondary-light);
  color: var(--secondary);
  border: 1px solid var(--secondary-border);
}

.badge-commercial {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
}

.badge-infra {
  background: var(--purple-light);
  color: var(--purple);
  border: 1px solid var(--purple-border);
}

.mod-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.mod-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.mod-financial-row {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.35rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  border: 1px solid var(--border-subtle);
}

.mod-fin-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.mod-fin-item strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
}

.profit-green {
  color: var(--emerald);
}

.cost-red {
  color: var(--rose);
}

.mod-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-mod-detail {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  transition: all 0.2s ease;
  min-height: 38px;
}

.btn-mod-detail:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-txt-raw {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
}

.btn-txt-raw:hover {
  color: var(--text-heading);
  text-decoration: underline;
}

/* ==========================================================================
   VISUAL INFOGRAPHICS & REVENUE SPLIT COMPARISON
   ========================================================================== */
.split-visual-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.split-comparison-bar {
  display: flex;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}

.bar-segment-creator {
  background: var(--emerald-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  width: 35%;
}

.bar-segment-reader {
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  width: 25%;
}

.bar-segment-platform {
  background: #334155;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  width: 40%;
}

/* ==========================================================================
   DATA TABLES (Full Balance Sheet & P&L)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  margin: 2rem 0;
  -webkit-overflow-scrolling: touch;
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 640px;
}

.pro-table thead {
  background: var(--bg-subtle);
  border-bottom: 1.5px solid var(--border-strong);
}

.pro-table th {
  padding: 1.15rem 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  white-space: nowrap;
}

.pro-table td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.pro-table tbody tr:hover {
  background: #f8fafc;
}

.pro-table tbody tr:last-child td {
  border-bottom: none;
}

.pro-table tfoot {
  background: var(--primary-light);
  border-top: 2px solid var(--primary-border);
  font-weight: 800;
}

.pro-table tfoot td {
  padding: 1.35rem;
  color: var(--text-heading);
}

/* ==========================================================================
   INTERACTIVE SIMULATOR (Dynamic Reactive UI)
   ========================================================================== */
.simulator-box {
  background: #ffffff;
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}

.sim-slider-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--primary-light);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.slider-group label span.val-badge {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  background: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.slider-group input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
  height: 8px;
}

.sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.sim-metric-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.sim-metric-card.profit-box {
  background: var(--emerald-light);
  border-color: var(--emerald-border);
}

.sim-metric-card .big-num {
  font-family: var(--font-mono);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.sim-metric-card .lbl {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURE DETAIL & VISUAL INFOGRAPHICS STYLES (for features.html)
   ========================================================================== */
.feature-dossier-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 135px;
}

.dossier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1.5px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.dossier-title-area {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.dossier-icon {
  font-size: 2.85rem;
  background: var(--bg-subtle);
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dossier-title-area h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 800;
  color: var(--text-heading);
}

.dossier-profit-tag {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.dossier-profit-tag.green {
  background: var(--emerald-light);
  color: var(--emerald);
  border: 1.5px solid var(--emerald-border);
}

.dossier-profit-tag.red {
  background: var(--rose-light);
  color: var(--rose);
  border: 1.5px solid var(--rose-border);
}

.dossier-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.75rem;
  margin: 2rem 0;
}

.dossier-section-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dossier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dossier-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
}

.dossier-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 800;
}

.infographic-diagram-box {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1.5px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  color: var(--text-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1.35rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   PRINT / PDF STYLES
   ========================================================================== */
@media print {
  .site-header,
  .sticky-subnav,
  .hero-actions,
  .mod-actions,
  .btn,
  .mobile-menu-toggle,
  .site-footer {
    display: none !important;
  }

  body, html {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .research-section {
    padding: 2rem 0 !important;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1024px) {
  .metrics-ribbon { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .module-card-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dossier-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav, .header-inner .nav-actions { display: none; }
  .mobile-menu-toggle { display: flex; }
  .metrics-ribbon { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .module-card-grid { grid-template-columns: 1fr; }
  .sim-slider-row { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; }
  .sim-metrics-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dossier-header { flex-direction: column; align-items: flex-start; }
  .feature-dossier-card { padding: 1.75rem 1.25rem; }
  .simulator-box { padding: 1.5rem; }
  .pro-card { padding: 1.5rem; }
  .split-comparison-bar { flex-direction: column; height: auto; }
  .bar-segment-creator, .bar-segment-reader, .bar-segment-platform { width: 100%; padding: 0.65rem; }
}
