/* ============================================================
   Agenify AI — Colors & Typography
   Single source of truth for visual tokens.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---------- Colors: primary ---------- */
  --color-primary: #3268B2;
  --color-primary-hover: #2A5598;
  --color-primary-active: #234780;
  --color-primary-tint: #DCE8F5;

  /* ---------- Colors: accent (amber — use sparingly) ---------- */
  --color-accent: #D4880C;
  --color-accent-hover: #B87509;
  --color-accent-tint: #FDF3E0;

  /* ---------- Colors: neutrals ---------- */
  --color-bg: #F2F5F9;
  --color-surface: #FFFFFF;
  --color-border: #E5EAF1;
  --color-border-strong: #C9D2DF;
  --color-text: #1C2130;            /* never pure black */
  --color-text-muted: #7A8BA0;
  --color-text-subtle: #A8B4C5;

  /* ---------- Colors: semantic ---------- */
  --color-success: #0E9F6E;
  --color-success-tint: #E3F5EC;
  --color-success-text: #036B48;
  --color-error: #D92D20;
  --color-error-tint: #FCE8E6;
  --color-error-text: #9A1D13;
  --color-warning: #D4880C;
  --color-warning-tint: #FDF3E0;
  --color-warning-text: #8B5A06;
  --color-info: #3268B2;
  --color-info-tint: #DCE8F5;
  --color-info-text: #234780;

  /* ---------- Foreground aliases ---------- */
  --fg-1: #1C2130;
  --fg-2: #7A8BA0;
  --fg-3: #A8B4C5;
  --bg-1: #F2F5F9;
  --bg-2: #FFFFFF;

  /* ---------- Typography ---------- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Type scale (desktop) */
  --fs-display: 72px;
  --fs-h1: 56px;
  --fs-h2: 40px;
  --fs-h3: 28px;
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-micro: 12px;

  /* ---------- Spacing (4px grid) ---------- */
  --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;

  /* ---------- Radius ---------- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ---------- Elevation ----------
     Agenify does not use drop shadows as a rule.
     Menu-shadow is the ONLY permitted shadow,
     reserved for floating menus / tooltips / dropdowns. */
  --shadow-menu: 0 1px 2px rgba(28, 33, 48, 0.04);

  /* ---------- Motion ---------- */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;

  /* ---------- Layout ---------- */
  --container-max: 1200px;
  --prose-max: 680px;
}

/* ============================================================
   Semantic type styles
   Use these classes OR target the raw elements.
   ============================================================ */

html, body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.t-display, h1.display {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1, .t-h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

h2, .t-h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3, .t-h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h4, .t-h4 {
  font-size: var(--fs-h4);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}

p, .t-body {
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
}

.t-body-lg {
  font-size: var(--fs-body-lg);
  line-height: 1.6;
  font-weight: 400;
}

.t-sm, small {
  font-size: var(--fs-sm);
  line-height: 1.5;
  font-weight: 400;
}

.t-micro {
  font-size: var(--fs-micro);
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.t-eyebrow {
  font-size: var(--fs-micro);
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

code, kbd, samp, .t-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Mobile scale (≤720px) */
@media (max-width: 720px) {
  :root {
    --fs-display: 48px;
    --fs-h1: 40px;
    --fs-h2: 32px;
    --fs-h3: 24px;
  }
}
