/* ==========================================================================
   Avenix Business Suite — Fondations, layout et identité visuelle
   ========================================================================== */

:root {
  color-scheme: light;
  --font-sans: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --navy: #101827;
  --navy-2: #0b1220;
  --blue: #2563eb;
  --blue-2: #1d4ed8;
  --blue-3: #3b82f6;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  --violet: #7c3aed;
  --teal: #0d9488;

  --bg: #f4f7fb;
  --bg-elevated: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.09);
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.1);
  --warning: #d97706;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --info: #0284c7;
  --info-soft: rgba(2, 132, 199, 0.1);

  --sidebar-bg: #101827;
  --sidebar-bg-2: #0c1422;
  --sidebar-text: #aebcd0;
  --sidebar-text-strong: #f8fafc;
  --sidebar-border: rgba(255, 255, 255, 0.07);
  --sidebar-width: 272px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.3), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 10px 24px -10px rgba(37, 99, 235, 0.55);

  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --transition: 180ms var(--ease);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #080e19;
  --bg-elevated: #0c1422;
  --surface: #101827;
  --surface-2: #141f31;
  --surface-3: #1a273c;
  --border: #223148;
  --border-strong: #31435e;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.13);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, 0.14);
  --sidebar-bg: #0b1220;
  --sidebar-bg-2: #080e19;
  --sidebar-border: rgba(255, 255, 255, 0.07);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  line-height: 1.18;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: rgba(37, 99, 235, 0.22);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-2);
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */
.app-shell {
  min-height: 100vh;
  --current-sidebar: var(--sidebar-width);
}

.app-shell.sidebar-collapsed {
  --current-sidebar: 84px;
}

.app-main {
  margin-left: var(--current-sidebar);
  min-height: 100vh;
  transition: margin-left 0.28s var(--ease);
}

.app-content {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 30px 32px 64px;
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--current-sidebar);
  display: flex;
  flex-direction: column;
  background:
    var(--sidebar-bg-2);
  color: var(--sidebar-text);
  border-right: 1px solid var(--sidebar-border);
  transition: width 0.28s var(--ease), transform 0.28s var(--ease);
  overflow: hidden;
}

.sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: 18px 18px;
  opacity: 0.5;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1d4ed8;
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  min-width: 0;
  white-space: nowrap;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-name span {
  font-weight: 500;
  color: #93b4e6;
}

.brand-sub {
  font-size: 10.5px;
  color: #7f93b1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

.workspace:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
}

.workspace-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #bfdbfe;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.workspace-info {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
}

.workspace-name {
  display: block;
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-plan {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: #8fa6c5;
}

.workspace-plan i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.workspace-chevron {
  color: #64748b;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-label {
  padding: 0 12px;
  margin-bottom: 7px;
  color: #667c9c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 2px;
  border-radius: 10px;
  color: var(--sidebar-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke-width: 1.9;
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-link:hover svg {
  opacity: 1;
}

.nav-link.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.1);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}

.nav-link.active svg {
  color: #60a5fa;
  opacity: 1;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: #3b82f6;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.9);
}

.nav-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 99px;
  display: inline-grid;
  place-items: center;
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-badge.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 12px;
  border-top: 1px solid var(--sidebar-border);
  background: rgba(0, 0, 0, 0.12);
}

.ai-promo {
  position: relative;
  overflow: hidden;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 13px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    rgba(124, 58, 237, 0.16);
}

.ai-promo-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #8b5cf6;
  color: #fff;
  margin-bottom: 9px;
  box-shadow: 0 6px 16px -6px rgba(96, 165, 250, 0.8);
}

.ai-promo-icon svg {
  width: 16px;
  height: 16px;
}

.ai-promo-title {
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 3px;
}

.ai-promo-text {
  color: #a9bcd6;
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.ai-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  transition: background var(--transition);
}

.ai-promo-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-promo-btn svg {
  width: 12px;
  height: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background var(--transition);
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
}

.sidebar-user-name {
  display: block;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  display: block;
  color: #7187a5;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-more {
  color: #64748b;
  background: none;
  border: 0;
  padding: 4px;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .workspace-info,
.sidebar-collapsed .workspace-chevron,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .nav-badge,
.sidebar-collapsed .nav-group-label,
.sidebar-collapsed .ai-promo,
.sidebar-collapsed .sidebar-user-info,
.sidebar-collapsed .sidebar-user-more {
  display: none;
}

.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-collapsed .workspace {
  justify-content: center;
  margin-left: 12px;
  margin-right: 12px;
  padding: 10px 0;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar-collapsed .nav-link.active::before {
  left: -12px;
}

.sidebar-collapsed .sidebar-footer {
  padding: 10px 12px;
}

.sidebar-collapsed .sidebar-user {
  justify-content: center;
  padding: 7px 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 45;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

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

.header-title {
  min-width: 0;
}

.header-title .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.header-title h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  margin-left: auto;
  flex: 0 1 330px;
}

.search-trigger {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-trigger:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.search-trigger svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.search-trigger .search-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-trigger kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--danger);
  border: 1.5px solid var(--bg);
}

.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 7px 4px 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
}

.user-chip:hover {
  background: var(--surface);
  border-color: var(--border);
}

.user-chip-text {
  text-align: left;
  line-height: 1.25;
}

.user-chip-name {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
}

.user-chip-role {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.mobile-menu-btn {
  display: none;
}

/* --------------------------------------------------------------------------
   Page heading
   -------------------------------------------------------------------------- */
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  margin-bottom: 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-heading h1 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.page-heading .page-subtitle {
  margin-top: 7px;
  max-width: 660px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.page-meta .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}

/* --------------------------------------------------------------------------
   Site (landing & contact)
   -------------------------------------------------------------------------- */
.site-body {
  background: var(--surface);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.site-header-inner {
  max-width: 1240px;
  height: 76px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.site-brand .brand-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 11px;
}

.site-brand-name {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
}

.site-brand-name span {
  font-weight: 500;
  color: var(--muted);
}

.site-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
}

.site-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  transition: color var(--transition), background var(--transition);
}

.site-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-mobile-toggle {
  display: none;
}

.site-mobile-menu {
  display: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-2);
  color: #cbd5e1;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
  pointer-events: none;
}

.site-footer-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 28px 28px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-footer-brand p {
  max-width: 310px;
  margin-top: 14px;
  color: #8fa3bf;
  font-size: 12.5px;
  line-height: 1.7;
}

.site-footer h4 {
  margin-bottom: 14px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer-links {
  display: grid;
  gap: 9px;
}

.site-footer-links a {
  color: #94a9c4;
  font-size: 12.5px;
  transition: color var(--transition);
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  color: #7187a5;
  font-size: 11.5px;
  flex-wrap: wrap;
}

.site-footer-bottom .demo-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer-bottom .demo-note i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #22c55e;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.text-soft {
  color: var(--text-soft);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

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

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.kbd {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.scroll-x {
  overflow-x: auto;
  scrollbar-width: thin;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.32); }
  50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-in {
  animation: fadeUp 0.55s var(--ease) both;
}

.delay-1 { animation-delay: 0.06s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.18s; }
.delay-4 { animation-delay: 0.24s; }
.delay-5 { animation-delay: 0.3s; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}