/* ════════════════════════════════════════════════════════════════
   Spark Intel – Premium Design System v2.1 (Dark / Light)
   ════════════════════════════════════════════════════════════════ */

/* ── Dark theme (default) ── */
:root {
  --navy-950: #000d1f;
  --navy-900: #00112A;
  --navy-800: #001940;
  --navy-700: #02376A;
  --navy-600: #095180;
  --navy-500: #187EB5;
  --accent-blue: #00ADD8;
  --accent-cyan: #35C2E0;
  --accent-indigo: #0094CA;
  --accent-teal: #6FCAC5;
  --accent-amber: #F79940;
  --accent-glow: rgba(0, 173, 216, 0.12);
  --amber-glow: rgba(247, 153, 64, 0.12);
  --teal-glow: rgba(111, 202, 197, 0.12);
  --text-primary: #f1f5f9;
  --text-secondary: #b4c4d6;
  --text-muted: #8a9db6;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border-strong: rgba(255, 255, 255, 0.12);

  /* Theme surface tokens (dark default) */
  --surface-body: #00112A;
  --surface-elevated: #001940;
  --surface-card: rgba(255, 255, 255, 0.035);
  --surface-card-hover: rgba(255, 255, 255, 0.08);
  --surface-input: #001940;
  --surface-nav: rgba(0, 17, 42, 0.65);
  --surface-mobile-menu: rgba(0, 13, 31, 0.98);
  --surface-footer: #00112A;
  --surface-pill: rgba(255, 255, 255, 0.04);
  --surface-pill-hover: rgba(0, 173, 216, 0.16);
  --surface-badge: rgba(255, 255, 255, 0.04);
  --surface-table-hover: rgba(0, 173, 216, 0.07);
  --surface-overlay: rgba(0, 17, 42, 0.85);

  --border-default: rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-input: rgba(255, 255, 255, 0.10);
  --border-table: rgba(255, 255, 255, 0.08);
  --border-table-row: rgba(255, 255, 255, 0.03);

  --text-on-surface: #f1f5f9;
  --text-heading: #f1f5f9;
  --text-link: #82D2E7;
  --text-link-hover: #c0f0ff;

  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 60px rgba(0, 173, 216, 0.10);
  --shadow-btn: 0 2px 8px rgba(0, 173, 216, 0.2), 0 8px 32px rgba(0, 173, 216, 0.1);

  --positive: #34d399;
  --negative: #f87171;
  --positive-bg: rgba(52, 211, 153, 0.10);
  --negative-bg: rgba(248, 113, 113, 0.10);

  --scrollbar-thumb: rgba(255, 255, 255, 0.15);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.25);

  --divider: rgba(255, 255, 255, 0.1);
}

/* ── Light theme ── */
[data-theme="light"] {
  --navy-950: #f8fafc;
  --navy-900: #ffffff;
  --navy-800: #f1f5f9;
  --navy-700: #e2e8f0;
  --navy-600: #cbd5e1;
  --navy-500: #0284c7;
  --accent-blue: #0284c7;
  --accent-cyan: #0891b2;
  --accent-indigo: #0369a1;
  --accent-teal: #0d9488;
  --accent-amber: #d97706;
  --accent-glow: rgba(2, 132, 199, 0.08);
  --amber-glow: rgba(217, 119, 6, 0.08);
  --teal-glow: rgba(13, 148, 136, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.70);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border-strong: rgba(0, 0, 0, 0.10);

  --surface-body: #f8fafc;
  --surface-elevated: #ffffff;
  --surface-card: rgba(255, 255, 255, 0.80);
  --surface-card-hover: rgba(255, 255, 255, 0.95);
  --surface-input: #ffffff;
  --surface-nav: rgba(255, 255, 255, 0.80);
  --surface-mobile-menu: rgba(248, 250, 252, 0.98);
  --surface-footer: #f1f5f9;
  --surface-pill: rgba(0, 0, 0, 0.04);
  --surface-pill-hover: rgba(2, 132, 199, 0.10);
  --surface-badge: rgba(0, 0, 0, 0.04);
  --surface-table-hover: rgba(2, 132, 199, 0.06);
  --surface-overlay: rgba(241, 245, 249, 0.92);

  --border-default: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-card: rgba(0, 0, 0, 0.08);
  --border-input: rgba(0, 0, 0, 0.15);
  --border-table: rgba(0, 0, 0, 0.08);
  --border-table-row: rgba(0, 0, 0, 0.04);

  --text-on-surface: #0f172a;
  --text-heading: #0f172a;
  --text-link: #0369a1;
  --text-link-hover: #0284c7;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 2px 8px rgba(2, 132, 199, 0.15), 0 4px 16px rgba(2, 132, 199, 0.08);

  --positive: #059669;
  --negative: #dc2626;
  --positive-bg: rgba(5, 150, 105, 0.08);
  --negative-bg: rgba(220, 38, 38, 0.08);

  --scrollbar-thumb: rgba(0, 0, 0, 0.15);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.25);

  --divider: rgba(0, 0, 0, 0.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--surface-body);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-weight: 400; }
h2 { font-weight: 400; }
h3 { font-weight: 500; }
h4 { font-weight: 500; }
p  { line-height: 1.75; margin: 0; }

.gradient-text {
  background: linear-gradient(135deg, #82D2E7 0%, #00ADD8 42%, #6FCAC5 75%, #5AB8B3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-warm {
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-amber {
  background: linear-gradient(135deg, #fcd34d 0%, #F79940 60%, #d4874a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Background ── */
.hero-gradient {
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: 120%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 173, 216, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 45% at 30% 15%, rgba(0, 148, 202, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 70% 15%, rgba(53, 194, 224, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 90%, rgba(0, 25, 64, 0.60), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 80%, rgba(247, 153, 64, 0.07), transparent 65%),
    radial-gradient(ellipse 35% 30% at 15% 85%, rgba(111, 202, 197, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--navy-900), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-gradient > * {
  position: relative;
  z-index: 1;
}

/* Subtle grid mesh overlay for hero sections */
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.orb-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ── */
.nav-blur {
  background: var(--surface-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.3s ease;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.25s ease;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: #e2e8f0;
}

.nav-link:hover {
  color: #82D2E7;
  text-shadow: 0 0 10px rgba(130, 210, 231, 0.2);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: linear-gradient(135deg, #00ADD8, #0094CA);
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
  box-shadow:
    0 0 0 1px rgba(0, 148, 202, 0.25),
    0 2px 8px rgba(0, 173, 216, 0.2),
    0 8px 32px rgba(0, 173, 216, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(0, 148, 202, 0.6),
    0 4px 24px rgba(0, 173, 216, 0.5),
    0 12px 48px rgba(0, 173, 216, 0.25),
    0 0 60px rgba(0, 173, 216, 0.15);
  filter: brightness(1.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(130, 210, 231, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 30px rgba(0, 173, 216, 0.08);
  color: #fff;
}

/* ── Glass Panels ── */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
}

.glass-panel:hover {
  border-color: rgba(0, 173, 216, 0.30);
  background: var(--surface-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.glass-panel-strong {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: 1.5rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glow-accent {
  box-shadow:
    0 0 80px rgba(0, 173, 216, 0.08),
    0 0 160px rgba(0, 148, 202, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.15);
}

/* ── Dividers ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--divider), transparent);
}

/* ── Category Cards ── */
.category-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, rgba(0, 173, 216, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-card:hover {
  border-color: rgba(0, 173, 216, 0.35);
  background: var(--surface-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.category-card:hover::before { opacity: 1; }

.sub-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 173, 216, 0.08);
  border: 1px solid rgba(0, 173, 216, 0.12);
  border-radius: 100px;
  color: #82D2E7;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.sub-tag:hover {
  background: rgba(0, 173, 216, 0.22);
  border-color: rgba(0, 173, 216, 0.45);
  color: #c0f0ff;
  box-shadow: 0 0 12px rgba(0, 173, 216, 0.12);
}

/* ── Sections ── */
.section    { padding: 3.5rem 0; }
.section-sm { padding: 2.5rem 0; }

@media (min-width: 768px) {
  .section    { padding: 5rem 0; }
  .section-sm { padding: 3.5rem 0; }
}

/* ── Stats ── */
.stat-block  { text-align: center; padding: 1.5rem; }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

@media (min-width: 640px) {
  .stat-number { font-size: 3.5rem; }
}

/* ── Calculator Category Pill Nav ── */
.calc-pill-nav {
  position: sticky;
  top: 80px;
  z-index: 40;
  background: var(--surface-overlay);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-pill-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.calc-pill-nav-inner::-webkit-scrollbar { display: none; }

.calc-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-pill);
  border: 1px solid var(--border-default);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.calc-pill:hover {
  color: #c0f0ff;
  background: rgba(0, 173, 216, 0.16);
  border-color: rgba(0, 173, 216, 0.4);
  box-shadow: 0 0 10px rgba(0, 173, 216, 0.1);
}

.calc-pill.active {
  color: #35C2E0;
  background: rgba(0, 173, 216, 0.12);
  border-color: rgba(0, 173, 216, 0.35);
}

/* ── Scroll Down Indicator ── */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce-down 2s ease-in-out infinite;
}

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(6px); opacity: 0.75; }
}

/* ── Report Cards ── */
.report-stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: 1rem;
  padding: 1.25rem 1rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 6.5rem;
  overflow: visible;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.report-stat-card:hover {
  border-color: var(--border-default);
  background: var(--surface-card-hover);
}

.report-stat-card p:first-child {
  flex: 1;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.report-stat-card p:last-child {
  line-height: 1.2;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding-bottom: 2px;
}

/* ── Report Tables ── */
.report-table {
  border-collapse: collapse;
  border-spacing: 0;
}

.report-table thead th {
  padding: 0.75rem;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: right;
  border-bottom: 1px solid var(--border-table);
  white-space: nowrap;
}

.report-table thead th:first-child { text-align: left; }

.report-table tbody td {
  padding: 0.6rem 0.75rem;
  text-align: right;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-table-row);
  white-space: nowrap;
}

.report-table tbody td[class*="text-emerald"] { color: var(--positive); }
.report-table tbody td[class*="text-red"] { color: var(--negative); }

.report-table tbody td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 400;
}

.report-table tbody tr:hover td {
  background: var(--surface-table-hover);
}

.report-table tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--accent-blue);
}

/* ── Table scroll wrappers ── */
.overflow-x-auto {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
.overflow-x-auto::-webkit-scrollbar { height: 6px; }
.overflow-x-auto::-webkit-scrollbar-track { background: transparent; }
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.faq-question:hover { color: #82D2E7; text-shadow: 0 0 8px rgba(130, 210, 231, 0.2); }

/* ── Breadcrumb hover ── */
.breadcrumb a:hover { color: #82D2E7 !important; text-shadow: 0 0 8px rgba(130, 210, 231, 0.25); }

/* ── Footer link hover ── */
footer a:hover { color: #82D2E7 !important; text-shadow: 0 0 8px rgba(130, 210, 231, 0.2); }

.faq-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--surface-mobile-menu);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.hamburger span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--text-secondary);
  transition: transform 0.3s ease, opacity 0.2s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > .fade-up:nth-child(1) { transition-delay: 0s; }
.stagger-children > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > .fade-up:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > .fade-up:nth-child(4) { transition-delay: 0.2s; }

/* ── Keyframes ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.animate-float      { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

/* ── Decorative ── */
.line-accent {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 2px;
}

.line-accent-amber {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(247,153,64,0.7), rgba(252,211,77,0.5));
  border-radius: 2px;
}

.line-accent-teal {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), #82D2E7);
  border-radius: 2px;
}

/* ── Amber Button ── */
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background: linear-gradient(135deg, rgba(247,153,64,0.88), rgba(217,110,16,0.82));
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.3s ease, filter 0.2s ease;
  box-shadow:
    0 0 0 1px rgba(247, 153, 64, 0.18),
    0 2px 8px rgba(247, 153, 64, 0.14),
    0 8px 32px rgba(247, 153, 64, 0.07);
}

.btn-amber:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(247, 153, 64, 0.5),
    0 4px 24px rgba(247, 153, 64, 0.4),
    0 12px 48px rgba(247, 153, 64, 0.2),
    0 0 60px rgba(247, 153, 64, 0.1);
  filter: brightness(1.18);
}

/* ── Teal & Amber Tag Variants ── */
.sub-tag-teal {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(111, 202, 197, 0.08);
  border: 1px solid rgba(111, 202, 197, 0.2);
  border-radius: 100px;
  color: #6FCAC5;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sub-tag-teal:hover {
  background: rgba(111, 202, 197, 0.2);
  border-color: rgba(111, 202, 197, 0.4);
  color: #8fd8d3;
}

.sub-tag-amber {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: rgba(247, 153, 64, 0.08);
  border: 1px solid rgba(247, 153, 64, 0.2);
  border-radius: 100px;
  color: #F79940;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sub-tag-amber:hover {
  background: rgba(247, 153, 64, 0.2);
  border-color: rgba(247, 153, 64, 0.4);
  color: #f9b16e;
}

/* ── Amber glow accent ── */
.glow-accent-amber {
  box-shadow:
    0 0 80px rgba(247, 153, 64, 0.08),
    0 0 160px rgba(247, 153, 64, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.15);
}

/* ── Focus States ── */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent-blue);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

/* ── Footer ── */
footer a { transition: color 0.25s ease; }

/* ── Section anchor nav ── */
.section-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.section-nav::-webkit-scrollbar { display: none; }

.section-nav a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-pill);
  border: 1px solid var(--border-default);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.section-nav a:hover {
  color: var(--text-link-hover);
  background: var(--surface-pill-hover);
  border-color: rgba(0, 173, 216, 0.4);
  box-shadow: 0 0 12px rgba(0, 173, 216, 0.1);
}

/* ════════════════════════════════════════════════════════════════
   Theme Toggle UI
   ════════════════════════════════════════════════════════════════ */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 0.5rem;
  background: var(--surface-pill);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent-blue);
  background: var(--surface-pill-hover);
  border-color: rgba(0, 173, 216, 0.4);
  transform: scale(1.08);
}

.theme-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* Icon visibility per theme */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ════════════════════════════════════════════════════════════════
   Light Theme – Component Overrides
   ════════════════════════════════════════════════════════════════ */

/* Smooth transition for all themed elements */
[data-theme="light"] *,
[data-theme="light"] *::before,
[data-theme="light"] *::after {
  transition-property: background-color, border-color, color, box-shadow, opacity;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* ── Gradient text adjustments for light mode ── */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 42%, #0d9488 75%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .gradient-text-warm {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .gradient-text-amber {
  background: linear-gradient(135deg, #b45309 0%, #d97706 60%, #92400e 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Hero section ── */
[data-theme="light"] .hero-gradient::before {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(2, 132, 199, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 45% at 30% 15%, rgba(3, 105, 161, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 45% at 70% 15%, rgba(8, 145, 178, 0.05), transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 90%, rgba(241, 245, 249, 0.60), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 80%, rgba(217, 119, 6, 0.04), transparent 65%),
    radial-gradient(ellipse 35% 30% at 15% 85%, rgba(13, 148, 136, 0.03), transparent 60%);
}

[data-theme="light"] .hero-gradient::after {
  background: linear-gradient(to top, var(--surface-body), transparent);
}

[data-theme="light"] .hero-mesh {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .orb-glow {
  opacity: 0.25;
}

/* ── Navigation ── */
[data-theme="light"] .nav-link {
  color: var(--text-muted);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--text-primary);
  text-shadow: none;
}

[data-theme="light"] .nav-link:hover {
  color: var(--accent-blue);
  text-shadow: none;
}

[data-theme="light"] .hamburger span {
  background: var(--text-secondary);
}

/* ── Buttons ── */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(3, 105, 161, 0.15),
    0 2px 8px rgba(2, 132, 199, 0.15),
    0 4px 16px rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(3, 105, 161, 0.4),
    0 4px 24px rgba(2, 132, 199, 0.3),
    0 8px 32px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
  border-color: var(--border-default);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-amber {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow:
    0 0 0 1px rgba(217, 119, 6, 0.15),
    0 2px 8px rgba(217, 119, 6, 0.12),
    0 4px 16px rgba(217, 119, 6, 0.06);
}

[data-theme="light"] .btn-amber:hover {
  box-shadow:
    0 0 0 1px rgba(217, 119, 6, 0.4),
    0 4px 24px rgba(217, 119, 6, 0.25),
    0 8px 32px rgba(217, 119, 6, 0.12);
}

/* ── Glass panels ── */
[data-theme="light"] .glass-panel {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-panel:hover {
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .glass-panel-strong {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ── Glow accents muted for light mode ── */
[data-theme="light"] .glow-accent {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(2, 132, 199, 0.06);
}

[data-theme="light"] .glow-accent-amber {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(217, 119, 6, 0.06);
}

/* ── Category card ── */
[data-theme="light"] .category-card::before {
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.05), transparent 60%);
}

[data-theme="light"] .category-card:hover {
  border-color: rgba(2, 132, 199, 0.25);
}

/* ── Sub tags ── */
[data-theme="light"] .sub-tag {
  background: rgba(2, 132, 199, 0.06);
  border-color: rgba(2, 132, 199, 0.12);
  color: #0369a1;
}

[data-theme="light"] .sub-tag:hover {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.08);
}

[data-theme="light"] .sub-tag-teal {
  background: rgba(13, 148, 136, 0.06);
  border-color: rgba(13, 148, 136, 0.15);
  color: #0f766e;
}

[data-theme="light"] .sub-tag-teal:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.3);
  color: #0d9488;
}

[data-theme="light"] .sub-tag-amber {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.15);
  color: #92400e;
}

[data-theme="light"] .sub-tag-amber:hover {
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.3);
  color: #b45309;
}

/* ── Calc pills & Section nav – hover ── */
[data-theme="light"] .calc-pill:hover {
  color: #0284c7;
  background: var(--surface-pill-hover);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.06);
}

[data-theme="light"] .calc-pill.active {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .section-nav a:hover {
  color: #0284c7;
  background: var(--surface-pill-hover);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.06);
}

/* ── Report table ── */
[data-theme="light"] .report-table tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--accent-blue);
}

/* ── FAQ ── */
[data-theme="light"] .faq-question:hover {
  color: var(--accent-blue);
  text-shadow: none;
}

/* ── Breadcrumbs & Footer ── */
[data-theme="light"] .breadcrumb a:hover {
  color: var(--accent-blue) !important;
  text-shadow: none;
}

[data-theme="light"] footer a:hover {
  color: var(--accent-blue) !important;
  text-shadow: none;
}

/* ── Line accents ── */
[data-theme="light"] .line-accent {
  background: linear-gradient(90deg, #0284c7, #0891b2);
}

[data-theme="light"] .line-accent-amber {
  background: linear-gradient(90deg, rgba(217,119,6,0.6), rgba(180,83,9,0.4));
}

[data-theme="light"] .line-accent-teal {
  background: linear-gradient(90deg, #0d9488, #0891b2);
}

/* ── Mobile menu ── */
[data-theme="light"] .mobile-menu a {
  color: var(--text-primary);
}

/* ════════════════════════════════════════════════════════════════
   Light Theme – Tailwind Utility Class Overrides
   Overriding classes used in HTML with [data-theme="light"]
   ════════════════════════════════════════════════════════════════ */

/* Body-level background and text */
[data-theme="light"].bg-navy-900,
[data-theme="light"] .bg-navy-900 {
  background-color: var(--surface-body) !important;
}

[data-theme="light"].text-slate-100,
[data-theme="light"] .text-slate-100,
[data-theme="light"].text-slate-200,
[data-theme="light"] .text-slate-200 {
  color: var(--text-primary) !important;
}

/* Border utilities */
[data-theme="light"] .border-white\/\[0\.04\],
[data-theme="light"] .border-white\/\[0\.06\] {
  border-color: var(--border-subtle) !important;
}

[data-theme="light"] .border-white\/5,
[data-theme="light"] .border-white\/10 {
  border-color: var(--border-default) !important;
}

/* Text color utilities */
[data-theme="light"] .text-slate-400 {
  color: var(--text-secondary) !important;
}

[data-theme="light"] .text-slate-500 {
  color: var(--text-muted) !important;
}

[data-theme="light"] .text-slate-300 {
  color: var(--text-primary) !important;
}

[data-theme="light"] .text-white {
  color: var(--text-heading) !important;
}

/* Keep buttons white on accent backgrounds */
[data-theme="light"] .btn-primary .text-white,
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-amber,
[data-theme="light"] .btn-amber .text-white {
  color: #fff !important;
}

/* Background surface overrides */
[data-theme="light"] .bg-navy-800 {
  background-color: var(--surface-elevated) !important;
}

[data-theme="light"] .bg-navy-950 {
  background-color: var(--surface-body) !important;
}

[data-theme="light"] .bg-white\/\[0\.02\],
[data-theme="light"] .bg-white\/\[0\.03\],
[data-theme="light"] .bg-white\/\[0\.04\] {
  background-color: var(--surface-pill) !important;
}

/* Ring utilities */
[data-theme="light"] .ring-white\/\[0\.06\] {
  --tw-ring-color: var(--border-default) !important;
}

/* Variance colors */
[data-theme="light"] .text-emerald-400 {
  color: var(--positive) !important;
}

[data-theme="light"] .text-red-400 {
  color: var(--negative) !important;
}

/* Blue accent text */
[data-theme="light"] .text-blue-400,
[data-theme="light"] .text-blue-300 {
  color: var(--accent-blue) !important;
}

/* Amber and teal accent text */
[data-theme="light"] .text-amber-400 {
  color: var(--accent-amber) !important;
}

[data-theme="light"] .text-teal-400 {
  color: var(--accent-teal) !important;
}

/* Badge backgrounds */
[data-theme="light"] .bg-red-500\/10 {
  background-color: var(--negative-bg) !important;
}

[data-theme="light"] .bg-emerald-500\/10,
[data-theme="light"] .bg-green-500\/10 {
  background-color: var(--positive-bg) !important;
}

[data-theme="light"] .bg-accent-blue\/10,
[data-theme="light"] .bg-blue-500\/10 {
  background-color: rgba(2, 132, 199, 0.08) !important;
}

/* Badge border colors */
[data-theme="light"] .border-red-500\/20 {
  border-color: rgba(220, 38, 38, 0.20) !important;
}

[data-theme="light"] .border-blue-500\/20 {
  border-color: rgba(2, 132, 199, 0.20) !important;
}

[data-theme="light"] .border-blue-500\/30 {
  border-color: rgba(2, 132, 199, 0.30) !important;
}

/* Hover background for interactive cards */
[data-theme="light"] .hover\:bg-blue-500\/\[0\.04\]:hover {
  background-color: rgba(2, 132, 199, 0.06) !important;
}

[data-theme="light"] .hover\:border-blue-500\/30:hover {
  border-color: rgba(2, 132, 199, 0.25) !important;
}

/* Group hover text */
[data-theme="light"] .group:hover .group-hover\:text-white {
  color: var(--accent-blue) !important;
}

/* Focus ring overrides */
[data-theme="light"] .focus\:border-blue-500\/50:focus {
  border-color: rgba(2, 132, 199, 0.50) !important;
}

[data-theme="light"] .focus\:ring-blue-500\/30:focus {
  --tw-ring-color: rgba(2, 132, 199, 0.30) !important;
}

/* Calculator input overrides */
[data-theme="light"] input.bg-navy-800,
[data-theme="light"] select.bg-navy-800,
[data-theme="light"] textarea.bg-navy-800 {
  background-color: var(--surface-input) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-input) !important;
}

[data-theme="light"] .placeholder-slate-500::placeholder {
  color: var(--text-muted) !important;
}

/* Logo – keep readable */
[data-theme="light"] header img[alt*="Intel"] {
  filter: brightness(0) saturate(100%) invert(8%) sepia(50%) saturate(4000%) hue-rotate(200deg) brightness(95%);
}

/* Scroll indicator */
[data-theme="light"] .scroll-indicator {
  color: rgba(100, 116, 139, 0.5);
}

/* Skip link remains high-contrast */
[data-theme="light"] .skip-link {
  background: var(--accent-blue);
  color: #fff;
}

