:root {
  --red: #ef4444;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-soft: rgba(255, 255, 255, 0.62);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(239,68,68,0.04) 50%, transparent 100%);
  mix-blend-mode: screen;
}

.bg, .grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg {
  background:
    radial-gradient(circle at 78% 58%, rgba(255,255,255,0.06), transparent 16%),
    radial-gradient(circle at 70% 65%, rgba(255,0,60,0.13), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.03) 42%, transparent 58%),
    #000;
}

.grid-overlay {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 120px 120px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
}

.brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-shadow: 0 0 18px rgba(239,68,68,0.18);
}

.subbrand {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: white;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 18px;
  cursor: pointer;
}

#nav-container {
  display: block;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a,
.btn {
  text-decoration: none;
}

.nav a {
  color: rgba(255,255,255,0.82);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
  backdrop-filter: blur(12px);
}

.nav a:hover,
.nav a.active {
  color: #fff;
  border-color: rgba(239,68,68,0.35);
  background: rgba(255,255,255,0.10);
}

.hero,
.subpage {
  flex: 1;
  padding: 40px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.22);
  background: rgba(239,68,68,0.10);
  color: #fecaca;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  backdrop-filter: blur(12px);
}

h1 {
  margin: 24px 0 0;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  text-shadow: 0 0 24px rgba(255,255,255,0.04), 0 0 42px rgba(239,68,68,0.08);
}

h2 {
  margin-top: 0;
}

.accent-line {
  width: 96px;
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(to right, var(--red), rgba(255,255,255,0.75), transparent);
}

.hero-copy p,
.page-header p,
.panel p {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: 0.25s ease;
}

.btn-primary {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 0 24px rgba(239,68,68,0.22);
}

.btn-primary:hover {
  background: #ef4444;
}

.btn-secondary {
  color: rgba(255,255,255,0.85);
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.btn-secondary:hover {
  color: #fff;
  border-color: rgba(239,68,68,0.35);
  background: rgba(255,255,255,0.10);
}

.spec-grid,
.content-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.spec-grid {
  margin-top: 36px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
}

.gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.spec-card,
.panel,
.gallery-card {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
  border-radius: 24px;
  transition: 0.25s ease;
}

.spec-card,
.panel {
  padding: 20px;
}

.spec-card:hover,
.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(239,68,68,0.28);
}

.spec-card span {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.spec-card strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
}

.spec-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.spec-list li + li {
  margin-top: 8px;
}

.spec-list strong {
  color: #fff;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
}

.glow-white {
  top: 12%;
  right: 8%;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.08);
}

.glow-red {
  right: 18%;
  bottom: 14%;
  width: 210px;
  height: 210px;
  background: rgba(220,38,38,0.18);
}

.road-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(239,68,68,0.7), transparent);
}

.car,
.gallery-card img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.car {
  position: relative;
  z-index: 2;
  max-width: 980px;
  filter: contrast(1.2) saturate(0.95);
}

.gallery-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 320px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239,68,68,0.28);
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(239,68,68,0.10), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.10));
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.gallery-card:hover::after {
  opacity: 1;
}

.gallery-card img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: contrast(1.08) saturate(0.92) brightness(0.84);
}

.gallery-card:hover img {
  transform: scale(1.045);
  filter: contrast(1.16) saturate(1) brightness(0.92);
}

.gallery-overlay {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.gallery-card:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 360px;
}

.gallery-card:nth-child(3) img {
  min-height: 360px;
}

.panel.wide {
  grid-column: 1 / -1;
}

.page-header {
  max-width: 760px;
}

.panel a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(239,68,68,0.4);
}

.panel a:hover {
  color: #fecaca;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 1100px) {
  .hero,
  .content-grid,
  .gallery-grid,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .gallery-card:nth-child(3) {
    grid-column: auto;
    min-height: 320px;
  }

  .gallery-card:nth-child(3) img {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 14px;
  }

  .nav.open {
    display: flex;
  }

  .topbar {
    border-radius: 24px;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 1280px);
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy p,
  .page-header p,
  .panel p {
    font-size: 16px;
  }
}
