/* =========================================================
   Fasset — Base: Reset, Variables, Typography
   ========================================================= */

:root {
  /* Brand */
  --brand-900: #062018;
  --brand-800: #0a3327;
  --brand-700: #0e4a37;
  --brand-600: #0a8f5f;
  --brand-500: #00b378;
  --brand-400: #17d494;
  --brand-300: #5ee6b8;
  --brand-100: #dcfaee;
  --brand-50:  #f0fdf7;

  --gradient-brand: linear-gradient(135deg, #062018 0%, #0a4a35 45%, #00b378 100%);
  --gradient-brand-soft: linear-gradient(135deg, #eafff5 0%, #f4fffb 100%);

  /* Surfaces */
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #fafcfb;
  --border: #edf1f0;
  --border-strong: #dee5e3;

  /* Text */
  --text-primary: #101915;
  --text-secondary: #5b6b64;
  --text-muted: #97a39d;
  --text-inverse: #ffffff;

  /* Semantic */
  --success: #00b378;
  --success-bg: #e6faf1;
  --warning: #f79009;
  --warning-bg: #fef3e2;
  --danger: #f04438;
  --danger-bg: #feeceb;
  --info: #2e90fa;
  --info-bg: #eaf4ff;
  --neutral-bg: #f0f2f1;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 25, 21, 0.035);
  --shadow-sm: 0 4px 14px rgba(16, 25, 21, 0.055);
  --shadow-md: 0 12px 32px rgba(16, 25, 21, 0.09);
  --shadow-lg: 0 24px 60px rgba(16, 25, 21, 0.14);
  --shadow-brand: 0 14px 36px rgba(0, 179, 120, 0.24);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 999px;

  /* Layout */
  --sidebar-width: 264px;
  --sidebar-width-collapsed: 84px;
  --topnav-height: 76px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.2s var(--ease);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

h1 { font-size: 30px; letter-spacing: -0.03em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { margin: 0; }

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

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

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; }

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

.num, .mono {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

::selection { background: var(--brand-300); color: var(--brand-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

/* Utility */
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-brand { color: var(--brand-600); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: 6px; }
.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-0 { margin-top: 0; }
.w-100 { width: 100%; }

.fade-in { animation: fadeIn 0.5s var(--ease) both; }
.fade-in-up { animation: fadeInUp 0.55s var(--ease) both; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

/* Stagger children */
.stagger > * { animation: fadeInUp 0.5s var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.10s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(6) { animation-delay: 0.22s; }
