/* All Services — Shared Design System Tokens */
:root {
  /* Core Surfaces & Ink */
  --as-bg: #f4f6f9;
  --as-bg-elev: #ffffff;
  --as-bg-subtle: #f8fafc;
  --as-bg-muted: #eef2f6;
  --as-ink: #0b0f19;
  --as-ink-2: #1e293b;
  --as-muted: #525d73;
  --as-muted-2: #64748b;

  /* Borders & Hairlines */
  --as-line: rgba(15, 23, 42, 0.08);
  --as-line-strong: rgba(15, 23, 42, 0.16);

  /* Brand & Product Accents */
  --as-navy: #0b1220;
  --as-navy-2: #131c31;
  --as-navy-3: #1b2845;
  --as-brand: #f97316;
  --as-brand-hover: #ea580c;
  --as-brand-soft: #fff7ed;
  --as-accent: #2563eb;
  --as-accent-hover: #1d4ed8;
  --as-accent-soft: #eff6ff;

  /* Semantic Status */
  --as-ok: #15803d;
  --as-ok-bright: #16a34a;
  --as-ok-hover: #166534;
  --as-ok-bg: #dcfce7;
  --as-warn: #c2410c;
  --as-warn-bright: #f97316;
  --as-warn-bg: #ffedd5;
  --as-amber: #92400e;
  --as-amber-bg: #fef3c7;
  --as-danger: #b91c1c;
  --as-danger-bright: #dc2626;
  --as-danger-bg: #fee2e2;

  /* Typography */
  --as-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --as-text-xs: 12px;
  --as-text-sm: 13px;
  --as-text-base: 15px;
  --as-text-md: 16px;
  --as-text-lg: 18px;
  --as-text-xl: 22px;
  --as-text-2xl: 26px;
  --as-text-3xl: clamp(26px, 3.2vw, 36px);
  --as-text-hero: clamp(34px, 5vw, 56px);

  /* Spacing Scale */
  --as-s1: 4px;
  --as-s2: 8px;
  --as-s3: 12px;
  --as-s4: 16px;
  --as-s5: 20px;
  --as-s6: 24px;
  --as-s8: 32px;
  --as-s10: 40px;
  --as-s12: 48px;

  /* Radii */
  --as-r-xs: 6px;
  --as-r-sm: 10px;
  --as-r: 14px;
  --as-r-lg: 18px;
  --as-r-pill: 999px;

  /* Elevation & Focus */
  --as-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --as-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --as-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 16px 36px rgba(15, 23, 42, 0.08);
  --as-shadow-lg: 0 10px 30px rgba(11, 18, 32, 0.16), 0 24px 56px rgba(11, 18, 32, 0.18);
  --as-focus: 0 0 0 3px rgba(37, 99, 235, 0.22);

  /* Motion */
  --as-ease: 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --as-ease-slow: 240ms cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Legacy-compatible aliases used across trade apps */
  --bg: var(--as-bg);
  --bg-elev: var(--as-bg-elev);
  --ink: var(--as-ink);
  --muted: var(--as-muted);
  --line: var(--as-line);
  --line-strong: var(--as-line-strong);
  --accent: var(--as-accent);
  --accent-hover: var(--as-accent-hover);
  --ok: var(--as-ok-bright);
  --ok-hover: var(--as-ok-hover);
  --warn: var(--as-warn-bright);
  --warn-hover: var(--as-brand-hover);
  --danger: var(--as-danger-bright);
  --navy: var(--as-navy);
  --navy-2: var(--as-navy-2);
  --shadow: var(--as-shadow);
  --shadow-sm: var(--as-shadow-sm);
  --r: var(--as-r);
  --r-sm: var(--as-r-sm);
  --font: var(--as-font);
  --ease: var(--as-ease);
}

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