/* =============================================================
   Hunter Invest LTD — Colors & Type
   Tokens + base typographic styles. Import this from any HTML
   surface (marketing, app, slides) for consistent brand chrome.
   ============================================================= */

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

:root {
  /* ---------- Brand colors ---------- */
  --hunter-red:       #9E1B1B;   /* primary brand red */
  --hunter-red-deep:  #712121;   /* maroon, sampled from logo bg */
  --hunter-red-dark:  #4A1313;   /* near-black red, for hover states on dark */
  --claw-red:         #D21414;   /* aggressive accent — claws, alerts */
  --claw-red-glow:    #F23030;   /* hover lift only */

  /* ---------- Neutrals ---------- */
  --ink:              #1A1A1D;   /* near-black */
  --ink-2:            #2A2A2F;   /* dark surface */
  --ink-3:            #3A3A40;   /* dark elevated */
  --steel:            #5A5A63;   /* secondary brand grey */
  --steel-2:          #7A7A82;   /* muted grey */
  --steel-3:          #B5B5BC;   /* hairline grey */
  --bone:             #F4F2EE;   /* default light surface */
  --bone-2:           #E8E5DF;   /* subtle elevated light */
  --paper:            #FFFFFF;   /* pure white, inputs/cards */

  /* ---------- Semantic ---------- */
  --fg-1:             var(--ink);          /* primary text on light */
  --fg-2:             var(--steel);        /* secondary text on light */
  --fg-3:             var(--steel-2);      /* tertiary / placeholder */
  --fg-on-dark-1:     #F4F2EE;             /* primary text on dark */
  --fg-on-dark-2:     #B5B5BC;             /* secondary text on dark */
  --fg-on-red:        #F4F2EE;             /* on hunter-red */

  --bg-1:             var(--bone);
  --bg-2:             var(--paper);
  --bg-dark-1:        var(--ink);
  --bg-dark-2:        var(--ink-2);

  --border-1:         rgba(26, 26, 29, 0.10);
  --border-2:         rgba(26, 26, 29, 0.18);
  --border-on-dark:   rgba(244, 242, 238, 0.10);
  --border-on-dark-2: rgba(244, 242, 238, 0.18);

  --success:          #4F7A4A;
  --warning:          #B07A1F;
  --danger:           var(--claw-red);

  /* ---------- Type families ---------- */
  --font-display:     "Oswald", "Impact", "Arial Narrow", sans-serif;
  --font-body:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:        "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* ---------- Type scale ---------- */
  --fs-display-1: clamp(56px, 8vw, 120px);
  --fs-display-2: clamp(40px, 6vw, 80px);
  --fs-h1: 48px;
  --fs-h2: 36px;
  --fs-h3: 28px;
  --fs-h4: 22px;
  --fs-h5: 18px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-body-sm: 14px;
  --fs-caption: 12px;
  --fs-overline: 11px;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* ---------- Spacing (4px base) ---------- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* ---------- Radii ---------- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 20px;
  --r-card: 14px;

  /* ---------- Shadows ---------- */
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 2px 6px rgba(0,0,0,.04);
  --shadow-2: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-3: 0 2px 4px rgba(0,0,0,.06), 0 24px 48px rgba(0,0,0,.10);
  --shadow-metal:
      inset 0 1px 0 rgba(255,255,255,.10),
      inset 0 -1px 0 rgba(0,0,0,.40),
      0 6px 18px rgba(0,0,0,.30);
  --shadow-focus: 0 0 0 3px rgba(210, 20, 20, 0.30);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-in:  cubic-bezier(.6,0,.8,.2);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 350ms;
}

/* =============================================================
   Base resets / body
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* =============================================================
   Semantic type
   ============================================================= */

.h-display, .h-display-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-1);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg-1);
  margin: 0;
}
.h-display-2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-display-2);
  line-height: var(--lh-tight);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4) 0;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 var(--s-3) 0;
}
h3, .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-3) 0;
}
h4, .h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-2) 0;
}
h5, .h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h5);
  line-height: var(--lh-snug);
  margin: 0 0 var(--s-2) 0;
}

p, .p {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
  margin: 0 0 var(--s-3) 0;
}
.p-lg { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); }
.p-sm { font-size: var(--fs-body-sm); }
.muted { color: var(--fg-2); }

.overline {
  font-family: var(--font-body);
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.caption {
  font-size: var(--fs-caption);
  color: var(--fg-2);
  line-height: var(--lh-normal);
}

.mono, code, pre, .num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
a:hover { border-bottom-color: currentColor; }

/* =============================================================
   Surface helpers
   ============================================================= */
.surface-dark { background: var(--bg-dark-1); color: var(--fg-on-dark-1); }
.surface-red  { background: var(--hunter-red); color: var(--fg-on-red); }
.surface-bone { background: var(--bg-1); color: var(--fg-1); }
