/* ==========================================================================
   CuoreSafety — Design Tokens (ported 1:1 from inputs/tokens/*.css)
   Fonts, colors, typography, spacing, effects.
   ========================================================================== */

/* ---- Fonts: Poppins (display/body), IBM Plex Mono (labels) ---------------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/Poppins-Light.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Poppins-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Poppins-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/Poppins-Black.ttf') format('truetype'); }

@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2'); }

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/instrument-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/instrument-sans-600.woff2') format('woff2'); }

:root {
  color-scheme: dark;

  /* ---- Base — carbon scale (darkest → lightest surface) ---- */
  --carbon-0: #060707;
  --carbon-1: #0A0B0A;
  --carbon-2: #0F110F;
  --carbon-3: #151815;
  --carbon-4: #1D211D;

  /* ---- Warm off-white foreground scale ---- */
  --fg-1: #F6F4F2;
  --fg-2: rgba(246, 244, 242, 0.64);
  --fg-3: rgba(246, 244, 242, 0.40);
  --fg-4: rgba(246, 244, 242, 0.22);

  /* ---- Brand green (from frontend styles.scss) ---- */
  --green: #4B7F57;
  --green-bright: #6EA475;
  --green-deep: #2B5230;
  --green-ink: #2B5230;
  --green-tint: rgba(110, 164, 117, 0.14);
  --green-glow: rgba(110, 164, 117, 0.35);
  --green-bg: #ECF1ED;

  /* ---- Amber (secondary signal) ---- */
  --amber: #E3C654;
  --amber-tint: rgba(227, 198, 84, 0.16);

  /* ---- Alert palette (semantic only) ---- */
  --alert: #A84343;
  --alert-tint: rgba(168, 67, 67, 0.14);
  --warn-orange: #EE8E3E;
  --warn-orange-tint: rgba(238, 142, 62, 0.16);

  /* ---- Hairlines ---- */
  --line-1: rgba(246, 244, 242, 0.08);
  --line-2: rgba(246, 244, 242, 0.16);

  /* ---- Semantic aliases ---- */
  --surface-page: var(--carbon-1);
  --surface-raised: var(--carbon-2);
  --surface-card: var(--carbon-3);
  --surface-elevated: var(--carbon-4);
  --surface-glass: rgba(10, 11, 10, 0.72);
  --text-heading: var(--fg-1);
  --text-body: var(--fg-2);
  --text-muted: var(--fg-3);
  --accent: var(--green);
  --accent-hover: var(--green-deep);
  --accent-press: var(--green-deep);
  --accent-text: var(--green-bright);
  --accent-tint: var(--green-tint);
  --accent-glow: var(--green-glow);
  --border-default: var(--line-1);
  --border-strong: var(--line-2);
  --focus-ring: var(--green-bright);

  /* ---- Inversion block (cream conversion moment) ---- */
  --invert-bg: #F6F4F2;
  --invert-fg: #1B1B1B;
  --invert-muted: rgba(27, 27, 27, 0.56);
  --invert-line: rgba(27, 27, 27, 0.14);

  /* ---- Live/status ---- */
  --live: #6EA475;

  /* ---- Typography ---- */
  --font-display: 'Poppins', 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Poppins', 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  --text-hero: clamp(3.25rem, 9.5vw, 9rem);
  --text-display: clamp(2.5rem, 6vw, 5.5rem);
  --text-h2: clamp(2rem, 4vw, 3.5rem);
  --text-h3: clamp(1.375rem, 2.2vw, 1.875rem);
  --text-footer-mark: clamp(4rem, 14vw, 15rem);

  --text-lead: 1.25rem;
  --text-body-size: 1.0625rem;
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;
  --text-eyebrow: 0.75rem;

  --tracking-display: -0.03em;
  --tracking-heading: -0.02em;
  --tracking-eyebrow: 0.18em;

  --leading-display: 0.98;
  --leading-heading: 1.08;
  --leading-body: 1.6;

  --weight-display: 700;
  --weight-heading: 600;
  --weight-medium: 500;
  --weight-regular: 400;

  /* ---- Spacing & layout ---- */
  --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; --space-11: 160px;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-pad: clamp(96px, 12vw, 180px);
  --nav-height: 76px;

  /* ---- Effects: radii, shadow/glow, motion ---- */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --radius-pill: 999px;

  --glow-accent: 0 0 120px 0 var(--accent-glow);
  --glow-accent-soft: 0 0 64px -8px rgba(87, 160, 94, 0.25);
  --shadow-card: 0 24px 64px -24px rgba(0, 0, 0, 0.8);
  --shadow-glass: 0 8px 32px -8px rgba(0, 0, 0, 0.6);

  --blur-glass: 16px;

  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swift: cubic-bezier(0.65, 0.05, 0, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-reveal: 0.8s;
  --dur-fast: 0.25s;
  --dur-curtain: 1s;

  --noise-opacity: 0.05;
}
