/* ============================================================
   AURORA — Components
   Premium glass cards with gradient borders,
   refined buttons, floating nav, mesh hero
   ============================================================ */

/* ============================================================
   BUTTONS — subtle gradients, refined depth
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    transform var(--duration-instant) var(--ease-standard);
  white-space: nowrap;
  user-select: none;
  position: relative;
}

.btn:active { transform: scale(0.97); }

/* Primary — gradient blue with glow */
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
  color: var(--color-on-primary);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.25), 0 1px 2px rgba(0, 102, 255, 0.15);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  box-shadow: 0 4px 16px rgba(0, 102, 255, 0.35), 0 2px 4px rgba(0, 102, 255, 0.2);
}
.btn--primary:active {
  background: var(--color-primary-pressed);
}

/* Secondary — glass with border */
.btn--secondary {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  color: var(--text-primary);
  border: 1px solid var(--border-hairline-strong);
  box-shadow: var(--shadow-1);
}
.btn--secondary:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-2);
}

/* Ghost — minimal */
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.btn--ghost:hover { background: var(--bg-surface); }

/* Link */
.btn--link {
  background: transparent;
  color: var(--color-primary);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  padding: 0;
  border-radius: 0;
}
.btn--link:hover { text-decoration: underline; }

/* On-dark — for hero sections */
.btn--on-dark {
  background: #ffffff;
  color: var(--color-navy);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn--secondary-on-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--secondary-on-dark:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Icon-only */
.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
}

/* Glow button variant */
.btn--glow {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}
.btn--glow:hover {
  box-shadow: 0 6px 28px rgba(0, 212, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  transform: translateY(-2px);
}

/* Segmented / Options Buttons (from options buttons.png) */
.btn-group {
  display: inline-flex;
  align-items: center;
  background: var(--option-btn-bg);
  border: 1px solid var(--option-btn-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.btn-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
  white-space: nowrap;
}
.btn-option:hover {
  color: var(--text-primary);
  background: var(--option-btn-hover-bg);
}
.btn-option.is-active {
  color: var(--text-primary);
  background: var(--option-btn-active-bg);
  border-color: var(--option-btn-active-border);
  box-shadow: var(--option-btn-active-shadow);
  font-weight: var(--weight-semibold);
}
.btn-option__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  transition: background var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.btn-option.is-active .btn-option__dot {
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

/* Sizes */
.btn--xs { font-size: var(--text-micro); padding: 4px 10px; border-radius: var(--radius-sm); }
.btn--sm { font-size: var(--text-caption); padding: 6px 14px; border-radius: var(--radius-full); }
.btn--md { font-size: var(--text-body-sm); padding: 10px 18px; border-radius: var(--radius-full); }
.btn--lg { font-size: var(--font-size-body); padding: 12px 24px; border-radius: var(--radius-full); }
.btn--block { width: 100%; }

/* Disabled */
.btn--disabled, .btn:disabled {
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ============================================================
   CARDS — glass with gradient borders, inner glow
   ============================================================ */

.card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card), var(--glass-inner-glow);
  transition:
    box-shadow var(--duration-normal) var(--ease-standard),
    border-color var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard),
    transform var(--duration-normal) var(--ease-spring);
  position: relative;
}

.card--feature { padding: var(--space-xxl); }
.card--flat { box-shadow: none; }

.card--interactive { cursor: pointer; }
.card--interactive:hover {
  box-shadow: var(--shadow-card-hover), var(--glass-inner-glow);
  border-color: var(--color-primary);
  background: var(--glass-card-hover-bg);
  transform: translateY(-4px);
}

/* Tinted cards — subtle wash, not pastel blocks */
.card--tint-blue    { background: var(--tint-blue);    border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card--tint-cyan    { background: var(--tint-cyan);    border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card--tint-coral   { background: var(--tint-coral);   border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card--tint-amber   { background: var(--tint-amber);   border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card--tint-lime    { background: var(--tint-lime);    border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card--tint-violet  { background: var(--tint-violet);  border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card--tint-pink    { background: var(--tint-pink);    border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card--tint-teal    { background: var(--tint-teal);    border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Gradient border card — premium variant */
.card--gradient-border {
  position: relative;
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
}
.card--gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: var(--gradient-border-light);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
[data-theme="dark"] .card--gradient-border::before {
  background: var(--gradient-border-dark);
}

/* Screenshot placeholder */
.card--screenshot {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-surface-soft));
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-body-sm);
  position: relative;
  overflow: hidden;
}

/* ============================================================
   BADGES & TAGS — refined, smaller
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  line-height: 1.4;
  color: var(--badge-text);
}

.badge--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.badge--accent {
  background: var(--color-accent);
  color: var(--color-navy);
}

/* Tag chips — soft tinted */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.4;
}

.tag--blue   { background: var(--tint-blue);   color: var(--color-primary); }
.tag--cyan   { background: var(--tint-cyan);   color: var(--color-accent-dim); }
.tag--coral  { background: var(--tint-coral);  color: var(--color-coral); }
.tag--amber  { background: var(--tint-amber);  color: var(--color-amber); }
.tag--lime   { background: var(--tint-lime);   color: var(--color-lime); }
.tag--violet { background: var(--tint-violet); color: var(--color-violet); }
.tag--teal   { background: var(--tint-teal);   color: var(--color-teal); }

[data-theme="dark"] .tag--blue   { color: var(--color-primary-light); }
[data-theme="dark"] .tag--cyan   { color: var(--color-accent); }
[data-theme="dark"] .tag--coral  { color: var(--color-coral); }
[data-theme="dark"] .tag--amber  { color: var(--color-amber); }
[data-theme="dark"] .tag--lime   { color: var(--color-lime); }
[data-theme="dark"] .tag--violet { color: var(--color-violet); }
[data-theme="dark"] .tag--teal   { color: var(--color-teal); }

/* Status dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.status-dot--active { background: var(--color-success); box-shadow: 0 0 8px rgba(81, 207, 102, 0.4); }
.status-dot--dev { background: var(--color-warning); box-shadow: 0 0 8px rgba(255, 169, 77, 0.4); }
.status-dot--planning { background: var(--text-muted); }

/* ============================================================
   NAVIGATION — floating glass pill
   ============================================================ */

.nav {
  position: fixed;
  top: var(--space-md);
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-inline: var(--container-gutter);
}

/* Nav on dark hero — force light text colors */
.nav--on-hero .nav__brand { color: var(--text-on-dark); }
.nav--on-hero .nav__link { color: var(--text-on-dark-muted); }
.nav--on-hero .nav__link:hover { color: #fff; }
.nav--on-hero .theme-toggle { color: var(--text-on-dark-muted); }
.nav--on-hero .theme-toggle:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav--on-hero .nav__hamburger { color: var(--text-on-dark); }
.nav--on-hero .nav__pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

/* Light mode nav overrides when on hero to ensure high contrast */
[data-theme="light"] .nav--on-hero .nav__brand { color: #0F172A; }
[data-theme="light"] .nav--on-hero .nav__link { color: #475569; }
[data-theme="light"] .nav--on-hero .nav__link:hover { color: #0066ff; }
[data-theme="light"] .nav--on-hero .theme-toggle { color: #475569; }
[data-theme="light"] .nav--on-hero .theme-toggle:hover { background: rgba(0, 0, 0, 0.06); color: #0F172A; }
[data-theme="light"] .nav--on-hero .nav__hamburger { color: #0F172A; }
[data-theme="light"] .nav--on-hero .nav__pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.nav__brand, .nav__link, .theme-toggle, .nav__hamburger {
  transition: color var(--duration-normal) var(--ease-standard);
}
.nav__pill {
  transition: background var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard);
}

.nav__pill {
  max-width: var(--container-max);
  margin-inline: auto;
  height: 56px;
  background: var(--glass-nav-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-nav-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--space-lg);
  position: relative;
  transition: background var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard);
}

@media (min-width: 1024px) {
  .nav__pill {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
  }
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 350;
  font-size: 22px;
  letter-spacing: 0.03em;
  line-height: 1;
  justify-self: start;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.3);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  justify-self: center;
}

.nav__link {
  color: var(--nav-text);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  transition: color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
  position: relative;
  padding: 4px 2px;
}
.nav__link:hover { color: var(--nav-text-hover); }

.nav__link--active {
  color: var(--color-primary) !important;
  font-weight: var(--weight-semibold);
}
.nav--on-hero .nav__link--active {
  color: #ffffff !important;
  font-weight: var(--weight-semibold);
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: var(--color-primary);
}
.nav--on-hero .nav__link--active::after {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ============================================================
   ENTERPRISE DASHBOARD SPEC — Nav Active Pill (v1.0.0)
   Light mode: dark background pill, white text
   Dark mode: white background pill, dark text
   ============================================================ */
[data-theme="light"] .nav__link--active {
  background: #0F172A;
  color: #FFFFFF !important;
  border-radius: var(--spec-radius-full);
  padding: 8px 18px;
  font-weight: 600;
}
[data-theme="light"] .nav__link--active::after { display: none; }
[data-theme="light"] .nav--on-hero .nav__link--active {
  background: #FFFFFF;
  color: #0F172A !important;
}
[data-theme="light"] .nav--on-hero .nav__link--active::after { display: none; }

[data-theme="dark"] .nav__link--active {
  background: #FFFFFF;
  color: #0F172A !important;
  border-radius: var(--spec-radius-full);
  padding: 8px 18px;
  font-weight: 600;
}
[data-theme="dark"] .nav__link--active::after { display: none; }
[data-theme="dark"] .nav--on-hero .nav__link--active {
  background: #FFFFFF;
  color: #0F172A !important;
}
[data-theme="dark"] .nav--on-hero .nav__link--active::after { display: none; }

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: var(--space-xs);
  margin-left: auto;
}

/* Auth-aware nav button — shows Sign In or Dashboard+Sign Out based on auth state */
.nav__auth { display: flex; align-items: center; gap: var(--space-xs); }
.nav__auth-btn { font-size: var(--type-caption); font-weight: 600; padding: 6px 14px; border-radius: var(--radius-sm); text-decoration: none; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); white-space: nowrap; }
.nav__auth-btn--primary { background: var(--brand-coral); color: #fff; }
.nav__auth-btn--primary:hover { background: var(--brand-coral-600); }
.nav__auth-btn--ghost { color: var(--text-secondary); border: 1px solid var(--border-subtle-spec); }
.nav__auth-btn--ghost:hover { border-color: var(--brand-coral); color: var(--brand-coral); }
.nav--on-hero .nav__auth-btn--ghost { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }
.nav--on-hero .nav__auth-btn--ghost:hover { color: var(--brand-coral); border-color: var(--brand-coral); }
[data-theme="light"] .nav--on-hero .nav__auth-btn--ghost { color: var(--text-secondary); border-color: var(--border-subtle-spec); }

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition:
    background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}
.theme-toggle:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.theme-toggle:active { transform: scale(0.92); transition: transform 100ms var(--ease-spring); }

.theme-toggle__icon { width: 18px; height: 18px; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* Hamburger */
.nav__hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.nav__hamburger:active { transform: scale(0.92); transition: transform 100ms var(--ease-spring); }

/* Mobile menu backdrop */
.nav__mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: calc(var(--z-nav) - 1);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.nav__mobile-backdrop.is-open {
  display: block;
  opacity: 1;
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--space-md) + 56px + var(--space-xs));
  left: var(--container-gutter);
  right: var(--container-gutter);
  background: var(--glass-nav-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-nav-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  flex-direction: column;
  gap: var(--space-md);
  z-index: var(--z-nav);
  box-shadow: var(--shadow-3);
}

.nav__mobile-menu.is-open { display: flex; }

.nav--on-hero .nav__mobile-menu {
  background: rgba(10, 14, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}
.nav--on-hero .nav__mobile-menu .nav__link { color: var(--text-on-dark-muted); }
.nav--on-hero .nav__mobile-menu .nav__link:hover { color: #fff; }

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open { overflow: hidden; }

/* ============================================================
   HERO — full screen with image + dots
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-hero);
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-hero) var(--container-gutter);
  position: relative;
  overflow: hidden;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.50;
  z-index: 0;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.50) 0%, rgba(10, 14, 26, 0.65) 60%, var(--bg-canvas) 100%);
  z-index: 1;
}

.dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  max-width: 768px;
  position: relative;
  z-index: var(--z-content);
}

.hero__glass {
  background: transparent;
  border: none;
  padding: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--badge-text);
  margin-bottom: var(--space-xxl);
}

/* Hero context — always dark background, so always use on-dark colors */
.hero .hero__badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text-on-dark);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--badge-dot-color, var(--color-accent));
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  margin-bottom: var(--space-xl);
}

.hero__subtitle {
  font-size: var(--text-subtitle);
  font-weight: var(--weight-regular);
  line-height: var(--leading-subtitle);
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-xxl);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-xxl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-on-dark-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-micro-upper);
}

.hero__scroll-icon {
  width: 20px;
  height: 20px;
  animation: scroll-bounce 2s var(--ease-standard) infinite;
}

/* ============================================================
   INPUTS
   ============================================================ */

.input {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  height: 44px;
  width: 100%;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.input:focus {
  outline: none;
  border: 2px solid var(--color-primary);
  padding: calc(var(--space-sm) - 1px) calc(var(--space-md) - 1px);
}

/* ============================================================
   FORM SUBMIT
   ============================================================ */

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
}

.form-submit__hint {
  text-align: center;
  font-size: var(--text-caption);
  color: var(--text-muted);
  line-height: var(--leading-caption);
}

/* ============================================================
   ACCORDION
   ============================================================ */

.accordion__item {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-md);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: var(--weight-semibold);
  font-size: var(--text-h5);
  color: var(--text-primary);
}

.accordion__chevron { transition: transform var(--duration-normal) var(--ease-standard); }
.accordion__item[open] .accordion__chevron { transform: rotate(180deg); }

.accordion__content {
  padding-top: var(--space-md);
  color: var(--text-secondary);
  line-height: var(--leading-body);
}

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

.footer {
  border-top: 1px solid var(--border-hairline);
  padding: var(--space-section) var(--container-gutter);
  background: var(--bg-canvas);
}

.footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-xxl);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__brand .brand-font,
.footer__brand a.brand-font {
  font-size: 22px !important;
  font-weight: 350;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  color: inherit;
}

.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-xl); }

.footer__link {
  color: var(--text-tertiary);
  font-size: var(--text-body-sm);
  transition: color var(--duration-fast) var(--ease-standard);
}
.footer__link:hover { color: var(--color-primary); }

.footer__clients {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-hairline);
}

.footer__client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-sm);
}

.footer__client {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.footer__client:hover { color: var(--color-primary); border-color: var(--color-primary); }

.footer__client-logo {
  height: 20px;
  width: auto;
  max-width: 40px;
  flex-shrink: 0;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}
.footer__client:hover .footer__client-logo {
  filter: grayscale(0%);
  opacity: 1;
}

[data-theme="dark"] .footer__client-logo {
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.55;
}
[data-theme="dark"] .footer__client:hover .footer__client-logo {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-hairline);
}

/* ============================================================
   LOGO STRIP (marquee below hero)
   ============================================================ */

.logo-strip {
  overflow: hidden;
  padding: var(--space-md) 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
}

.logo-strip__track {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  width: max-content;
  animation: logo-strip-scroll 40s linear infinite;
}

.logo-strip__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-sm);
}

.logo-strip__img {
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}

.logo-strip__item:hover .logo-strip__img {
  filter: grayscale(0%);
  opacity: 1;
}

[data-theme="dark"] .logo-strip__img {
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.5;
}

[data-theme="dark"] .logo-strip__item:hover .logo-strip__img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes logo-strip-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-xxl);
  padding: var(--space-section);
  text-align: center;
  box-shadow: var(--shadow-card), var(--glass-inner-glow);
}

.cta-banner--gradient {
  background: linear-gradient(135deg, var(--tint-blue), var(--tint-cyan));
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="dark"] .cta-banner--gradient {
  background: linear-gradient(135deg, var(--color-navy-mid), var(--color-navy-soft));
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline { display: flex; flex-direction: column; gap: var(--space-md); }

.timeline__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.3);
}

/* ============================================================
   ICON CONTAINER
   ============================================================ */

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box--primary { background: var(--tint-blue);   color: var(--color-primary); }
.icon-box--cyan    { background: var(--tint-cyan);   color: var(--color-accent-dim); }
.icon-box--success { background: var(--tint-lime);   color: var(--color-success); }
.icon-box--warning { background: var(--tint-amber);  color: var(--color-warning); }
.icon-box--danger  { background: var(--tint-coral);  color: var(--color-error); }
.icon-box--violet  { background: var(--tint-violet); color: var(--color-violet); }
.icon-box--teal    { background: var(--tint-teal);   color: var(--color-teal); }

[data-theme="dark"] .icon-box--primary { color: var(--color-primary-light); }
[data-theme="dark"] .icon-box--cyan    { color: var(--color-accent); }
[data-theme="dark"] .icon-box--success { color: var(--color-success); }
[data-theme="dark"] .icon-box--warning { color: var(--color-amber); }
[data-theme="dark"] .icon-box--danger  { color: var(--color-coral); }
[data-theme="dark"] .icon-box--violet  { color: var(--color-violet); }
[data-theme="dark"] .icon-box--teal    { color: var(--color-teal); }

/* ============================================================
   CANVAS & BRAND FONT
   ============================================================ */

.dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.brand-font {
  font-family: 'Bitcount Prop Double', sans-serif;
  letter-spacing: 0.02em;
}

/* ============================================================
   PROSE — Blog post content styling (card-based design system)
   ============================================================ */
.prose { color: var(--text-secondary); line-height: var(--leading-body); font-size: var(--font-size-body); }

/* Lead paragraph (intro before first ## heading) */
.prose-lead {
  font-size: var(--text-body-lg);
  color: var(--text-primary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  font-weight: var(--weight-normal);
}

/* Section cards — each ## heading opens a new card */
.prose-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  transition: border-color var(--duration-normal) var(--ease-standard);
}
.prose-card:hover {
  border-color: var(--color-primary-soft, var(--color-primary));
}
.prose-card__title {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  line-height: var(--leading-tight);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-hairline);
}
.prose-card__subtitle {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: var(--leading-tight);
}
.prose-card__list {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-md);
  list-style: none;
}
.prose-card__list--ordered {
  counter-reset: list-item;
  padding-left: 0;
}
.prose-card__list--ordered li {
  counter-increment: list-item;
  position: relative;
  padding-left: var(--space-lg);
}
.prose-card__list--ordered li::before {
  content: counter(list-item);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 12px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.prose-card__list li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
  color: var(--text-secondary);
}
.prose-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.prose-card__list--ordered li::before {
  /* Override bullet for ordered */
  background: var(--color-primary);
  width: 24px;
  height: 24px;
  top: 0;
}

/* Paragraphs inside cards */
.prose-card p { margin-bottom: var(--space-md); }
.prose-card p:last-child { margin-bottom: 0; }

/* Callout blockquote */
.prose-callout {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--bg-surface-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-primary);
  font-style: italic;
  font-size: var(--text-body-lg);
  line-height: var(--leading-relaxed);
}
.prose-callout p { margin-bottom: var(--space-xs); }
.prose-callout p:last-child { margin-bottom: 0; }

/* Reference lines (Source: / See: links) */
.prose-ref-line {
  margin: var(--space-sm) 0;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-body-sm);
  color: var(--text-tertiary);
}
.prose-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}
.prose-ref a {
  color: var(--color-primary);
  text-decoration: none;
  word-break: break-all;
}
.prose-ref a:hover {
  text-decoration: underline;
}

/* Stat grid inside prose */
.prose__stats {
  margin: var(--space-lg) 0;
}

/* Divider */
.prose-divider {
  border: none;
  border-top: 1px solid var(--border-hairline);
  margin: var(--space-lg) 0;
}

/* Backward compat — plain prose (non-card) elements */
.prose h2 { font-size: var(--text-h3); font-weight: var(--weight-bold); color: var(--text-primary); margin: var(--space-xl) 0 var(--space-md); line-height: var(--leading-tight); }
.prose h3 { font-size: var(--text-h4); font-weight: var(--weight-semibold); color: var(--text-primary); margin: var(--space-lg) 0 var(--space-sm); line-height: var(--leading-tight); }
.prose p { margin-bottom: var(--space-md); }
.prose strong { color: var(--text-primary); font-weight: var(--weight-semibold); }
.prose em { font-style: italic; }
.prose code { font-family: 'Courier New', monospace; font-size: 0.9em; background: var(--bg-surface-soft); padding: 2px 6px; border-radius: 4px; color: var(--color-primary); }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { text-decoration: none; opacity: 0.8; }
.prose img { max-width: 100%; border-radius: 12px; margin: var(--space-md) 0; }

/* Mobile — reduce card padding on small screens */
@media (max-width: 768px) {
  .prose-card { padding: var(--space-md); }
  .prose-lead { font-size: var(--text-body); }
  .prose-callout { padding: var(--space-sm) var(--space-md); font-size: var(--text-body); }
}

/* ============================================================
   TRUST BARS & BADGES (from pills and icons.png)
   ============================================================ */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.trust-badge svg { color: var(--color-primary); flex-shrink: 0; }
.trust-badge--accent { border-color: var(--color-primary); color: var(--text-primary); }
.trust-badge--accent svg { color: var(--color-primary); }
.trust-divider { width: 1px; height: 24px; background: var(--border-default); }

/* ============================================================
   PILLS & STATUS CHIPS (from pills and icons.png)
   ============================================================ */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--pill-pad-sm);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline-strong);
  background: var(--bg-surface);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-standard);
}
.pill:hover { border-color: var(--color-primary); color: var(--text-primary); }

.pill.blue   { background: var(--tint-blue);   color: var(--color-primary); border-color: transparent; }
.pill.cyan   { background: var(--tint-cyan);   color: var(--color-accent-dim); border-color: transparent; }
.pill.green  { background: var(--tint-lime);   color: var(--color-success); border-color: transparent; }
.pill.amber  { background: var(--tint-amber);  color: var(--color-warning); border-color: transparent; }
.pill.violet { background: var(--tint-violet); color: var(--color-violet); border-color: transparent; }
.pill.teal   { background: var(--tint-teal);   color: var(--color-teal); border-color: transparent; }
.pill.red    { background: var(--tint-coral);  color: var(--color-error); border-color: transparent; }

[data-theme="dark"] .pill.blue   { color: var(--color-primary-light); }
[data-theme="dark"] .pill.cyan   { color: var(--color-accent); }
[data-theme="dark"] .pill.green  { color: var(--color-success); }
[data-theme="dark"] .pill.amber  { color: var(--color-amber); }
[data-theme="dark"] .pill.violet { color: var(--color-violet); }
[data-theme="dark"] .pill.teal   { color: var(--color-teal); }
[data-theme="dark"] .pill.red    { color: var(--color-coral); }

/* Pulsing Status Dot */
.status-dot--pulse {
  position: relative;
}
.status-dot--pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  background: inherit;
  opacity: 0.6;
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ============================================================
   INDUSTRY & PROJECT CARDS
   ============================================================ */

.industry-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard);
  cursor: pointer;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

.industry-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.research-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--duration-fast) var(--ease-standard), transform var(--duration-normal) var(--ease-spring);
}
.research-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.research-card a { color: var(--color-primary); font-weight: var(--weight-medium); font-size: var(--text-body-sm); }
.research-card a:hover { text-decoration: underline; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: var(--text-caption);
}

.about-avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--tint-blue), var(--tint-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  font-size: var(--text-body-sm);
  color: var(--color-text-body);
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.checklist-item:hover { border-color: var(--color-primary); }
.checklist-item svg { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   COMPARE TABLES (from app.png)
   ============================================================ */

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-card-border);
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  margin-top: var(--space-lg);
}
.compare-table th,
.compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
  font-size: var(--text-body-sm);
}
.compare-table th {
  background: var(--bg-surface);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.compare-table td {
  color: var(--text-secondary);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover {
  background: var(--bg-surface);
}

/* ============================================================
   SIMULATION COCKPIT MODULE (index signature)
   ============================================================ */

.cockpit {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-card);
}
.cockpit__header {
  margin-bottom: var(--space-xl);
  text-align: center;
}
.cockpit__header h2 {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}
.cockpit__header p {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  max-width: 56ch;
  margin-inline: auto;
}
.cockpit__grid {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: var(--space-xl);
  align-items: center;
}
.cockpit__layers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cockpit__layer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
}
.cockpit__layer-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.cockpit__layer-btn.is-active {
  background: var(--bg-surface);
  border-color: var(--color-primary);
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-1);
}
.cockpit__layer-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.cockpit__map {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cockpit__map-svg {
  width: 100%;
  max-height: 280px;
}
.cockpit__node {
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.cockpit__node:hover { transform: scale(1.1); }
.cockpit__node.is-active circle { stroke-width: 3; filter: drop-shadow(0 0 8px var(--color-primary)); }
.cockpit__node-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  fill: var(--text-primary);
  text-anchor: middle;
}
.cockpit__edge {
  stroke: var(--border-hairline-strong);
  stroke-width: 1.5;
  fill: none;
  transition: stroke var(--duration-fast) var(--ease-standard);
}
.cockpit__edge.is-active {
  stroke: var(--color-primary);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px var(--color-primary));
}
.cockpit__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.cockpit__metric {
  padding: var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}
.cockpit__metric-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cockpit__metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}
.cockpit__metric-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-hairline);
  margin-top: 6px;
  overflow: hidden;
}
.cockpit__metric-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--duration-normal) var(--ease-standard);
}
@media (max-width: 900px) {
  .cockpit__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HORIZONTAL STEPPED FLOW (index.html)
   ============================================================ */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.flow-step {
  padding: var(--space-xl);
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-standard);
}
.flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.flow-step__num {
  font-family: var(--font-mono);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.flow-step__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.flow-step__title {
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}
.flow-step__desc {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: var(--leading-body);
}
.flow-step__arrow {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-lg);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT PAGE COMPONENTS (Timeline, Chains, Principle)
   ============================================================ */

.engagement-path {
  position: relative;
  padding-left: 48px;
}
.engagement-path::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 17px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent), var(--color-teal), var(--color-amber), var(--color-violet), var(--color-lime));
  opacity: 0.4;
}
.engagement-step {
  position: relative;
  margin-bottom: var(--space-xxl);
}
.engagement-step:last-child { margin-bottom: 0; }
.engagement-step__marker {
  position: absolute;
  left: -48px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.2);
}
.engagement-step__card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-standard);
}
.engagement-step__card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.project-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}
.project-card__meta {
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.project-card__title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}
.project-card__desc {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin-bottom: var(--space-sm);
}
.project-card__question {
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.project-card__link {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
}

.flow-chain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}
.flow-chain__item {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.flow-chain__item:hover { border-color: var(--color-primary); }
.flow-chain__arrow {
  padding: 4px 0;
  color: var(--text-muted);
  font-size: var(--text-body-sm);
}

.principle-block {
  padding: var(--space-xxl);
  background: linear-gradient(135deg, var(--glass-card-bg), var(--bg-surface-soft));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.principle-block p {
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin-bottom: var(--space-md);
}
.principle-block p:last-child { margin-bottom: 0; }

.cap-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-standard);
}
.cap-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}
.cap-card h4 {
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}
.cap-card p {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin: 0;
}

.explore-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-standard);
}
.explore-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.explore-card h3 {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}
.explore-card p {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin-bottom: var(--space-md);
}
.explore-card a {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
}
.explore-card .btn--primary {
  color: var(--color-on-primary);
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.stat-card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-spring), border-color var(--duration-normal) var(--ease-standard);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.stat-card__num {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
  font-family: 'Bitcount Prop Double', sans-serif;
}
.stat-card__label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}
.stat-card__sub {
  font-size: var(--text-caption);
  color: var(--text-tertiary);
}

/* ============================================================
   CONTACT FORM & TRUST SIDEBAR
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-xl);
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.contact-form label {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: var(--font-size-body);
  font-family: inherit;
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--tint-blue);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .form-submit {
  margin-top: var(--space-sm);
}

.trust-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: sticky;
  top: 100px;
}
.trust-panel__photo-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-card-border);
  box-shadow: var(--shadow-card);
}
.trust-panel__photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trust-panel__card {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.trust-panel__card h4 {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.trust-panel__card h4 svg { color: var(--color-primary); flex-shrink: 0; }
.trust-panel__card p {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin: 0;
}
.trust-panel__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}
.trust-panel__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
}
.trust-panel__list-item svg { color: var(--color-teal); flex-shrink: 0; margin-top: 2px; }
.trust-panel__stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-hairline);
}
.trust-panel__stat:last-child { border-bottom: none; }
.trust-panel__stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-h5);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}
.trust-panel__stat-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
}
.trust-panel__industries {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}
.trust-panel__industry-tag {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  font-size: var(--text-caption);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .trust-panel { position: static; }
}

.next-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--space-xl);
}
.next-step {
  flex: 1 1 0;
  min-width: 140px;
  padding: var(--space-lg);
  border-top: 3px solid var(--border-hairline);
  position: relative;
  transition: border-color var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-spring);
}
.next-step:hover {
  border-top-color: var(--color-primary);
  transform: translateY(-4px);
}
.next-step:nth-child(1):hover { border-top-color: var(--color-primary); }
.next-step:nth-child(2):hover { border-top-color: var(--color-accent); }
.next-step:nth-child(3):hover { border-top-color: var(--color-teal); }
.next-step:nth-child(4):hover { border-top-color: var(--color-amber); }
.next-step:nth-child(5):hover { border-top-color: var(--color-violet); }
.next-step__num {
  font-family: var(--font-mono);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  transition: color var(--duration-normal) var(--ease-standard);
}
.next-step:hover .next-step__num { color: var(--color-primary); }
.next-step:nth-child(2):hover .next-step__num { color: var(--color-accent); }
.next-step:nth-child(3):hover .next-step__num { color: var(--color-teal); }
.next-step:nth-child(4):hover .next-step__num { color: var(--color-amber); }
.next-step:nth-child(5):hover .next-step__num { color: var(--color-violet); }
.next-step__title {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}
.next-step__desc {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin: 0;
}
@media (max-width: 768px) {
  .next-steps { flex-direction: column; }
  .next-step { border-top: none; border-left: 3px solid var(--border-hairline); }
}

/* ============================================================
   MODALS (Sector & Project Details)
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--overlay-scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}
.modal-overlay.is-open { display: flex; opacity: 1; }
.modal {
  background: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-xxl);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
  box-shadow: var(--shadow-5);
  transform: scale(0.95);
  transition: transform var(--duration-normal) var(--ease-spring);
  position: relative;
}
.modal-overlay.is-open .modal { transform: scale(1); }
.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.modal__close:hover { background: var(--bg-surface); color: var(--text-primary); }
.modal__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.modal__title {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-xs);
}
.modal__meta {
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.modal__body {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
}
.modal__agents {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}
.modal__agent-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* ============================================================
   SKELETONS / SHIMMER LOADERS (from loading screen.png)
   ============================================================ */

.skeleton {
  background: var(--skeleton-base);
  background-image: var(--skeleton-shimmer);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}
.skeleton--text   { height: 14px; width: 80%; margin-bottom: 8px; }
.skeleton--title  { height: 22px; width: 60%; margin-bottom: 12px; }
.skeleton--circle { width: 44px; height: 44px; border-radius: var(--radius-full); }
.skeleton--card   { height: 180px; border-radius: var(--radius-lg); }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   WORKER & CAPABILITY CARDS (from workers.png & app.png)
   ============================================================ */

.worker-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-standard);
}
.worker-card:hover {
  background: var(--bg-surface);
  border-color: var(--color-primary);
  transform: translateX(4px);
}
.worker-card__info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.worker-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-caption);
  background: var(--tint-blue);
  color: var(--color-primary);
}
.worker-card__name {
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}
.worker-card__role {
  font-size: var(--text-caption);
  color: var(--text-muted);
}

/* ============================================================
   TABS & SEGMENTS
   ============================================================ */

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 0;
}
.tab-btn {
  padding: var(--space-sm) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
  margin-bottom: -1px;
  font-family: inherit;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab-content { display: none; }
.tab-content.is-active { display: block; }
.tab-content__inner {
  padding: var(--space-lg) var(--space-xl);
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
}

/* Accordion Stepper */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 640px;
  margin: 0 auto;
}
.accordion-item {
  background: var(--glass-card-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-standard);
}
.accordion-item.is-open { border-color: var(--color-primary); }
.accordion-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  user-select: none;
  transition: background var(--duration-fast) var(--ease-standard);
}
.accordion-item__header:hover { background: var(--bg-surface); }
.accordion-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--tint-blue);
  color: var(--color-primary);
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}
.accordion-item.is-open .accordion-item__num {
  background: var(--color-primary);
  color: #fff;
}
.accordion-item__chevron {
  margin-left: auto;
  color: var(--text-tertiary);
  transition: transform var(--duration-fast) var(--ease-standard);
}
.accordion-item.is-open .accordion-item__chevron { transform: rotate(180deg); }
.accordion-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) var(--ease-standard);
}
.accordion-item__body-inner {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
}

.direction-arrow {
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-align: center;
  padding: var(--space-lg) 0;
  margin: 0;
  letter-spacing: 0.02em;
}

.lead-text {
  font-size: var(--text-h5);
  color: var(--text-primary);
  line-height: var(--leading-subtitle);
  font-weight: var(--weight-medium);
}
.lead-text strong { color: var(--color-primary); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-nav-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(var(--glass-sat));
  border-top: 1px solid var(--glass-nav-border);
  z-index: var(--z-modal);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-standard), opacity var(--duration-normal) var(--ease-standard);
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.cookie-banner__text {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  margin: 0;
}
.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
}
.cookie-banner__btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-body-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}
.cookie-banner__btn:hover {
  background: var(--color-primary-dark, #0052cc);
}

@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: var(--space-md);
  }
  .cookie-banner__btn {
    width: 100%;
  }
}

/* ============================================================
   CONSENT CHECKBOX (contact form)
   ============================================================ */
.consent-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.consent-group input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.consent-group label {
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
  line-height: var(--leading-body);
  cursor: pointer;
}
.consent-group label a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   DROPDOWN DESIGN SYSTEM — VLTHRLAB Custom
   Replaces browser-native select with theme-aware custom styling.
   Works in both light and dark mode using CSS variables.
   ============================================================ */

/* ---- 1. NATIVE SELECT — restyled baseline ---- */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline-strong);
  border-radius: 10px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e99' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  min-height: 40px;
}

select:hover {
  border-color: var(--color-primary);
  background-color: var(--bg-surface-soft);
}

select:focus,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--tint-blue);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dark mode: brighter chevron, navy surface */
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  border-color: var(--border-hairline-strong);
  background-color: var(--bg-surface-elevated);
  color: var(--text-on-dark);
}

[data-theme="dark"] select:hover {
  border-color: var(--color-accent);
  background-color: var(--bg-surface);
}

[data-theme="dark"] select:focus,
[data-theme="dark"] select:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* ---- 2. DROPDOWN PANEL — the <option> list popup ---- */
select option {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  padding: 10px 14px;
  border: none;
}

select option:checked,
select option:hover,
select option:focus {
  background-color: var(--tint-blue);
  color: var(--text-primary);
}

[data-theme="dark"] select option {
  background-color: var(--bg-surface-elevated);
  color: var(--text-on-dark);
}

[data-theme="dark"] select option:checked,
[data-theme="dark"] select option:hover {
  background-color: rgba(0, 102, 255, 0.20);
  color: #ffffff;
}

/* ---- 3. OPTGROUP styling ---- */
select optgroup {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px 4px;
}

select optgroup option {
  padding-left: 24px;
}

/* ---- 4. ADMIN INPUT — shared input/select/textarea for admin panel ---- */
.admin-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 36px;
}

.admin-input:hover {
  border-color: var(--color-primary);
}

.admin-input:focus,
.admin-input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--tint-blue);
}

select.admin-input {
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238e8e99' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

[data-theme="dark"] select.admin-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .admin-input {
  background-color: var(--bg-surface-elevated);
  color: var(--text-on-dark);
  border-color: var(--border-hairline-strong);
}

[data-theme="dark"] .admin-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

/* ---- 5. DROPDOWN SIZES ---- */
select.is-sm, .admin-input.is-sm {
  padding: 6px 28px 6px 10px;
  font-size: 12px;
  min-height: 32px;
  border-radius: 6px;
}

select.is-lg, .admin-input.is-lg {
  padding: 12px 40px 12px 16px;
  font-size: 15px;
  min-height: 48px;
  border-radius: 12px;
}

/* ---- 6. DROPDOWN VARIANTS ---- */
/* Primary variant — for key actions */
select.is-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select.is-primary:hover {
  background-color: #0052cc;
}

/* Ghost variant — minimal, for filters */
select.is-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

select.is-ghost:hover {
  background-color: var(--bg-surface-soft);
  color: var(--text-primary);
}

select.is-ghost:focus {
  background-color: var(--bg-surface-soft);
  border-color: var(--color-primary);
}

/* ---- 7. FULL-WIDTH DROPDOWN ---- */
select.is-block, .admin-input.is-block {
  width: 100%;
  display: block;
}

/* ---- 8. DROPDOWN GROUP (label + select) ---- */
.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.dropdown-group .hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   ENTERPRISE DASHBOARD SPEC — Card System (v1.0.0)
   Variants: primary, nested, hero (coral), inverse (dark)
   ============================================================ */

/* Base card */
.dash-card {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-subtle-spec);
  border-radius: var(--spec-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card-spec);
  transition: box-shadow var(--duration-normal) var(--ease-standard),
              transform var(--duration-normal) var(--ease-standard);
}

.dash-card--nested {
  background: var(--bg-surface-secondary);
  border-radius: var(--spec-radius-md);
  box-shadow: none;
  padding: var(--space-md);
}

.dash-card--hero {
  background: var(--bg-accent-hero);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--spec-radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.dash-card--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.dash-card--inverse {
  background: var(--bg-surface-inverse);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--spec-radius-lg);
  padding: var(--space-lg);
}

[data-theme="dark"] .dash-card--inverse {
  background: #1E232D;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card padding variants */
.dash-card--pad-sm { padding: 12px; }
.dash-card--pad-md { padding: 16px; }
.dash-card--pad-lg { padding: 24px; }
.dash-card--pad-xl { padding: 32px; }

/* Card elevation */
.dash-card--elev-none { box-shadow: none; }
.dash-card--elev-low { box-shadow: var(--shadow-card-spec); }
.dash-card--elev-high { box-shadow: var(--shadow-card-hover-spec); }

.dash-card--hover:hover {
  box-shadow: var(--shadow-card-hover-spec);
  transform: translateY(-2px);
}

/* ============================================================
   METRIC CARDS — KPI displays with trend badges
   ============================================================ */
.metric-card {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-subtle-spec);
  border-radius: var(--spec-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card-spec);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: box-shadow var(--duration-normal) var(--ease-standard),
              transform var(--duration-normal) var(--ease-standard);
}

.metric-card:hover {
  box-shadow: var(--shadow-card-hover-spec);
  transform: translateY(-2px);
}

.metric-card--hero {
  background: var(--bg-accent-hero);
  color: var(--text-inverse);
  border: none;
}

.metric-card--inverse {
  background: var(--bg-surface-inverse);
  color: var(--text-inverse);
  border: none;
}

[data-theme="dark"] .metric-card--inverse {
  background: #1E232D;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.metric-card__label {
  font-size: var(--type-caption);
  font-weight: var(--type-caption-weight);
  text-transform: uppercase;
  letter-spacing: var(--type-heading-caps-tracking);
  opacity: 0.8;
}

.metric-card__value {
  font-size: var(--type-display-md);
  font-weight: 800;
  letter-spacing: var(--type-display-md-tracking);
  line-height: var(--type-display-md-leading);
}

.metric-card__context {
  font-size: var(--type-caption);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.metric-card--hero .metric-card__context,
.metric-card--inverse .metric-card__context {
  opacity: 0.7;
}

/* ============================================================
   TREND PILLS — Delta indicator badges
   ============================================================ */
.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--spec-radius-full);
  font-size: var(--type-caption);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.trend-pill--positive {
  background: var(--status-success-bg);
  color: var(--status-success-text);
}

.trend-pill--negative {
  background: var(--status-negative-bg);
  color: var(--status-negative-text);
}

.trend-pill--neutral {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
}

.trend-pill__icon {
  font-size: 0.75em;
  line-height: 1;
}

/* ============================================================
   PILL GROUP — Multi-option selector / date filter
   ============================================================ */
.pill-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: var(--spec-radius-full);
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle-spec);
}

.pill-group__item {
  padding: 6px 16px;
  border-radius: var(--spec-radius-full);
  font-size: var(--type-body-md);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}

.pill-group__item:hover {
  color: var(--text-primary);
}

.pill-group__item--active {
  background: var(--bg-surface-primary);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-card-spec);
}

/* ============================================================
   DASHBOARD SECTION HEADER
   ============================================================ */
.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.dash-section-header__title {
  font-size: var(--type-display-md);
  font-weight: var(--type-display-md-weight);
  letter-spacing: var(--type-display-md-tracking);
  color: var(--text-primary);
}

.dash-section-header__subtitle {
  font-size: var(--type-body-md);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================================================
   HEADING CAPS — Uppercase tracked label
   ============================================================ */
.heading-caps {
  font-size: var(--type-heading-caps);
  font-weight: var(--type-heading-caps-weight);
  letter-spacing: var(--type-heading-caps-tracking);
  text-transform: var(--type-heading-caps-transform);
  line-height: var(--type-heading-caps-leading);
}

/* ============================================================
   ENTERPRISE DASHBOARD SPEC — Data Visualization Components
   Lightweight CSS-based charts (no external dependencies)
   ============================================================ */

/* ---- Rounded Categorical Bar Graph ---- */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: var(--space-md) 0;
  position: relative;
}

.bar-chart__grid-lines {
  position: absolute;
  inset: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.bar-chart__grid-line {
  width: 100%;
  border-top: 1px dashed var(--border-subtle-spec);
  opacity: 0.5;
}

.bar-chart__bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.bar-chart__bar {
  width: 100%;
  max-width: 48px;
  border-radius: var(--spec-radius-sm);
  min-height: 4px;
  transition: height 0.6s var(--ease-spring), opacity var(--duration-fast) var(--ease-standard);
  background: var(--brand-coral);
}

.bar-chart__bar--yellow { background: var(--brand-yellow); }
.bar-chart__bar--purple { background: var(--brand-purple); }
.bar-chart__bar--green { background: var(--brand-green); }
.bar-chart__bar--blue { background: var(--color-primary); }

.bar-chart__bar:hover { opacity: 0.85; }

.bar-chart__label {
  font-size: var(--type-caption);
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bar-chart__value {
  font-size: var(--type-caption);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* ---- Semi-Circular Arc Gauge ---- */
.arc-gauge {
  position: relative;
  width: 200px;
  height: 120px;
  margin: 0 auto;
}

.arc-gauge__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.arc-gauge__track {
  fill: none;
  stroke: var(--bg-surface-secondary);
  stroke-width: 12;
  stroke-linecap: round;
}

.arc-gauge__fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease-spring);
}

.arc-gauge__fill--gradient {
  stroke: url(#arcGradient);
}

.arc-gauge__needle {
  transition: transform 0.8s var(--ease-spring);
  transform-origin: center;
}

.arc-gauge__needle-dot {
  fill: var(--brand-green);
  filter: drop-shadow(0 0 8px rgba(38, 201, 135, 0.6));
}

.arc-gauge__value {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.arc-gauge__number {
  font-size: var(--type-display-md);
  font-weight: 800;
  letter-spacing: var(--type-display-md-tracking);
  color: var(--text-primary);
  line-height: 1;
}

.arc-gauge__label {
  font-size: var(--type-caption);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---- Sparkline (inline mini chart) ---- */
.sparkline {
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  height: 24px;
}

.sparkline__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparkline__line {
  fill: none;
  stroke: var(--brand-coral);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline__area {
  fill: var(--brand-coral);
  opacity: 0.12;
  stroke: none;
}

.sparkline__dot {
  fill: var(--brand-coral);
}

.sparkline--green .sparkline__line { stroke: var(--brand-green); }
.sparkline--green .sparkline__area { fill: var(--brand-green); }
.sparkline--green .sparkline__dot { fill: var(--brand-green); }

.sparkline--yellow .sparkline__line { stroke: var(--brand-yellow); }
.sparkline--yellow .sparkline__area { fill: var(--brand-yellow); }
.sparkline--yellow .sparkline__dot { fill: var(--brand-yellow); }

.sparkline--purple .sparkline__line { stroke: var(--brand-purple); }
.sparkline--purple .sparkline__area { fill: var(--brand-purple); }
.sparkline--purple .sparkline__dot { fill: var(--brand-purple); }

/* ---- Progress Ring (circular indicator) ---- */
.progress-ring {
  position: relative;
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.progress-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring__track {
  fill: none;
  stroke: var(--bg-surface-secondary);
  stroke-width: 6;
}

.progress-ring__fill {
  fill: none;
  stroke: var(--brand-coral);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease-spring);
}

.progress-ring__fill--green { stroke: var(--brand-green); }
.progress-ring__fill--yellow { stroke: var(--brand-yellow); }
.progress-ring__fill--purple { stroke: var(--brand-purple); }

.progress-ring__label {
  position: absolute;
  font-size: var(--type-body-md);
  font-weight: 700;
  color: var(--text-primary);
}

/* ---- Horizontal stat bar (for dashboard cards) ---- */
.stat-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.stat-bar__track {
  flex: 1;
  height: 6px;
  background: var(--bg-surface-secondary);
  border-radius: var(--spec-radius-full);
  overflow: hidden;
}

.stat-bar__fill {
  height: 100%;
  border-radius: var(--spec-radius-full);
  background: var(--brand-coral);
  transition: width 0.6s var(--ease-spring);
}

.stat-bar__fill--green { background: var(--brand-green); }
.stat-bar__fill--yellow { background: var(--brand-yellow); }
.stat-bar__fill--purple { background: var(--brand-purple); }

.stat-bar__value {
  font-size: var(--type-caption);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 36px;
  text-align: right;
}

/* ============================================================
   RANGE SLIDER — Swipe/Slide Input for Bounded Values
   Used by: workforce-optimizer time splits and decision count
   ============================================================ */

.slider-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-input__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-input__label {
  font-size: var(--type-body-md);
  font-weight: 600;
  color: var(--text-primary);
}

.slider-input__desc {
  font-size: var(--type-caption);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.slider-input__value {
  font-size: var(--type-body-md);
  font-weight: 700;
  color: var(--brand-coral);
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Range slider track and thumb styling */
.slider-input__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--spec-radius-full);
  background: var(--bg-surface-secondary);
  outline: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard);
}

.slider-input__range:hover {
  background: var(--bg-surface-secondary);
}

/* WebKit thumb */
.slider-input__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: var(--spec-radius-full);
  background: var(--brand-coral);
  border: 3px solid var(--bg-surface-primary);
  box-shadow: 0 2px 8px rgba(255, 84, 46, 0.3);
  cursor: grab;
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.slider-input__range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 84, 46, 0.4);
}

.slider-input__range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

/* Firefox thumb */
.slider-input__range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: var(--spec-radius-full);
  background: var(--brand-coral);
  border: 3px solid var(--bg-surface-primary);
  box-shadow: 0 2px 8px rgba(255, 84, 46, 0.3);
  cursor: grab;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.slider-input__range::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Focus ring */
.slider-input__range:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 84, 46, 0.2);
}

/* Disabled state */
.slider-input__range:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slider-input__range:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}

/* Tick marks under slider (optional) */
.slider-input__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 2px;
}

.slider-input__tick {
  font-size: 10px;
  color: var(--text-muted);
}

/* Dollar input wrapper — for unbounded dollar values */
.dollar-input {
  position: relative;
  display: flex;
  align-items: center;
}

.dollar-input__prefix {
  position: absolute;
  left: 14px;
  font-size: var(--type-body-md);
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.dollar-input__input {
  width: 100%;
  padding: 10px 14px 10px 28px;
  border: 2px solid var(--border-subtle-spec);
  border-radius: var(--spec-radius-sm);
  font-size: var(--type-body-md);
  font-family: var(--font-sans);
  background: var(--bg-surface-primary);
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-standard);
  font-variant-numeric: tabular-nums;
}

.dollar-input__input:focus {
  outline: none;
  border-color: var(--brand-coral);
}

/* ============================================================
   CARD SELECT — Card-based selection grid (replaces dropdowns)
   ============================================================ */
.card-select {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .card-select { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-select { grid-template-columns: repeat(3, 1fr); }
}

.card-select__option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 2px solid var(--border-subtle-spec);
  border-radius: var(--spec-radius-md);
  background: var(--bg-surface-primary);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  text-align: left;
  width: 100%;
  font-family: inherit;
  position: relative;
}

.card-select__option:hover {
  border-color: var(--brand-coral);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-spec);
}

.card-select__option--selected {
  border-color: var(--brand-coral);
  background: rgba(0, 102, 255, 0.04);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.25), 0 0 0 1px var(--brand-coral);
}

.card-select__option--selected::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: var(--spec-radius-full);
  background: var(--brand-coral);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.card-select__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--spec-radius-sm);
  background: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  color: var(--brand-coral);
}

.card-select__option--selected .card-select__icon {
  background: rgba(0, 102, 255, 0.12);
}

.card-select__body {
  flex: 1;
  min-width: 0;
}

.card-select__title {
  font-size: var(--type-body-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.card-select__desc {
  font-size: var(--type-caption);
  color: var(--text-muted);
  line-height: 1.4;
}

