/* === BASE.CSS — Reset, Variables, Typography === */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Exo+2:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Share+Tech+Mono&display=swap');

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

:root {
  --bg-base: #050508;
  --bg-surface: #0F0F14;
  --bg-card: #13131A;
  --bg-card-hover: #1A1A24;

  --red: #E01020;
  --red-neon: #FF1535;
  --red-dim: rgba(224,16,32,0.15);
  --red-border: rgba(224,16,32,0.35);
  --red-border-bright: rgba(224,16,32,0.8);

  --white: #F0F0F0;
  --white-dim: rgba(240,240,240,0.6);
  --white-dimmer: rgba(240,240,240,0.3);

  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Exo 2', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --glow-red: 0 0 20px rgba(224,16,32,0.5), 0 0 60px rgba(224,16,32,0.2);
  --glow-red-sm: 0 0 8px rgba(224,16,32,0.6);
  --glow-white: 0 0 20px rgba(240,240,240,0.2);

  --transition-fast: 150ms ease;
  --transition-mid: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
  --container-max: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

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

ul, ol { list-style: none; }

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: var(--red-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

/* Selection */
::selection {
  background: var(--red-dim);
  color: var(--white);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Section padding */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* Utility classes */
.text-red { color: var(--red); }
.text-dim { color: var(--white-dim); }
.text-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.letter-spacing-2 { letter-spacing: 2px; }

/* Grid utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

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