/* =========================================================
   Zarafah Design System — Foundations
   Colors, Typography, Spacing, Radii, Shadows, Motion
   Pulled from the website source (zarafah_ai_solutions_website.jsx)
   ========================================================= */

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

:root {
  /* -------------------- Brand / Palette ------------------- */
  --brand: #2563EB;          /* blue-600 — primary brand */
  --brand-dark: #1D4ED8;     /* blue-700 — pressed / gradient end */
  --brand-soft: #DBEAFE;     /* blue-100 — soft fills, eyebrows */
  --brand-mid: #60A5FA;      /* blue-400 — accent dots */
  --brand-light: #93C5FD;    /* blue-300 — secondary accents */
  --brand-tint: #BFDBFE;     /* blue-200 — glow */
  --brand-faint: #EFF6FF;    /* blue-50 — surface tint */

  /* -------------------- Neutrals -------------------------- */
  --ink-900: #0F172A;        /* slate-900 — primary text, mark */
  --ink-700: #334155;
  --ink-600: #475569;        /* slate-600 — body muted */
  --ink-500: #64748B;        /* slate-500 — soft muted */
  --ink-400: #94A3B8;
  --ink-300: #C2D3EA;        /* line-strong */
  --ink-200: #D8E2F0;        /* line */
  --ink-100: #EEF4FF;
  --ink-50:  #F7FAFC;
  --paper:   #FFFFFF;

  /* -------------------- Semantic surface ------------------ */
  --bg:           #F7FAFC;
  --bg-alt:       #EEF4FF;
  --surface:      #FFFFFF;
  --surface-alt:  #F8FBFF;
  --surface-tint: #F3F8FF;
  --surface-blue: #F1F6FE;

  /* -------------------- Semantic text --------------------- */
  --text:    #0F172A;
  --muted:   #475569;
  --soft:    #64748B;
  --on-brand:#FFFFFF;

  /* -------------------- Borders --------------------------- */
  --line:        #D8E2F0;
  --line-strong: #C2D3EA;
  --line-hairline: rgba(15, 23, 42, 0.06);
  --line-faint:    rgba(15, 23, 42, 0.04);

  /* -------------------- Radii ----------------------------- */
  --radius-sm:   8px;
  --radius:      16px;        /* inputs */
  --radius-md:   18px;
  --radius-lg:   22px;        /* cards (default) */
  --radius-xl:   28px;        /* hero panels, contact */
  --radius-pill: 999px;       /* buttons, eyebrows */

  /* -------------------- Spacing --------------------------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  14px;
  --space-5:  18px;
  --space-6:  22px;
  --space-7:  24px;
  --space-8:  28px;
  --space-9:  36px;
  --space-10: 56px;

  /* -------------------- Layout ---------------------------- */
  --container-max: 1180px;
  --container-pad: 24px;

  /* -------------------- Shadows --------------------------- */
  --shadow-card:    0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-hover:   0 20px 38px rgba(15, 23, 42, 0.10);
  --shadow-soft:    0 10px 20px rgba(15, 23, 42, 0.06);
  --shadow-brand:   0 12px 24px rgba(37, 99, 235, 0.18);
  --shadow-brand-h: 0 16px 28px rgba(37, 99, 235, 0.22);
  --shadow-mark:    0 8px 20px rgba(37, 99, 235, 0.08);
  --ring-focus:     0 0 0 4px rgba(37, 99, 235, 0.10);

  /* -------------------- Gradients ------------------------- */
  --grad-brand:        linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  --grad-mark-stroke:  linear-gradient(135deg, #0F172A 0%, #3B82F6 100%);
  --grad-mark-soft:    linear-gradient(135deg, #DBEAFE 0%, #60A5FA 100%);
  --grad-page:         linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 100%);
  --grad-alt-section:  linear-gradient(180deg, #F8FBFF 0%, #F1F6FE 100%);
  --grad-card-tint:    linear-gradient(180deg, #FFFFFF 0%, #F3F8FF 100%);
  --grad-card-faint:   linear-gradient(180deg, #FFFFFF 0%, #FBFDFF 100%);
  --grad-contact:      linear-gradient(180deg, #FFFFFF 0%, #F6FAFF 100%);
  --halo-1:            radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.12), transparent 26%);
  --halo-2:            radial-gradient(circle at 80% 24%, rgba(191, 219, 254, 0.42), transparent 22%);

  /* -------------------- Motion ---------------------------- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    160ms;
  --dur-base:    180ms;
  --dur-reveal:  560ms;

  /* -------------------- Typography ------------------------ */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Scale (the website is fluid; these are the resolved
     ranges captured as discrete tokens) */
  --fs-display:  64px;   /* hero h1 max (clamp 40 → 64) */
  --fs-h1:       48px;   /* subpage h1 */
  --fs-h2:       42px;   /* section title max (clamp 30 → 42) */
  --fs-h3-lg:    30px;   /* hero panel h3 */
  --fs-h3:       21px;   /* card h3 */
  --fs-h4:       18px;
  --fs-lead:     18px;   /* hero p */
  --fs-body:     16px;
  --fs-body-sm:  15px;   /* card p */
  --fs-meta:     14px;   /* nav-link, field label */
  --fs-eyebrow:  11px;
  --fs-tiny:     11px;

  --lh-tight:   0.98;
  --lh-snug:    1.06;
  --lh-heading: 1.10;
  --lh-body:    1.78;

  --tr-display:  -0.055em;
  --tr-tight:    -0.03em;
  --tr-snug:     -0.02em;
  --tr-eyebrow:  0.18em;
  --tr-link:     0.06em;
  --tr-mark:     0.22em;
}

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--grad-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Semantic typography classes
   ========================================================= */
.t-display {
  font-size: clamp(40px, 6vw, var(--fs-display));
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-display);
  font-weight: 700;
  margin: 0;
}

.t-h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-display);
  font-weight: 700;
  margin: 0;
}

.t-h2 {
  font-size: clamp(30px, 4vw, var(--fs-h2));
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-tight);
  font-weight: 700;
  margin: 0;
}

.t-h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: var(--tr-tight);
  font-weight: 700;
  margin: 0;
}

.t-h3-lg {
  font-size: var(--fs-h3-lg);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-tight);
  font-weight: 700;
  margin: 0;
}

.t-h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  letter-spacing: var(--tr-snug);
  font-weight: 700;
  margin: 0;
}

.t-lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--muted);
  margin: 0;
}

.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--muted);
  margin: 0;
}

.t-body-sm {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--muted);
  margin: 0;
}

.t-meta {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--muted);
}

.t-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.t-mark-sub {
  font-size: var(--fs-tiny);
  letter-spacing: var(--tr-mark);
  text-transform: uppercase;
  color: var(--soft);
}

.t-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: var(--tr-link);
  text-transform: uppercase;
}
