/**
 * Nemesis + Bootstrap 5 — grayscale overrides (no default blue primary).
 */
html {
  background-color: #0b0c0d;
}

@font-face {
  font-family: "911 Porscha";
  src: url("../font/911PORSCHAV3ITAL.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --nemesis-brand-font: "911 Porscha", Inter, system-ui, sans-serif;
  --nemesis-bg: #0b0c0d;
  --nemesis-surface: #111316;
  --nemesis-border: rgba(244, 245, 246, 0.12);
  --nemesis-muted: rgba(244, 245, 246, 0.65);
  --bs-body-bg: var(--nemesis-bg);
  --bs-body-color: #f4f5f6;
  --bs-secondary-color: var(--nemesis-muted);
  --bs-border-color: var(--nemesis-border);
  --bs-link-color: rgba(244, 245, 246, 0.88);
  --bs-link-hover-color: #f4f5f6;
  --bs-primary: #e8e9ea;
  --bs-primary-rgb: 232, 233, 234;
  --bs-secondary: #6c757d;
  --bs-dark: #0b0c0d;
  --bs-navbar-color: rgba(244, 245, 246, 0.75);
  --bs-navbar-hover-color: #f4f5f6;
  --bs-navbar-active-color: #f4f5f6;
  --bs-card-bg: rgba(17, 19, 22, 0.92);
  --bs-card-border-color: var(--nemesis-border);
}

body.nemesis-site {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(244, 245, 246, 0.035), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(244, 245, 246, 0.025), transparent 55%),
    var(--nemesis-bg);
  letter-spacing: 0.02em;
}

.nemesis-navbar {
  background: rgba(11, 12, 13, 0.82) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--nemesis-border);
}

.nemesis-navbar .navbar-brand {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: #f4f5f6 !important;
}

.nemesis-brand-wordmark {
  font-family: var(--nemesis-brand-font);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #f4f5f6;
}

.nemesis-navbar .navbar-brand .nemesis-brand-wordmark {
  font-size: clamp(1.2rem, 3.15vw, 1.45rem);
  letter-spacing: 0.03em;
}

.nemesis-navbar .nav-link {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nemesis-muted) !important;
}

.nemesis-navbar .nav-link:hover,
.nemesis-navbar .nav-link.active {
  color: #f4f5f6 !important;
}

.nemesis-navbar .navbar-toggler {
  filter: invert(0.92);
}

.nemesis-hero {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: stretch;
}

.nemesis-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0) contrast(1.05);
}

/* WebGL fluid hero (see assets/js/hero-fluid-bg.js) */
.nemesis-hero__bg--fluid {
  background-image: linear-gradient(135deg, #1e2128 0%, #2e323c 45%, #262a32 100%);
  filter: none;
}

.nemesis-hero__fluid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #2d2f33;
}

.nemesis-hero__fluid-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: #2d2f33;
  transition: opacity 0.12s ease-out;
}

.nemesis-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11, 12, 13, 0.94) 0%, rgba(11, 12, 13, 0.55) 45%, rgba(11, 12, 13, 0.35) 100%);
}

/* Centered hero: strong dark center first paint — avoids pale GL flash before first frame */
.nemesis-hero--centered .nemesis-hero__bg--fluid::after {
  background: radial-gradient(
    ellipse 88% 72% at 50% 40%,
    rgba(11, 12, 13, 0.82) 0%,
    rgba(11, 12, 13, 0.86) 38%,
    rgba(11, 12, 13, 0.92) 100%
  );
}

.nemesis-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.nemesis-hero--centered {
  display: flex;
  flex-direction: column;
}

.nemesis-hero--centered .nemesis-hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 5.5rem;
  padding-bottom: 4.5rem;
}

/* Product page: fluid + gradient extend behind title and product cards */
.nemesis-hero--product .nemesis-hero__bg--fluid::after {
  background: radial-gradient(
    ellipse 110% 85% at 50% 22%,
    rgba(11, 12, 13, 0.78) 0%,
    rgba(11, 12, 13, 0.84) 42%,
    rgba(11, 12, 13, 0.88) 100%
  );
}

.nemesis-hero--product {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
}

.nemesis-hero--product .nemesis-hero__inner {
  padding-top: 5.25rem;
  padding-bottom: 1.25rem;
  flex-shrink: 0;
}

.nemesis-hero__product-wrap {
  z-index: 1;
  flex: 1 1 auto;
  padding-bottom: 2.75rem;
}

.nemesis-hero--product .product-hero {
  margin-top: 0.5rem;
}

.nemesis-hero__breadcrumbs a {
  color: rgba(244, 245, 246, 0.78) !important;
}

.nemesis-hero__breadcrumbs a:hover {
  color: #f4f5f6 !important;
}

.nemesis-hero__breadcrumbs span {
  color: rgba(244, 245, 246, 0.55);
}

.nemesis-hero-title {
  font-weight: 600;
  font-size: clamp(2.85rem, 10vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.75),
    0 8px 48px rgba(0, 0, 0, 0.45);
  outline: none;
}

.nemesis-hero-title:focus-visible {
  box-shadow: 0 0 0 2px rgba(244, 245, 246, 0.25);
  border-radius: 4px;
}

.nemesis-hero-title.nemesis-brand-wordmark {
  font-family: var(--nemesis-brand-font);
  font-weight: 400;
  font-size: clamp(3.55rem, 12.5vw, 6.55rem);
  letter-spacing: 0.02em;
  text-transform: none;
}

.nemesis-kicker {
  color: var(--nemesis-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nemesis-display {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.btn-nemesis-solid {
  background: rgba(244, 245, 246, 0.92);
  color: #0b0c0d;
  border: 1px solid rgba(244, 245, 246, 0.25);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

.btn-nemesis-solid:hover {
  background: rgba(244, 245, 246, 0.82);
  color: #0b0c0d;
}

.btn-nemesis-ghost {
  background: rgba(244, 245, 246, 0.06);
  border: 1px solid var(--nemesis-border);
  color: #f4f5f6;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

.btn-nemesis-ghost:hover {
  background: rgba(244, 245, 246, 0.1);
  color: #f4f5f6;
  border-color: rgba(244, 245, 246, 0.22);
}

[data-race-gate] {
  cursor: default;
}
