/* ===================== PURPLE BRAND TOKENS ===================== */
:root {
  --bg0: #120a24;
  --bg1: #1b0f36;
  --bg2: #2a145a;

  --text: #f8fafc;
  --muted: #d7cff0;

  --stroke: #7c3aed;
  /* Primary purple */
  --ai: #a78bfa;
  /* Purple glow */
  --success: #22c55e;

  --card: rgba(255, 255, 255, 0.07);
  --card2: rgba(255, 255, 255, 0.12);
  --line: rgba(215, 207, 240, 0.45);

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius2: 20px;
  --gridW: 1200px;

  /* Neural canvas palette (JS reads these) */
  --neuralFill: rgba(18, 10, 36, 0.14);
  --neuralNode: rgba(167, 139, 250, 0.55);
  --neuralLineRgb: 124, 58, 237;
}

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

/* Accessible hidden text for SEO/AI (no UI impact) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      1000px 700px at 18% 10%,
      rgba(124, 58, 237, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 82% 20%,
      rgba(167, 139, 250, 0.22),
      transparent 62%
    ),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow-x: hidden;
}

/* AI Neural Canvas */
#neural {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.75;
  filter: blur(0.2px);
}

/* Subtle grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(
    800px 500px at 50% 20%,
    rgba(0, 0, 0, 1),
    transparent 70%
  );
  opacity: 0.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  /* width: var(--gridW); */
  max-width: 90%;
  margin: 0 auto;
}

/* ===================== NAV ===================== */
nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(18, 10, 36, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--gridW);
  max-width: 90%;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Logo attachment */
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.35);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.nav-links a {
  opacity: 0.92;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--text);
}

/* Dropdown submenu */
.nav-links li.has-dropdown {
  position: relative;
}

.nav-links li.has-dropdown > a::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.7;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(18, 10, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(16px);
  min-width: 160px;
  list-style: none;
  padding: 14px 0 6px;
  z-index: 100;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.nav-links li.has-dropdown:hover .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  opacity: 0.85;
  color: var(--muted);
  white-space: nowrap;
  border-radius: 0;
}

.nav-dropdown li a:hover {
  opacity: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav .sub-item a {
  padding-left: 36px;
  font-size: 13px;
  opacity: 0.7;
}

.mobile-nav .sub-item a::before {
  content: "— ";
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.lang-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  will-change: transform;
  white-space: nowrap;
}

/* Purple-first primary CTA */
.btn-primary {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 1),
    rgba(167, 139, 250, 1)
  );
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-secondary {
  border: 1px solid rgba(215, 207, 240, 0.55);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

section {
  position: relative;
}

.section {
  padding: 120px 0;
}

.section-title {
  font-size: 40px;
  line-height: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.section-sub {
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
  /* max-width: 760px; */
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: show if JS fails or user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Noscript fallback - handled via js-loaded class on html */
html:not(.js-loaded) .reveal {
  opacity: 1;
  transform: none;
}

/* HERO */
.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  /* padding: 80px 0 0; */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 18px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ai);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.6);
}

h1 {
  font-size: 56px;
  line-height: 64px;
  letter-spacing: -0.9px;
  margin-bottom: 22px;
}

.hero p {
  font-size: 22px;
  line-height: 32px;
  color: var(--muted);
  margin-bottom: 32px;
  /* max-width: 640px; */
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-strip {
  margin-top: 48px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(215, 207, 240, 0.92);
}

.chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

/* LIFECYCLE */
.lifecycle {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  padding: 22px 0;
}

.lc-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lc-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(
      400px 200px at 30% 10%,
      rgba(124, 58, 237, 0.18),
      transparent 60%
    ),
    radial-gradient(
      300px 220px at 80% 30%,
      rgba(167, 139, 250, 0.14),
      transparent 65%
    );
  animation: glowShift 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowShift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(18px);
  }
}

.nodes {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 2;
  margin: 10px 0;
}

.node {
  width: 140px;
  height: 88px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(124, 58, 237, 0.95);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.node small {
  display: block;
  font-weight: 600;
  opacity: 0.8;
  margin-top: 3px;
  margin-left: 3px;
  font-size: 11px;
}

.node:hover {
  transform: scale(1.08);
  border-color: rgba(167, 139, 250, 0.98);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.7);
}

.connectors {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.connectors path {
  fill: none;
  stroke: rgba(215, 207, 240, 0.35);
  stroke-width: 2;
}

.connectors .pulse {
  stroke: rgba(167, 139, 250, 0.95);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 16;
  animation: dash 2.8s linear infinite;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.6));
  opacity: 0.9;
}

@keyframes dash {
  to {
    stroke-dashoffset: -130;
  }
}

/* VALUE CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 32px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(124, 58, 237, 0.22);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: rgba(167, 139, 250, 0.98);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  line-height: 26px;
}

/* ===== MODULES (Interactive Tabs) ===== */
.modules {
  padding: 120px 0;
  background:
    radial-gradient(
      900px 520px at 40% 0%,
      rgba(124, 58, 237, 0.14),
      transparent 60%
    ),
    radial-gradient(
      840px 520px at 80% 20%,
      rgba(167, 139, 250, 0.12),
      transparent 65%
    );
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modules-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.tabs {
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tab {
  width: 100%;
  text-align: left;
  padding: 18px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: 0.2s ease;
}

.tab:last-child {
  border-bottom: 0;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.tab.active {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.18),
    rgba(167, 139, 250, 0.12)
  );
  color: var(--text);
}

.tab-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tab-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(167, 139, 250, 0.98);
  font-weight: 900;
  flex: 0 0 auto;
}

.tab-title {
  font-weight: 900;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab-hint {
  font-size: 12px;
  color: rgba(215, 207, 240, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chev {
  opacity: 0.75;
  font-weight: 900;
  flex: 0 0 auto;
}

.module-panel {
  border-radius: var(--radius2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.module-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      700px 260px at 30% 0%,
      rgba(124, 58, 237, 0.18),
      transparent 60%
    ),
    radial-gradient(
      640px 240px at 90% 20%,
      rgba(167, 139, 250, 0.14),
      transparent 62%
    );
  pointer-events: none;
}

.module-inner {
  position: relative;
  z-index: 2;
  padding: 26px;
}

.module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.module-name {
  font-size: 28px;
  line-height: 34px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.module-tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.module-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
  margin-bottom: 18px;
  max-width: 780px;
}

.module-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px;
}

.metric .m-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.metric .m-num {
  font-size: 18px;
  font-weight: 900;
}

.metric .m-note {
  font-size: 11px;
  margin-top: 8px;
  color: rgba(34, 197, 94, 0.95);
}

.module-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.bullet {
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(215, 207, 240, 0.95);
  font-size: 13px;
}

/* DASHBOARD GLASS */
.split {
  display: grid;
  /* grid-template-columns: 1.2fr 0.8fr; */
  gap: 40px;
  align-items: center;
  margin-bottom: 14px;
}

.glass {
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 260px at 30% 0%,
      rgba(124, 58, 237, 0.2),
      transparent 60%
    ),
    radial-gradient(
      560px 240px at 90% 20%,
      rgba(167, 139, 250, 0.16),
      transparent 62%
    );
  pointer-events: none;
}

.dash {
  padding: 22px;
  position: relative;
  z-index: 2;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.kpi {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.kpi .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.kpi .num {
  font-size: 20px;
  font-weight: 900;
}

.kpi .delta {
  font-size: 11px;
  margin-top: 8px;
  color: rgba(34, 197, 94, 0.95);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid2 + .grid2 {
  margin-top: 16px;
}

.grid2 + .panel {
  margin-top: 16px;
}

.panel {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px;
  min-height: auto;
}

.panel h4 {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 12px;
  color: rgba(248, 250, 252, 0.95);
}

.bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 10px 0;
}

.bar > span {
  display: block;
  height: 100%;
  width: 65%;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.95),
    rgba(167, 139, 250, 0.92)
  );
  animation: fill 3.2s ease-in-out infinite alternate;
}

@keyframes fill {
  from {
    width: 52%;
  }

  to {
    width: 78%;
  }
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status {
  font-weight: 800;
  color: rgba(167, 139, 250, 0.98);
}

/* CTA */
.cta {
  padding: 120px 0;
  background:
    radial-gradient(
      900px 500px at 50% 30%,
      rgba(124, 58, 237, 0.22),
      transparent 65%
    ),
    radial-gradient(
      700px 420px at 60% 40%,
      rgba(167, 139, 250, 0.16),
      transparent 65%
    ),
    linear-gradient(180deg, rgba(18, 10, 36, 0), rgba(18, 10, 36, 0.55));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cta h2 {
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.7px;
  margin-bottom: 20px;
  text-align: center;
}

.cta p {
  color: var(--muted);
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 28px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  padding: 34px 0;
  color: rgba(215, 207, 240, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 10, 36, 0.45);
}

footer .f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tiny {
  font-size: 12px;
}

/* ===================== HAMBURGER / MOBILE NAV ===================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
}

.mobile-nav.open {
  display: block;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(18, 10, 36, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 49;
  padding: 8px 0 20px;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav li a {
  display: block;
  padding: 14px 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mobile-nav li a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.mobile-nav-cta {
  padding: 16px 24px 0;
}

.mobile-nav-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 992px) {
  h1 {
    font-size: 42px;
    line-height: 50px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lifecycle {
    max-width: 100%;
    margin: 0;
  }

  .lc-wrap {
    height: 420px;
  }

  .cta {
    padding: 80px 0;
  }

  .modules {
    padding: 80px 0;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .split {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .module-metrics {
    grid-template-columns: 1fr;
  }

  .module-bullets {
    grid-template-columns: 1fr;
  }

  .board-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .heatmap {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid2 {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* ===================== DASHBOARD ENHANCEMENTS ===================== */
.board-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0 12px;
}

.board-kpi {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.board-kpi .label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.board-kpi .num {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.board-kpi .hint {
  font-size: 11px;
  margin-top: 8px;
  color: rgba(34, 197, 94, 0.95);
}

.blink {
  animation: softPulse 3.2s ease-in-out infinite;
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.82;
  }
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.cell {
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0),
    rgba(167, 139, 250, 0.22),
    rgba(124, 58, 237, 0)
  );
  transform: translateX(-120%);
  animation: sweep 5.5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes sweep {
  0% {
    transform: translateX(-120%);
  }

  45% {
    transform: translateX(120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.c1 {
  background: rgba(34, 197, 94, 0.18);
}

.c2 {
  background: rgba(34, 197, 94, 0.1);
}

.c3 {
  background: rgba(167, 139, 250, 0.1);
}

.c4 {
  background: rgba(167, 139, 250, 0.18);
}

.c5 {
  background: rgba(245, 158, 11, 0.16);
}

.c6 {
  background: rgba(239, 68, 68, 0.14);
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sw {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.sw1 {
  background: rgba(34, 197, 94, 0.45);
}

.sw2 {
  background: rgba(167, 139, 250, 0.45);
}

.sw3 {
  background: rgba(245, 158, 11, 0.45);
}

.sw4 {
  background: rgba(239, 68, 68, 0.45);
}

.vintage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.v-row {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.v-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.v-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.92),
    rgba(167, 139, 250, 0.92)
  );
}

/* ===== FULLSCREEN DASHBOARD OVERRIDE ===== */
#dashboard.fullscreen {
  position: relative;
  width: 100%;
  padding: 140px 0;
}

#dashboard.fullscreen .container {
  width: 100%;
  max-width: 95%;
}

/* #dashboard.fullscreen .split {
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
} */

/* ===== PRO DASHBOARD MODE ===== */

#dashboard.fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      1200px 600px at 30% 10%,
      rgba(124, 58, 237, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 30%,
      rgba(167, 139, 250, 0.25),
      transparent 60%
    );
}

#dashboard.fullscreen .container {
  max-width: 96%;
}

#dashboard.board-mode .kpi .num,
#dashboard.board-mode .board-kpi .num {
  font-size: 32px;
}

.board-toggle {
  position: absolute;
  top: 40px;
  right: 60px;
  z-index: 5;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
  transform: translateY(0);
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* ===== Bloomberg/Snowflake/Stripe-style Add-ons ===== */
.chart-wrap {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chart-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.92);
}

.chart-meta {
  font-size: 11px;
  color: var(--muted);
}

.chart-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.ld1 {
  background: rgba(167, 139, 250, 0.9);
}

.ld2 {
  background: rgba(34, 197, 94, 0.9);
}

.ld3 {
  background: rgba(245, 158, 11, 0.9);
}

svg.spark {
  width: 100%;
  height: 120px;
  display: block;
}

.gridline {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.sparkline {
  fill: none;
  stroke: rgba(167, 139, 250, 0.95);
  stroke-width: 2.6;
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.35));
}

.sparkline2 {
  fill: none;
  stroke: rgba(34, 197, 94, 0.92);
  stroke-width: 2.2;
  opacity: 0.9;
}

.sparkfill {
  fill: rgba(167, 139, 250, 0.1);
}

.dotm {
  fill: rgba(167, 139, 250, 0.95);
}

.dotm2 {
  fill: rgba(34, 197, 94, 0.95);
}

.pulseDot {
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    r: 3.6;
    opacity: 1;
  }

  50% {
    r: 6.5;
    opacity: 0.55;
  }
}

.gauge {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
}

.gauge svg {
  width: 140px;
  height: 140px;
}

.gauge-title {
  font-weight: 900;
}

.gauge-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  margin-top: 6px;
}

.gauge-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gk {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.gk .l {
  font-size: 11px;
  color: var(--muted);
}

.gk .v {
  font-size: 16px;
  font-weight: 900;
  margin-top: 6px;
}

.reg-panel {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.reg {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.reg .t {
  font-weight: 900;
  font-size: 12px;
}

.reg .d {
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  margin-top: 6px;
}

.reg .s {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.badge-ok {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: rgba(34, 197, 94, 0.95);
  font-weight: 900;
}

.badge-warn {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: rgba(245, 158, 11, 0.95);
  font-weight: 900;
}

@media (max-width: 992px) {
  .gauge {
    grid-template-columns: 1fr;
  }

  .gauge svg {
    margin: 0 auto;
  }

  .reg-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== SMALL SCREEN (≤576px) ===================== */
@media (max-width: 576px) {
  h1 {
    font-size: 30px;
    line-height: 38px;
  }

  .hero p {
    font-size: 18px;
    line-height: 28px;
  }

  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 28px;
    line-height: 36px;
  }

  .section-sub {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .cta h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .cta p {
    font-size: 16px;
  }

  .modules {
    padding: 72px 0;
  }

  .kpis {
    grid-template-columns: 1fr;
  }

  .board-kpis {
    grid-template-columns: 1fr;
  }

  .heatmap {
    grid-template-columns: repeat(3, 1fr);
  }

  .lc-wrap {
    height: 320px;
  }

  .btn {
    height: 46px;
    padding: 0 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .module-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .module-tag {
    white-space: normal;
  }

  .cta {
    padding: 60px 0;
  }

  .cp-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tower-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mt-head {
    display: none;
  }

  .mt-row {
    grid-template-columns: 1.5fr 1fr;
  }

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

  .event-head,
  .event-row {
    grid-template-columns: 1.5fr 1fr;
  }

  .chart-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .lang-toggle {
    display: none;
  }
}

/* ===================== THEME TOGGLE ===================== */
.theme-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
}

.theme-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.theme-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

/* ===================== LIGHT THEME OVERRIDES ===================== */
:root[data-theme="light"] {
  --bg0: #f8fafc;
  --bg1: #f6f3ff;
  --bg2: #ffffff;

  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);

  --card: rgba(18, 10, 36, 0.04);
  --card2: rgba(18, 10, 36, 0.07);
  --line: rgba(18, 10, 36, 0.18);

  --shadow: 0 18px 52px rgba(18, 10, 36, 0.16);

  --neuralFill: rgba(248, 250, 252, 0.64);
  --neuralNode: rgba(124, 58, 237, 0.22);
  --neuralLineRgb: 124, 58, 237;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(
      900px 620px at 18% 10%,
      rgba(124, 58, 237, 0.14),
      transparent 62%
    ),
    radial-gradient(
      820px 560px at 82% 20%,
      rgba(167, 139, 250, 0.12),
      transparent 65%
    ),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

:root[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(18, 10, 36, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 10, 36, 0.04) 1px, transparent 1px);
  opacity: 0.55;
}

:root[data-theme="light"] nav {
  background: rgba(248, 250, 252, 0.72);
  border-bottom: 1px solid rgba(18, 10, 36, 0.1);
}

:root[data-theme="light"] .nav-links {
  color: rgba(15, 23, 42, 0.72);
}

:root[data-theme="light"] .nav-links a:hover {
  color: rgba(15, 23, 42, 0.92);
}

:root[data-theme="light"] .nav-dropdown {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(18, 10, 36, 0.14);
  box-shadow: 0 14px 36px rgba(18, 10, 36, 0.16);
}

:root[data-theme="light"] .nav-dropdown li a {
  color: rgba(15, 23, 42, 0.72);
}

:root[data-theme="light"] .nav-dropdown li a:hover {
  color: rgba(15, 23, 42, 0.92);
  background: rgba(18, 10, 36, 0.04);
}

:root[data-theme="light"] .lang-toggle,
:root[data-theme="light"] .theme-toggle {
  background: rgba(18, 10, 36, 0.04);
  border: 1px solid rgba(18, 10, 36, 0.1);
  color: rgba(15, 23, 42, 0.72);
}

:root[data-theme="light"] .lang-btn,
:root[data-theme="light"] .theme-btn {
  color: rgba(15, 23, 42, 0.72);
}

:root[data-theme="light"] .lang-btn.active {
  background: rgba(18, 10, 36, 0.06);
}

:root[data-theme="light"] .theme-btn:hover {
  color: rgba(15, 23, 42, 0.92);
  background: rgba(18, 10, 36, 0.06);
}

:root[data-theme="light"] .brand-logo {
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.16);
}

:root[data-theme="light"] .trust-strip {
  color: rgba(15, 23, 42, 0.74);
}

:root[data-theme="light"] .chip,
:root[data-theme="light"] .bullet {
  background: rgba(18, 10, 36, 0.04);
  border: 1px solid rgba(18, 10, 36, 0.08);
  color: rgba(15, 23, 42, 0.78);
}

:root[data-theme="light"] .lc-wrap {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(18, 10, 36, 0.1);
}

:root[data-theme="light"] .connectors path {
  stroke: rgba(18, 10, 36, 0.18);
}

:root[data-theme="light"] .card {
  border: 1px solid rgba(18, 10, 36, 0.1);
  box-shadow: 0 18px 44px rgba(18, 10, 36, 0.1);
}

:root[data-theme="light"] .card:hover {
  background: rgba(18, 10, 36, 0.04);
  box-shadow: 0 26px 70px rgba(124, 58, 237, 0.12);
}

:root[data-theme="light"] .modules {
  border-top: 1px solid rgba(18, 10, 36, 0.08);
  border-bottom: 1px solid rgba(18, 10, 36, 0.08);
}

:root[data-theme="light"] .tabs {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 10, 36, 0.1);
}

:root[data-theme="light"] .tab {
  border-bottom: 1px solid rgba(18, 10, 36, 0.08);
}

:root[data-theme="light"] .glass {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.72)
  );
  border: 1px solid rgba(18, 10, 36, 0.1);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .glass::before {
  opacity: 0.5;
}

:root[data-theme="light"] .pill,
:root[data-theme="light"] .kpi,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .bar {
  background: rgba(18, 10, 36, 0.04);
  border: 1px solid rgba(18, 10, 36, 0.08);
}

:root[data-theme="light"] .panel h4 {
  color: rgba(15, 23, 42, 0.92);
}

:root[data-theme="light"] .mobile-nav {
  background: rgba(248, 250, 252, 0.97);
  border-left: 1px solid rgba(18, 10, 36, 0.1);
}

:root[data-theme="light"] .mobile-nav li a {
  color: rgba(15, 23, 42, 0.78);
}

:root[data-theme="light"] .mobile-nav li a:hover {
  background: rgba(18, 10, 36, 0.04);
  color: rgba(15, 23, 42, 0.92);
}

/* ===================== ARCHITECTURE (Layer View) ===================== */
.arch {
  position: relative;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.arch-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.arch-back {
  fill: none;
  stroke: rgba(215, 207, 240, 0.18);
  stroke-width: 2;
}

.arch-flowline {
  fill: none;
  stroke: url(#archGrad);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 10 16;
  animation: archDash 3.2s linear infinite;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.35));
  opacity: 0.9;
}

@keyframes archDash {
  to {
    stroke-dashoffset: -170;
  }
}

.arch-pulse {
  fill: rgba(167, 139, 250, 0.85);
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.45));
  transform-origin: center;
  animation: archPulse 2.8s ease-in-out infinite;
}

@keyframes archPulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.arch-layers {
  position: relative;
  z-index: 2;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.arch-layer {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 16px;
}

.arch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.arch-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.arch-tag {
  font-size: 12px;
  color: var(--muted);
}

.arch-desc {
  margin-top: 6px;
  color: var(--muted);
  line-height: 22px;
  font-size: 13px;
}

.arch-chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.arch-chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(215, 207, 240, 0.92);
}

:root[data-theme="light"] .arch {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 10, 36, 0.1);
}

:root[data-theme="light"] .arch-back {
  stroke: rgba(18, 10, 36, 0.14);
}

:root[data-theme="light"] .arch-layer {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 10, 36, 0.1);
}

:root[data-theme="light"] .arch-chip {
  background: rgba(18, 10, 36, 0.04);
  border: 1px solid rgba(18, 10, 36, 0.08);
  color: rgba(15, 23, 42, 0.78);
}

@media (prefers-reduced-motion: reduce) {
  .arch-flowline,
  .arch-pulse {
    animation: none;
  }
}

@media (max-width: 576px) {
  .arch-layers {
    padding: 18px;
  }
}

/* =====================================================
   V3.6_RUN01 – Visual Tightening Pass (Hybrid 2+3)
   - Keep brand tone + glass
   - Increase hierarchy and density (institutional)
   - Strengthen KPI band
   ===================================================== */

/* Typography hierarchy */
h1 {
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
h3,
h4 {
  font-weight: 650;
}

/* Body density */
body {
  line-height: 1.55;
}
.lead {
  line-height: 1.5;
}
.muted {
  line-height: 1.5;
}

/* Section density (global) */
.section {
  padding: 48px 0;
}
.section.alt {
  padding: 48px 0;
}
.section.fullscreen {
  padding: 64px 0;
}

/* Head spacing */
.section-head {
  margin-bottom: 18px;
}
.section-head p {
  margin-top: 6px;
}

/* Bullets spacing */
.bullets li {
  margin: 6px 0;
}
.bullets {
  margin-top: 10px;
}

/* Card + panel refinement (keep glass) */
.card.glass {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* KPI band stronger executive mode */
.kpi-box .num {
  font-size: 1.7rem;
  line-height: 1.05;
}
.kpi-box .label {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kpi-box .hint {
  opacity: 0.72;
  font-size: 0.82rem;
}
.board-kpis {
  gap: 12px;
}
.kpi-box {
  padding: 14px 14px;
}

/* Module cards slightly denser */
.module-card {
  padding: 18px 18px;
}
.module-title {
  font-weight: 700;
}

/* =====================================================
   V3.6_RUN02 – Visual Tightening Plus
   - Divider line system: slightly clearer
   - Nav dropdown: more institutional
   - Button hierarchy: crisper primary/ghost
   ===================================================== */

/* Divider line system */
.section-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section.alt .section-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* .panel + .panel {
  margin-top: 12px;
} */
hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Nav dropdown (institutional) */
.nav-dropdown {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 8, 22, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.nav-dropdown a {
  padding: 10px 12px;
  border-radius: 10px;
}
.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Button hierarchy */
.btn.primary {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn.primary:hover {
  transform: translateY(-1px);
}
.btn.ghost,
.btn.ghost:hover {
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn {
  border-radius: 14px;
}

/* =====================================================
   V3.6_RUN03 – Visual Tightening Pro
   - Nav active state: clearer (Platform/Modules)
   - KPI micro-dividers
   - Module-card hover: subtle + premium
   ===================================================== */

/* Nav active state (requires existing .nav-links a styling) */
.nav-links a[aria-current="page"],
.nav-links a.active {
  position: relative;
  font-weight: 700;
  opacity: 1;
}
.nav-links a[aria-current="page"]::after,
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  height: 2px;
  border-radius: 2px;
  background: rgba(167, 139, 250, 0.85);
}

/* KPI micro-divider inside box */
.kpi-box {
  position: relative;
  overflow: hidden;
}
.kpi-box::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 33px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* Module card hover (subtle + premium) */
.module-card {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}
.module-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.03);
}

/* =====================================================
   V3.7_RUN06 – Documentation Authority
   - Anchor links for section headings
   ===================================================== */
a.anchor {
  text-decoration: none;
  opacity: 0.45;
  font-weight: 700;
  margin-left: 8px;
}
h2:hover a.anchor,
h3:hover a.anchor {
  opacity: 0.9;
}

/* =====================================================
   V3.7_RUN07 – Mini TOC + Section Keywords
   ===================================================== */
.section.mini-toc .panel {
  padding: 16px 16px;
}
.muted.kword {
  font-size: 0.86rem;
  opacity: 0.72;
  margin-top: 6px;
}
.section.mini-toc a {
  text-decoration: none;
}
.section.mini-toc a:hover {
  text-decoration: underline;
}

/* ===================== V3.8 VISUAL UPGRADE ===================== */

/* Premium card system */
.ll-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ll-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* Stripe-like glow accent */
.purple-glow {
  position: relative;
}

.purple-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #7030a0, #8f4dcc, #b07ae6);
  opacity: 0.25;
  filter: blur(30px);
  z-index: -1;
}

/* Premium button */
.btn-primary {
  background: linear-gradient(135deg, #7030a0, #8f4dcc);
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 30px rgba(112, 48, 160, 0.35);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(112, 48, 160, 0.45);
}

/* micro divider */
.section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 60px 0;
}

/* KPI block */
.kpi-box {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.kpi-sub {
  font-size: 13px;
  opacity: 0.8;
}

/* smooth hover for links */
a {
  transition: all 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

/* subtle section depth */
.section-soft {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}

/* ===================== V3.9 FINTECH PREMIUM UPGRADE ===================== */

/* Animated gradient flow (keeps brand purple) */
@keyframes llGradientFlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(
      700px 420px at 20% 20%,
      rgba(112, 48, 160, 0.28),
      transparent 60%
    ),
    radial-gradient(
      620px 380px at 80% 30%,
      rgba(167, 139, 250, 0.18),
      transparent 62%
    ),
    radial-gradient(
      540px 340px at 55% 75%,
      rgba(124, 58, 237, 0.14),
      transparent 62%
    );
  filter: blur(12px);
  animation: llGradientFlow 18s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero .container,
.hero-grid {
  position: relative;
  z-index: 1;
}

/* Bento grid system */
.bento {
  margin-top: 26px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.045)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 18px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.bento-wide {
  grid-column: span 2;
}

@media (max-width: 960px) {
  .bento-wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .bento-wide {
    grid-column: span 1;
  }
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      520px 240px at 18% 10%,
      rgba(112, 48, 160, 0.14),
      transparent 60%
    ),
    radial-gradient(
      520px 240px at 90% 20%,
      rgba(167, 139, 250, 0.1),
      transparent 62%
    );
  pointer-events: none;
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.bento-title {
  font-weight: 850;
  letter-spacing: 0.2px;
}

.bento-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-body {
  position: relative;
  z-index: 1;
}

.bento-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 560px) {
  .bento-kpis {
    grid-template-columns: 1fr;
  }
}

.bk {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bk-num {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
}

.bk-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.mini-flow {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.mf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(112, 48, 160, 0.75);
  box-shadow: 0 0 18px rgba(112, 48, 160, 0.55);
}

.signal-list {
  display: grid;
  gap: 10px;
}

.sig {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sig-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.85);
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.45);
}

.meter {
  display: grid;
  gap: 10px;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.meter-val {
  color: var(--text);
}

.meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meter-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7030a0, #8f4dcc, #b07ae6);
  box-shadow: 0 0 22px rgba(112, 48, 160, 0.35);
}

/* Countup typography alignment */
.num[data-countup],
.bk-num[data-countup] {
  font-variant-numeric: tabular-nums;
}

/* ===== V4.0 Platform Architecture Section ===== */

.arch-grid {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.arch-layer {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arch-layer.core {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.35),
    rgba(143, 77, 204, 0.15)
  );
}

.arch-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.arch-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arch-items span {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

/* ===== V5.0 Enterprise Trust Section ===== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 800px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.trust-card h3 {
  margin-bottom: 8px;
  font-weight: 700;
}

.trust-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Lending OS Homepage Sections (V8) ===== */

.os-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 980px) {
  .os-problem-grid {
    grid-template-columns: 1fr;
  }
}

.os-stack,
.os-pain,
.os-win {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.os-stack-title {
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}

.os-stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.os-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.os-list {
  margin-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

/* Control Plane */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 980px) {
  .cp-grid {
    grid-template-columns: 1fr;
  }
}

.cp-card {
  padding: 18px;
}

.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cp-title {
  font-weight: 900;
}

.cp-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cp-k {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-num {
  font-size: 24px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.cp-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.cp-flow {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

/* Collection Control Tower */
.tower {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .tower {
    grid-template-columns: 1fr;
  }
}

.tower-left,
.tower-right {
  padding: 18px;
}

.tower-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tower-title {
  font-weight: 900;
}

.tower-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tower-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tk {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tk-num {
  font-size: 24px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.tk-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.tower-mini {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tower-mini-title {
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
}

.seg {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}

.rec {
  display: grid;
  gap: 10px;
}

.rec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.rec-row b {
  color: var(--text);
}

.rec-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rec-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7030a0, #8f4dcc, #b07ae6);
  box-shadow: 0 0 22px rgba(112, 48, 160, 0.35);
}

.tower-foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* Canonical Data Model */
.cdm {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .cdm {
    grid-template-columns: 1fr;
  }
}

.cdm-card {
  padding: 18px;
}

.cdm-title {
  font-weight: 900;
  margin-bottom: 12px;
}

.cdm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 560px) {
  .cdm-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cdm-entity {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.cdm-link {
  margin-top: 14px;
}

/* ===== V9 Interactive OS Map ===== */
.osmap {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .osmap {
    grid-template-columns: 1fr;
  }
}

.osmap-left {
  display: grid;
  gap: 10px;
}

.osmap-item {
  text-align: left;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: var(--text);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.osmap-item:hover {
  transform: translateY(-2px);
}

.osmap-item.active {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.26),
    rgba(143, 77, 204, 0.1)
  );
  border-color: rgba(167, 139, 250, 0.35);
}

.osmap-name {
  font-weight: 900;
  margin-bottom: 4px;
}

.osmap-desc {
  font-size: 12px;
  color: var(--muted);
}

.osmap-right {
  padding: 18px;
}

.osmap-canvas {
  display: grid;
  gap: 10px;
}

.osbox {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  opacity: 0.72;
}

.osbox.core {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.26),
    rgba(143, 77, 204, 0.1)
  );
}

.osbox-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.osbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.osbox-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.osmap-canvas[data-active="channels"] .osbox[data-box="channels"],
.osmap-canvas[data-active="integration"] .osbox[data-box="integration"],
.osmap-canvas[data-active="core"] .osbox[data-box="core"],
.osmap-canvas[data-active="control"] .osbox[data-box="control"],
.osmap-canvas[data-active="data"] .osbox[data-box="data"] {
  opacity: 1;
  border-color: rgba(167, 139, 250, 0.42);
  box-shadow: 0 18px 50px rgba(112, 48, 160, 0.18);
  transform: translateY(-1px);
}

.osmap-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== V9 Policy Timeline ===== */
.timeline {
  margin-top: 24px;
  padding: 18px;
}

.tl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tl-title {
  font-weight: 900;
}

.tl-pill {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tl-rows {
  display: grid;
  gap: 10px;
}

.tl-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 700px) {
  .tl-row {
    grid-template-columns: auto 1fr;
  }
  .tl-time {
    justify-self: start;
    color: var(--muted);
  }
}

.tl-badge {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.3),
    rgba(143, 77, 204, 0.1)
  );
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.tl-main {
  font-weight: 800;
  margin-bottom: 4px;
}

.tl-meta {
  font-size: 12px;
  color: var(--muted);
}

.tl-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== V9 Product Screen Mockups ===== */
.screens {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) {
  .screens {
    grid-template-columns: 1fr;
  }
}

.screen {
  padding: 16px;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.screen-title {
  font-weight: 900;
}

.screen-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mock {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.dot.r {
  background: rgba(255, 61, 0, 0.55);
}
.dot.y {
  background: rgba(255, 179, 0, 0.55);
}
.dot.g {
  background: rgba(34, 197, 94, 0.55);
}

.mock-url {
  margin-left: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-body {
  padding: 12px;
  display: grid;
  gap: 12px;
}

.mock-col {
  display: grid;
  gap: 10px;
}
.mock-col.wide {
  gap: 8px;
}

.mock-kpi {
  display: flex;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}
.mock-kpi b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.mock-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-line.s {
  width: 75%;
}

.mock-bars {
  display: grid;
  gap: 10px;
}
.mb {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.mb i {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7030a0, #8f4dcc, #b07ae6);
  box-shadow: 0 0 18px rgba(112, 48, 160, 0.28);
}

.mock-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.mock-table {
  display: grid;
  gap: 8px;
}
.mt-head,
.mt-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr 0.9fr;
  gap: 10px;
  font-size: 12px;
  align-items: center;
}
.mt-head {
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mt-row {
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chip {
  display: inline-flex;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.chip.ok {
  background: rgba(34, 197, 94, 0.14);
}
.chip.warn {
  background: rgba(255, 179, 0, 0.14);
}
.chip.risk {
  background: rgba(255, 61, 0, 0.14);
}

/* ===== V10 Lending OS Context Banner ===== */
.os-context {
  margin-top: 20px;
}
.os-context-box {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.25),
    rgba(112, 48, 160, 0.08)
  );
  border: 1px solid rgba(167, 139, 250, 0.35);
  font-size: 14px;
  line-height: 1.5;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.scale-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.scale-card b {
  display: block;
  font-size: 28px;
}
.scale-card span {
  font-size: 12px;
  color: var(--muted);
}

/* ===== V11 Hero OS Architecture ===== */

.hero-os-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 420px;
  margin: 30px auto;
  text-align: center;
}

.hero-layer {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.hero-layer.core {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.35),
    rgba(112, 48, 160, 0.1)
  );
}

.hero-arrow {
  opacity: 0.6;
}

/* ===== V12 Interactive Demo + Simulation + Portfolio Intelligence ===== */
.demo {
  margin-top: 24px;
  padding: 18px;
}
.demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.demo-step {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.demo-step:hover {
  transform: translateY(-2px);
}
.demo-step.active {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.26),
    rgba(143, 77, 204, 0.1)
  );
  border-color: rgba(167, 139, 250, 0.35);
}
.demo-panel {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-title {
  font-weight: 950;
  font-size: 18px;
  margin-bottom: 6px;
}
.demo-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin-bottom: 12px;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}
.demo-box {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.demo-k {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.demo-v {
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.demo-foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Simulation */
.sim {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}
@media (max-width: 980px) {
  .sim {
    grid-template-columns: 1fr;
  }
}
.sim-left,
.sim-right {
  padding: 18px;
}
.sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sim-title {
  font-weight: 950;
}
.sim-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sim-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sim-btn {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}
.sim-btn.active {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.26),
    rgba(143, 77, 204, 0.1)
  );
  border-color: rgba(167, 139, 250, 0.35);
}
.sim-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.sim-metric {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.sm-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.sm-row b {
  color: var(--text);
}
.sim-foot {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

/* Portfolio intelligence heatmap */
.risk {
  margin-top: 24px;
  padding: 18px;
}
.risk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.risk-title {
  font-weight: 950;
}
.risk-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.heat {
  display: grid;
  gap: 10px;
}
.heat-row {
  display: grid;
  grid-template-columns: 90px repeat(5, 1fr);
  gap: 10px;
  align-items: center;
}
@media (max-width: 700px) {
  .heat-row {
    grid-template-columns: 70px repeat(5, 1fr);
    gap: 8px;
  }
}
.heat-label {
  font-size: 12px;
  color: var(--muted);
}
.heat-row i {
  height: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.05);
}
/* intensity levels using brand purple */
.heat-row i.h1 {
  background: rgba(112, 48, 160, 0.1);
}
.heat-row i.h2 {
  background: rgba(112, 48, 160, 0.16);
}
.heat-row i.h3 {
  background: rgba(112, 48, 160, 0.22);
}
.heat-row i.h4 {
  background: rgba(112, 48, 160, 0.3);
}
.heat-row i.h5 {
  background: rgba(112, 48, 160, 0.4);
  box-shadow: 0 0 18px rgba(112, 48, 160, 0.18);
}

.risk-foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== V13 KPI Toggle ===== */
.kpi-toggle {
  margin-top: 24px;
  padding: 18px;
}
.kpi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.kpi-tab {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}
.kpi-tab.active {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.26),
    rgba(143, 77, 204, 0.1)
  );
  border-color: rgba(167, 139, 250, 0.35);
}
.kpi-panel {
  display: none;
}
.kpi-panel.active {
  display: block;
}
.kpi-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 980px) {
  .kpi-grid4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .kpi-grid4 {
    grid-template-columns: 1fr;
  }
}
.kpi-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.kpi-card b {
  display: block;
  font-size: 26px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}
.kpi-card span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== V13 Developer Portal ===== */
.dev-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 980px) {
  .dev-grid {
    grid-template-columns: 1fr;
  }
}
.dev-card {
  padding: 18px;
}
.dev-title {
  font-weight: 950;
  margin-bottom: 8px;
}
.dev-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.dev-code {
  padding: 18px;
}
.dev-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dev-pill {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.codeblock {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: auto;
  font-size: 12px;
  line-height: 1.5;
}
.dev-table {
  display: grid;
  gap: 8px;
}
.dt-head,
.dt-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 10px;
  font-size: 12px;
  align-items: center;
}
.dt-head {
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dt-row {
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== V14 Event Catalog + Webhook Simulator ===== */
.event-table {
  margin-top: 26px;
  display: grid;
  gap: 8px;
}
.event-head,
.event-row {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.5fr;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.event-head {
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}
.simulator {
  padding: 20px;
  display: grid;
  gap: 10px;
  max-width: 620px;
}
.simulator input,
.simulator select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}

/* ===== V15 Event Flow + Changelog ===== */
.flow {
  margin-top: 24px;
  padding: 18px;
}
.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.flow-title {
  font-weight: 950;
}
.flow-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.flow-rail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 980px) {
  .flow-rail {
    grid-template-columns: 1fr;
  }
}
.flow-col {
  display: grid;
  gap: 10px;
}
.flow-node {
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.flow-node:hover {
  transform: translateY(-2px);
}
.flow-node.active {
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.26),
    rgba(143, 77, 204, 0.1)
  );
  border-color: rgba(167, 139, 250, 0.35);
}
.flow-viz svg {
  width: 100%;
  height: 220px;
  display: block;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}
.fline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
}
@keyframes fpulse {
  0% {
    stroke-dashoffset: 240;
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.4;
  }
}
.fpulse {
  fill: none;
  stroke: rgba(167, 139, 250, 0.7);
  stroke-width: 3;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: fpulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(112, 48, 160, 0.25));
}
.flow-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.flow-box-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.flow-box-evt {
  font-weight: 950;
  margin-bottom: 6px;
}
.flow-box-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 10px;
}
.flow-foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chlog {
  margin-top: 24px;
  padding: 18px;
}
.chlog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.chlog-title {
  font-weight: 950;
}
.chlog-tag {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ch-items {
  display: grid;
  gap: 10px;
}
.ch-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 700px) {
  .ch-item {
    grid-template-columns: auto 1fr;
  }
  .ch-date {
    justify-self: start;
    color: var(--muted);
  }
}
.ch-badge {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 950;
  background: linear-gradient(
    135deg,
    rgba(112, 48, 160, 0.3),
    rgba(143, 77, 204, 0.1)
  );
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.ch-main {
  font-weight: 850;
  margin-bottom: 4px;
}
.ch-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.ch-notes {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}
.ch-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}
.chlog-foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
