/* ============================================================
   CAMPUS MATRIX — DESIGN SYSTEM
   A product by Aevos Technologies
   Tokens · Base · Components · Utilities · Motion
   ============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand palette */
  --navy-900: #0a1130;
  --navy-800: #0e1a45;
  --navy-700: #14235c;
  --navy-600: #1b2f75;
  --royal-600: #2540b8;
  --royal-500: #2f52e0;
  --royal-400: #5b78f0;
  --indigo-600: #4338ca;
  --indigo-500: #6366f1;
  --indigo-400: #818cf8;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;

  /* Semantic */
  --brand: var(--royal-500);
  --brand-strong: var(--royal-600);
  --brand-soft: #eef2ff;
  --accent: var(--indigo-500);
  --accent-2: var(--cyan-500);
  --accent-3: var(--violet-500);

  --success: #16a34a;
  --success-soft: #dcfce7;
  --warning: #d97706;
  --warning-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #0891b2;
  --info-soft: #cffafe;

  /* Neutral / surfaces (light) */
  --bg: #f6f8fd;
  --bg-2: #eef2fb;
  --surface: #ffffff;
  --surface-2: #f9fafe;
  --surface-3: #f1f4fb;
  --border: #e4e9f4;
  --border-strong: #d3daec;
  --text: #0f1a3a;
  --text-2: #45507a;
  --text-3: #6b7599;
  --text-inverse: #ffffff;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2f52e0 0%, #6366f1 50%, #8b5cf6 100%);
  --grad-brand-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  --grad-hero: radial-gradient(1200px 600px at 12% -10%, rgba(99,102,241,.20), transparent 60%),
               radial-gradient(1000px 520px at 100% 0%, rgba(34,211,238,.16), transparent 55%),
               linear-gradient(180deg, #f8faff 0%, #f6f8fd 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4, #6366f1);
  --grad-violet: linear-gradient(135deg, #8b5cf6, #6366f1);

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(15,26,58,.06);
  --sh-sm: 0 2px 8px rgba(15,26,58,.07);
  --sh-md: 0 10px 30px -12px rgba(20,35,92,.28);
  --sh-lg: 0 24px 60px -20px rgba(20,35,92,.35);
  --sh-glow: 0 20px 60px -18px rgba(99,102,241,.55);
  --ring: 0 0 0 4px rgba(99,102,241,.18);

  /* Type */
  --font: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", sans-serif;

  /* Layout */
  --container: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

:root[data-theme="dark"] {
  --bg: #070b1c;
  --bg-2: #0a1130;
  --surface: #0e152e;
  --surface-2: #111a37;
  --surface-3: #16203f;
  --border: #1e294a;
  --border-strong: #2a3862;
  --text: #eef1fb;
  --text-2: #aab4d4;
  --text-3: #7c88ad;
  --brand-soft: #161f42;
  --success-soft: #0e2a1c;
  --warning-soft: #33260b;
  --danger-soft: #331319;
  --info-soft: #0a2733;
  --grad-hero: radial-gradient(1200px 600px at 12% -10%, rgba(99,102,241,.22), transparent 60%),
               radial-gradient(1000px 520px at 100% 0%, rgba(34,211,238,.14), transparent 55%),
               linear-gradient(180deg, #080d20 0%, #070b1c 100%);
  --sh-md: 0 10px 30px -12px rgba(0,0,0,.6);
  --sh-lg: 0 24px 60px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .3s var(--ease);
}

h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--text); margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1rem; color: var(--text-2); }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-strong); }
img, svg { max-width: 100%; display: block; }
::selection { background: rgba(99,102,241,.24); }

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

/* ---------- 2. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: 1360px; }
.section { padding: clamp(56px, 8vw, 108px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.stack { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-xs{gap:6px}.gap-sm{gap:12px}.gap-md{gap:20px}.gap-lg{gap:32px}
.wrap{flex-wrap:wrap}

/* ---------- 3. TYPOGRAPHY HELPERS ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 7px 14px; border-radius: var(--r-full); border: 1px solid var(--border);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(99,102,241,.18); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-3); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px,5vw,56px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.balance { text-wrap: balance; }

/* ---------- 4. BUTTONS ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-weight: 650; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-full); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), opacity .2s;
  white-space: nowrap; user-select: none; position: relative; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { --btn-fg: #fff; background: var(--grad-brand); box-shadow: var(--sh-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -16px rgba(99,102,241,.7); color:#fff; }
.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--text); border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-dark { --btn-fg:#fff; background: var(--navy-800); }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); color:#fff; }
.btn-sm { padding: 9px 15px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-icon { padding: 11px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(99,102,241,.3); border-top-color: var(--brand); }

/* ---------- 5. CARDS ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-pad { padding: clamp(20px, 3vw, 30px); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--border-strong); }
.card-glow { position: relative; overflow: hidden; }
.card-glow::before {
  content:""; position:absolute; inset:-1px; border-radius: inherit; padding:1px;
  background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity:0; transition: opacity .3s;
}
.card-glow:hover::before { opacity:.8; }

.feature-icon {
  width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--border);
}
.feature-icon svg { width: 25px; height: 25px; }
.feature-icon.grad { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-glow); }
.feature-icon.cyan { background: var(--grad-cyan); color:#fff; }
.feature-icon.violet { background: var(--grad-violet); color:#fff; }

/* ---------- 6. BADGES / CHIPS / PILLS ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); letter-spacing:.01em; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--surface-3); color: var(--text-2); }
.badge-dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--sh-glow); }

/* ---------- 7. FORMS ---------- */
.field { margin-bottom: 18px; }
.label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 8px; color: var(--text); }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 12px 15px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.textarea { resize: vertical; min-height: 110px; }
.input-group { position: relative; }
.input-group .input { padding-left: 44px; }
.input-group .ig-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 18px; height: 18px; }
.input-group .ig-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-3); cursor: pointer; padding: 6px; border-radius: 8px; }
.input-group .ig-btn:hover { color: var(--brand); background: var(--surface-3); }
.field.is-error .input, .field.is-error .select { border-color: var(--danger); }
.field.is-success .input { border-color: var(--success); }
.field-msg { font-size: .8rem; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.field.is-error .field-msg { color: var(--danger); }
.field.is-success .field-msg { color: var(--success); }
.help { font-size: .8rem; color: var(--text-3); margin-top: 6px; }

.checkbox, .radio { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--text-2); }
.checkbox input, .radio input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }

/* Toggle */
.switch { position: relative; width: 46px; height: 26px; display: inline-block; flex-shrink:0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: .3s var(--ease); cursor: pointer; }
.switch .track::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .3s var(--ease-spring); box-shadow: var(--sh-sm); }
.switch input:checked + .track { background: var(--grad-brand); }
.switch input:checked + .track::before { transform: translateX(20px); }

/* Segmented control */
.segment { display: inline-flex; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--r-full); padding: 4px; gap: 2px; }
.segment button { border: none; background: transparent; color: var(--text-2); font-weight: 650; font-size: .88rem; padding: 8px 16px; border-radius: var(--r-full); cursor: pointer; transition: all .25s var(--ease); }
.segment button.active { background: var(--surface); color: var(--brand); box-shadow: var(--sh-sm); }

/* ---------- 8. TABLES ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.data th { text-align: left; font-weight: 700; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td strong { color: var(--text); font-weight: 650; }

/* ---------- 9. AVATARS ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .85rem; flex-shrink: 0; overflow: hidden; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar-group { display: flex; }
.avatar-group .avatar { border: 2px solid var(--surface); margin-left: -10px; }
.avatar-group .avatar:first-child { margin-left: 0; }

/* ---------- 10. TABS ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { border: none; background: none; padding: 12px 16px; font-weight: 650; font-size: .92rem; color: var(--text-3); cursor: pointer; position: relative; white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--brand); }
.tabs button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2.5px; background: var(--grad-brand); border-radius: 3px; }

/* ---------- 11. ACCORDION ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-head { width: 100%; text-align: left; background: none; border: none; padding: 20px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .2s; }
.acc-head:hover { color: var(--brand); }
.acc-head .acc-ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.acc-item.open .acc-ico { transform: rotate(45deg); background: var(--grad-brand); color: #fff; }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-body-inner { padding: 0 22px 22px; color: var(--text-2); }

/* ---------- 12. MODAL / DRAWER ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8,12,30,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; z-index: 200; display: grid; place-items: center; padding: 20px; }
.overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); width: 100%; max-width: 520px; transform: translateY(20px) scale(.97); opacity: 0; transition: transform .35s var(--ease-spring), opacity .3s; max-height: 90vh; overflow-y: auto; border: 1px solid var(--border); }
.overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-lg { max-width: 760px; }
.modal-head { padding: 22px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 18px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; background: var(--surface-2); }
.modal-close { background: var(--surface-3); border: none; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--text-2); display: grid; place-items: center; transition: all .2s; flex-shrink:0; }
.modal-close:hover { background: var(--danger-soft); color: var(--danger); }

.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); background: var(--surface); box-shadow: var(--sh-lg); z-index: 200; transform: translateX(100%); transition: transform .38s var(--ease); display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }

/* ---------- 13. TOAST ---------- */
.toast-wrap { position: fixed; bottom: 26px; right: 26px; z-index: 300; display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.toast { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 17px; box-shadow: var(--sh-lg); transform: translateX(120%); animation: toastIn .45s var(--ease-spring) forwards; }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }
.toast-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.toast-ico.success { background: var(--success-soft); color: var(--success); }
.toast-ico.error { background: var(--danger-soft); color: var(--danger); }
.toast-ico.info { background: var(--info-soft); color: var(--info); }
.toast-ico.warning { background: var(--warning-soft); color: var(--warning); }
.toast-title { font-weight: 700; font-size: .92rem; color: var(--text); margin-bottom: 2px; }
.toast-msg { font-size: .84rem; color: var(--text-3); }
@keyframes toastIn { to { transform: translateX(0); } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ---------- 14. TOOLTIP ---------- */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--navy-800); color: #fff; font-size: .76rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 15. SKELETON / STATES ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state .es-ico { width: 76px; height: 76px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 18px; }
.empty-state .es-ico svg { width: 36px; height: 36px; }

/* ---------- 16. PROGRESS / METER ---------- */
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; transition: width 1s var(--ease); }
.ring-progress { --p: 70; --size: 90px; --thick: 9px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p)*1%), var(--surface-3) 0); }
.ring-progress::before { content: ""; position: absolute; width: calc(var(--size) - var(--thick)*2); height: calc(var(--size) - var(--thick)*2); background: var(--surface); border-radius: 50%; }
.ring-progress span { position: relative; font-weight: 800; font-family: var(--font-display); }

/* ---------- 17. DIVIDERS / MISC ---------- */
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); display: inline-block; }
.kbd { font-family: ui-monospace, monospace; font-size: .78rem; background: var(--surface-3); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--text-2); }
.star { color: #f59e0b; }

/* ---------- 18. MOTION UTILITIES ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatSlow { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,.4); } 50% { box-shadow: 0 0 0 12px rgba(99,102,241,0); } }
@keyframes gridMove { to { background-position: 40px 40px; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-scale.in { opacity: 1; transform: none; }
[data-delay="1"]{transition-delay:.08s}[data-delay="2"]{transition-delay:.16s}[data-delay="3"]{transition-delay:.24s}
[data-delay="4"]{transition-delay:.32s}[data-delay="5"]{transition-delay:.4s}[data-delay="6"]{transition-delay:.48s}
.float { animation: float 6s var(--ease) infinite; }
.float-slow { animation: floatSlow 8s var(--ease) infinite; }

/* ---------- 19. UTILITIES ---------- */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.full{width:100%}.rel{position:relative}
.grid-2{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(3,1fr)}.grid-4{grid-template-columns:repeat(4,1fr)}
.fs-sm{font-size:.86rem}.fs-xs{font-size:.78rem}.fw-700{font-weight:700}.fw-800{font-weight:800}
.pointer{cursor:pointer}

@media (max-width: 980px){ .grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4{grid-template-columns:1fr} .container{padding-inline:18px} }
