/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C40101;
  --navy: #0a0d10;
  --white: #FFFFFF;
  --muted: rgba(255,255,255,0.45);
  --off-white: #f5f3ef;
  --light-border: #e8e6e1;
  --dark-text: #1a1a1a;
  --dark-text-muted: #555555;

  /* Spacing scale (8px base) — see DESIGN.md §6 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;
  --space-10: 180px;

  /* Breakpoints — see DESIGN.md §9. Use in media queries via calc() or inline. */
  --bp-tablet: 640px;
  --bp-desktop: 1024px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  /* Inter OpenType stylistic variants — see DESIGN.md §4 */
  font-feature-settings: "cv01", "cv05", "cv09", "cv11", "ss03", "ss07";
  overflow-x: hidden;
}

/* GRAIN */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9000;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 64px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,13,16,0.92);
  backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.05);
  padding: 20px 64px;
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 22px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

/* NAV CTA */
.nav-cta {
  position: relative;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase;
  color: var(--white) !important;
  text-decoration: none;
  padding: 12px 28px;
  overflow: hidden;
  border: 1px solid rgba(196,1,1,0.6);
  transition: color 0.3s !important;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: -1;
}
.nav-cta:hover::before { transform: translateX(0); }
.nav-cta:hover { color: var(--white) !important; border-color: var(--red); }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 40px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.btn-primary:hover { background: #a50101; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 40px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 40px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.2);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.btn-ghost-dark:hover {
  border-color: var(--dark-text);
  background: rgba(0,0,0,0.04);
}

/* ─── ELEVATION & GLOW UTILITIES ─── */
/* See DESIGN.md §7. NTM is flat-first; use these instead of drop shadows. */

.elev-ring {
  box-shadow: rgba(196, 1, 1, 0.12) 0 0 0 1px;
}

.elev-floating {
  box-shadow:
    rgba(255, 255, 255, 0.06) 0 0.5px 0 0.5px,
    rgba(0, 0, 0, 0.40) 0 20px 60px;
}

.glow-red {
  position: relative;
}
.glow-red::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(196, 1, 1, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}
.glow-red > * {
  position: relative;
  z-index: 1;
}

/* ─── SECTION LABELS ─── */
.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--red);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 7vw, 108px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* ─── FOOTER ─── */
footer {
  padding: 72px 64px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand .nav-logo { margin-bottom: 20px; display: block; }
.footer-brand .nav-logo-img { height: 18px; }
.footer-brand p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 24px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

/* Social icons */
.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  padding: 0;
  margin: 0;
}
.footer-social a:hover { color: var(--white); }
.footer-social svg { width: 20px; height: 20px; }

/* Subscribe button */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-subscribe:hover { background: #a50101; }

.footer-legal {
  grid-column: span 4;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-legal p {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.06em;
}

/* ─── CTA (shared) ─── */
.cta-section {
  padding: 180px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: 'NTM';
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42vw;
  color: rgba(255,255,255,0.012);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
  line-height: 1;
}
.cta-section .section-label { justify-content: center; }
.cta-section .section-label::before { display: none; }
.cta-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}
.cta-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* ─── RESPONSIVE (shared) ─── */
@media (max-width: 960px) {
  nav { padding: 24px 28px; }
  nav.scrolled { padding: 18px 28px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10,13,16,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 14px; }
  .nav-cta { margin-top: 16px; }
  footer { grid-template-columns: 1fr; padding: 48px 28px; }
  .footer-legal { grid-column: span 1; flex-direction: column; gap: 12px; text-align: center; }
  .footer-social { margin-bottom: 16px; }
  .cta-section { padding: 100px 28px; }
}
