/* =============================================
   NTP4 DIESEL — Base Design Tokens
   ============================================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; }

/* --- Typography Tokens --- */
:root {
  /* Fluid type scale */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);     /* ~11-12px */
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);     /* ~13-14px */
  --text-base: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);          /* ~15-16px */
  --text-lg:   clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);        /* ~17-18px */
  --text-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);           /* ~20-24px */
  --text-2xl:  clamp(1.5rem, 1.2rem + 1.2vw, 2rem);              /* ~24-32px */
  --text-3xl:  clamp(2rem, 1.5rem + 2vw, 3rem);                  /* ~32-48px */
  --text-4xl:  clamp(2.5rem, 1.8rem + 3vw, 4rem);                /* ~40-64px */
  --text-hero: clamp(3rem, 2rem + 5vw, 6rem);                    /* ~48-96px */
  --text-mega: clamp(4rem, 2.5rem + 7vw, 9rem);                  /* ~64-144px */

  /* Spacing (4px grid) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* NTP4 Brand Colors */
  --bg-primary:    #0A0A0A;
  --bg-secondary:  #111111;
  --bg-card:       #151515;
  --bg-card-hover: #1a1a1a;

  --gold:          #C9A84C;
  --gold-light:    #D4AF37;
  --gold-bright:   #E8C547;
  --gold-dim:      #8B7535;

  --green:         #008C45;
  --white:         #F5F5F5;
  --red:           #CD212A;

  --text-primary:   #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted:     #666666;
  --text-gold:      #C9A84C;

  --border-subtle:  rgba(201, 168, 76, 0.15);
  --border-gold:    rgba(201, 168, 76, 0.3);
  --border-strong:  rgba(201, 168, 76, 0.5);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #C9A84C, #D4AF37, #E8C547, #D4AF37, #C9A84C);
  --gradient-gold-text: linear-gradient(135deg, #D4AF37, #E8C547, #F0D060, #E8C547, #D4AF37);
  --gradient-italian: linear-gradient(90deg, #008C45 33.3%, #F5F5F5 33.3%, #F5F5F5 66.6%, #CD212A 66.6%);

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 20px rgba(201, 168, 76, 0.15);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* --- Base Styles --- */
body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ClashDisplay-Variable', 'Clash Display', system-ui, sans-serif;
  line-height: 1.1;
  font-weight: 700;
}

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

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

/* Container utility */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
