/* ══════════════════════════════════════════════════════════════
   00_tokens.css — Design System Token Re-exports
   
   The --ds-* token values are defined in design_tokens.css (:root).
   This file re-exports them so individual DS modules resolve against
   a fallback that matches the real token values at rest in dev tools.
   
   Theme overrides (.style-apex-dark, .palette-*) live in
   design_tokens.css and cascade into all --ds-* aliases.
   ══════════════════════════════════════════════════════════════ */

/* ── Colors ── */
:root {
  --ds-color-primary: var(--color-primary, #6366f1);
  --ds-color-primary-hover: var(--color-primary-hover, #4f46e5);
  --ds-color-primary-light: var(--color-primary-light, rgba(99,102,241,0.15));
  --ds-color-primary-subtle: var(--color-primary-subtle, rgba(99,102,241,0.06));
  --ds-color-secondary: var(--color-secondary, #818cf8);
  --ds-color-success: var(--color-success, #059669);
  --ds-color-success-hover: var(--color-success-hover, #047857);
  --ds-color-success-light: var(--color-success-light, rgba(5,150,105,0.15));
  --ds-color-success-subtle: var(--color-success-subtle, rgba(5,150,105,0.06));
  --ds-color-warning: var(--color-warning, #d97706);
  --ds-color-warning-hover: var(--color-warning-hover, #b45309);
  --ds-color-warning-light: var(--color-warning-light, rgba(217,119,6,0.15));
  --ds-color-warning-subtle: var(--color-warning-subtle, rgba(217,119,6,0.06));
  --ds-color-danger: var(--color-danger, #e11d48);
  --ds-color-danger-hover: var(--color-danger-hover, #be123c);
  --ds-color-danger-light: var(--color-danger-light, rgba(225,29,72,0.15));
  --ds-color-danger-subtle: var(--color-danger-subtle, rgba(225,29,72,0.06));
  --ds-color-info: var(--color-info, #0891b2);
  --ds-color-info-light: var(--color-info-light, rgba(8,145,178,0.15));

  /* ── Surfaces ── */
  --ds-surface-page: var(--surface-page, #0b1120);
  --ds-surface-card: var(--surface-card, rgba(255,255,255,0.02));
  --ds-surface-card-hover: var(--surface-card-hover, rgba(255,255,255,0.06));
  --ds-surface-elevated: var(--surface-elevated, rgba(255,255,255,0.06));
  --ds-surface-overlay: var(--surface-overlay, rgba(255,255,255,0.04));
  --ds-surface-border: var(--surface-border, rgba(255,255,255,0.06));
  --ds-surface-border-hover: var(--surface-border-hover, rgba(255,255,255,0.1));

  /* ── Text ── */
  --ds-text-primary: var(--text-primary, #e2e8f0);
  --ds-text-secondary: var(--text-secondary, #94a3b8);
  --ds-text-muted: var(--text-muted, #64748b);
  --ds-text-inverse: var(--text-inverse, #ffffff);
  --ds-text-link: var(--text-link, #818cf8);

  /* ── Spacing ── */
  --ds-space-xs: var(--spacing-xs, 4px);
  --ds-space-sm: var(--spacing-sm, 8px);
  --ds-space-md: var(--spacing-md, 16px);
  --ds-space-lg: var(--spacing-lg, 24px);
  --ds-space-xl: var(--spacing-xl, 32px);
  --ds-space-2xl: var(--spacing-2xl, 48px);
  --ds-space-3xl: var(--spacing-3xl, 64px);
  --ds-space-4xl: var(--spacing-4xl, 96px);

  /* ── Border Radius ── */
  --ds-radius-sm: var(--radius-sm, 6px);
  --ds-radius-md: var(--radius-md, 12px);
  --ds-radius-lg: var(--radius-lg, 16px);
  --ds-radius-xl: var(--radius-xl, 20px);
  --ds-radius-full: var(--radius-full, 9999px);

  /* ── Shadows ── */
  --ds-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.2));
  --ds-shadow-md: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.3));
  --ds-shadow-lg: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.4));

  /* ── Typography Scale ── */
  --ds-font-display-kpi: var(--font-display-kpi, 48px);
  --ds-font-page-title: var(--font-page-title, 40px);
  --ds-font-section-title: var(--font-section-title, 32px);
  --ds-font-card-title: var(--font-card-title, 22px);
  --ds-font-subheading: var(--font-subheading, 18px);
  --ds-font-body: var(--font-body, 16px);
  --ds-font-supporting: var(--font-supporting, 15px);
  --ds-font-caption: var(--font-caption, 13px);
  --ds-font-micro: var(--font-micro, 11px);

  /* ── Font Weights ── */
  --ds-font-weight-normal: var(--font-weight-normal, 400);
  --ds-font-weight-medium: var(--font-weight-medium, 500);
  --ds-font-weight-semibold: var(--font-weight-semibold, 600);
  --ds-font-weight-bold: var(--font-weight-bold, 700);
  --ds-font-weight-extrabold: var(--font-weight-extrabold, 800);

  /* ── Letter Spacing ── */
  --ds-letter-spacing-tight: var(--letter-spacing-tight, -0.03em);
  --ds-letter-spacing-normal: var(--letter-spacing-normal, 0);
  --ds-letter-spacing-wide: var(--letter-spacing-wide, 0.08em);
  --ds-letter-spacing-wider: var(--letter-spacing-wider, 0.5px);

  /* ── Line Height ── */
  --ds-line-height-tight: var(--line-height-tight, 1.1);
  --ds-line-height-normal: var(--line-height-normal, 1.5);
  --ds-line-height-relaxed: var(--line-height-relaxed, 1.7);

  /* ── Transitions ── */
  --ds-transition-fast: var(--transition-fast, 0.15s);
  --ds-transition-normal: var(--transition-normal, 0.25s);
  --ds-transition-slow: var(--transition-slow, 0.35s);

  /* ── Component Sizing ── */
  --ds-btn-height: var(--btn-height, 44px);
  --ds-input-height: var(--input-height, 48px);
  --ds-card-padding: var(--card-padding, 28px);
  --ds-card-padding-lg: var(--card-padding-lg, 36px);
  --ds-section-spacing: var(--section-spacing, 64px);
  --ds-section-spacing-lg: var(--section-spacing-lg, 96px);
}
/* ══════════════════════════════════════════════════════════════
   01_typography.css — Design System Typography Scale
   ══════════════════════════════════════════════════════════════ */

/* ── Display KPI ── */
.ds-display-kpi {
  font-size: var(--ds-font-display-kpi, 48px);
  font-weight: var(--ds-font-weight-extrabold, 800);
  line-height: var(--ds-line-height-tight, 1);
  letter-spacing: var(--ds-letter-spacing-tight, -0.03em);
}

/* ── Page Title ── */
.ds-page-title {
  font-size: var(--ds-font-page-title, 40px);
  font-weight: var(--ds-font-weight-extrabold, 800);
  line-height: var(--ds-line-height-tight, 1.1);
  letter-spacing: var(--ds-letter-spacing-tight, -0.02em);
}

/* ── Section Title ── */
.ds-section-title {
  font-size: var(--ds-font-section-title, 32px);
  font-weight: var(--ds-font-weight-bold, 700);
  line-height: var(--ds-line-height-tight, 1.15);
  letter-spacing: var(--ds-letter-spacing-tight, -0.015em);
}

/* ── Card Title ── */
.ds-card-title {
  font-size: var(--ds-font-card-title, 22px);
  font-weight: var(--ds-font-weight-bold, 700);
}

/* ── Subheading ── */
.ds-subheading {
  font-size: var(--ds-font-subheading, 18px);
  font-weight: var(--ds-font-weight-semibold, 600);
}

/* ── Body ── */
.ds-body {
  font-size: var(--ds-font-body, 16px);
  line-height: var(--ds-line-height-relaxed, 1.7);
  color: var(--ds-text-secondary, rgba(255,255,255,0.55));
}

/* ── Supporting ── */
.ds-supporting {
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-muted, rgba(255,255,255,0.3));
}

/* ── Caption ── */
.ds-caption {
  font-size: var(--ds-font-caption, 13px);
  color: var(--ds-text-muted, rgba(255,255,255,0.25));
}

/* ── Legacy .exec-* typography aliases ── */
.exec-kpi { font-size: var(--ds-font-display-kpi, 48px); font-weight: var(--ds-font-weight-extrabold, 800); line-height: var(--ds-line-height-tight, 1); letter-spacing: var(--ds-letter-spacing-tight, -0.03em); }
.exec-kpi-medium { font-size: var(--ds-font-page-title, 40px); }
.exec-kpi-small { font-size: var(--ds-font-section-title, 32px); }
.exec-label { font-size: var(--ds-font-supporting, 15px); font-weight: var(--ds-font-weight-medium, 500); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ds-text-muted, rgba(255,255,255,0.35)); }
.exec-title { font-size: var(--ds-font-card-title, 22px); font-weight: var(--ds-font-weight-bold, 700); color: var(--ds-text-primary, #ffffff); }
.exec-subtitle { font-size: var(--ds-font-body, 16px); color: var(--ds-text-muted, rgba(255,255,255,0.35)); }
.exec-body { font-size: var(--ds-font-body, 16px); color: var(--ds-text-secondary, rgba(255,255,255,0.55)); line-height: var(--ds-line-height-relaxed, 1.7); }
.exec-metric-label { font-size: var(--ds-font-supporting, 15px); color: var(--ds-text-muted, rgba(255,255,255,0.3)); margin-bottom: 4px; }
.exec-metric-value { font-size: var(--ds-font-body, 16px); font-weight: var(--ds-font-weight-bold, 700); color: var(--ds-text-primary, #ffffff); }

/* ── DS: KPI value / label / subtext ── */
.ds-kpi-value {
  font-size: var(--ds-font-display-kpi, 48px);
  font-weight: var(--ds-font-weight-extrabold, 800);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ds-kpi-label {
  font-size: var(--ds-font-supporting, 15px);
  font-weight: var(--ds-font-weight-medium, 500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.ds-kpi-subtext {
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-muted, rgba(255,255,255,0.25));
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ds-display-kpi, .exec-kpi { font-size: 36px; }
  .ds-page-title { font-size: 28px; }
  .ds-section-title { font-size: 24px; }
  .ds-card-title { font-size: 18px; }
}
/* ══════════════════════════════════════════════════════════════
   02_layout.css — Design System Layout
   ══════════════════════════════════════════════════════════════ */

/* ── Grid Layouts ── */
.exec-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-space-lg, 24px);
}
.exec-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ds-space-md, 16px);
}
@media (max-width: 768px) {
  .exec-grid-2, .exec-grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .exec-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── Section Spacing ── */
.ds-section {
  margin-bottom: var(--ds-section-spacing, 64px);
}
.ds-section-lg {
  margin-bottom: var(--ds-section-spacing-lg, 96px);
}

/* ── Cell (inside cards) ── */
.exec-cell {
  padding: var(--ds-space-md, 16px);
  border-radius: var(--ds-radius-md, 12px);
  background: var(--ds-surface-overlay, rgba(255,255,255,0.03));
}
/* ══════════════════════════════════════════════════════════════
   03_buttons.css — Design System Buttons
   ══════════════════════════════════════════════════════════════ */

.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--ds-btn-height, 44px);
  padding: 8px 22px;
  border-radius: var(--ds-radius-md, 12px);
  font-size: var(--ds-font-body, 16px);
  font-weight: var(--ds-font-weight-semibold, 600);
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.ds-btn:hover {
  transform: translateY(-1px);
}
.ds-btn:active {
  transform: translateY(0);
}

.ds-btn-primary {
  background: var(--ds-color-primary, #6366f1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.ds-btn-primary:hover {
  background: var(--ds-color-primary-hover, #4f46e5);
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.ds-btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  color: var(--ds-text-primary, #fff);
}
.ds-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--ds-surface-border-hover, rgba(255,255,255,0.12));
}

.ds-btn-ghost {
  background: transparent;
  color: var(--ds-text-secondary, rgba(255,255,255,0.5));
}
.ds-btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  color: var(--ds-text-primary, #fff);
}

.ds-btn-success {
  background: var(--ds-color-success, #059669);
  color: #fff;
}
.ds-btn-success:hover {
  background: var(--ds-color-success-hover, #047857);
}

.ds-btn-danger {
  background: var(--ds-color-danger, #e11d48);
  color: #fff;
}
.ds-btn-danger:hover {
  background: var(--ds-color-danger-hover, #be123c);
}

/* ── Size Variants ── */
.ds-btn-sm {
  min-height: 36px;
  padding: 6px 16px;
  font-size: var(--ds-font-supporting, 15px);
}
.ds-btn-lg {
  min-height: 52px;
  padding: 12px 28px;
  font-size: var(--ds-font-body, 16px);
  font-weight: var(--ds-font-weight-bold, 700);
}
/* ══════════════════════════════════════════════════════════════
   04_cards.css — Design System Cards
   ══════════════════════════════════════════════════════════════ */

/* ── Card Shell ── */
.exec-card {
  border-radius: var(--ds-radius-lg, 14px);
  padding: var(--ds-card-padding, 28px);
  transition: all var(--ds-transition-normal, 0.25s) ease;
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.08));
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.exec-card:hover {
  transform: translateY(-1px);
  border-color: var(--ds-surface-border-hover, rgba(255,255,255,0.15));
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Hover must NEVER affect text or icon opacity ── */
.exec-card:hover *,
.exec-card:hover i,
.exec-card:hover span,
.exec-card:hover h1, .exec-card:hover h2, .exec-card:hover h3,
.exec-card:hover h4, .exec-card:hover p {
  opacity: 1 !important;
  color: inherit;
}
body.style-colorblind .exec-card {
  border-width: 2px;
  border-radius: 8px;
}

/* ── Card Size Variants ── */
.exec-card-sm {
  padding: var(--ds-space-lg, 24px);
}
.exec-card-lg {
  padding: var(--ds-card-padding-lg, 36px);
}

/* ── KPI Card ── */
.ds-kpi-card {
  border-radius: var(--ds-radius-lg, 14px);
  padding: var(--ds-card-padding, 24px);
  text-align: center;
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.08));
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  transition: all var(--ds-transition-normal, 0.25s) ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.ds-kpi-card:hover {
  transform: translateY(-1px);
  border-color: var(--ds-surface-border-hover, rgba(255,255,255,0.15));
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Hover must NEVER affect KPI text or icon opacity ── */
.ds-kpi-card:hover *,
.ds-kpi-card:hover .kpi-label,
.ds-kpi-card:hover .kpi-value,
.ds-kpi-card:hover i {
  opacity: 1 !important;
  color: inherit;
}

/* ── Glassmorphism Card ── */
.ds-glass {
  background: rgba(15, 20, 40, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: var(--ds-radius-lg, 16px) !important;
}
body.theme-ai-futuristic .ds-glass {
  background: rgba(10, 14, 30, 0.7) !important;
  border-color: rgba(79, 124, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(79, 124, 255, 0.06) !important;
}
body.theme-ai-futuristic .ds-glass:hover {
  box-shadow: 0 8px 30px rgba(79, 124, 255, 0.12), 0 0 20px rgba(79, 124, 255, 0.1) !important;
}

/* ── Selectable Card ── */
.selectable-card {
  cursor: pointer;
  border-radius: var(--ds-radius-lg, 16px);
  padding: var(--ds-card-padding, 12px);
  transition: all 0.2s ease;
  user-select: none;
  outline: none;
}
.selectable-card:focus-visible {
  outline: 2px solid var(--ds-color-primary, #6366f1);
  outline-offset: 2px;
}
.selectable-card[data-selected="true"] {
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.06);
}
.selectable-card[data-selected="true"] .selectable-check {
  opacity: 1;
  transform: scale(1);
}
.selectable-card[data-selected="false"] .selectable-check {
  opacity: 0;
  transform: scale(0.5);
}
.selectable-card[data-selected="false"] {
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: rgba(255, 255, 255, 0.02);
}
.selectable-card[data-selected="false"]:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.03);
}
body.style-colorblind .selectable-card[data-selected="true"] {
  border-width: 2px;
  border-style: solid;
}
body.theme-ai-futuristic .selectable-card[data-selected="true"] {
  border-color: rgba(79, 124, 255, 0.4);
  background: rgba(79, 124, 255, 0.08);
}
body.theme-high-contrast .selectable-card[data-selected="true"] {
  border: 2px solid #60a5fa;
  background: rgba(96, 165, 250, 0.12);
}

/* ── Card Icon Container ── */
.exec-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-md, 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
body.style-colorblind .exec-icon {
  border: 2px solid;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .exec-card { padding: var(--ds-space-lg, 24px); }
  .ds-kpi-card { padding: var(--ds-space-lg, 24px); }
}
/* ══════════════════════════════════════════════════════════════
   05_tables.css — Design System Table Styles
   ══════════════════════════════════════════════════════════════ */
/* Enterprise-grade table styles using Design Tokens */

.ds-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, #e8ecf4);
  background: var(--ds-surface-card, #ffffff);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-primary, #1a1a2e);
}

/* ── Header ── */
.ds-table__head {
  background: var(--ds-surface-page, #f8f9fc);
  border-bottom: 2px solid var(--ds-surface-border, #e8ecf4);
}

.ds-table__header-row {
  border-bottom: 1px solid var(--ds-surface-border, #e8ecf4);
}

.ds-table__header-cell {
  padding: var(--ds-space-md, 16px) var(--ds-space-md, 16px);
  font-weight: 600;
  font-size: var(--ds-font-caption, 13px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-text-secondary, #6b7280);
  text-align: left;
  white-space: nowrap;
}

.ds-table__sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--ds-transition-fast, 0.15s) ease;
}

.ds-table__sort-link:hover {
  color: var(--ds-color-primary, #6c5ce7);
}

/* ── Body ── */
.ds-table__body .ds-table__row {
  border-bottom: 1px solid var(--ds-surface-border, #e8ecf4);
  transition: background var(--ds-transition-fast, 0.15s) ease;
}

.ds-table__body .ds-table__row:last-child {
  border-bottom: none;
}

.ds-table__body .ds-table__row:hover {
  background: var(--ds-color-primary-subtle, rgba(108,92,231,0.03));
}

.ds-table__body .ds-table__row--clickable {
  cursor: pointer;
}

.ds-table__body .ds-table__row--clickable:hover {
  background: var(--ds-color-primary-subtle, rgba(108,92,231,0.06));
}

.ds-table__cell {
  padding: var(--ds-space-sm, 8px) var(--ds-space-md, 16px);
  vertical-align: middle;
}

.ds-table__cell--sticky {
  position: sticky;
  left: 0;
  background: var(--ds-surface-card, #ffffff);
  z-index: 1;
}

/* ── Empty state ── */
.ds-table__empty {
  padding: var(--ds-space-2xl, 48px) var(--ds-space-md, 16px);
  text-align: center;
  color: var(--ds-text-muted, #9ca3af);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ds-table-wrapper {
    border-radius: var(--ds-radius-sm, 6px);
  }
  .ds-table__header-cell,
  .ds-table__cell {
    padding: var(--ds-space-sm, 8px);
  }
}
/* ══════════════════════════════════════════════════════════════
   06_forms.css — Design System Forms & Inputs
   ══════════════════════════════════════════════════════════════ */

.ds-input {
  min-height: var(--ds-input-height, 48px);
  padding: 10px 16px;
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  color: var(--ds-text-primary, #fff);
  font-size: var(--ds-font-body, 16px);
  outline: none;
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.ds-input:focus {
  border-color: var(--ds-color-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.ds-input::placeholder {
  color: var(--ds-text-muted, rgba(255,255,255,0.25));
}

.ds-select {
  min-height: var(--ds-input-height, 48px);
  padding: 10px 40px 10px 16px;
  border-radius: var(--ds-radius-md, 12px);
  border: 1px solid var(--ds-surface-border, rgba(255,255,255,0.06));
  background: var(--ds-surface-card, rgba(255,255,255,0.02));
  color: var(--ds-text-primary, #fff);
  font-size: var(--ds-font-body, 16px);
  font-weight: var(--ds-font-weight-semibold, 600);
  outline: none;
  cursor: pointer;
  transition: all var(--ds-transition-fast, 0.15s) ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ds-select:focus {
  border-color: var(--ds-color-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
/* ══════════════════════════════════════════════════════════════
   07_navigation.css — Design System Navigation Styles
   ══════════════════════════════════════════════════════════════ */
/* Tab bar, section header, and breadcrumb styles using Design Tokens */

/* ── Section Header ── */
.ds-section-header {
  margin-bottom: var(--ds-space-lg, 24px);
}

.ds-section-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-md, 16px);
}

.ds-section-header__titles {
  flex: 1;
}

.ds-section-header__titles > div:first-child {
  display: flex;
  align-items: center;
  gap: var(--ds-space-sm, 8px);
}

.ds-section-header__toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ds-text-muted, #94a3b8);
  padding: 0;
  font-size: var(--ds-font-body, 16px);
}

.ds-section-header__toggle:hover {
  color: var(--ds-text-primary, #1a1a2e);
}

.ds-section-header__actions {
  display: flex;
  gap: var(--ds-space-sm, 8px);
  flex-shrink: 0;
}

/* ── Tab Bar ── */
.ds-tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--ds-surface-border, #e8ecf4);
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ds-tab-bar--sm .ds-tab {
  padding: 8px 14px;
  font-size: var(--ds-font-caption, 13px);
}

.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: var(--ds-font-supporting, 15px);
  font-weight: 500;
  color: var(--ds-text-secondary, #6b7280);
  border: none;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--ds-transition-fast, 0.15s) ease;
  text-decoration: none;
}

.ds-tab:hover {
  color: var(--ds-text-primary, #1a1a2e);
  border-bottom-color: var(--ds-surface-border-hover, #d0d5e0);
}

.ds-tab--active {
  color: var(--ds-color-primary, #6c5ce7);
  border-bottom-color: var(--ds-color-primary, #6c5ce7);
  font-weight: 600;
}

.ds-tab--disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.ds-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: var(--ds-radius-full, 9999px);
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  background: var(--ds-color-primary-light, rgba(108,92,231,0.15));
  color: var(--ds-color-primary, #6c5ce7);
}

.ds-tab__badge--success {
  background: var(--ds-color-success-light, rgba(5,150,105,0.15));
  color: var(--ds-color-success, #059669);
}

.ds-tab__badge--warning {
  background: var(--ds-color-warning-light, rgba(217,119,6,0.15));
  color: var(--ds-color-warning, #d97706);
}

.ds-tab__badge--danger {
  background: var(--ds-color-danger-light, rgba(225,29,72,0.15));
  color: var(--ds-color-danger, #e11d48);
}

/* ── Page Header ── */
.ds-page-header {
  margin-bottom: var(--ds-space-xl, 32px);
}

.ds-page-header__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--ds-space-sm, 8px);
  font-size: var(--ds-font-caption, 13px);
}

.ds-page-header__crumb-link {
  color: var(--ds-text-secondary, #6b7280);
  text-decoration: none;
  transition: color var(--ds-transition-fast, 0.15s) ease;
}

.ds-page-header__crumb-link:hover {
  color: var(--ds-color-primary, #6c5ce7);
}

.ds-page-header__crumb-sep {
  color: var(--ds-text-muted, #9ca3af);
}

.ds-page-header__crumb-current {
  color: var(--ds-text-muted, #9ca3af);
}

.ds-page-header__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-md, 16px);
  flex-wrap: wrap;
}

.ds-page-header__titles {
  flex: 1;
}

.ds-page-header__workspace {
  display: inline-block;
  font-size: var(--ds-font-caption, 13px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ds-color-primary, #6c5ce7);
  margin-bottom: 2px;
}

.ds-page-header__title {
  margin: 0;
}

.ds-page-header__subtitle {
  margin-top: 4px;
}

.ds-page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--ds-space-sm, 8px);
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ds-tab {
    padding: 8px 12px;
    font-size: var(--ds-font-caption, 13px);
  }
  .ds-page-header__row {
    flex-direction: column;
  }
  .ds-page-header__actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* ══════════════════════════════════════════════════════════════
   08_badges.css — Design System Badges
   ══════════════════════════════════════════════════════════════ */

.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 18px;
  border-radius: var(--ds-radius-sm, 6px);
  font-size: var(--ds-font-supporting, 15px);
  font-weight: var(--ds-font-weight-semibold, 600);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.55);
  transition: all var(--ds-transition-fast, 0.15s) ease;
}
.ds-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.04);
  color: #818cf8;
  box-shadow: 0 0 12px rgba(99,102,241,0.08);
}
.ds-badge i {
  font-size: 14px;
}
body.theme-ai-futuristic .ds-badge {
  background: rgba(79, 124, 255, 0.06) !important;
  border-color: rgba(79, 124, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
}
body.theme-ai-futuristic .ds-badge:hover {
  background: rgba(79, 124, 255, 0.1) !important;
  border-color: rgba(79, 124, 255, 0.25) !important;
  box-shadow: 0 0 16px rgba(79, 124, 255, 0.15) !important;
}

/* ── Legacy .exec-* badge aliases ── */
.exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--ds-radius-sm, 6px);
  font-size: var(--ds-font-supporting, 15px);
  font-weight: var(--ds-font-weight-semibold, 600);
}
body.style-colorblind .exec-badge {
  border: 2px solid;
}

/* ── Priority Badges ── */
.exec-priority-p1 { background: rgba(248,113,113,0.15); color: #f87171; }
.exec-priority-p2 { background: rgba(251,191,36,0.15); color: #fbbf24; }
.exec-priority-p3 { background: rgba(96,165,250,0.15); color: #60a5fa; }

/* ── Trend Indicators ── */
.exec-trend-up { color: var(--ds-color-success, #34d399); }
.exec-trend-down { color: var(--ds-color-danger, #f87171); }
.exec-trend-flat { color: var(--ds-text-muted, #94a3b8); }
/* ══════════════════════════════════════════════════════════════
   09_alerts.css — Design System Alerts & Notifications
   ══════════════════════════════════════════════════════════════ */
/* Alert/notification component using Design Tokens */

.ds-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-sm, 8px);
  padding: var(--ds-space-md, 16px);
  border-radius: var(--ds-radius-sm, 6px);
  border: 1px solid;
  border-left-width: 4px;
  font-size: var(--ds-font-supporting, 15px);
  color: var(--ds-text-primary, #1a1a2e);
  line-height: var(--ds-line-height-normal, 1.5);
  transition: opacity var(--ds-transition-fast, 0.15s) ease;
}

.ds-alert--success {
  background: var(--ds-color-success-subtle, rgba(5,150,105,0.06));
  border-color: var(--ds-color-success-light, rgba(5,150,105,0.15));
  border-left-color: var(--ds-color-success, #059669);
}

.ds-alert--error {
  background: var(--ds-color-danger-subtle, rgba(225,29,72,0.06));
  border-color: var(--ds-color-danger-light, rgba(225,29,72,0.15));
  border-left-color: var(--ds-color-danger, #e11d48);
}

.ds-alert--warning {
  background: var(--ds-color-warning-subtle, rgba(217,119,6,0.06));
  border-color: var(--ds-color-warning-light, rgba(217,119,6,0.15));
  border-left-color: var(--ds-color-warning, #d97706);
}

.ds-alert--info {
  background: var(--ds-color-info-light, rgba(8,145,178,0.15));
  border-color: var(--ds-color-info-light, rgba(8,145,178,0.15));
  border-left-color: var(--ds-color-info, #0891b2);
}

.ds-alert__icon {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 2px;
}

.ds-alert--success .ds-alert__icon { color: var(--ds-color-success, #059669); }
.ds-alert--error .ds-alert__icon { color: var(--ds-color-danger, #e11d48); }
.ds-alert--warning .ds-alert__icon { color: var(--ds-color-warning, #d97706); }
.ds-alert--info .ds-alert__icon { color: var(--ds-color-info, #0891b2); }

.ds-alert__content { flex: 1; }

.ds-alert__title {
  font-weight: 600;
  margin-bottom: 2px;
}

.ds-alert__message {
  color: var(--ds-text-secondary, #6b7280);
}

.ds-alert__dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ds-text-muted, #9ca3af);
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  transition: color var(--ds-transition-fast, 0.15s) ease;
}

.ds-alert__dismiss:hover {
  color: var(--ds-text-primary, #1a1a2e);
}

/* Notification toast / flash messages */
.ds-toast {
  position: fixed;
  top: var(--ds-space-lg, 24px);
  right: var(--ds-space-lg, 24px);
  z-index: 9999;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-sm, 8px);
  pointer-events: none;
}

.ds-toast__item {
  pointer-events: auto;
  animation: ds-toast-slide-in 0.3s ease;
}

@keyframes ds-toast-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
/* ══════════════════════════════════════════════════════════════
   10_empty_states.css — Design System Empty States
   ══════════════════════════════════════════════════════════════ */

.exec-decision-cost { background: rgba(248,113,113,0.04); border: 1px solid rgba(248,113,113,0.1); }
.exec-decision-benefit { background: rgba(52,211,153,0.04); border: 1px solid rgba(52,211,153,0.1); }
/* ══════════════════════════════════════════════════════════════
   11_loading.css — Design System Loading & Skeleton Styles
   ══════════════════════════════════════════════════════════════ */

/* ── Skeleton Loading ── */
.ds-skeleton {
  background: linear-gradient(
    90deg,
    var(--ds-surface-overlay, rgba(0,0,0,0.04)) 25%,
    var(--ds-surface-border, #e8ecf4) 50%,
    var(--ds-surface-overlay, rgba(0,0,0,0.04)) 75%
  );
  background-size: 200% 100%;
  animation: ds-skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--ds-radius-sm, 6px);
}

.ds-skeleton--text {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.ds-skeleton--text-sm {
  height: 12px;
  width: 60%;
  margin-bottom: 6px;
}

.ds-skeleton--heading {
  height: 28px;
  width: 40%;
  margin-bottom: 16px;
}

.ds-skeleton--card {
  height: 120px;
  width: 100%;
  border-radius: var(--ds-radius-md, 12px);
}

.ds-skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-full, 9999px);
}

.ds-skeleton--button {
  height: 44px;
  width: 120px;
  border-radius: var(--ds-radius-sm, 6px);
}

.ds-skeleton--kpi {
  height: 80px;
  width: 100%;
  border-radius: var(--ds-radius-md, 12px);
}

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

/* ── Loading Spinner ── */
.ds-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-sm, 8px);
  color: var(--ds-text-secondary, #6b7280);
  font-size: var(--ds-font-supporting, 15px);
}

.ds-spinner__icon {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ds-surface-border, #e8ecf4);
  border-top-color: var(--ds-color-primary, #6c5ce7);
  border-radius: var(--ds-radius-full, 9999px);
  animation: ds-spinner-rotate 0.8s linear infinite;
}

.ds-spinner--sm .ds-spinner__icon {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.ds-spinner--lg .ds-spinner__icon {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

@keyframes ds-spinner-rotate {
  to { transform: rotate(360deg); }
}

/* ── Loading Overlay ── */
.ds-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-surface-overlay, rgba(0,0,0,0.3));
  backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 10;
}

/* ── Progress Bar ── */
.ds-progress {
  width: 100%;
  height: 6px;
  border-radius: var(--ds-radius-full, 9999px);
  background: var(--ds-surface-border, #e8ecf4);
  overflow: hidden;
}

.ds-progress__fill {
  height: 100%;
  border-radius: var(--ds-radius-full, 9999px);
  background: var(--ds-color-primary, #6c5ce7);
  transition: width var(--ds-transition-medium, 0.3s) ease;
}

.ds-progress__fill--success {
  background: var(--ds-color-success, #059669);
}

.ds-progress__fill--warning {
  background: var(--ds-color-warning, #d97706);
}

.ds-progress__fill--danger {
  background: var(--ds-color-danger, #e11d48);
}
/* ══════════════════════════════════════════════════════════════
   12_print.css — Design System Print Styles
   ══════════════════════════════════════════════════════════════ */
/* Print styles — to be populated in Phase 2 */
/* ══════════════════════════════════════════════════════════════
   13_workspace.css — Design System Workspace Layout
   ══════════════════════════════════════════════════════════════ */
/* Workspace layout — to be populated in Phase 2 */
/* ══════════════════════════════════════════════════════════════
   DS: 16 — Coming Soon / Pre-Launch Marketing
   Enterprise Design System – Release 25
   ══════════════════════════════════════════════════════════════ */

/* ── Base Reset (Coming Soon layout only) ── */
.cs-gradient-bg * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.cs-gradient-bg {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0f;
  color: #f1f5f9;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background Gradient ── */
.cs-gradient-bg {
  background: linear-gradient(180deg, #0b0d17 0%, #0a0a0f 40%, #0f111a 100%);
}

/* ── Glow Effect ── */
.cs-glow {
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15), 0 0 80px rgba(72, 157, 249, 0.05);
}

/* ── Duplicate Panel ── */
.cs-duplicate-panel {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 12px;
}

/* ── Error State ── */
.cs-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Section Structure ── */
.cs-section {
  padding: var(--ds-space-3xl) var(--ds-space-lg);
  position: relative;
}
.cs-section:nth-child(even) {
  background: rgba(11, 13, 23, 0.3);
}
.cs-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Section Header Pill ── */
.cs-section-header {
  text-align: center;
  margin-bottom: var(--ds-space-2xl);
}
.cs-label {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-color-primary-subtle);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 11px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-color-secondary);
  text-transform: uppercase;
  letter-spacing: var(--ds-letter-spacing-wide);
  margin-bottom: 12px;
}
.cs-label i {
  margin-right: 6px;
}
.cs-section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--ds-font-weight-extrabold);
  letter-spacing: -0.03em;
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 12px;
}
.cs-section-header p {
  font-size: 16px;
  color: var(--ds-text-secondary, #94a3b8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Section Heading (h2 without wrapper) ── */
.cs-section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--ds-font-weight-extrabold);
  letter-spacing: -0.03em;
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 12px;
}

/* ── Capability Cards (Platform Highlights) ── */
.cs-capability-card {
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-lg);
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-capability-card:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}
.cs-capability-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(72, 157, 249, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cs-capability-icon i {
  color: var(--ds-color-secondary, #818cf8);
  font-size: 16px;
}
.cs-capability-card h3 {
  font-size: 16px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 6px;
}
.cs-capability-card p {
  font-size: 13px;
  color: var(--ds-text-secondary, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

/* ── Resource Cards (Discover) ── */
.cs-resource-card {
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  transition: all var(--ds-transition-fast) ease;
  display: flex;
  flex-direction: column;
  cursor: default;
}
.cs-resource-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}
.cs-resource-thumb {
  height: 160px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(72, 157, 249, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}
.cs-resource-thumb-icon {
  text-align: center;
}
.cs-resource-thumb-icon i {
  font-size: 36px;
  color: var(--ds-color-secondary, #818cf8);
  display: block;
  margin-bottom: 8px;
}
.cs-resource-thumb-icon span {
  font-size: 11px;
  font-weight: 600;
  color: var(--ds-text-secondary, #94a3b8);
}
.cs-resource-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.cs-resource-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cs-resource-head h3 {
  font-size: 15px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0;
}
.cs-resource-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--ds-radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--ds-color-secondary, #818cf8);
  font-weight: var(--ds-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-resource-body p {
  font-size: 13px;
  color: var(--ds-text-secondary, #94a3b8);
  margin: 0 0 auto;
  line-height: 1.5;
}
.cs-resource-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(99, 102, 241, 0.06);
}
.cs-resource-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--ds-radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(99, 102, 241, 0.06);
  color: var(--ds-color-secondary, #818cf8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ds-transition-fast);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}
.cs-resource-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--ds-color-secondary, #818cf8);
}
.cs-resource-btn-outline {
  composes: cs-resource-btn;
  background: transparent;
  color: var(--ds-text-muted, #94a3b8);
}
.cs-resource-btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--ds-color-secondary, #818cf8);
}

/* ── Value Cards (Why APPEX360) ── */
.cs-value-card {
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--ds-radius-lg);
  padding: 28px;
  transition: all var(--ds-transition-fast) ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.cs-value-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.1);
}
.cs-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ds-color-primary, #6366f1), #489df9, var(--ds-color-secondary, #818cf8));
  opacity: 0;
  transition: opacity var(--ds-transition-normal) ease;
}
.cs-value-card:hover::before {
  opacity: 1;
}
.cs-value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-md);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(72, 157, 249, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cs-value-icon i {
  color: var(--ds-color-secondary, #818cf8);
  font-size: 20px;
}
.cs-value-card h3 {
  font-size: 18px;
  font-weight: var(--ds-font-weight-extrabold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 10px;
}
.cs-value-card p {
  font-size: 14px;
  color: var(--ds-text-secondary, #94a3b8);
  line-height: 1.6;
  margin: 0;
}

/* ── Stat Card ── */
.cs-stat-card {
  text-align: center;
  padding: var(--ds-space-lg) var(--ds-space-md);
  border-radius: var(--ds-radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-stat-card:hover {
  background: rgba(99, 102, 241, 0.04);
  border-color: rgba(99, 102, 241, 0.2);
}
.cs-stat-value {
  font-size: 32px;
  font-weight: var(--ds-font-weight-extrabold);
  background: linear-gradient(135deg, var(--ds-color-secondary, #818cf8), #489df9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cs-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ── Glass Card ── */
.cs-glass {
  background: rgba(15, 17, 26, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ── Gradient Text ── */
.cs-gradient-text {
  background: linear-gradient(135deg, var(--ds-text-primary, #f1f5f9) 0%, var(--ds-color-secondary, #818cf8) 50%, #489df9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── CTA Buttons ── */
.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--ds-color-primary, #6366f1), #489df9);
  color: #fff;
  font-size: 15px;
  font-weight: var(--ds-font-weight-bold);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--ds-transition-fast) ease;
  text-decoration: none;
  font-family: inherit;
}
.cs-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.cs-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--ds-transition-fast) ease;
  text-decoration: none;
  font-family: inherit;
}
.cs-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ── Links ── */
.cs-footer-link {
  color: var(--ds-text-muted, #64748b);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--ds-transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cs-footer-link:hover {
  color: var(--ds-color-secondary, #818cf8);
}

/* ── Footer Social Links ── */
.cs-footer-social-link:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #818cf8 !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

/* ── Divider ── */
.cs-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.15), transparent);
  border: none;
}

/* ── Nav Link ── */
.cs-login-link:hover {
  color: var(--ds-color-secondary, #818cf8) !important;
}

/* ── Form Inputs ── */
.cs-form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--ds-transition-fast) ease;
  outline: none;
}
.cs-form-input:focus {
  border-color: var(--ds-color-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.cs-form-input::placeholder {
  color: var(--ds-text-muted, rgba(148, 163, 184, 0.6));
}
.cs-form-input option {
  color: #1a1a2e;
  background: #ffffff;
}
.cs-form-input option:disabled {
  color: var(--ds-text-muted, #94a3b8);
}
.cs-form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-text-secondary, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cs-form-input.cs-has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.cs-form-input.cs-has-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ── Timeline ── */
.cs-timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), rgba(72, 157, 249, 0.4), rgba(99, 102, 241, 0.1));
}
.cs-timeline-row {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  padding-left: 0;
}
.cs-timeline-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.cs-timeline-dot-inner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-timeline-card {
  flex: 1;
  background: rgba(15, 17, 26, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--ds-radius-md);
  padding: 18px 20px;
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-timeline-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(15, 17, 26, 0.7);
}
.cs-timeline-card h3 {
  font-size: 16px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0;
}
.cs-timeline-card p {
  font-size: 13px;
  color: var(--ds-text-secondary, #94a3b8);
  margin: 4px 0 0;
  line-height: 1.5;
}
.cs-timeline-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: var(--ds-radius-full);
  font-weight: var(--ds-font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cs-timeline-date {
  font-size: 12px;
  color: var(--ds-text-muted, #64748b);
}

/* ── Trust Badge ── */
.cs-trust-badge {
  text-align: center;
  padding: var(--ds-space-lg) var(--ds-space-md);
  border-radius: var(--ds-radius-md);
  background: rgba(15, 17, 26, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.08);
  transition: all var(--ds-transition-fast) ease;
  cursor: default;
}
.cs-trust-badge:hover {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(15, 17, 26, 0.7);
}
.cs-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.cs-trust-icon i {
  font-size: 18px;
  color: var(--ds-color-secondary, #818cf8);
}
.cs-trust-badge h3 {
  font-size: 13px;
  font-weight: var(--ds-font-weight-bold);
  color: var(--ds-text-primary, #f1f5f9);
  margin: 0 0 6px;
}
.cs-trust-badge p {
  font-size: 11px;
  color: var(--ds-text-muted, #64748b);
  margin: 0;
  line-height: 1.4;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cs-section-header + [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #discover [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #why-appex360 [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .cs-section {
    padding: var(--ds-space-2xl) var(--ds-space-md);
  }
  .cs-section-header {
    margin-bottom: var(--ds-space-xl);
  }
  .cs-capability-card {
    padding: 20px;
  }
  .cs-stat-value {
    font-size: 24px;
  }
  .cs-stat-card {
    padding: var(--ds-space-md) 12px;
  }
  #enterprise-trust [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  footer [style*="grid-template-columns: 2fr"] {
    grid-template-columns: 1fr !important;
    gap: var(--ds-space-xl) !important;
  }
  footer {
    padding: 40px 16px 24px !important;
  }
}
@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  section { padding: 12px 16px 24px; }
}
@media (max-width: 600px) {
  .cs-section-header + [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  #discover [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  #why-appex360 [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .cs-timeline-row {
    gap: 12px !important;
  }
  .cs-timeline-dot-inner {
    width: 36px !important;
    height: 36px !important;
  }
  .cs-timeline-card h3 {
    font-size: 14px !important;
  }
}
@media (max-width: 480px) {
  .cs-btn-primary, .cs-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  #enterprise-trust [style*="grid-template-columns: repeat(5"] {
    grid-template-columns: 1fr !important;
  }
}
/* ═══════════════════════════════════════════════════════════════════
   APPEX360 Assessment Workspace — Compact Enterprise Layout
   ═══════════════════════════════════════════════════════════════════
   Reduces card height from ~700-900px to ~280-320px.
   3-4 questions visible per screen at 1440px.
   Uses --ds-* tokens throughout. No hardcoded colours.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   APPEX360 Assessment Workspace — Compact Enterprise Layout
   ═══════════════════════════════════════════════════════════════════
   Reduces card height from ~700-900px to ~280-320px.
   3-4 questions visible per screen at 1440px.
   Uses --ds-* tokens throughout. No hardcoded colours.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Container ─────────────────────────────────────────────────── */
.aws-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--ds-bg-primary, #0f172a), var(--ds-bg-secondary, #1e293b));
}

/* ─── Staggered card entrance animation ─────────────────────────── */
@keyframes aws-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aws-card {
  animation: aws-card-in 0.25s ease-out both;
}

/* Stagger each card by index via inline style on the element */
/* style="--card-index: N" in the view generates this */
.aws-card:nth-child(1) { animation-delay: 0.00s; }
.aws-card:nth-child(2) { animation-delay: 0.04s; }
.aws-card:nth-child(3) { animation-delay: 0.08s; }
.aws-card:nth-child(4) { animation-delay: 0.12s; }
.aws-card:nth-child(5) { animation-delay: 0.16s; }
.aws-card:nth-child(6) { animation-delay: 0.20s; }
.aws-card:nth-child(7) { animation-delay: 0.24s; }
.aws-card:nth-child(8) { animation-delay: 0.28s; }
.aws-card:nth-child(9) { animation-delay: 0.32s; }
.aws-card:nth-child(10) { animation-delay: 0.36s; }

/* ─── Premium scrollbar ─────────────────────────────────────────── */
.aws-main::-webkit-scrollbar {
  width: 6px;
}
.aws-main::-webkit-scrollbar-track {
  background: transparent;
}
.aws-main::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
.aws-main::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.15);
}

.aws-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 16px;
}

@media (max-width: 1024px) {
  .aws-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Compact Sidebar ──────────────────────────────────────────── */
.aws-sidebar {
  position: sticky;
  top: 0.75rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aws-cat-card {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.aws-cat-header {
  margin-bottom: 8px;
}

.aws-cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text-primary, #ffffff);
  margin-bottom: 4px;
  line-height: 1.3;
}

.aws-domain-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(167,139,250,0.1);
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.15);
}

.aws-domain-badge i {
  font-size: 9px;
}

.aws-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.aws-ring {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.aws-ring-svg {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.aws-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #818cf8;
}

.aws-count-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text-primary, #ffffff);
  display: block;
  line-height: 1.2;
}

.aws-count-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.aws-progress-bar {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}

.aws-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #818cf8, #a78bfa);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Subtle shimmer on progress fill */
.aws-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: aws-shimmer 2s ease-in-out infinite;
}

@keyframes aws-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Question Dot Grid ───────────────────────────────────────── */
.aws-q-grid {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.aws-q-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-text-primary, #ffffff);
  margin-bottom: 8px;
}

.aws-q-grid-count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.aws-q-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.aws-q-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.5);
  border: 1px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}

.aws-q-dot.current {
  color: #ffffff;
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.3);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(99,102,241,0.15);
}

.aws-q-dot.answered {
  color: #34d399;
}

.aws-q-dot.answered::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
  transition: transform 0.15s ease;
}

.aws-q-dot:hover {
  background: rgba(255,255,255,0.06);
  color: var(--ds-text-primary, #ffffff);
  transform: scale(1.1);
}

.aws-q-dot:active {
  transform: scale(0.95);
}

/* ─── Questions Per Page ──────────────────────────────────────── */
.aws-ppp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.aws-ppp-select {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--ds-text-primary, #ffffff);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.aws-ppp-select option {
  background: #1e293b;
  color: #ffffff;
}

/* ─── Main Workspace ──────────────────────────────────────────── */
.aws-main {
  min-width: 0;
}

.aws-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.aws-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-text-primary, #ffffff);
  line-height: 1.2;
  margin-bottom: 2px;
}

.aws-subhead {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.aws-subhead strong {
  color: rgba(255,255,255,0.7);
}

/* ─── Compact Score Guide ─────────────────────────────────────── */
.aws-score-guide {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.aws-score-guide i {
  font-size: 11px;
  margin-right: 2px;
}

.aws-sg-pill {
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 10px;
}

.sg-1 { background: rgba(248,113,113,0.1); color: #f87171; }
.sg-2 { background: rgba(251,146,60,0.1); color: #fb923c; }
.sg-3 { background: rgba(251,191,36,0.1); color: #fbbf24; }
.sg-4 { background: rgba(52,211,153,0.1); color: #34d399; }
.sg-5 { background: rgba(52,211,153,0.15); color: #34d399; }
.sg-na { background: rgba(148,163,184,0.08); color: #94a3b8; }

/* ─── Compact Question Card ───────────────────────────────────── */
.aws-card {
  border-radius: 10px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(30,41,59,0.6), rgba(30,41,59,0.4));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.aws-card.answered {
  border-color: rgba(52,211,153,0.15);
  background: linear-gradient(135deg, rgba(52,211,153,0.04), rgba(30,41,59,0.4));
}

.aws-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.aws-card:has(.aws-score-pill:focus-within) {
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 0 0 1px rgba(99,102,241,0.1);
}

.aws-card-body {
  padding: 10px 12px;
}

/* ─── Question Row ────────────────────────────────────────────── */
.aws-q-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.aws-q-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(99,102,241,0.1);
  color: #818cf8;
  transition: all 0.15s;
}

.aws-q-num.done {
  background: rgba(52,211,153,0.1);
  color: #34d399;
}

.aws-q-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ds-text-primary, #ffffff);
  font-weight: 500;
  margin: 0;
  flex: 1;
}

.aws-check {
  color: #34d399;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Score Pills — Compact, Touch-Friendly ───────────────────── */
.aws-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.aws-score-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.aws-score-pill:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.05);
  transform: translateY(-1px);
}

.aws-score-pill:active {
  transform: translateY(0px);
  transition-duration: 0.05s;
}

.aws-score-pill.selected-1,
.aws-score-pill.selected-2,
.aws-score-pill.selected-3,
.aws-score-pill.selected-4,
.aws-score-pill.selected-5,
.aws-score-pill.selected-na {
  transform: scale(1.02);
}

.aws-score-pill.selected-1 {
  border-color: rgba(248,113,113,0.35);
  background: rgba(248,113,113,0.08);
  color: #f87171;
}

.aws-score-pill.selected-2 {
  border-color: rgba(251,146,60,0.35);
  background: rgba(251,146,60,0.08);
  color: #fb923c;
}

.aws-score-pill.selected-3 {
  border-color: rgba(251,191,36,0.35);
  background: rgba(251,191,36,0.08);
  color: #fbbf24;
}

.aws-score-pill.selected-4 {
  border-color: rgba(52,211,153,0.35);
  background: rgba(52,211,153,0.08);
  color: #34d399;
}

.aws-score-pill.selected-5 {
  border-color: rgba(52,211,153,0.4);
  background: rgba(52,211,153,0.1);
  color: #34d399;
}

.aws-score-pill.selected-na {
  border-color: rgba(148,163,184,0.25);
  background: rgba(148,163,184,0.06);
  color: #94a3b8;
}

.aws-pill-value {
  font-weight: 700;
  font-size: 13px;
}

.aws-pill-label {
  font-size: 11px;
  opacity: 0.6;
}

/* ─── Evidence + Comments Row ─────────────────────────────────── */
.aws-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

@media (max-width: 640px) {
  .aws-input-row {
    grid-template-columns: 1fr;
  }
}

.aws-input-group {
  position: relative;
}

.aws-input-icon {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  pointer-events: none;
}

.aws-textarea {
  width: 100%;
  padding: 6px 8px 6px 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.4;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}

.aws-textarea:focus {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.03);
}

.aws-textarea::placeholder {
  color: rgba(255,255,255,0.15);
}

/* Auto-expand — grow height when user types */
.aws-textarea:not(:placeholder-shown) {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
}

/* ─── Attachments Accordion ────────────────────────────────────── */
.aws-attach {
  margin-top: 0;
  border: none;
}

.aws-attach-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
  list-style: none;
  user-select: none;
}

.aws-attach-summary::-webkit-details-marker {
  display: none;
}

.aws-attach-summary:hover {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.03);
}

.aws-attach-summary i {
  font-size: 11px;
}

.aws-attach-hint {
  opacity: 0.5;
  font-size: 11px;
}

.aws-attach-body {
  padding: 8px 0 0 0;
}

/* ─── Compact Sticky Footer ────────────────────────────────────── */
.aws-footer {
  position: sticky;
  bottom: 0.5rem;
  margin-top: 8px;
}

.aws-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(15,23,42,0.95);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.aws-footer-left,
.aws-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.aws-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  border: 1px solid transparent;
  line-height: 1.3;
}

.aws-btn i {
  font-size: 11px;
}

.aws-btn-ghost {
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.06);
}

.aws-btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}

.aws-btn-draft {
  background: rgba(99,102,241,0.1);
  color: #818cf8;
  border-color: rgba(99,102,241,0.2);
}

.aws-btn-draft:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
}

.aws-btn-primary {
  background: #818cf8;
  color: #ffffff;
  border-color: rgba(99,102,241,0.3);
}

.aws-btn-primary:hover {
  background: #6d78f4;
}

.aws-btn-complete {
  background: #34d399;
  color: #0f172a;
  border-color: rgba(52,211,153,0.25);
}

.aws-btn-complete:hover {
  background: #2ec98d;
}

.aws-counter {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

.aws-status {
  font-size: 12px;
  text-align: center;
  flex: 1;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aws-sidebar {
    position: static;
  }

  .aws-heading {
    font-size: 18px;
  }

  .aws-card-body {
    padding: 8px 10px;
  }

  .aws-score-row {
    gap: 3px;
  }

  .aws-score-pill {
    padding: 4px 8px;
    font-size: 12px;
  }

  .aws-footer-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
}

/* ─── WCAG Focus Styles ───────────────────────────────────────── */
.aws-btn:focus-visible,
.aws-score-pill:focus-within,
.aws-q-dot:focus-visible,
.aws-ppp-select:focus-visible,
.aws-textarea:focus-visible,
.aws-attach-summary:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 2px;
}

.aws-score-pill:focus-within {
  outline: 2px solid #818cf8;
  outline-offset: 1px;
}

/* ─── Take Page Button Classes (CSP-compliant, no inline handlers) ── */
.take-btn-ghost {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.15s ease;
}
.take-btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

.take-btn-primary {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(96,165,250,0.1);
  color: #60a5fa;
  border: 1px solid rgba(96,165,250,0.2);
  cursor: pointer;
  transition: background 0.15s ease;
}
.take-btn-primary:hover {
  background: rgba(96,165,250,0.2);
}

.take-btn-clear {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  transition: color 0.15s ease;
}
.take-btn-clear:hover {
  color: rgba(255,255,255,0.7);
}

/* ─── Category Card Staggered Animation ────────────────────────── */
@keyframes cat-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#categoryGrid > a {
  animation: cat-card-in 0.35s ease-out both;
}

/* Stagger via inline style --cat-index set on each card */
/* nth-child fallback */
#categoryGrid > a:nth-child(1)  { animation-delay: 0.00s; }
#categoryGrid > a:nth-child(2)  { animation-delay: 0.04s; }
#categoryGrid > a:nth-child(3)  { animation-delay: 0.08s; }
#categoryGrid > a:nth-child(4)  { animation-delay: 0.12s; }
#categoryGrid > a:nth-child(5)  { animation-delay: 0.16s; }
#categoryGrid > a:nth-child(6)  { animation-delay: 0.20s; }
#categoryGrid > a:nth-child(7)  { animation-delay: 0.24s; }
#categoryGrid > a:nth-child(8)  { animation-delay: 0.28s; }
#categoryGrid > a:nth-child(9)  { animation-delay: 0.32s; }
#categoryGrid > a:nth-child(10) { animation-delay: 0.36s; }
#categoryGrid > a:nth-child(11) { animation-delay: 0.40s; }
#categoryGrid > a:nth-child(12) { animation-delay: 0.44s; }
#categoryGrid > a:nth-child(13) { animation-delay: 0.48s; }
#categoryGrid > a:nth-child(14) { animation-delay: 0.52s; }
#categoryGrid > a:nth-child(15) { animation-delay: 0.56s; }
#categoryGrid > a:nth-child(16) { animation-delay: 0.60s; }
#categoryGrid > a:nth-child(17) { animation-delay: 0.64s; }
#categoryGrid > a:nth-child(18) { animation-delay: 0.68s; }
#categoryGrid > a:nth-child(19) { animation-delay: 0.72s; }
#categoryGrid > a:nth-child(20) { animation-delay: 0.76s; }

.take-link-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s ease;
  background: rgba(251,191,36,0.1);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.2);
  text-decoration: none;
}
.take-link-amber:hover {
  background: rgba(251,191,36,0.2);
}

.take-link-indigo {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: background 0.15s ease;
  background: rgba(99,102,241,0.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,0.25);
  text-decoration: none;
}
.take-link-indigo:hover {
  background: rgba(99,102,241,0.25);
}
/* ══════════════════════════════════════════════════════════════
   APPEX360 Homepage — Release 27 Enterprise Redesign
   Premium SaaS landing page — Stripe × Apple × Palantir quality
   
   Tokens:    --r27-* for all design decisions
   Sections:  r27-* BEM-style classes
   Anims:     @keyframes defined at bottom
   Responsive: 1280px / 1024px / 768px / 480px
   ══════════════════════════════════════════════════════════════ */

/* ═══ DESIGN TOKENS ═══ */
:root {
  /* ══════════════════════════════════════════════════════════════
     R27 DESIGN TOKENS — HARDCODED DARK VALUES
     
     The R27 homepage is an explicit DARK design. Every surface,
     text, and accent color is hardcoded so that theme changes
     (classic, light, corporate blue) NEVER cause:
     
       - dark text on dark backgrounds
       - light text on light backgrounds
       - contrast failures
     
     NEVER replace these with var(--text-primary) or other
     theme-relative variables — they resolve to dark values on
     light themes and will break contrast.
     ══════════════════════════════════════════════════════════════ */

  /* Surfaces */
  --r27-surface: #07070D;
  --r27-surface-alt: #0C0C14;
  --r27-surface-card: #111119;
  --r27-surface-glass: rgba(17, 17, 25, 0.7);

  /* Borders */
  --r27-border: rgba(255, 255, 255, 0.06);
  --r27-border-light: rgba(255, 255, 255, 0.1);
  --r27-glass-border: rgba(255, 255, 255, 0.08);

  /* Text — explicit light colors for WCAG AA on dark backgrounds */
  --r27-text-primary: #F1F1F6;
  --r27-text-secondary: #9C9CB0;
  --r27-text-muted: #6B6B82;

  /* Accents */
  --r27-accent: #6366F1;
  --r27-accent-hover: #818CF8;
  --r27-accent-subtle: rgba(99, 102, 241, 0.1);
  --r27-accent-warm: #F59E0B;
  --r27-accent-green: #22C55E;
  --r27-accent-red: #EF4444;
  --r27-accent-teal: #14B8A6;

  /* Gradients */
  --r27-gradient-hero: linear-gradient(135deg, #07070D 0%, #0F0F24 50%, #07070D 100%);
  --r27-gradient-cta: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --r27-gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

  /* Glass */
  --r27-glass-bg: rgba(17, 17, 25, 0.6);

  /* Shadows */
  --r27-shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --r27-shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --r27-shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --r27-shadow-glow: 0 0 20px rgba(99,102,241,0.15);

  /* Typography */
  --r27-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r27-font-mono: "JetBrains Mono", "SF Mono", monospace;
}

/* ═══ RESET / BASE ═══ */
.r27-page {
  background: var(--r27-surface);
  color: var(--r27-text-primary);
  font-family: var(--r27-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Focus-visible for keyboard navigation */
.r27-page *:focus-visible {
  outline: 2px solid var(--r27-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Prevent iOS zoom on input focus */
.r27-page input, .r27-page select, .r27-page textarea, .r27-page button {
  font-size: 16px;
}

/* Selection styling */
.r27-page ::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* ═══ ANIMATION KEYFRAMES ═══ */
@keyframes r27-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes r27-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes r27-scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes r27-slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes r27-glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.15); }
  50%      { box-shadow: 0 0 40px rgba(99,102,241,0.3); }
}
@keyframes r27-bgDrift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes r27-particleRise {
  0%   { opacity: 0; transform: translateY(20px) scale(0.5); }
  50%  { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-60px) scale(1); }
}
@keyframes r27-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
@keyframes r27-typewriterCursor {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}
@keyframes r27-counterPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

/* Reduced motion — disable all animations */
@media (prefers-reduced-motion: reduce) {
  .r27-animate, .r27-animate * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .r27-cta-glow {
    animation: none !important;
    opacity: 0.55;
  }
}

/* ═══ NAVIGATION BAR ═══ */
.r27-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.r27-nav.scrolled {
  background: var(--r27-surface-glass);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--r27-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.r27-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--r27-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.r27-nav-logo img, .r27-nav-logo svg {
  height: 32px;
  width: auto;
}
.r27-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.r27-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--r27-text-secondary);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.r27-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--r27-accent);
  transition: width 0.2s ease;
  border-radius: 1px;
}
.r27-nav-link:hover {
  color: var(--r27-text-primary);
}
.r27-nav-link:hover::after {
  width: 100%;
}
.r27-nav-cta {
  padding: 8px 20px;
  border-radius: 8px;
  background: var(--r27-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.r27-nav-cta:hover {
  transform: scale(1.02);
  box-shadow: var(--r27-shadow-glow);
}
.r27-nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--r27-text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}
@media (max-width: 768px) {
  .r27-nav-links { display: none; }
  .r27-nav-hamburger { display: block; }
}

/* ═══ SECTION BASE — R37 Premium Polish: stronger type hierarchy,
       more vertical rhythm (+15%) while keeping consistent rhythm ═══ */
.r27-section {
  padding: 126px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1600px) {
  .r27-section { max-width: min(90vw, 1800px); }
}
.r27-section-full {
  padding: 120px 24px;
  width: 100%;
}
.r27-section-header {
  text-align: center;
  margin-bottom: 72px;
}
.r27-section-eyebrow {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--r27-accent-hover);
  margin-bottom: 18px;
}
.r27-section-title {
  font-size: clamp(34px, 3vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--r27-text-primary);
  margin: 0 auto 22px;
  max-width: 800px;
}
.r27-section-subtitle {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--r27-text-secondary);
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .r27-section { padding: 62px 16px; }
  .r27-section-full { padding: 60px 16px; }
  .r27-section-header { margin-bottom: 44px; }
}

/* ═══ HERO SECTION ═══ */
.r27-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--r27-gradient-hero);
  background-size: 200% 200%;
  animation: r27-bgDrift 30s ease-in-out infinite;
  padding: 104px 24px 72px;
  position: relative;
  overflow: hidden;
}
.r27-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.03) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(20,184,166,0.02) 0%, transparent 50%);
  pointer-events: none;
}
.r27-hero-inner {
  display: flex;
  align-items: center;
  gap: 72px;
  max-width: 1280px;
  width: 100%;
  position: relative;
  z-index: 1;
}
@media (min-width: 1600px) {
  .r27-hero-inner { max-width: min(90vw, 1800px); }
}
.r27-hero-text {
  flex: 0 0 55%;
  max-width: 55%;
}
.r27-hero-headline {
  font-size: clamp(50px, 6.8vw, 92px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--r27-text-primary);
  margin: 0 0 18px;
}
.r27-hero-subline {
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--r27-text-secondary);
  margin: 0 0 36px;
  max-width: 600px;
}
.r27-hero-ctas {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.r27-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 55%, #8B5CF6 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.r27-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}
.r27-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--r27-border-light);
  color: var(--r27-text-primary);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}
.r27-btn-secondary:hover {
  border-color: var(--r27-accent);
  background: var(--r27-accent-subtle);
  transform: translateY(-2px);
}
.r27-btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--r27-text-secondary);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.r27-btn-tertiary:hover {
  color: var(--r27-text-primary);
}
.r27-hero-credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.r27-hero-cred-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--r27-accent-subtle);
  border: 1px solid rgba(99,102,241,0.15);
  font-size: 12px;
  font-weight: 500;
  color: var(--r27-accent-hover);
}
.r27-hero-cred-badge i {
  font-size: 12px;
}
.r27-hero-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.r27-hero-social-label {
  font-size: 13px;
  color: var(--r27-text-muted);
  white-space: nowrap;
}
.r27-hero-logos {
  display: flex;
  gap: 20px;
  align-items: center;
}
.r27-hero-logo {
  height: 28px;
  opacity: 0.4;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
}
.r27-hero-logo:hover {
  opacity: 0.6;
}
.r27-hero-visual {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
  aspect-ratio: 4/3;
  width: 100%;
}
@media (max-width: 1024px) {
  .r27-hero-inner { flex-direction: column; gap: 40px; }
  .r27-hero-text, .r27-hero-visual { flex: 0 0 100%; max-width: 100%; }
  .r27-hero-text { text-align: center; }
  .r27-hero-subline { margin: 0 auto 32px; }
  .r27-hero-ctas { justify-content: center; }
}
@media (max-width: 768px) {
  .r27-hero { min-height: auto; padding: 88px 16px 56px; }
  .r27-hero-headline { font-size: clamp(34px, 10vw, 50px); }
  .r27-hero-ctas { flex-direction: column; width: 100%; }
  .r27-hero-ctas .r27-btn-primary,
  .r27-hero-ctas .r27-btn-secondary,
  .r27-hero-ctas .r27-btn-tertiary { width: 100%; justify-content: center; }
  .r27-hero-visual { display: none; }
  .r27-hero-credibility { justify-content: center; }
  .r27-hero-social { flex-direction: column; align-items: center; gap: 12px; }
  .r27-hero-logos { gap: 16px; }
  .r27-nav-links.r27-nav-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--r27-surface-glass); backdrop-filter: blur(16px); padding: 16px 24px; border-bottom: 1px solid var(--r27-border); gap: 16px; }
}

/* ═══ INTELLIGENCE GAP SECTION ═══ */
.r27-gap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.r27-gap-card {
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 300px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.r27-gap-card:hover {
  transform: translateY(-1px);
  border-color: var(--r27-border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Hover must NEVER affect card text or icons ── */
.r27-gap-card:hover .r27-gap-card-title,
.r27-gap-card:hover .r27-gap-card-desc,
.r27-gap-card:hover .r27-gap-card-impact,
.r27-gap-card:hover i {
  opacity: 1 !important;
}
.r27-gap-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 20px;
}
.r27-gap-card-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--r27-text-primary);
  margin-bottom: 12px;
}
.r27-gap-card-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--r27-text-secondary);
  margin-bottom: 18px;
}
.r27-gap-card-impact {
  font-size: 15px;
  font-weight: 600;
  color: #fbbf24;
  padding: 9px 14px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 10px;
  display: inline-block;
}
@media (max-width: 1024px) {
  .r27-gap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .r27-gap-grid { grid-template-columns: 1fr; }
}

/* ═══ ARCHITECTURE SECTION ═══ */
.r27-arch {
  background: var(--r27-surface-alt);
  padding: 126px 24px;
  text-align: center;
}
.r27-arch-diagram {
  max-width: 960px;
  margin: 56px auto 0;
  position: relative;
}
.r27-arch-layer {
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 8px;
  position: relative;
  border: 1px solid var(--r27-border);
}
.r27-arch-layer-boardroom {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  border-color: rgba(99,102,241,0.15);
}
.r27-arch-layer-appex360 {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.05));
  border-color: var(--r27-accent);
  box-shadow: 0 0 30px rgba(99,102,241,0.1);
}
.r27-arch-layer-systems {
  background: rgba(255,255,255,0.02);
  border-color: var(--r27-border);
}
.r27-arch-layer-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--r27-text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.r27-arch-layer-label i {
  margin-right: 8px;
}
.r27-arch-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.r27-arch-layer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  color: var(--r27-text-secondary);
  font-weight: 500;
}
.r27-arch-layer-item i {
  font-size: 14px;
  color: var(--r27-accent-teal);
}
.r27-arch-arrow {
  display: flex;
  justify-content: center;
  padding: 4px 0;
  color: var(--r27-accent);
  font-size: 14px;
  opacity: 0.5;
}
.r27-arch-caption {
  margin-top: 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--r27-text-secondary);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}
.r27-arch-dataflow {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.r27-arch-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--r27-accent);
  opacity: 0;
  animation: r27-particleRise 3s ease-out infinite;
}
.r27-arch-particle:nth-child(1) { left: 20%; animation-delay: 0s; }
.r27-arch-particle:nth-child(2) { left: 40%; animation-delay: 0.8s; }
.r27-arch-particle:nth-child(3) { left: 60%; animation-delay: 1.6s; }
.r27-arch-particle:nth-child(4) { left: 80%; animation-delay: 2.4s; }
.r27-arch-particle:nth-child(5) { left: 50%; animation-delay: 0.4s; }

/* ═══ WORKFLOW SECTION ═══ */
.r27-workflow {
  text-align: center;
}
.r27-workflow-stages {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.r27-workflow-stage {
  flex: 0 0 200px;
  padding: 28px 20px;
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border);
  border-radius: 14px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.r27-workflow-stage:hover {
  transform: translateY(-4px);
  box-shadow: var(--r27-shadow-md);
  border-color: var(--r27-accent);
}
.r27-workflow-stage-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--r27-accent-subtle);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--r27-accent);
  margin: 0 auto 14px;
}
.r27-workflow-stage-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--r27-text-primary);
  margin-bottom: 8px;
}
.r27-workflow-stage-desc {
  font-size: 14px;
  color: var(--r27-text-muted);
  line-height: 1.6;
}
.r27-workflow-arrow {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--r27-text-muted);
  font-size: 20px;
  position: relative;
}
.r27-workflow-arrow::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  border-top: 1px dashed var(--r27-border-light);
  position: absolute;
  top: 50%;
}
@media (max-width: 1024px) {
  .r27-workflow-stages { flex-wrap: wrap; gap: 16px; }
  .r27-workflow-stage { flex: 0 0 calc(33% - 16px); }
  .r27-workflow-arrow { display: none; }
}
@media (max-width: 768px) {
  .r27-workflow-stage { flex: 0 0 100%; }
}

/* ═══ APPEXi SECTION ═══ */
.r27-appexi {
  background: var(--r27-surface-alt);
  padding: 126px 24px;
}
/* ★ APPEXi chat panel keeps a consistent dark theme regardless of
   the page theme — it simulates a real AI chat interface where
   dark backgrounds and light text are expected. The hardcoded
   colours prevent theme bleed (stat-cards-style regression). */
.r27-appexi-chat {
  background: #0D0E1A;
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  padding: 24px;
  min-height: 340px;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
}
/* ── Chat header — mirrors the real APPEXi floating assistant ── */
.r27-appexi-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.r27-appexi-chat-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.r27-appexi-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.25));
  border: 1px solid rgba(99,102,241,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A5B4FC;
  font-size: 16px;
  flex-shrink: 0;
}
.r27-appexi-chat-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #F1F1F6;
  line-height: 1.2;
}
.r27-appexi-chat-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(148,163,184,0.7);
  line-height: 1.4;
}
.r27-appexi-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
}
.r27-appexi-chat-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #34D399;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.r27-appexi-chat-header-tag i {
  font-size: 8px;
}
/* ── Typewriter message container (hidden until a question is asked) ── */
.r27-appexi-chat-message {
  display: none;
}
.r27-appexi-chat-message:not(:empty) {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.07);
}
.r27-appexi-inner {
  display: flex;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 1600px) {
  .r27-appexi-inner { max-width: min(90vw, 1800px); }
}
.r27-appexi-left {
  flex: 0 0 40%;
}
.r27-appexi-right {
  flex: 0 0 60%;
}
.r27-appexi-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.r27-appexi-q-btn {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--r27-accent-subtle);
  border: 1px solid rgba(99,102,241,0.12);
  color: var(--r27-text-primary);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.r27-appexi-q-btn:hover {
  background: rgba(99,102,241,0.2);
  transform: scale(1.02);
}
.r27-appexi-q-btn i {
  color: var(--r27-accent);
  font-size: 14px;
}

.r27-appexi-chat-message {
  font-size: 15px;
  line-height: 1.7;
  color: var(--r27-text-primary);
  white-space: pre-wrap;
}
.r27-appexi-chat-cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--r27-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: r27-typewriterCursor 0.8s step-end infinite;
}
.r27-appexi-chat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--r27-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.r27-appexi-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.r27-appexi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--r27-border);
  font-size: 12px;
  color: var(--r27-text-secondary);
  font-weight: 500;
}
.r27-appexi-badge i {
  color: var(--r27-accent-teal);
  font-size: 12px;
}
@media (max-width: 1024px) {
  .r27-appexi-inner { flex-direction: column; gap: 32px; }
  .r27-appexi-left, .r27-appexi-right { flex: 0 0 100%; }
}

/* ═══ COMPARISON MATRIX SECTION ═══ */
/* R37 polish: tighter header-to-table spacing for the dense matrix */
#comparison .r27-section-header { margin-bottom: 44px; }
.r27-matrix-wrapper {
  overflow-x: auto;
  margin-top: 28px;
  border-radius: 14px;
  border: 1px solid var(--r27-border);
}
.r27-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 800px;
}
.r27-matrix th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  background: var(--r27-surface-alt);
  color: var(--r27-text-primary);
  border-bottom: 1px solid var(--r27-border);
  white-space: nowrap;
}
.r27-matrix th:first-child {
  position: sticky;
  left: 0;
  background: var(--r27-surface-alt);
  z-index: 2;
}
.r27-matrix th.r27-matrix-col-highlight {
  background: var(--r27-accent-subtle);
  color: var(--r27-accent-hover);
}
.r27-matrix td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--r27-border);
  color: var(--r27-text-secondary);
  text-align: center;
  position: relative;
}
.r27-matrix td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--r27-text-primary);
  position: sticky;
  left: 0;
  background: var(--r27-surface-card);
  z-index: 1;
}
.r27-matrix td.r27-matrix-col-highlight {
  background: var(--r27-accent-subtle);
}
.r27-matrix tr:hover td {
  background: rgba(255,255,255,0.02);
}
.r27-matrix tr:hover td.r27-matrix-col-highlight {
  background: rgba(99,102,241,0.12);
}
.r27-matrix-cell-yes {
  color: var(--r27-accent-green);
  font-weight: 600;
}
.r27-matrix-cell-partial {
  color: var(--r27-accent-warm);
  font-weight: 600;
}
.r27-matrix-cell-no {
  color: var(--r27-text-muted);
}
.r27-matrix-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border-light);
  font-size: 12px;
  line-height: 1.5;
  color: var(--r27-text-secondary);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: var(--r27-shadow-lg);
}
.r27-matrix td:hover .r27-matrix-tooltip {
  display: block;
}
.r27-matrix-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.r27-matrix-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--r27-text-secondary);
}
.r27-matrix-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.r27-matrix-legend-dot-green { background: var(--r27-accent-green); }
.r27-matrix-legend-dot-amber { background: var(--r27-accent-warm); }
.r27-matrix-legend-dot-grey { background: var(--r27-text-muted); }
@media (max-width: 768px) {
  .r27-matrix { font-size: 12px; min-width: 600px; }
  .r27-matrix th, .r27-matrix td { padding: 10px 12px; }
}

/* ═══ STAT COUNTERS SECTION ═══ */
/* R37 polish: platform metrics become the visual anchor of the page */
.r27-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin: 56px auto 0;
  max-width: 1200px;
}
@media (min-width: 1600px) {
  .r27-stats-grid { max-width: min(80vw, 1600px); }
}
.r27-stat-card {
  text-align: center;
  padding: 30px 18px;
  background: var(--r27-surface-card);
  border: 1px solid var(--r27-border);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.r27-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #A78BFA);
  opacity: 0.65;
}
.r27-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129,140,248,0.35);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}
.r27-stat-card:hover .r27-stat-number,
.r27-stat-card:hover .r27-stat-label,
.r27-stat-card:hover i {
  opacity: 1 !important;
}
.r27-stat-number {
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F1F1F6 30%, #C7D2FE);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.r27-stat-label {
  font-size: 14px;
  color: var(--r27-text-secondary);
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 1024px) {
  .r27-stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .r27-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .r27-stat-card { padding: 20px 14px; min-height: 150px; }
  .r27-stat-number { min-height: 56px; }
}

/* ═══ TRUST & CREDIBILITY SECTION ═══ */
.r27-trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.r27-trust-badge {
  text-align: center;
  padding: 24px 12px;
  border-radius: 12px;
  border: 1px solid var(--r27-border);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: default;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.03);
}
.r27-trust-badge:hover {
  border-color: var(--r27-border-light);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.04);
}
.r27-trust-badge:hover .r27-trust-badge-title,
.r27-trust-badge:hover .r27-trust-badge-label,
.r27-trust-badge:hover .r27-trust-badge-icon {
  opacity: 1 !important;
}
.r27-trust-badge-icon {
  font-size: 24px;
  color: var(--r27-accent-teal);
  margin-bottom: 12px;
}
.r27-trust-badge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--r27-text-primary);
  margin-bottom: 4px;
}
.r27-trust-badge-label {
  font-size: 12px;
  color: var(--r27-text-muted);
}
.r27-trust-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--r27-surface-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--r27-glass-border);
  font-size: 12px;
  line-height: 1.5;
  color: var(--r27-text-secondary);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
  box-shadow: var(--r27-shadow-lg);
  min-width: 200px;
}
.r27-trust-badge:hover .r27-trust-tooltip {
  display: block;
}
@media (max-width: 1024px) {
  .r27-trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .r27-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ═══ FINAL CTA SECTION — R37 Premium Conversion Panel ═══ */
/* Layered glass: ambient colour glows + grid texture + frosted panel */
.r27-cta {
  position: relative;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 18% 18%, rgba(99,102,241,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 82% 28%, rgba(139,92,246,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(20,184,166,0.10) 0%, transparent 60%),
    linear-gradient(160deg, #0B0D1A 0%, #10122B 45%, #0B0D1A 100%);
}
.r27-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 0%, transparent 75%);
  pointer-events: none;
}
.r27-cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: r27-cta-breathe 7s ease-in-out infinite;
}
.r27-cta-glow-a {
  width: 420px;
  height: 420px;
  top: -140px;
  left: 8%;
  background: rgba(99,102,241,0.28);
}
.r27-cta-glow-b {
  width: 360px;
  height: 360px;
  bottom: -120px;
  right: 6%;
  background: rgba(139,92,246,0.24);
  animation-delay: 2.5s;
}
.r27-cta-panel {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 56px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.r27-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(129,140,248,0.25);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A5B4FC;
  margin-bottom: 24px;
}
.r27-cta-headline {
  font-size: clamp(34px, 3.4vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 auto 20px;
  max-width: 800px;
  text-shadow: 0 2px 24px rgba(99,102,241,0.25);
}
.r27-cta-subtitle {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.r27-cta-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.r27-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #818CF8 0%, #6366F1 55%, #8B5CF6 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.r27-cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
}
.r27-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}
.r27-cta-btn-secondary:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.r27-cta-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}
.r27-cta-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.r27-cta-perk i {
  color: #34D399;
}
.r27-cta-trust {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
.r27-cta-trust i {
  margin: 0 4px;
}
.r27-cta-trust span {
  margin: 0 8px;
}
@keyframes r27-cta-breathe {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 768px) {
  .r27-cta { padding: 72px 16px; }
  .r27-cta-panel { padding: 44px 20px; border-radius: 20px; }
  .r27-cta-buttons { flex-direction: column; align-items: center; }
  .r27-cta-btn-primary, .r27-cta-btn-secondary { width: 100%; justify-content: center; }
}

/* ═══ FOOTER ═══ */
.r27-footer {
  background: var(--r27-surface-alt);
  border-top: 1px solid var(--r27-border);
  padding: 72px 24px 36px;
}
.r27-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (min-width: 1600px) {
  .r27-footer-inner { max-width: min(90vw, 1800px); }
}
.r27-footer-brand p {
  font-size: 14px;
  color: var(--r27-text-secondary);
  line-height: 1.6;
  margin: 12px 0 20px;
}
.r27-footer-social {
  display: flex;
  gap: 12px;
}
.r27-footer-social a {
  color: var(--r27-text-muted);
  font-size: 18px;
  transition: color 0.2s ease;
}
.r27-footer-social a:hover {
  color: var(--r27-text-primary);
}
.r27-footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--r27-text-primary);
  margin-bottom: 16px;
}
.r27-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r27-footer-links a {
  font-size: 14px;
  color: var(--r27-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.r27-footer-links a:hover {
  color: var(--r27-text-primary);
}
.r27-footer-legal {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--r27-border);
  font-size: 12px;
  color: var(--r27-text-muted);
}
.r27-footer-legal a {
  color: var(--r27-text-muted);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}
.r27-footer-legal a:hover {
  color: var(--r27-text-primary);
}
@media (max-width: 1024px) {
  .r27-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .r27-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .r27-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══ SCROLL ENTRANCE ANIMATIONS ═══ */
.r27-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.r27-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.r27-animate-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.r27-animate-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ═══ ENTERPRISE CAPABILITY BADGES (replaces trusted-by logos) ═══ */
.r27-hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}
.r27-cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  font-size: 11px;
  font-weight: 500;
  color: var(--r27-text-secondary);
  transition: all 0.2s ease;
  cursor: default;
  white-space: nowrap;
}
.r27-cap-badge i {
  font-size: 10px;
  color: var(--r27-accent-hover);
}
.r27-cap-badge:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--r27-text-primary);
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .r27-hero-capabilities { justify-content: center; }
}

/* ═══ AMBIENT GLOW BEHIND INTELLIGENCE WHEEL ═══ */
.r27-hero-visual {
  position: relative;
}
.r27-hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: r27-glowPulse 4s ease-in-out infinite;
}
.r27-hero-visual > * {
  position: relative;
  z-index: 1;
}

/* ═══ AMBIENT DATA PARTICLES (Hero background) ═══ */
.r27-hero-particles {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.r27-hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.4);
  animation: r27-particleRise 8s ease-in-out infinite;
}
.r27-hero-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.r27-hero-particle:nth-child(2) { left: 25%; animation-delay: 1.2s; animation-duration: 9s; }
.r27-hero-particle:nth-child(3) { left: 40%; animation-delay: 2.5s; animation-duration: 8s; }
.r27-hero-particle:nth-child(4) { left: 55%; animation-delay: 0.8s; animation-duration: 10s; }
.r27-hero-particle:nth-child(5) { left: 70%; animation-delay: 3.2s; animation-duration: 7.5s; }
.r27-hero-particle:nth-child(6) { left: 85%; animation-delay: 1.8s; animation-duration: 8.5s; }
.r27-hero-particle:nth-child(7) { left: 15%; animation-delay: 4s; animation-duration: 9.5s; }
.r27-hero-particle:nth-child(8) { left: 60%; animation-delay: 2s; animation-duration: 7.2s; }


/* ═══ ASSESSMENT MARKETPLACE CARDS — Standalone products below hero ═══ */
.r27-assessment-marketplace {
  background: var(--r27-surface-alt, #0C0C14);
  padding: 126px 24px;
}
.r27-marketplace-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 1600px) {
  .r27-marketplace-grid { max-width: min(90vw, 1800px); }
}
.r27-marketplace-card {
  background: var(--r27-surface-card, #111119);
  border: 1px solid color-mix(in srgb, var(--mp-colour) 25%, transparent);
  border-radius: 14px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.r27-marketplace-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mp-colour);
}
.r27-marketplace-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mp-colour) 50%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--mp-colour) 15%, transparent);
}
.r27-mp-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.r27-mp-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--mp-colour) 15%, transparent);
  flex-shrink: 0;
}
.r27-mp-icon-wrap i {
  font-size: 20px;
  color: var(--mp-colour);
}
.r27-mp-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--r27-text-primary, #F1F1F6);
  margin: 0;
}
.r27-mp-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--r27-text-secondary, #9C9CB0);
  margin: 0 0 14px;
  flex-grow: 0;
}
.r27-mp-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}
.r27-mp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--r27-text-muted, #6B6B82);
  padding: 4px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
}
.r27-mp-meta-item i {
  color: var(--mp-colour);
  font-size: 11px;
}
.r27-mp-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
  flex-grow: 1;
}
.r27-mp-feature {
  font-size: 13px;
  color: var(--r27-text-secondary, #9C9CB0);
  display: flex;
  align-items: center;
  gap: 7px;
}
.r27-mp-feature i {
  color: var(--mp-colour);
  font-size: 11px;
}
.r27-mp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--mp-colour) 40%, transparent);
  color: var(--r27-text-primary, #F1F1F6);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}
.r27-mp-cta:hover {
  background: color-mix(in srgb, var(--mp-colour) 15%, transparent);
  border-color: var(--mp-colour);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--mp-colour) 20%, transparent);
}
.r27-mp-upsell {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--r27-text-secondary, #9C9CB0);
}
.r27-mp-upsell-link {
  color: var(--r27-accent, #6366F1);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.r27-mp-upsell-link:hover {
  color: var(--r27-accent-hover, #818CF8);
}
.r27-mp-upsell i {
  color: var(--r27-accent, #6366F1);
  margin-right: 4px;
}
@media (max-width: 1024px) {
  .r27-marketplace-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .r27-marketplace-grid { grid-template-columns: repeat(2, 1fr); }
  .r27-marketplace-card { padding: 22px 18px; }
}
@media (max-width: 480px) {
  .r27-marketplace-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RELEASE 33 — HERO FRAMEWORK NAVIGATOR (PREMIUM EXECUTIVE)              */
/*                                                                         */
/* Five modes of the Intelligence Wheel. Premium executive product showcase.      */
/*                                                                                 */
/* Structure:                                                                       */
/*   .fw-nav (container)                                                            */
/*   ├── .fw-nav-details (expanded panel area)                                      */
/*   │   └── .fw-nav-detail (one per, .fw-nav-detail-active visible)               */
/*   │       ├── .fw-nav-detail-accent (4px colour top bar)                        */
/*   │       └── .fw-nav-detail-inner                                               */
/*   │           ├── .fw-nav-detail-icon (56px colour badge with glow)             */
/*   │           └── .fw-nav-detail-body                                            */
/*   │               ├── .fw-nav-detail-title (32px — dominant)                    */
/*   │               ├── .fw-nav-detail-sub (12px — muted)                         */
/*   │               ├── .fw-nav-detail-outcome (19px — colour)                    */
/*   │               ├── .fw-nav-detail-highlights (3 × subtle text with dots)     */
/*   │               ├── .fw-nav-detail-ai (AI Insight label + sentence)           */
/*   │               ├── .fw-nav-detail-info (metadata + expected outcomes)        */
/*   │               └── .fw-nav-detail-cta-row (right-aligned CTA)                */
/*   └── .fw-nav-chips (segmented control selector row)                             */
/*       └── .fw-nav-chip (pill, .fw-nav-chip-active = filled+glow)                */
/*                                                                                 */
/* Hub: .hub-framework-ring — pulsed accent ring for active framework              */
/* ═════════════════════════════════════════════════════════════════════════════════ */

/* ── Container ── */
.fw-nav {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  padding: 0 16px;
}

/* ── Expanded Detail Panel Area ── */
.fw-nav-details {
  position: relative;
  min-height: 0;
  margin-bottom: 18px;
}

/* ── Individual Detail Panel — Premium Executive Product Card ── */
.fw-nav-detail {
  display: none;
  position: relative;
  border-radius: 16px;
  background: rgba(8, 12, 28, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.03);
  transition: opacity 0.3s ease;
}

.fw-nav-detail-active {
  display: block;
}

/* 4px colour accent bar */
.fw-nav-detail-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.8;
  z-index: 2;
}

/* ── Inner Layout: icon | body (stacked) ── */
.fw-nav-detail-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 36px 24px;
}

/* ── Framework Icon Badge — 64px, premium glass with halo glow ── */
.fw-nav-detail-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--fw-clr) 12%, rgba(10, 16, 32, 0.5));
  border: 1px solid color-mix(in srgb, var(--fw-clr) 16%, transparent);
  flex-shrink: 0;
  box-shadow: 0 0 28px color-mix(in srgb, var(--fw-clr) 10%, transparent);
}

.fw-nav-detail-icon i {
  font-size: 30px;
  color: var(--fw-clr);
}

/* ── Body Column — title, subtitle, outcome, highlights, AI, info, CTA ── */
.fw-nav-detail-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Framework Name — dominant, 34px, readable at 2m ── */
.fw-nav-detail-title {
  font-size: 34px;
  font-weight: 800;
  color: #F1F1F6;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fw-nav-detail-sub {
  font-size: 13px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* ── Business Outcome — second in hierarchy, colour accent ── */
.fw-nav-detail-outcome {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
}

/* ── Three Capability Highlights — subtle, no borders/fills ── */
.fw-nav-detail-highlights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.fw-nav-detail-hl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(241, 241, 246, 0.7);
  white-space: nowrap;
}

.fw-nav-detail-hl-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.5;
  flex-shrink: 0;
}

.fw-nav-detail-hl-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.2);
  margin: 0 6px;
}

/* ── AI Insight — compact, intelligent, domain-specific ── */
.fw-nav-detail-ai {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.06);
  margin: 4px 0 2px;
}

.fw-nav-detail-ai-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  padding-top: 1px;
}

.fw-nav-detail-ai-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.7);
  line-height: 1.5;
}

/* ── Metadata + Expected Business Outcomes — single clean row ── */
.fw-nav-detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px;
}

.fw-nav-detail-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.55);
}

.fw-nav-detail-meta-sep {
  color: rgba(148, 163, 184, 0.15);
  font-weight: 300;
}

.fw-nav-detail-outcomes {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fw-nav-detail-outcomes-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.fw-nav-detail-outcome-item {
  font-size: 14px;
  font-weight: 600;
  color: rgba(241, 241, 246, 0.6);
  white-space: nowrap;
}

/* ── CTA — right-aligned, strong action ── */
.fw-nav-detail-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.fw-nav-detail-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(241, 241, 246, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  user-select: none;
}

.fw-nav-detail-cta:hover {
  color: #F1F1F6;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.fw-nav-arrow {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.fw-nav-detail-cta:hover .fw-nav-arrow {
  transform: translateX(4px);
}

/* ── Selector Chips Row — Segmented Control ── */
.fw-nav-chips {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

/* ── Individual Chip — Apple/Figma segmented control style ── */
.fw-nav-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(6, 10, 24, 0.3);
  color: rgba(241, 241, 246, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  outline: none;
  user-select: none;
}

.fw-nav-chip i {
  font-size: 18px;
  color: rgba(148, 163, 184, 0.25);
  transition: color 0.3s ease;
}

.fw-nav-chip-label {
  white-space: nowrap;
}

/* ── Chip Hover ── */
.fw-nav-chip:hover {
  border-color: color-mix(in srgb, var(--fw-clr) 20%, transparent);
  background: color-mix(in srgb, var(--fw-clr) 4%, rgba(8, 12, 28, 0.5));
  color: rgba(241, 241, 246, 0.65);
  transform: translateY(-1px);
}

.fw-nav-chip:hover i {
  color: color-mix(in srgb, var(--fw-clr) 50%, rgba(148, 163, 184, 0.3));
}

/* ── Chip Active — Filled Segmented Control ── */
.fw-nav-chip-active {
  border-color: color-mix(in srgb, var(--fw-clr) 50%, transparent);
  background: color-mix(in srgb, var(--fw-clr) 14%, rgba(10, 16, 32, 0.8));
  color: #F1F1F6;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 28px color-mix(in srgb, var(--fw-clr) 12%, transparent),
              inset 0 1px 0 color-mix(in srgb, var(--fw-clr) 8%, rgba(255,255,255,0.06));
  transform: scale(1.02);
}

.fw-nav-chip-active i {
  color: var(--fw-clr);
  font-size: 16px;
}

/* ── Chip Focus / Keyboard ── */
.fw-nav-chip:focus-visible {
  outline: 2px solid var(--fw-clr);
  outline-offset: 2px;
}

/* ── Chip Click ── */
.fw-nav-chip:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}
.fw-nav-chip-active:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

/* ── Hub Framework Accent Ring ── */
@keyframes framework-ring-pulse {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.02); }
}
.hub-framework-ring {
  animation: framework-ring-pulse 3s ease-in-out infinite;
  transform-origin: 375px 375px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .fw-nav { max-width: 100%; padding: 0 12px; }
  .fw-nav-detail-inner {
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 24px 16px;
  }
  .fw-nav-detail-icon { width: 54px; height: 54px; }
  .fw-nav-detail-icon i { font-size: 25px; }
  .fw-nav-detail-title { font-size: 30px; }
  .fw-nav-detail-outcome { font-size: 18px; }
  .fw-nav-detail-info { gap: 6px; }
  .fw-nav-detail-cta-row { justify-content: flex-start; }
  .fw-nav-chip { padding: 8px 18px; font-size: 14px; gap: 6px; }
  .fw-nav-chip i { font-size: 16px; }
  .fw-nav-chip-active { font-size: 14px; }
}

@media (max-width: 768px) {
  .fw-nav-detail-inner { padding: 16px 20px 14px; gap: 16px; }
  .fw-nav-detail-icon { width: 48px; height: 48px; }
  .fw-nav-detail-icon i { font-size: 22px; }
  .fw-nav-detail-title { font-size: 26px; }
  .fw-nav-detail-sub { font-size: 10px; }
  .fw-nav-detail-outcome { font-size: 17px; }
  .fw-nav-detail-hl { font-size: 12px; }
  .fw-nav-detail-ai { flex-direction: column; gap: 4px; }
  .fw-nav-detail-meta { font-size: 12px; flex-wrap: wrap; }
  .fw-nav-detail-outcome-item { font-size: 12px; }
  .fw-nav-detail-cta { font-size: 14px; padding: 7px 18px; }
  .fw-nav-chips { gap: 4px; flex-wrap: wrap; }
  .fw-nav-chip { padding: 7px 16px; font-size: 13px; gap: 5px; }
  .fw-nav-chip i { font-size: 14px; }
  .fw-nav-chip-active { font-size: 13px; transform: none; }
}

@media (max-width: 480px) {
  .fw-nav-detail-title { font-size: 20px; }
  .fw-nav-detail-sub { font-size: 9px; }
  .fw-nav-detail-outcome { font-size: 14px; }
  .fw-nav-detail-hl { font-size: 11px; }
  .fw-nav-detail-highlights { display: none; }
  .fw-nav-detail-ai { display: none; }
  .fw-nav-detail-info { display: none; }
  .fw-nav-detail-cta-row { display: none; }
  .fw-nav-chip-label { display: none; }
  .fw-nav-chip { padding: 6px 12px; }
  .fw-nav-chip i { font-size: 15px; }
  .fw-nav-chip-active { padding: 6px 14px; }
}


/* ═══════════════════════════════════════════════════════════════════
   APPEX360 Executive Dashboard Design System — Release 29
   ═══════════════════════════════════════════════════════════════════
   
   Every dashboard is composed from the same visual language.
   
   Principles:
   - 5-second executive test: what, good/bad, do, impact, drill
   - One primary action per page
   - Every pixel earns its place
   - Colour means something (module tokens, not decoration)
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   1. DASHBOARD LAYOUT
   ───────────────────────────────────────────────────────────────── */

.db-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.db-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.db-header-title {
  font-size: var(--font-page-title);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.db-header-sub {
  font-size: var(--font-supporting);
  color: var(--text-secondary);
  margin-top: var(--spacing-xs);
}

.db-header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

/* KPI Grid — responsive, consistent gap */
.db-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

/* Dashboard section: heading + grid + card */
.db-section {
  margin-bottom: var(--spacing-xl);
}

.db-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.db-section-title {
  font-size: var(--font-card-title);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.db-section-title i {
  font-size: 0.85em;
  opacity: 0.6;
}

.db-section-link {
  font-size: var(--font-caption);
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.db-section-link:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────
   2. KPI CARD
   ─────────────────────────────────────────────────────────────────
   Focus: one metric, one trend, no noise.
   
   Usage:
     <div class="db-kpi" data-module="financial">
       <div class="db-kpi-value">$2.4M</div>
       <div class="db-kpi-label">Verified Savings</div>
       <div class="db-kpi-trend up">↑ 12%</div>
     </div>
   ───────────────────────────────────────────────────────────────── */

.db-kpi {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  transition: all 0.15s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.db-kpi:hover {
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Module accent stripe at top */
.db-kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--kpi-accent, var(--clr-executive-primary));
  opacity: 0.6;
}

.db-kpi[data-module="executive"]    { --kpi-accent: var(--clr-executive-primary); }
.db-kpi[data-module="operational"]  { --kpi-accent: var(--clr-operational-primary); }
.db-kpi[data-module="financial"]    { --kpi-accent: var(--clr-financial-primary); }
.db-kpi[data-module="governance"]   { --kpi-accent: var(--clr-governance-primary); }
.db-kpi[data-module="risk"]         { --kpi-accent: var(--clr-risk-primary); }
.db-kpi[data-module="asset"]        { --kpi-accent: var(--clr-asset-primary); }
.db-kpi[data-module="safety"]       { --kpi-accent: var(--clr-safety-primary); }
.db-kpi[data-module="quality"]      { --kpi-accent: var(--clr-quality-primary); }
.db-kpi[data-module="maintenance"]  { --kpi-accent: var(--clr-maintenance-primary); }
.db-kpi[data-module="people"]       { --kpi-accent: var(--clr-people-primary); }
.db-kpi[data-module="environment"]  { --kpi-accent: var(--clr-environment-primary); }

.db-kpi-value {
  font-size: var(--font-display-kpi);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-xs);
}

.db-kpi-label {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.db-kpi-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-micro);
}

.db-kpi-trend {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.db-kpi-trend.up    { color: var(--trend-up); }
.db-kpi-trend.down  { color: var(--trend-down); }
.db-kpi-trend.flat  { color: var(--trend-flat); }

.db-kpi-benchmark {
  color: var(--text-muted);
  font-weight: 400;
}

/* KPI: clickable */
.db-kpi-clickable {
  cursor: pointer;
}
.db-kpi-clickable:hover {
  border-color: var(--kpi-accent, var(--clr-executive-primary));
  box-shadow: 0 0 0 1px var(--kpi-accent, var(--clr-executive-primary)), var(--shadow-md);
}

/* ─────────────────────────────────────────────────────────────────
   3. INTELLIGENCE CARD
   ─────────────────────────────────────────────────────────────────
   Focus: recommendation, confidence, impact, risk.

   Usage:
     <div class="db-intel" data-module="risk">
       <div class="db-intel-header">
         <div class="db-intel-badge" data-confidence="high">94%</div>
       </div>
       <div class="db-intel-body">
         <div class="db-intel-rec">Replace compressor with VSD</div>
         <div class="db-intel-impact">$186K/yr | 14-month payback</div>
       </div>
     </div>
   ───────────────────────────────────────────────────────────────── */

.db-intel {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  transition: all 0.15s ease;
}

.db-intel:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--surface-border-hover);
}

.db-intel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.db-intel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--font-micro);
  font-weight: 700;
}

.db-intel-badge[data-confidence="high"]   { background: rgba(52,211,153,0.1); color: #34d399; }
.db-intel-badge[data-confidence="medium"] { background: rgba(245,158,11,0.1);  color: #f59e0b; }
.db-intel-badge[data-confidence="low"]    { background: rgba(239,68,68,0.1);  color: #ef4444; }

.db-intel-module {
  font-size: var(--font-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.db-intel-rec {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.db-intel-impact {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  line-height: 1.5;
}

.db-intel-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--surface-border);
}

.db-intel-evidence {
  font-size: var(--font-micro);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.db-intel-evidence i {
  font-size: 10px;
}

.db-intel-action {
  font-size: var(--font-micro);
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease;
}
.db-intel-action:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────────────────────────────
   4. INSIGHT PANEL
   ─────────────────────────────────────────────────────────────────
   Focus: icon, title, summary, expand-for-detail, linked evidence.

   Usage:
     <details class="db-insight" data-module="financial">
       <summary class="db-insight-summary">
         <i class="fas fa-coins db-insight-icon"></i>
         <div>
           <div class="db-insight-title">Energy Cost Reduction</div>
           <div class="db-insight-summary-text">$186K annual savings identified</div>
         </div>
         <i class="fas fa-chevron-down db-insight-chevron"></i>
       </summary>
       <div class="db-insight-detail">...</div>
     </details>
   ───────────────────────────────────────────────────────────────── */

.db-insight {
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  overflow: hidden;
  transition: border-color 0.15s ease;
  margin-bottom: var(--spacing-sm);
}

.db-insight[open] {
  border-color: var(--surface-border-hover);
}

.db-insight-summary {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.12s ease;
}

.db-insight-summary::-webkit-details-marker {
  display: none;
}

.db-insight-summary:hover {
  background: rgba(255,255,255,0.02);
}

.db-insight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.db-insight[data-module="executive"]    .db-insight-icon { background: var(--clr-executive-surface); color: var(--clr-executive-primary); }
.db-insight[data-module="operational"]  .db-insight-icon { background: var(--clr-operational-surface); color: var(--clr-operational-primary); }
.db-insight[data-module="financial"]    .db-insight-icon { background: var(--clr-financial-surface); color: var(--clr-financial-primary); }
.db-insight[data-module="governance"]   .db-insight-icon { background: var(--clr-governance-surface); color: var(--clr-governance-primary); }
.db-insight[data-module="risk"]         .db-insight-icon { background: var(--clr-risk-surface); color: var(--clr-risk-primary); }
.db-insight[data-module="asset"]        .db-insight-icon { background: var(--clr-asset-surface); color: var(--clr-asset-primary); }
.db-insight[data-module="safety"]       .db-insight-icon { background: var(--clr-safety-surface); color: var(--clr-safety-primary); }
.db-insight[data-module="quality"]      .db-insight-icon { background: var(--clr-quality-surface); color: var(--clr-quality-primary); }
.db-insight[data-module="maintenance"]  .db-insight-icon { background: var(--clr-maintenance-surface); color: var(--clr-maintenance-primary); }
.db-insight[data-module="people"]       .db-insight-icon { background: var(--clr-people-surface); color: var(--clr-people-primary); }
.db-insight[data-module="environment"]  .db-insight-icon { background: var(--clr-environment-surface); color: var(--clr-environment-primary); }

.db-insight-title {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
}

.db-insight-summary-text {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-top: 2px;
}

.db-insight-chevron {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.db-insight[open] .db-insight-chevron {
  transform: rotate(180deg);
}

.db-insight-detail {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  font-size: var(--font-supporting);
  color: var(--text-secondary);
  line-height: 1.6;
}

.db-insight-detail p {
  margin: 0 0 var(--spacing-sm);
}

.db-insight-detail p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────
   5. DASHBOARD TABLE
   ───────────────────────────────────────────────────────────────── */

.db-table-wrap {
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  background: var(--surface-card);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-caption);
}

.db-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.db-table th {
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  font-weight: 600;
  font-size: var(--font-micro);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--surface-border);
  white-space: nowrap;
}

.db-table td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  color: var(--text-primary);
  vertical-align: middle;
}

.db-table tbody tr {
  transition: background 0.1s ease;
}

.db-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.01);
}

.db-table tbody tr:hover {
  background: rgba(99,102,241,0.03);
}

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

/* Table status badges */
.db-table-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
}

.db-table-badge[data-status="good"]      { background: rgba(52,211,153,0.08); color: #34d399; }
.db-table-badge[data-status="warning"]   { background: rgba(245,158,11,0.08);  color: #f59e0b; }
.db-table-badge[data-status="critical"]  { background: rgba(239,68,68,0.08);  color: #ef4444; }
.db-table-badge[data-status="inactive"]  { background: rgba(107,114,128,0.08); color: #6b7280; }

/* ─────────────────────────────────────────────────────────────────
   6. DECISION CARD
   ───────────────────────────────────────────────────────────────── */

.db-decision {
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--kpi-accent, var(--clr-executive-primary));
  margin-bottom: var(--spacing-md);
  transition: all 0.15s ease;
}

.db-decision[data-module="executive"]    { border-left-color: var(--clr-executive-primary); }
.db-decision[data-module="operational"]  { border-left-color: var(--clr-operational-primary); }
.db-decision[data-module="financial"]    { border-left-color: var(--clr-financial-primary); }
.db-decision[data-module="governance"]   { border-left-color: var(--clr-governance-primary); }
.db-decision[data-module="risk"]         { border-left-color: var(--clr-risk-primary); }
.db-decision[data-module="asset"]        { border-left-color: var(--clr-asset-primary); }
.db-decision[data-module="safety"]       { border-left-color: var(--clr-safety-primary); }
.db-decision[data-module="quality"]      { border-left-color: var(--clr-quality-primary); }
.db-decision[data-module="maintenance"]  { border-left-color: var(--clr-maintenance-primary); }
.db-decision[data-module="people"]       { border-left-color: var(--clr-people-primary); }
.db-decision[data-module="environment"]  { border-left-color: var(--clr-environment-primary); }

.db-decision:hover {
  box-shadow: var(--shadow-md);
}

.db-decision-rec {
  font-size: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.db-decision-impact {
  font-size: var(--font-caption);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.db-decision-footer {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-micro);
  color: var(--text-muted);
}

.db-decision-owner {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   7. CHART CONTAINER
   ───────────────────────────────────────────────────────────────── */

.db-chart {
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: var(--surface-card);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.db-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.db-chart-title {
  font-size: var(--font-subheading);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.db-chart-body {
  min-height: 200px;
}

/* ─────────────────────────────────────────────────────────────────
   8. EMPTY STATE
   ───────────────────────────────────────────────────────────────── */

.db-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
  color: var(--text-muted);
}

.db-empty-icon {
  font-size: 32px;
  margin-bottom: var(--spacing-md);
  opacity: 0.3;
}

.db-empty-title {
  font-size: var(--font-subheading);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.db-empty-text {
  font-size: var(--font-caption);
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────
   9. TWO-COLUMN LAYOUT
   ───────────────────────────────────────────────────────────────── */

.db-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 1024px) {
  .db-two-col {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────────
   10. STATUS DOT
   ───────────────────────────────────────────────────────────────── */

.db-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.db-status-dot[data-status="good"]     { background: var(--status-good); }
.db-status-dot[data-status="warning"]  { background: var(--status-warning); }
.db-status-dot[data-status="critical"] { background: var(--status-critical); }
.db-status-dot[data-status="inactive"] { background: var(--status-inactive); }
/* ============================================================
   APPEX360 Assessment Experience - Enterprise Premium
   ============================================================
   A visual refinement layer on top of the existing assessment UI.
   
   Design principles:
   - Neutral graphite palette - colour only for selection, progress, KPIs
   - True elevation system - shadow + surface tone, not heavy borders
   - Premium motion - cubic-bezier, <250ms, micro-interactions
   - Modern typography - clear hierarchy, tighter leading, better rhythm
   - Consistent spacing - 8px grid, generous card padding
   
   Uses --ds-* tokens and existing class names. No functionality changes.
   ============================================================ */

/* --- 1. ELEVATION SYSTEM ------------------------------------------- */
/* 5 levels: background, surface, raised, elevated, overlay            */
/* Uses surface tones + shadows instead of coloured borders            */
:root {
  --elevation-bg: var(--ds-bg-primary, #0f172a);
  --elevation-surface: var(--ds-surface-card, #1e293b);
  --elevation-raised: #263348;
  --elevation-elevated: #2d3a50;
  --elevation-overlay: rgba(0, 0, 0, 0.6);
  
  --shadow-raised: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  
  --transition-premium: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- 2. TYPOGRAPHY SCALE ------------------------------------------ */
.assessment-launch-page h1,
.assessment-launch-page .launch-hero h1,
.aws-page-title {
  font-size: 1.5rem !important;  /* 24px — page title */
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ds-text-primary, #f8fafc);
}

.aws-section-title {
  font-size: 0.95rem !important;  /* 15px — section title */
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  color: var(--ds-text-primary, #f1f5f9);
}

.aws-cat-name,
.assessment-launch-page .exec-card div:first-child {
  font-size: 0.85rem !important;  /* 13.6px — card title */
  font-weight: 600 !important;
  letter-spacing: 0;
  color: var(--ds-text-primary, #f1f5f9);
}

.assessment-launch-page p,
.aws-count-label,
.aws-q-grid-header,
.aws-supporting-text {
  font-size: 0.8rem !important;  /* 12.8px — supporting text */
  line-height: 1.5;
  color: var(--ds-text-secondary, #94a3b8);
}

.aws-meta,
.aws-caption,
.aws-domain-badge,
.assessment-launch-page .exec-card div:last-child {
  font-size: 0.7rem !important;  /* 11.2px — captions */
  line-height: 1.4;
  color: var(--ds-text-muted, #64748b);
}

/* --- 3. SURFACE HIERARCHY ----------------------------------------- */
/* Differentiate background, container, section, card, selected       */

/* Assessment background */
.assessment-launch-page,
.aws-container {
  background: linear-gradient(160deg, #0a0f1e 0%, #0f172a 50%, #0d1225 100%) !important;
}

/* Section containers */
.assessment-launch-page .launch-hero {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(99, 102, 241, 0.03) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* Stats row cards */
.assessment-launch-page .exec-card,
.aws-cat-card,
.aws-q-grid {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  box-shadow: none;
  transition: var(--transition-premium) !important;
}

/* Hover state — subtle elevation */
.assessment-launch-page .exec-card:hover,
.aws-cat-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
  transform: translateY(-1px);
}

/* Selected cards */
.aws-cat-card.selected,
.selectable-card[data-selected="true"] {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), var(--shadow-glow) !important;
}

/* --- 4. QUESTION CARDS -------------------------------------------- */
.aws-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  transition: var(--transition-premium) !important;
  animation: aws-card-in 0.25s ease-out both;
}

.aws-card:hover {
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
}

/* Question text */
.aws-question-text {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  color: var(--ds-text-primary, #f1f5f9);
  margin-bottom: 0.75rem;
}

/* Score pills — compact, subtle, colour only for selection */
.aws-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ds-text-secondary, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition-fast) !important;
}

.aws-score-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.aws-score-pill.selected {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  color: #818cf8 !important;
  font-weight: 600;
}

/* --- 5. PROGRESS INDICATORS --------------------------------------- */
.aws-progress-bar {
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  overflow: hidden;
}

.aws-progress-fill {
  height: 100% !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, #6366f1, #818cf8) !important;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
}

/* Progress ring */
.aws-ring {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.aws-ring-svg circle {
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.aws-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  color: #818cf8;
}

/* --- 6. QUESTION DOTS --------------------------------------------- */
.aws-q-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.aws-q-dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid transparent;
  transition: var(--transition-fast) !important;
}

.aws-q-dot.current {
  color: #fff;
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.15);
}

.aws-q-dot.answered {
  color: #34d399;
}

.aws-q-dot.answered::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
}

.aws-q-dot:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ds-text-primary, #fff);
  transform: scale(1.12);
}

.aws-q-dot:active {
  transform: scale(0.95);
}

/* --- 7. BUTTONS & ACTIONS ---------------------------------------─ */
.assessment-launch-page a[style*="padding:0.65rem"],
.aws-btn {
  padding: 0.6rem 1.25rem !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  transition: var(--transition-fast) !important;
}

.assessment-launch-page a[style*="background:var(--color-primary)"]:hover,
.aws-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.assessment-launch-page a[style*="background:var(--color-primary)"]:active,
.aws-btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost buttons */
.assessment-launch-page a.exec-card {
  transition: var(--transition-premium) !important;
}

/* --- 8. CATEGORY PAGE --------------------------------------------- */
/* Category card grid */
.aws-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.aws-category-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  cursor: pointer;
  transition: var(--transition-premium) !important;
  text-decoration: none;
  display: block;
}

.aws-category-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.aws-category-card:active {
  transform: translateY(0);
}

.aws-category-card .aws-cat-name {
  font-size: 0.9rem !important;
  margin-bottom: 6px;
}

/* Category progress ring */
.aws-category-card .aws-ring {
  width: 36px;
  height: 36px;
}

.aws-category-card .aws-ring-svg {
  width: 36px;
  height: 36px;
}

.aws-category-card .aws-ring-text {
  font-size: 10px;
}

/* --- 9. SEARCH BAR ------------------------------------------------ */
.assessment-search {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-premium) !important;
}

/* Search bar container (take.html.erb uses this on the wrapper div) */
.assessment-search {
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-premium) !important;
}

.assessment-search:focus-within {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.assessment-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ds-text-primary, #f1f5f9);
  font-size: 0.85rem;
}

.assessment-search input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* --- 10. FOOTER / STICKY BAR ------------------------------------ */
.aws-footer {
  position: sticky;
  bottom: 0;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

/* --- 11. MICRO-INTERACTIONS --------------------------------------- */
/* Scale effect on score select */
.aws-score-pill.selected {
  transform: scale(1.05);
}

/* Card entrance stagger */
.aws-card:nth-child(1) { animation-delay: 0s; }
.aws-card:nth-child(2) { animation-delay: 0.04s; }
.aws-card:nth-child(3) { animation-delay: 0.08s; }
.aws-card:nth-child(4) { animation-delay: 0.12s; }
.aws-card:nth-child(5) { animation-delay: 0.16s; }
.aws-card:nth-child(6) { animation-delay: 0.20s; }
.aws-card:nth-child(7) { animation-delay: 0.24s; }
.aws-card:nth-child(8) { animation-delay: 0.28s; }
.aws-card:nth-child(9) { animation-delay: 0.32s; }
.aws-card:nth-child(10) { animation-delay: 0.36s; }

/* Category card stagger */
.aws-category-card:nth-child(1) { animation-delay: 0s; }
.aws-category-card:nth-child(2) { animation-delay: 0.03s; }
.aws-category-card:nth-child(3) { animation-delay: 0.06s; }
.aws-category-card:nth-child(4) { animation-delay: 0.09s; }
.aws-category-card:nth-child(5) { animation-delay: 0.12s; }
.aws-category-card:nth-child(6) { animation-delay: 0.15s; }
.aws-category-card:nth-child(7) { animation-delay: 0.18s; }
.aws-category-card:nth-child(8) { animation-delay: 0.21s; }
.aws-category-card:nth-child(9) { animation-delay: 0.24s; }
.aws-category-card:nth-child(10) { animation-delay: 0.27s; }
.aws-category-card:nth-child(11) { animation-delay: 0.30s; }
.aws-category-card:nth-child(12) { animation-delay: 0.33s; }
.aws-category-card:nth-child(13) { animation-delay: 0.36s; }
.aws-category-card:nth-child(14) { animation-delay: 0.39s; }
.aws-category-card:nth-child(15) { animation-delay: 0.42s; }
.aws-category-card:nth-child(16) { animation-delay: 0.45s; }
.aws-category-card:nth-child(17) { animation-delay: 0.48s; }
.aws-category-card:nth-child(18) { animation-delay: 0.51s; }
.aws-category-card:nth-child(19) { animation-delay: 0.54s; }
.aws-category-card:nth-child(20) { animation-delay: 0.57s; }

/* --- 12. RESPONSIVE ---------------------------------------------─ */
@media (max-width: 768px) {
  .aws-layout {
    grid-template-columns: 1fr !important;
  }
  
  .aws-category-grid {
    grid-template-columns: 1fr !important;
  }
  
  .assessment-launch-page .launch-hero > div {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/* --- 13. EMPTY STATES --------------------------------------------- */
.aws-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.aws-empty-state i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.aws-empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ds-text-primary, #e2e8f0);
  margin-bottom: 0.5rem;
}

.aws-empty-state p {
  font-size: 0.85rem;
  color: var(--ds-text-muted, #64748b);
  max-width: 400px;
  margin: 0 auto;
}

/* --- 14. FOCUS STATES (accessibility) ---------------------------─ */
.aws-card:focus-within {
  outline: none;
  border-color: rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.aws-q-dot:focus-visible,
.aws-score-pill:focus-visible,
.assessment-search:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

/* --- 15. SELECTABLE CARDS (version selector) --------------------- */
.selectable-card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  cursor: pointer;
  transition: var(--transition-premium) !important;
}

.selectable-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: var(--shadow-raised);
}

.selectable-card[data-selected="true"] {
  background: rgba(99, 102, 241, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), var(--shadow-glow) !important;
}

/* --- 16. WORKFLOW TIMELINE --------------------------------------- */
.workflow-steps {
  display: flex;
  align-items: center;
  gap: 4px;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition-fast);
}

.workflow-step.active {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
}

.workflow-step.completed {
  color: #34d399;
}

.workflow-step .step-icon {
  font-size: 0.6rem;
  opacity: 0.6;
}

.workflow-step.active .step-icon,
.workflow-step.completed .step-icon {
  opacity: 1;
}
/* ══════════════════════════════════════════════════════════════
   APEX360 Enterprise Design System
   Import order is deterministic via numbered prefixes.
   
   Usage: stylesheet_link_tag "design_system/design_system"
   
   Uses Sprockets //= require directives (NOT CSS @import) so
   all files are compiled into a SINGLE digest-bustered asset.
   CSS @import would trigger separate browser requests for each
   file that fail in production because Sprockets only serves
   digest-fingerprinted filenames.
   ══════════════════════════════════════════════════════════════ */




















