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

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

:root {
  /* Colors */
  --color-bg:          #080808;
  --color-surface:     #0e0e0e;
  --color-surface-2:   #141414;
  --color-red:         #F50306;
  --color-red-dark:    #C40205;
  --color-red-glow:    rgba(245, 3, 6, 0.45);
  --color-white:       #FFFFFF;
  --color-white-dim:   rgba(255, 255, 255, 0.70);
  --color-white-muted: rgba(255, 255, 255, 0.45);
  --color-border:      rgba(255, 255, 255, 0.07);

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   48px;
  --space-xl:   80px;
  --space-2xl:  120px;

  /* Container */
  --container-max: 1280px;
  --container-pad: 32px;

  /* Shadows */
  --shadow-sm:  0 2px 20px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 40px rgba(0,0,0,0.7);
  --shadow-lg:  0 8px 60px rgba(0,0,0,0.9);
  --shadow-red: 0 0 40px rgba(245, 3, 6, 0.4);

  /* Easing */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.8s;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-200px, -200px) translate(-50%, -50%);
  transition: width 0.18s var(--ease-out),
              height 0.18s var(--ease-out),
              background 0.18s ease,
              opacity 0.2s ease;
  will-change: transform;
  box-shadow: 0 0 10px rgba(245, 3, 6, 0.6);
}

.cursor.is-hover {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--color-red);
  box-shadow: 0 0 20px rgba(245, 3, 6, 0.3);
}

.cursor.is-click {
  width: 16px;
  height: 16px;
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* Base elements */
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Typography scale */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.0;
}

h1 { font-size: clamp(44px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4.5vw, 60px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }

p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-white-dim);
  font-weight: 500;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-red);
  flex-shrink: 0;
}

.text-red { color: var(--color-red); }

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