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

:root {
  --color-bg: #0D1117;
  --color-bg-secondary: #111722;
  --color-bg-light: #F5F7FA;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-hover: rgba(255, 255, 255, 0.09);
  --color-surface-strong: rgba(255, 255, 255, 0.10);

  --color-carbon: #0D1117;
  --color-graphite: #151A22;
  --color-steel: #2B3442;
  --color-silver: #C8D0DA;
  --color-white: #FFFFFF;

  --color-primary: #4D8DFF;
  --color-cyan: #73D7FF;
  --color-violet: #7C6DFF;

  --color-text: #FFFFFF;
  --color-text-muted: #AAB4C2;
  --color-text-dim: #6B7A8D;
  --color-text-light: #0D1117;
  --color-text-light-muted: #5A6573;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.05);
  --color-border-accent: rgba(77, 141, 255, 0.25);
  --color-border-on-light: rgba(0, 0, 0, 0.08);

  --gradient-hero: linear-gradient(145deg, #0D1117 0%, #151A22 55%, #1A2540 100%);
  --gradient-accent: linear-gradient(135deg, #4D8DFF 0%, #73D7FF 100%);
  --gradient-violet: linear-gradient(135deg, #7C6DFF 0%, #4D8DFF 100%);
  --gradient-surface: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(77,141,255,0.12) 0%, transparent 60%);

  --font-heading: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-base: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 10rem;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.55);
  --shadow-blue: 0 0 32px rgba(77, 141, 255, 0.18);
  --shadow-blue-sm: 0 0 16px rgba(77, 141, 255, 0.12);
  --shadow-glow: 0 0 80px rgba(77, 141, 255, 0.07);

  --container-xs: 560px;
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1200px;
  --container-xl: 1440px;

  --header-height: 72px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

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

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.text-muted { color: var(--color-text-muted); }
.text-dim { color: var(--color-text-dim); }

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}
