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

:root {
  --bg-deep:      #0e2a47;
  --bg-mid:       #0a1f35;
  --bg-dark:      #06101e;
  --bg-surface:   rgba(14, 42, 71, 0.85);
  --card-bg:      rgba(8, 22, 44, 0.78);
  --card-border:  rgba(242, 201, 76, 0.15);

  --text-primary:   #f5f7fa;
  --text-secondary: #a8b8cc;
  --text-muted:     #6b82a0;

  --accent:       #f2c94c;
  --accent-hover: #e3a008;
  --accent-dim:   rgba(242, 201, 76, 0.10);
  --accent-glow:  rgba(242, 201, 76, 0.32);

  --green-hint: #2d5a3d;
  --green-text: #4caf7a;

  --white: #ffffff;
  --black: #000000;

  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'Fira Code', monospace;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-xxl: 7rem;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --border-color: rgba(242, 201, 76, 0.18);

  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow:  0 0 24px rgba(242, 201, 76, 0.22);
  --shadow-hover: 0 14px 44px rgba(0, 0, 0, 0.55);

  --ease-out:      cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 0.6);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 600ms;

  --z-canvas:   -1;
  --z-vignette:  1;
  --z-content:   2;
  --z-nav:     100;
  --z-toast:  1000;
  --z-progress: 1001;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

em {
  font-style: italic;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
