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

/* base.css - variables, reset, typography */

:root {
  --font-sans: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-primary: var(--font-sans);
  --font-serif: var(--font-sans);
  --font-mono: var(--font-sans);

  /* Colors */
  --color-primary: #D4AF37;
  --color-primary-light: #F4E29A;
  --color-primary-shadow: #8C6A1D;
  --color-primary-dark: #5E4312;
  --gold-gradient: linear-gradient(135deg, #5E4312 0%, #8C6A1D 18%, #D4AF37 48%, #F4E29A 64%, #D4AF37 78%, #8C6A1D 100%);
  --gold-gradient-hover: linear-gradient(135deg, #8C6A1D 0%, #D4AF37 28%, #F4E29A 52%, #F8ECB5 64%, #D4AF37 84%, #8C6A1D 100%);
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.32), 0 0 54px rgba(244, 226, 154, 0.14);
  --gold-glow-strong: 0 10px 34px rgba(212, 175, 55, 0.38), 0 0 72px rgba(244, 226, 154, 0.22);
  --color-accent-neon: #FF1493;
  --color-dark-navy: #000814;
  --color-dark-blue: #001D3D;
  --color-dark-blue-alt: #003566;
  --color-bg-dark: #000814;
  --color-bg-darker: #001D3D;
  --color-bg-panel: #FFFFFF;
  --color-text: #FFFFFF;
  --color-text-secondary: #E0E0E0;
  --color-text-muted: #B0B0B0;
  --color-border: #003566;
  --color-border-light: #001D3D;
  --color-overlay: rgba(0, 8, 20, 0.95);
  --color-hover: #003566;

  /* Typography */
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  --font-size-4xl: 64px;
  --line-height-base: 1.6;
  --line-height-tight: 1.08;
  --type-body-size: 1rem;
  --type-body-weight: 400;
  --type-body-line-height: 1.65;
  --type-body-letter-spacing: 0;
  --type-heading-weight: 700;
  --type-heading-line-height: 1.08;
  --type-heading-letter-spacing: -0.02em;
  --type-h1-size: clamp(2.75rem, 5vw, 4.5rem);
  --type-h2-size: clamp(2.15rem, 4vw, 3.25rem);
  --type-h3-size: clamp(1.65rem, 2.8vw, 2.25rem);
  --type-h4-size: clamp(1.2rem, 2vw, 1.5rem);
  --type-h5-size: 1rem;
  --type-h6-size: 0.875rem;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;

  /* Layout */
  --container-width: 1280px;
  --header-height: 120px;
  --panel-width: 480px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-header: 100;
  --z-dropdown: 150;
  --z-overlay: 300;
  --z-panel: 400;
}

body:not(.intelligence-dashboard-page) :where([class*="kicker"]):not(.assurance-metrics-kicker) {
  color: #d4af37;
  background: linear-gradient(135deg, #7a5518 0%, #d4af37 32%, #f8ecb5 50%, #c89b2a 68%, #8c6a1d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: #000814;
  overflow-x: hidden;
}

body.scroll-locked {
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--type-heading-weight);
  line-height: var(--type-heading-line-height);
  letter-spacing: var(--type-heading-letter-spacing);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--type-h1-size);
}

h2 {
  font-size: var(--type-h2-size);
}

h3 {
  font-size: var(--type-h3-size);
}

h4 {
  font-size: var(--type-h4-size);
}

h5 {
  font-size: var(--type-h5-size);
}

h6 {
  font-size: var(--type-h6-size);
}

p,
li,
dd,
dt,
figcaption,
blockquote,
label {
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line-height);
  letter-spacing: var(--type-body-letter-spacing);
}

p {
  margin-bottom: var(--spacing-sm);
}

small {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

strong,
b {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: var(--type-body-size);
  font-weight: 500;
  line-height: 1.4;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

input, textarea, select {
  font-family: inherit;
  font-size: var(--type-body-size);
  font-weight: 500;
  line-height: 1.4;
  color: inherit;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  :root {
    --font-size-3xl: 36px;
    --font-size-2xl: 28px;
    --font-size-xl: 20px;
    --header-height: 72px;
    --panel-width: 100%;
    --type-body-size: 0.98rem;
    --type-h1-size: clamp(2.25rem, 9vw, 3.15rem);
    --type-h2-size: clamp(1.9rem, 7vw, 2.6rem);
    --type-h3-size: clamp(1.45rem, 5.5vw, 1.9rem);
    --type-h4-size: clamp(1.12rem, 4.5vw, 1.32rem);
  }
}
