/* ================================================================
   AimWright Design System — Tokens
   Everything downstream references these variables.
   ================================================================ */

/* ---- Fonts: Geist (self-hosted fallback: Google Fonts CDN) ---- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* ============================================================
     COLOR — base palette
     ============================================================ */

  /* Ink & surfaces (dark, primary) */
  --ink:              #0A0A0F;  /* app background */
  --surface:          #101018;  /* card / panel */
  --surface-elevated: #17171F;  /* popovers, hover states */
  --surface-raised:   #1E1E28;  /* modals, tooltips */
  --hairline:         #22222C;  /* 1px dividers */
  --hairline-strong:  #2E2E3A;  /* emphasized dividers */

  /* Text on dark */
  --fg1: #F4F4F5;   /* primary text */
  --fg2: #A1A1AA;   /* secondary text */
  --fg3: #71717A;   /* tertiary / metadata */
  --fg4: #52525B;   /* placeholder / disabled */

  /* Light-mode surfaces (secondary theme) */
  --ink-light:              #FAFAFA;
  --surface-light:          #FFFFFF;
  --surface-elevated-light: #F4F4F5;
  --hairline-light:         #E5E5E5;
  --fg1-light: #0A0A0F;
  --fg2-light: #3F3F46;
  --fg3-light: #71717A;

  /* Violet accent scale */
  --violet-50:  #F5F3FF;
  --violet-100: #EDE9FE;
  --violet-200: #DDD6FE;
  --violet-300: #C4B5FD;
  --violet-400: #A78BFA;
  --violet-500: #8B5CF6;   /* brand core */
  --violet-600: #7C3AED;
  --violet-700: #6D28D9;
  --violet-800: #5B21B6;
  --violet-900: #4C1D95;
  --violet-glow: rgba(139, 92, 246, 0.35);
  --violet-soft: rgba(139, 92, 246, 0.12);

  --accent:        var(--violet-500);
  --accent-hover:  var(--violet-400);
  --accent-active: var(--violet-600);

  /* Semantic — muted, low-saturation */
  --go:        #4ADE80;   --go-soft:        rgba(74, 222, 128, 0.12);
  --warn:      #FBBF24;   --warn-soft:      rgba(251, 191, 36, 0.12);
  --stop:      #FB7185;   --stop-soft:      rgba(251, 113, 133, 0.12);
  --info:      #60A5FA;   --info-soft:      rgba(96, 165, 250, 0.12);

  /* ============================================================
     TYPOGRAPHY
     ============================================================ */
  --font-sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Display scale (marketing) */
  --fs-display-2xl: 96px;   --lh-display-2xl: 1.02;  --tracking-display-2xl: -0.04em;
  --fs-display-xl:  72px;   --lh-display-xl:  1.04;  --tracking-display-xl:  -0.035em;
  --fs-display-lg:  56px;   --lh-display-lg:  1.06;  --tracking-display-lg:  -0.03em;
  --fs-display-md:  44px;   --lh-display-md:  1.08;  --tracking-display-md:  -0.025em;
  --fs-display-sm:  32px;   --lh-display-sm:  1.12;  --tracking-display-sm:  -0.02em;

  /* Body / UI scale */
  --fs-h1:    28px;  --lh-h1:    1.2;   --tracking-h1:   -0.015em;
  --fs-h2:    22px;  --lh-h2:    1.25;  --tracking-h2:   -0.01em;
  --fs-h3:    18px;  --lh-h3:    1.3;   --tracking-h3:    0;
  --fs-body:  15px;  --lh-body:  1.55;
  --fs-sm:    13px;  --lh-sm:    1.5;
  --fs-xs:    12px;  --lh-xs:    1.4;
  --fs-eyebrow: 11px; --lh-eyebrow: 1.2; --tracking-eyebrow: 0.14em;

  /* Weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* ============================================================
     SPACING — 4pt scale
     ============================================================ */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ============================================================
     RADII
     ============================================================ */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;
  --radius-xl:   14px;
  --radius-2xl:  20px;
  --radius-full: 9999px;

  /* ============================================================
     SHADOWS & GLOW
     ============================================================ */
  --shadow-pop: 0 8px 24px -8px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-modal: 0 24px 48px -16px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-glow: 0 0 40px -8px var(--violet-glow);
  --shadow-glow-inset: inset 0 0 0 1px rgba(139, 92, 246, 0.4), 0 0 24px -6px var(--violet-glow);

  /* ============================================================
     MOTION
     ============================================================ */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --dur-micro: 120ms;
  --dur-default: 200ms;
  --dur-layout: 400ms;
  --dur-hero: 800ms;

  /* ============================================================
     LAYOUT
     ============================================================ */
  --container-marketing: 1200px;
  --container-product:   1440px;
  --container-narrow:    720px;
  --header-height: 64px;
}

/* ================================================================
   SEMANTIC ELEMENT STYLES
   Applied when classes are used; page defaults set where noted.
   ================================================================ */

html, body {
  background: var(--ink);
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display-2xl { font-size: var(--fs-display-2xl); line-height: var(--lh-display-2xl); letter-spacing: var(--tracking-display-2xl); font-weight: var(--fw-medium); }
.display-xl  { font-size: var(--fs-display-xl);  line-height: var(--lh-display-xl);  letter-spacing: var(--tracking-display-xl);  font-weight: var(--fw-medium); }
.display-lg  { font-size: var(--fs-display-lg);  line-height: var(--lh-display-lg);  letter-spacing: var(--tracking-display-lg);  font-weight: var(--fw-medium); }
.display-md  { font-size: var(--fs-display-md);  line-height: var(--lh-display-md);  letter-spacing: var(--tracking-display-md);  font-weight: var(--fw-medium); }
.display-sm  { font-size: var(--fs-display-sm);  line-height: var(--lh-display-sm);  letter-spacing: var(--tracking-display-sm);  font-weight: var(--fw-semibold); }

.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--tracking-h1); font-weight: var(--fw-semibold); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); font-weight: var(--fw-semibold); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--tracking-h3); font-weight: var(--fw-medium); }

.body    { font-size: var(--fs-body); line-height: var(--lh-body); }
.body-sm { font-size: var(--fs-sm);   line-height: var(--lh-sm); }
.body-xs { font-size: var(--fs-xs);   line-height: var(--lh-xs); }

.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  color: var(--fg3);
}

.mono, code, kbd, pre, .tabular {
  font-family: var(--font-mono);
  font-feature-settings: "ss01", "ss02";
}

.tabular-nums { font-variant-numeric: tabular-nums; }

/* Selection */
::selection { background: var(--violet-500); color: var(--ink); }

/* Focus ring — global */
:focus-visible {
  outline: 2px solid var(--violet-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
