/* ==========================================================================
   TURBOMEISTER — Global Styles
   Variables · Reset · Typography · Layout · Scroll Reveal
   ========================================================================== */

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

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --red:          #CC0000;
  --red-dark:     #990000;
  --red-glow:     rgba(204, 0, 0, 0.25);
  --gold:         #C8A84B;
  --gold-light:   #E8C97A;
  --gold-dim:     rgba(200, 168, 75, 0.3);
  --black:        #0A0A0A;
  --black-2:      #111111;
  --black-3:      #1A1A1A;
  --black-4:      #222222;
  --steel:        #8892A0;
  --steel-light:  #B0B9C4;
  --white:        #FFFFFF;
  --white-80:     rgba(255, 255, 255, 0.8);
  --white-10:     rgba(255, 255, 255, 0.1);
  --white-05:     rgba(255, 255, 255, 0.05);

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

  /* Layout */
  --max-width:    1280px;
  --nav-height:   72px;

  /* Spacing Scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  /* Border Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
  --r-xl:  24px;

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-red:  0 0 48px rgba(204, 0, 0, 0.3);
  --shadow-gold: 0 0 40px rgba(200, 168, 75, 0.2);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-sm); }
}

/* ── Section Base ───────────────────────────────────────────────────────── */
.section { padding: var(--sp-2xl) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.section-title em {
  color: var(--red);
  font-style: normal;
}
.section-title .accent {
  color: var(--gold);
}

.section-sub {
  margin-top: var(--sp-sm);
  color: var(--steel);
  font-size: 1rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Divider ────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-10), transparent);
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-l {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-l.revealed { opacity: 1; transform: translateX(0); }

.reveal-r {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-r.revealed { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Stagger delays */
.stagger > *:nth-child(1) { transition-delay:   0ms; }
.stagger > *:nth-child(2) { transition-delay:  80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }
.stagger > *:nth-child(7) { transition-delay: 480ms; }

/* ── Grid Utilities ─────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── Typography Utilities ───────────────────────────────────────────────── */
.text-red    { color: var(--red); }
.text-gold   { color: var(--gold); }
.text-steel  { color: var(--steel); }
.text-center { text-align: center; }
.text-mono   { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; }

/* ── Spacing Utilities ──────────────────────────────────────────────────── */
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }

/* ── Accessibility ──────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-l, .reveal-r, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}
