/* ============================================================
   DYNOVO Design System — Colors & Typography Tokens
   Fonts: Unbounded (display) + Manrope (body/ui/mono) via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@300;400;500;600;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   BRAND COLOR PRIMITIVES
   ============================================================ */
:root {
  /* Brand blues */
  --color-deep:          #1B3A6B;   /* Navy anchor — backgrounds, deep UI */
  --color-primary:       #2E6BD6;   /* Main brand blue — CTAs, links, icons */
  --color-bright:        #3FA9E0;   /* Teal accent — highlights, info */
  --color-sky:           #7BC8E8;   /* Airy blue — decorative, subtle fills */

  /* Brand accent */
  --color-accent:        #F39237;   /* Orange (falcon beak) — warmth, CTA conversion */
  --color-accent-soft:   #F5B36B;   /* Soft orange — hover states, gentle highlights */

  /* Semantic */
  --color-success:       #2BB673;
  --color-warning:       #F5A623;
  --color-error:         #E5484D;
  --color-info:          #3FA9E0;

  /* Neutrals — Light theme */
  --color-bg:            #FAFBFD;   /* Page background */
  --color-bg-elev:       #FFFFFF;   /* Elevated surfaces (modals, popovers) */
  --color-bg-subtle:     #F1F4F9;   /* Subtle fill — inputs, chips */
  --color-surface:       #FFFFFF;   /* Cards, panels */
  --color-border:        #E3E8F0;   /* Default borders */
  --color-border-strong: #C8D2E0;   /* Emphasized borders, dividers */

  /* Text — Light theme */
  --color-text-primary:  #0F1B2D;   /* Main text */
  --color-text-secondary:#4A5670;   /* Supporting text, descriptions */
  --color-text-muted:    #8993A8;   /* Placeholders, hints, captions */
  --color-text-inverse:  #FFFFFF;   /* Text on dark/brand backgrounds */

  /* Dark theme neutral overrides (apply on [data-theme="dark"]) */
  --color-dark-bg:       #0A1220;
  --color-dark-elev:     #111B30;
  --color-dark-subtle:   #0F1828;
  --color-dark-surface:  #131E36;
  --color-dark-border:   #1F2C47;
  --color-dark-border-strong: #2A3C5E;
  --color-dark-text-primary:  #F4F7FC;
  --color-dark-text-secondary:#A8B4CC;
  --color-dark-text-muted:    #6B7794;
}

/* ============================================================
   SEMANTIC SURFACE TOKENS (light default, overridden for dark)
   ============================================================ */
:root {
  --bg:             var(--color-bg);
  --bg-elev:        var(--color-bg-elev);
  --bg-subtle:      var(--color-bg-subtle);
  --surface:        var(--color-surface);
  --border:         var(--color-border);
  --border-strong:  var(--color-border-strong);
  --text-primary:   var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
  --text-muted:     var(--color-text-muted);
  --text-inverse:   var(--color-text-inverse);
}

[data-theme="dark"] {
  --bg:             var(--color-dark-bg);
  --bg-elev:        var(--color-dark-elev);
  --bg-subtle:      var(--color-dark-subtle);
  --surface:        var(--color-dark-surface);
  --border:         var(--color-dark-border);
  --border-strong:  var(--color-dark-border-strong);
  --text-primary:   var(--color-dark-text-primary);
  --text-secondary: var(--color-dark-text-secondary);
  --text-muted:     var(--color-dark-text-muted);
  --text-inverse:   var(--color-dark-bg);
}

/* ============================================================
   GRADIENTS
   ============================================================ */
:root {
  --grad-primary: linear-gradient(135deg, #1B3A6B 0%, #2E6BD6 50%, #3FA9E0 100%);
  --grad-accent:  linear-gradient(135deg, #F39237 0%, #F5B36B 100%);
  --grad-mesh:
    radial-gradient(at 20% 20%, rgba(46,107,214,.18) 0, transparent 50%),
    radial-gradient(at 80% 0%,  rgba(63,169,224,.14) 0, transparent 50%),
    radial-gradient(at 60% 90%, rgba(243,146,55,.10) 0, transparent 50%);
  --grad-primary-soft: linear-gradient(135deg, rgba(27,58,107,.08) 0%, rgba(46,107,214,.12) 100%);
}

/* ============================================================
   TYPOGRAPHY — FONT FAMILIES
   ============================================================ */
:root {
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'Manrope', system-ui, sans-serif;
  /* Note: No separate monospace font. Manrope with font-variant-numeric: tabular-nums
     and uppercase + letter-spacing gives the "technical" feel for labels, prices, codes. */
}

/* ============================================================
   TYPE SCALE — Size Tokens (4pt/1.25 modular)
   ============================================================ */
:root {
  --t-10: 0.625rem;   /* 10px — micro labels */
  --t-12: 0.75rem;    /* 12px — captions, badges, eyebrows */
  --t-14: 0.875rem;   /* 14px — UI labels, secondary body */
  --t-16: 1rem;       /* 16px — base body */
  --t-18: 1.125rem;   /* 18px — large UI text */
  --t-20: 1.25rem;    /* 20px — lead / body-lg */
  --t-24: 1.5rem;     /* 24px — H3 */
  --t-32: 2rem;       /* 32px — H2 mobile */
  --t-40: 2.5rem;     /* 40px — H2 desktop */
  --t-56: 3.5rem;     /* 56px — H1 */
  --t-72: 4.5rem;     /* 72px — Display */
}

/* ============================================================
   SEMANTIC TYPE STYLES
   Usage: Apply these classes directly in HTML
   ============================================================ */

/* Display — hero impact moments only */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-72);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

/* H1 — page headings */
.t-h1, h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-56);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

/* H2 — section headings */
.t-h2, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-40);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

/* H3 — subsection headings, card titles */
.t-h3, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-24);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

/* H4 — tight subheads, sidebar items */
.t-h4, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--t-18);
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

/* Body Large — lead paragraphs */
.t-body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-20);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Body — default paragraph text */
.t-body, p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--t-16);
  line-height: 1.625;
  color: var(--text-secondary);
  margin: 0;
}

/* Caption — footnotes, hints, secondary metadata */
.t-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--t-14);
  line-height: 1.45;
  color: var(--text-muted);
}

/* Tag / Mono — labels, prices, technical values, eyebrows */
.t-tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-12);
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--color-primary);
}

/* Eyebrow — section labels above headings */
.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--t-12);
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* UI Label — button text, form labels */
.t-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--t-14);
  line-height: 1;
}

/* Price / Metric — large numbers, KPIs */
.t-metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--t-40);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ============================================================
   SPACING SCALE (4pt base)
   ============================================================ */
:root {
  --s-1:  0.25rem;   /*  4px */
  --s-2:  0.5rem;    /*  8px */
  --s-3:  0.75rem;   /* 12px */
  --s-4:  1rem;      /* 16px */
  --s-5:  1.25rem;   /* 20px */
  --s-6:  1.5rem;    /* 24px */
  --s-8:  2rem;      /* 32px */
  --s-10: 2.5rem;    /* 40px */
  --s-12: 3rem;      /* 48px */
  --s-16: 4rem;      /* 64px */
  --s-20: 5rem;      /* 80px */
  --s-24: 6rem;      /* 96px */
}

/* ============================================================
   BORDER RADII
   ============================================================ */
:root {
  --r-xs:   6px;     /* Tiny tags, tiny inputs */
  --r-sm:   10px;    /* Small chips, small cards */
  --r-md:   14px;    /* Inputs, form elements */
  --r-lg:   20px;    /* Cards, panels */
  --r-xl:   28px;    /* Product cards, modals */
  --r-2xl:  36px;    /* Hero panels, large overlays */
  --r-full: 999px;   /* Pills — buttons, nav items, badges */
}

/* ============================================================
   SHADOWS
   ============================================================ */
:root {
  --shadow-xs:     0 1px 2px rgba(15,27,45,0.04);
  --shadow-sm:     0 2px 8px rgba(15,27,45,0.06);
  --shadow-md:     0 8px 24px rgba(15,27,45,0.08);
  --shadow-lg:     0 18px 48px rgba(15,27,45,0.12);
  --shadow-xl:     0 32px 80px rgba(15,27,45,0.18);
  --shadow-brand:  0 16px 40px rgba(46,107,214,0.28);  /* Blue glow — primary CTA */
  --shadow-accent: 0 12px 32px rgba(243,146,55,0.32);  /* Orange glow — accent CTA */
}

[data-theme="dark"] {
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:    0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg:    0 18px 48px rgba(0,0,0,0.6);
  --shadow-xl:    0 32px 80px rgba(0,0,0,0.7);
  --shadow-brand: 0 16px 40px rgba(46,107,214,0.5);
}

/* ============================================================
   MOTION / ANIMATION
   ============================================================ */
:root {
  --ease:      cubic-bezier(.2,.7,.2,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.4,0,1,1);
  --dur-fast:  160ms;   /* Hover states, quick micro-interactions */
  --dur-base:  240ms;   /* Card transitions, standard UI changes */
  --dur-slow:  480ms;   /* Page-level entrances, large reveals */
}

/* ============================================================
   BASE RESETS (apply when using this file standalone)
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: var(--t-16);
  line-height: 1.625;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
  text-wrap: balance;
}

p { margin: 0 0 var(--s-4); color: var(--text-secondary); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-bright); }

/* Gradient text utility */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
