/* ===========================================================
   BDI — Business Data Inc. Design System Tokens
   Bright, contemporary, white-space forward.
   Brand DNA: blue→green gradient, organic circles, soft waves.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Instrument+Serif:ital@0;1&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Geist+Mono:wght@400;500;700&display=swap');

:root {
  /* ---------- BRAND CORE ---------- */
  --bdi-blue:            #0055A5;   /* Primary brand blue (PMS-style) */
  --bdi-blue-deep:       #0047AB;   /* Deep blue, for dense type / accents */
  --bdi-blue-ink:        #213D58;   /* Footer / dark text */
  --bdi-blue-slate:      #375A7B;   /* Announcement bar / muted brand */
  --bdi-blue-steel:      #405577;   /* Body text on light surfaces */

  --bdi-green:           #8DC63F;   /* Primary brand green (CTA highlight) */
  --bdi-green-bright:    #84C925;   /* Vibrant green, accents */
  --bdi-green-deep:      #38770E;   /* Deeper brand green for text on white — 5.55:1 (AA pass) */
  --bdi-green-text:      #4A7515;   /* Stat callouts */

  /* ---------- NEUTRALS ---------- */
  --ink-900:             #0F172A;
  --ink-800:             #1E293B;
  --ink-700:             #334155;
  --ink-600:             #475569;
  --ink-500:             #64748B;
  --ink-400:             #94A3B8;
  --ink-300:             #CBD5E1;
  --ink-200:             #E2E8F0;
  --ink-100:             #F1F5F9;
  --ink-50:              #F8FAFC;
  --paper:               #FFFFFF;
  --soft-paper:          #FAFBFD;

  /* ---------- SIGNATURE GRADIENTS ---------- */
  --grad-hero:           linear-gradient(135deg, #8DC63F 0%, #0055A5 84%);
  --grad-hero-vertical:  linear-gradient(180deg, #8DC63F 0%, #0055A5 84%);
  --grad-orb:            linear-gradient(180deg, rgba(132,201,37,0.8) 0%, rgba(0,85,165,0.8) 100%);
  --grad-orb-soft:       linear-gradient(180deg, rgba(141,198,63,0.18) 0%, rgba(0,85,165,0.22) 100%);
  --grad-divider:        linear-gradient(180deg, #F4F4F4 0%, #CCCCCC 100%);
  --grad-scrim-bottom:   linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.55) 100%);
  --grad-scrim-protect:  linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%);

  /* ---------- SHAPE OVERLAYS (the "movement") ----------
     Subtle translucent circles BDI floats over hero scenes. */
  --shape-circle-green:  rgba(141,198,63,0.09);
  --shape-circle-white:  rgba(255,255,255,0.05);
  --shape-circle-glow:   rgba(255,255,255,0.10);

  /* ---------- TYPE ---------- */
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-block:   "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Type scale (matches Figma usage) */
  --fs-display:   48px;   /* Hero headline */
  --fs-h1:        40px;   /* Section H1 */
  --fs-h2:        36px;   /* Section H2 */
  --fs-h3:        24px;   /* Subhead / large stat label */
  --fs-stat:      36px;   /* Big number */
  --fs-eyebrow:   20px;   /* ALL CAPS section kicker */
  --fs-lead:      21px;   /* Hero subhead */
  --fs-body-lg:   18px;
  --fs-body:      16px;
  --fs-small:     14px;
  --fs-micro:     12px;

  --lh-tight:     1.1;
  --lh-headline:  1.25;
  --lh-snug:      1.4;
  --lh-body:      1.6;

  --ls-eyebrow:   0.35px;  /* the figma uses 0.35px tracking on eyebrows */
  --ls-headline: 0;

  --fw-light:     300;
  --fw-regular:   400;
  --fw-medium:    500;
  --fw-bold:      700;
  --fw-black:     900;

  /* ---------- SPACING (4px base) ---------- */
  --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:  80px;
  --space-10: 96px;
  --space-11: 120px;

  --section-pad-y:    96px;   /* default vertical breathing room */
  --section-pad-y-lg: 120px;
  --container-pad-x:  48px;
  --container-max:    1344px; /* 1440 - 2*48 */

  /* ---------- RADII ---------- */
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
  --r-xl:    24px;
  --r-2xl:   32px;
  --r-pill:  9999px;
  --r-blob-tl: 60px 60px 0px 60px;   /* organic speech-bubble shapes */
  --r-blob-tr: 60px 60px 60px 0px;
  --r-blob-bl: 60px 0px 60px 60px;
  --r-blob-br: 0px 60px 60px 60px;

  /* ---------- ELEVATION ---------- */
  --shadow-xs:    0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:    0 2px 8px rgba(15,23,42,0.06);
  --shadow-card:  0 8px 24px rgba(15,23,42,0.08);
  --shadow-pop:   0 21px 42px -10px rgba(0,0,0,0.25);
  --shadow-blob:  0 4px 40px rgba(0,0,0,0.4);   /* on the gradient blobs */
  --shadow-cta:       none;
  --shadow-cta-green: none;

  /* ---------- BORDERS ---------- */
  --border-hairline: 1px solid var(--ink-200);
  --border-soft:     1px solid var(--ink-100);
  --border-card:     1px solid var(--ink-200);
  --border-divider:  1px solid #4C6182;          /* the dim line in the dark footer */
  --border-dashed:   2px dashed var(--bdi-green);

  /* ---------- MOTION ---------- */
  --dur-fast:  120ms;
  --dur-med:   240ms;
  --dur-slow:  480ms;
  --ease-standard: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:   cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ---------- SEMANTIC ---------- */
  --bg-page:        var(--paper);
  --bg-soft:        var(--ink-50);
  --bg-announce:    var(--bdi-green);   /* Logo lime — announcement bar */
  --bg-footer:      var(--ink-900);     /* Dark blue for footer / other dark surfaces */
  --bg-cta-band:    var(--bdi-blue);
  --text-primary:   var(--ink-900);
  --text-body:      var(--ink-700);
  --text-muted:     var(--ink-500);
  --text-on-dark:   #FFFFFF;
  --text-eyebrow:   var(--bdi-blue);
}

/* ============================================================
   BASE TYPOGRAPHY HELPERS
   ============================================================ */
.bdi-eyebrow {
  font-family: var(--font-block);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-eyebrow);
}
.bdi-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--ink-900);
  text-wrap: balance;
}
.bdi-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink-900);
  text-wrap: balance;
}
.bdi-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink-900);
  text-wrap: balance;
}
.bdi-lead {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink-600);
  text-wrap: pretty;
}
.bdi-body {
  font-family: var(--font-sans);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: 24px;
  color: var(--ink-600);
  text-wrap: pretty;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.bdi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-lg);
  line-height: 1;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard),
              filter var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-med) var(--ease-standard);
  text-decoration: none;
}
.bdi-btn:hover  { filter: brightness(1.05); transform: translateY(-1px); }
.bdi-btn:active { transform: translateY(0) scale(0.99); filter: brightness(0.95); }

.bdi-btn--primary  { background: var(--bdi-blue);  color: #fff;  box-shadow: var(--shadow-cta); }
.bdi-btn--green    { background: var(--bdi-green); color: #0F172A; box-shadow: var(--shadow-cta-green); }
.bdi-btn--ghost    { background: transparent; color: #fff; border: 1px solid #fff; }
.bdi-btn--ghost-dark { background: transparent; color: var(--bdi-blue); border: 1px solid var(--bdi-blue); }
.bdi-btn--ghost-green { background: transparent; color: #B8E070; border: 1.5px solid #B8E070; transition: background 200ms ease, color 200ms ease, transform 180ms ease; }
.bdi-btn--ghost-green:hover { background: rgba(184, 224, 112, 0.10); color: #ffffff; }
.bdi-btn--white    { background: #fff; color: var(--bdi-blue-deep); font-weight: var(--fw-bold); }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.bdi-card {
  background: var(--paper);
  border: var(--border-card);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.bdi-stat-card {
  background: var(--paper);
  border: var(--border-soft);
  border-radius: var(--r-lg);
  padding: 16px;
}

/* ============================================================
   SHAPE / WAVE PRIMITIVES — the "movement" language
   ============================================================ */
/* A floating translucent disc to overlay on hero gradients. */
.bdi-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.bdi-orb--green  { background: var(--shape-circle-green); }
.bdi-orb--white  { background: var(--shape-circle-white); }
.bdi-orb--glow   { background: var(--shape-circle-glow); }
.bdi-orb--gradient { background: var(--grad-orb); }

/* Soft dashed concentric ring (used around portrait imagery). */
.bdi-ring-dashed {
  position: absolute;
  border-radius: 50%;
  border: var(--border-dashed);
  pointer-events: none;
}

/* The wave divider that scoops between sections. */
.bdi-wave {
  display: block;
  width: 100%;
  height: auto;
}

/* Speech-blob — translucent blue rounded asymmetric capsule */
.bdi-blob {
  background: rgba(0,85,165,0.6);
  color: #fff;
  border-radius: var(--r-blob-tl);
  padding: 48px;
  box-shadow: var(--shadow-blob);
  font-family: var(--font-sans);
  font-weight: var(--fw-medium);
  font-size: 24px;
  line-height: 1.4;
}

/* ============================================================
   FOCUS RING — accessibility default
   ============================================================ */
:where(a, button, .bdi-btn):focus-visible {
  outline: 2px solid var(--bdi-green);
  outline-offset: 3px;
  border-radius: inherit;
}
