@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ======================== */
/* LIGHT THEME (DEFAULT)    */
/* ======================== */
:root, [data-theme="light"] {
  --bg: #F3E2D4;
  --surface: #ffffff;
  --surface2: #faf5f0;
  --surface3: #efe5da;
  --border: #d4c4b4;
  --border-light: #C5B0CD;
  --text: #17313E;
  --text-secondary: #415E72;
  --text-dim: #7a8e9a;
  --accent: #415E72;
  --accent-light: #17313E;
  --accent-dark: #C5B0CD;
  --accent-bg: rgba(65,94,114,0.07);
  --accent-border: rgba(65,94,114,0.18);
  --gold: #8b6914;
  --gold-bg: rgba(139,105,20,0.07);
  --gold-border: rgba(139,105,20,0.18);
  --critical: #c0392b;
  --critical-bg: rgba(192,57,43,0.07);
  --critical-border: rgba(192,57,43,0.15);
  --high: #b45309;
  --high-bg: rgba(180,83,9,0.07);
  --medium: #92780c;
  --low: #1a7a32;
  --low-bg: rgba(26,122,50,0.07);
  --nav-bg: rgba(243,226,212,0.95);
  --shadow: 0 4px 24px rgba(23,49,62,0.08);
  --card-hover: rgba(65,94,114,0.03);
  --separator: rgba(23,49,62,0.06);
  --glow-1: rgba(197,176,205,0.15);
  --glow-2: rgba(65,94,114,0.08);
  --toggle-bg: #efe5da;
  --toggle-border: #d4c4b4;
  --code-bg: #f7f3ee;
  --code-border: #e0d5c8;
}

/* ======================== */
/* DARK THEME               */
/* Palette: #180161 #4F1787 #EB3678 #FB773C */
/* ======================== */
[data-theme="dark"] {
  --bg: #06001e;
  --surface: #0d0038;
  --surface2: #140050;
  --surface3: #1c016a;
  --border: #2d0f80;
  --border-light: #3d1a95;
  --text: #f0eaf8;
  --text-secondary: #b0a0c8;
  --text-dim: #7a6a95;
  --accent: #EB3678;
  --accent-light: #f45d95;
  --accent-dark: #b82060;
  --accent-bg: rgba(235,54,120,0.08);
  --accent-border: rgba(235,54,120,0.18);
  --gold: #FB773C;
  --gold-bg: rgba(251,119,60,0.08);
  --gold-border: rgba(251,119,60,0.18);
  --critical: #ff6b6b;
  --critical-bg: rgba(255,107,107,0.07);
  --critical-border: rgba(255,107,107,0.14);
  --high: #ffa94d;
  --high-bg: rgba(255,169,77,0.07);
  --medium: #ffd43b;
  --low: #69db7c;
  --low-bg: rgba(105,219,124,0.07);
  --nav-bg: rgba(6,0,30,0.92);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --card-hover: rgba(255,255,255,0.02);
  --separator: rgba(255,255,255,0.03);
  --glow-1: rgba(235,54,120,0.05);
  --glow-2: rgba(251,119,60,0.04);
  --toggle-bg: var(--surface3);
  --toggle-border: var(--border);
  --code-bg: #0a002a;
  --code-border: #250870;
}

/* ======================== */
/* BASE                     */
/* ======================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.4s ease;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ======================== */
/* CUSTOM CURSORS           */
/* ======================== */
html[data-theme="dark"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M15 4C9.48 4 5 8.48 5 14s4.48 10 10 10c.92 0 1.8-.12 2.66-.36A7.08 7.08 0 0 1 12 14c0-3.58 2.66-6.54 6.1-7.02A9.92 9.92 0 0 0 15 4z' fill='%23EB3678' stroke='%23b82060' stroke-width='0.5'/%3E%3Ccircle cx='23' cy='5' r='1.4' fill='%23FB773C'/%3E%3Ccircle cx='27' cy='10' r='1' fill='%23FB773C' opacity='0.7'/%3E%3Ccircle cx='24' cy='16' r='0.7' fill='%23FB773C' opacity='0.5'/%3E%3C/svg%3E") 5 4, default;
}
html[data-theme="light"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M15 4C9.48 4 5 8.48 5 14s4.48 10 10 10c.92 0 1.8-.12 2.66-.36A7.08 7.08 0 0 1 12 14c0-3.58 2.66-6.54 6.1-7.02A9.92 9.92 0 0 0 15 4z' fill='%2317313E' stroke='%23415E72' stroke-width='0.5'/%3E%3Ccircle cx='23' cy='5' r='1.4' fill='%23415E72'/%3E%3Ccircle cx='27' cy='10' r='1' fill='%23415E72' opacity='0.7'/%3E%3Ccircle cx='24' cy='16' r='0.7' fill='%23415E72' opacity='0.5'/%3E%3C/svg%3E") 5 4, default;
}
html[data-theme="dark"] a, html[data-theme="dark"] button, html[data-theme="dark"] .nav-link {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M13 1l2.8 8.6h9l-7.3 5.3 2.8 8.6L13 18.2l-7.3 5.3 2.8-8.6L1 9.6h9z' fill='%23FB773C' stroke='%23EB3678' stroke-width='0.6'/%3E%3C/svg%3E") 13 13, pointer;
}
html[data-theme="light"] a, html[data-theme="light"] button, html[data-theme="light"] .nav-link {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M13 1l2.8 8.6h9l-7.3 5.3 2.8 8.6L13 18.2l-7.3 5.3 2.8-8.6L1 9.6h9z' fill='%23415E72' stroke='%23C5B0CD' stroke-width='0.6'/%3E%3C/svg%3E") 13 13, pointer;
}

.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ======================== */
/* SITE NAVIGATION          */
/* ======================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-brand:hover { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links > a:hover {
  color: var(--text);
  background: var(--accent-bg);
}
.nav-links > a.active {
  color: var(--accent);
  background: var(--accent-bg);
}

/* NAV DROPDOWNS */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.active > .nav-dropdown-trigger {
  color: var(--text);
  background: var(--accent-bg);
}
.nav-dropdown.active > .nav-dropdown-trigger {
  color: var(--accent);
}
.dd-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  opacity: 0.5;
}
.nav-dropdown:hover .dd-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  z-index: 200;
  margin-top: 2px;
}
.nav-dropdown:hover > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--accent-bg);
}
.nav-dropdown-menu a.active {
  color: var(--accent);
  background: var(--accent-bg);
}

.nav-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--toggle-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-toggle:hover { color: var(--text); border-color: var(--accent-border); }
.nav-toggle .icon { position: absolute; transition: transform 0.4s cubic-bezier(0.68,-0.55,0.27,1.55), opacity 0.3s ease; }
[data-theme="dark"] .nav-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .nav-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] .nav-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .nav-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Nav right group (mobile only) */
.nav-right { display: none; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--toggle-bg);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.nav-hamburger:hover { color: var(--text); border-color: var(--accent-border); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
  z-index: 99;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.mobile-menu > a:hover, .mobile-menu > a.active {
  color: var(--accent);
  background: var(--accent-bg);
}

/* MOBILE DROPDOWNS */
.mobile-dropdown { width: 100%; }
.mobile-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: none;
  border: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 4px;
}
.mobile-dropdown-trigger:hover { color: var(--text-secondary); }
.mobile-dropdown-trigger .dd-chevron {
  transition: transform 0.2s;
  opacity: 0.5;
}
.mobile-dropdown.open > .mobile-dropdown-trigger .dd-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.mobile-dropdown.open > .mobile-dropdown-trigger { color: var(--text-secondary); }
.mobile-dropdown-menu {
  display: none;
  padding-left: 8px;
}
.mobile-dropdown.open > .mobile-dropdown-menu { display: block; }
.mobile-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.mobile-dropdown-menu a:hover, .mobile-dropdown-menu a.active {
  color: var(--accent);
  background: var(--accent-bg);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right { display: flex; align-items: center; gap: 8px; }
  .nav-hamburger { display: flex; }
}

/* ======================== */
/* PAGE HEADER              */
/* ======================== */
.page-header {
  padding: 100px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.page-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}
.page-header .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ======================== */
/* DOWNLOAD BAR             */
/* ======================== */
.download-bar {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.download-bar .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.dl-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-bg);
  transform: translateY(-1px);
}
.dl-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ======================== */
/* CONTENT WRAPPER          */
/* ======================== */
.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Loading state */
.content-loading {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-dim);
  font-size: 14px;
}
.content-loading .spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================== */
/* MARKDOWN CONTENT STYLES  */
/* ======================== */
.md-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}
.md-content h1:first-child { margin-top: 0; }

.md-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 12px;
  line-height: 1.3;
}

.md-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 8px;
  letter-spacing: 0.2px;
}

.md-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.md-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.7;
}

.md-content strong { color: var(--text); font-weight: 600; }
.md-content em { font-style: italic; }

.md-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
  transition: all 0.2s;
}
.md-content a:hover {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

.md-content ul, .md-content ol {
  margin: 0 0 16px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.md-content li { margin-bottom: 4px; }
.md-content li strong { color: var(--text); }

/* Task lists */
.md-content ul li {
  list-style: none;
  position: relative;
  margin-left: -20px;
  padding-left: 24px;
}
.md-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}
/* Checkbox list items */
.md-content ul li input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--accent);
}

.md-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.md-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 16px 0;
  background: var(--accent-bg);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.md-content blockquote p { margin-bottom: 8px; }
.md-content blockquote p:last-child { margin-bottom: 0; }

.md-content code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.md-content pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.md-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: inherit;
}

.md-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}
.md-content thead { background: var(--surface2); }
.md-content th {
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.md-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.md-content tr:nth-child(even) { background: var(--surface2); }
.md-content tbody tr:hover { background: var(--card-hover); }

.md-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ======================== */
/* DASHBOARD                */
/* ======================== */
.dashboard-hero {
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
}
.dashboard-hero .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.dashboard-hero .glow-1 {
  width: 400px;
  height: 400px;
  background: var(--glow-1);
  top: -100px;
  left: 20%;
}
.dashboard-hero .glow-2 {
  width: 300px;
  height: 300px;
  background: var(--glow-2);
  bottom: -80px;
  right: 25%;
}
.dashboard-hero .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.dashboard-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}
.dashboard-hero h1 span { color: var(--accent); }
.dashboard-hero .subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.dashboard-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow);
}
.dash-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  opacity: 0;
  transition: opacity 0.3s;
}
.dash-card:hover::after { opacity: 1; }

.dash-card .card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.dash-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.dash-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.dash-card .card-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.dash-card .card-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--text-dim);
  font-size: 18px;
  transition: all 0.3s;
}
.dash-card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Status badges on cards */
.status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
}
.status-complete {
  color: var(--low);
  background: var(--low-bg);
}
.status-new {
  color: var(--gold);
  background: var(--gold-bg);
}

/* ======================== */
/* SCROLL REVEAL            */
/* ======================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ======================== */
/* THEME TOGGLE (floating)  */
/* ======================== */
.theme-toggle-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}
.theme-toggle-float:hover {
  transform: scale(1.08);
  border-color: var(--accent-border);
}
.theme-toggle-float .icon {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.68,-0.55,0.27,1.55), opacity 0.3s ease;
}
[data-theme="dark"] .theme-toggle-float .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="dark"] .theme-toggle-float .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] .theme-toggle-float .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .theme-toggle-float .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* ======================== */
/* FOOTER                   */
/* ======================== */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* ======================== */
/* CHARTS & VISUALIZATIONS  */
/* ======================== */
.charts-section {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.charts-section h2.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.charts-section .section-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.chart-style-toggle {
  text-align: center;
  margin-bottom: 2rem;
}
.chart-style-toggle .toggle-label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}
.toggle-buttons {
  display: inline-flex;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 4px;
  background: var(--surface3);
}
.style-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--text-secondary);
}
.style-btn.active {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .style-btn.active {
  background: #EB3678;
}
.style-btn:hover:not(.active) {
  background: var(--accent-bg);
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.charts-grid.single-col {
  grid-template-columns: 1fr;
}
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.chart-card:hover {
  transform: translateY(-2px);
}
.chart-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--text);
}
.chart-card .chart-subtitle {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: -0.5rem 0 1rem;
}
.chart-card.full-width {
  grid-column: 1 / -1;
}

/* Timeline Roadmap (Growth page) */
.viz-timeline {
  position: relative;
  padding: 1rem 0;
}
.viz-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #EB3678, #FB773C, #4F1787);
  border-radius: 3px;
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 45%;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  animation: tlFadeIn 0.6s ease forwards;
}
.tl-item:nth-child(odd) {
  margin-left: 5%;
}
.tl-item:nth-child(even) {
  margin-left: 50%;
}
.tl-item::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  background: #EB3678;
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px #EB3678;
}
.tl-item:nth-child(odd)::before {
  right: -32px;
}
.tl-item:nth-child(even)::before {
  left: -32px;
}
.tl-item.phase-2::before { background: #FB773C; box-shadow: 0 0 0 3px #FB773C; }
.tl-item.phase-3::before { background: #4F1787; box-shadow: 0 0 0 3px #4F1787; }
.tl-item.phase-4::before { background: #415E72; box-shadow: 0 0 0 3px #415E72; }
.tl-phase-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #EB3678;
  margin-bottom: 0.25rem;
}
.tl-item.phase-2 .tl-phase-label { color: #FB773C; }
.tl-item.phase-3 .tl-phase-label { color: #4F1787; }
.tl-item.phase-4 .tl-phase-label { color: #415E72; }
.tl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.tl-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tl-target {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--accent);
}
@keyframes tlFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.tl-item:nth-child(1) { animation-delay: 0.1s; }
.tl-item:nth-child(2) { animation-delay: 0.25s; }
.tl-item:nth-child(3) { animation-delay: 0.4s; }
.tl-item:nth-child(4) { animation-delay: 0.55s; }
.tl-item:nth-child(5) { animation-delay: 0.7s; }
.tl-item:nth-child(6) { animation-delay: 0.85s; }
.tl-item:nth-child(7) { animation-delay: 1.0s; }
.tl-item:nth-child(8) { animation-delay: 1.15s; }

/* Workflow Diagram (Automation page) */
.viz-workflow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 1rem 0;
  overflow-x: auto;
}
.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 130px;
  opacity: 0;
  animation: wfSlideIn 0.5s ease forwards;
}
.wf-step:nth-child(1) { animation-delay: 0.1s; }
.wf-step:nth-child(2) { animation-delay: 0.3s; }
.wf-step:nth-child(3) { animation-delay: 0.5s; }
.wf-step:nth-child(4) { animation-delay: 0.7s; }
.wf-step:nth-child(5) { animation-delay: 0.9s; }
.wf-box {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}
.wf-box:hover { transform: scale(1.08); }
.wf-step:nth-child(1) .wf-box { border-color: #EB3678; }
.wf-step:nth-child(2) .wf-box { border-color: #FB773C; }
.wf-step:nth-child(3) .wf-box { border-color: #4F1787; }
.wf-step:nth-child(4) .wf-box { border-color: #415E72; }
.wf-step:nth-child(5) .wf-box { border-color: #EB3678; }
.wf-label {
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}
.wf-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  max-width: 120px;
}
.wf-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  padding: 0 0.25rem;
  margin-top: 2rem;
}
@keyframes wfSlideIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Pipeline Funnel (Sales page) */
.viz-funnel {
  max-width: 500px;
  margin: 0 auto;
  padding: 1rem 0;
}
.funnel-stage {
  text-align: center;
  padding: 0.9rem 1rem;
  margin: 0 auto 4px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  position: relative;
  transition: transform 0.3s ease;
  opacity: 0;
  animation: funnelGrow 0.5s ease forwards;
}
.funnel-stage:hover { transform: scaleX(1.03); }
.funnel-stage:nth-child(1) { width: 100%; background: #EB3678; animation-delay: 0.1s; }
.funnel-stage:nth-child(2) { width: 82%; background: #d42f6a; animation-delay: 0.25s; }
.funnel-stage:nth-child(3) { width: 66%; background: #a3275a; animation-delay: 0.4s; }
.funnel-stage:nth-child(4) { width: 52%; background: #4F1787; animation-delay: 0.55s; }
.funnel-stage:nth-child(5) { width: 40%; background: #3d1269; animation-delay: 0.7s; }
.funnel-stage:nth-child(6) { width: 30%; background: #180161; animation-delay: 0.85s; }
.funnel-stage .f-count {
  float: right;
  opacity: 0.85;
  font-weight: 400;
  font-size: 0.78rem;
}
.funnel-stage .f-rate {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 2px;
}
@keyframes funnelGrow {
  from { opacity: 0; transform: scaleX(0.6); }
  to { opacity: 1; transform: scaleX(1); }
}

/* Pricing Cards (Sales page) */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.price-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.price-card.featured {
  border-color: #EB3678;
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 14px;
  right: -28px;
  background: #EB3678;
  color: #fff;
  padding: 3px 32px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transform: rotate(45deg);
}
.price-card .tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.price-card .tier-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
[data-theme="dark"] .price-card .tier-price { color: #EB3678; }
.price-card .tier-period {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.price-card .tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.price-card .tier-features li {
  padding: 0.35rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--separator);
}
.price-card .tier-features li::before {
  content: '✓ ';
  color: #EB3678;
  font-weight: 700;
}
.price-card .tier-ideal {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

@media (max-width: 768px) {
  .charts-grid { grid-template-columns: 1fr; }
  .viz-timeline::before { left: 20px; }
  .tl-item { width: calc(100% - 50px); margin-left: 50px !important; }
  .tl-item::before { left: -37px !important; right: auto !important; }
  .viz-workflow { flex-direction: column; align-items: center; }
  .wf-arrow { transform: rotate(90deg); margin: 0; padding: 0.25rem 0; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .funnel-stage { font-size: 0.78rem; padding: 0.7rem; }
}

/* ======================== */
/* PRINT STYLES             */
/* ======================== */
@media print {
  .site-nav, .mobile-menu, .download-bar, .theme-toggle-float, .cursor-sparkle { display: none !important; }
  body { background: white; color: #1a1a1a; }
  .page-header { padding-top: 20px; }
  .content-wrapper { max-width: 100%; padding: 0 20px; }
  .md-content h1 { font-size: 22px; border-bottom: 1px solid #ccc; }
  .md-content h2 { font-size: 18px; }
  .md-content h3 { font-size: 15px; }
  .md-content pre, .md-content code { font-size: 11px; }
  .md-content table { font-size: 11px; }
  .md-content blockquote { border-left-color: #999; background: #f9f9f9; }
  .md-content a { color: #333; border-bottom: none; }
  .md-content p, .md-content li, .md-content td { color: #333; }
}

/* ======================== */
/* RESPONSIVE               */
/* ======================== */
@media (max-width: 640px) {
  .page-header { padding: 88px 16px 32px; }
  .page-header h1 { font-size: 24px; }
  .content-wrapper { padding: 0 16px 60px; }
  .download-bar { padding: 0 16px; }
  .dashboard-hero { padding: 100px 16px 40px; }
  .dashboard-grid { padding: 0 16px 60px; gap: 14px; }
  .dash-card { padding: 22px; }
  .md-content h1 { font-size: 22px; margin-top: 36px; }
  .md-content h2 { font-size: 18px; margin-top: 32px; }
  .md-content pre { padding: 12px; font-size: 12px; }
  .md-content table { font-size: 12px; }
  .md-content th, .md-content td { padding: 8px 10px; }
}
