:root {
  /* Colors - Horizon Manifesto Pallete */
  --color-basalt: #0A0A0A;
  --color-sand: #E2D1B3;
  --color-solar: #FF4D00;
  --color-paper: #F5F5F5;
  --color-gray-dark: #1F1F1F;

  /* Typography */
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Spacing */
  --container-width: 1400px;
  --section-padding: 8rem 2rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-paper);
  color: var(--color-basalt);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* Layout Compontents */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.btn-primary {
  background: var(--color-solar);
  color: white;
  padding: 1.25rem 3rem;
  font-weight: 900;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
  animation: solar-pulse 2s infinite;
}

@keyframes solar-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7);
  }

  50% {
    transform: scale(1.02);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 77, 0, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
  }
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-2px);
  background: white;
  color: var(--color-solar);
}

/* Sections */
section {
  padding: var(--section-padding);
}

/* Transitions */
.reveal-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.reveal-text span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-text.active span {
  transform: translateY(0);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 100;
  mix-blend-mode: difference;
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

/* Hero "The Monolith" */
.hero {
  height: 100vh;
  background-color: var(--color-basalt);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-bg-text {
  font-size: 25vw;
  line-height: 0.7;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 1;
}

.hero-main-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-car-image {
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) brightness(0.6);
  /* Darkened image */
  margin-top: -5vh;
  transition: transform 0.5s ease;
}

.hero-title-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  /* Slight upward shift */
  width: 90%;
  /* Bound width */
  pointer-events: none;
  z-index: 5;
  /* Sit on top of the car */
}

.hero h1 {
  font-size: 8vw;
  /* Reduced size to fit full keyword */
  color: white;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  /* Boost readability */
  mix-blend-mode: normal;
  /* Remove overlay to ensure it's not transparent over the car */
  line-height: 0.85;
}

/* Command Center Widget - High Visibility Basalt Version */
.command-center {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1200px;
  background: var(--color-basalt);
  /* Black background as requested */
  color: white;
  /* White text as requested */
  padding: 1.5rem 2.5rem;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: center;
  gap: 2rem;
  z-index: 10;
  text-decoration: none !important;
  cursor: pointer;
  border-left: 6px solid var(--color-solar);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 77, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.command-center:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 1), 0 0 30px rgba(255, 77, 0, 0.3);
}

.command-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.command-item:nth-child(4) {
  border-right: none;
}

.command-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-solar);
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.command-value {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
}

.scroll-tracker {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  z-index: 5;
}

.tracker-coord {
  font-size: 0.75rem;
  writing-mode: vertical-rl;
  opacity: 0.5;
}

.tracker-line {
  width: 1px;
  height: 100px;
  background: var(--color-solar);
}

@media (max-width: 768px) {
  .command-center {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .command-center a {
    grid-column: span 2;
  }

  .hero h1 {
    font-size: 20vw;
  }
}

/* Fleet "The Showroom" */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 4rem;
}

.car-card {
  position: relative;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.car-image-container {
  height: 400px;
  background: #eee;
  margin-bottom: 2rem;
  overflow: hidden;
}

.car-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.car-card:hover .car-image-container img {
  transform: scale(1.1);
}

.car-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.car-title {
  font-size: 2.2rem;
  /* Reduced to fit 4-block grid */
  margin-bottom: 0.5rem;
}

.car-price {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Routes "The Expedition Map" */
.routes-container {
  display: flex;
  gap: 6rem;
}

.routes-timeline {
  flex: 0 0 300px;
  border-left: 2px solid var(--color-basalt);
  padding-left: 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-3rem - 6px);
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background: var(--color-solar);
}

.route-content {
  flex: 1;
}

.route-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  margin-bottom: 2rem;
}

/* FAQ "The Archive" */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem 0;
}

.faq-question {
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 1.1rem;
  color: #444;
}

.faq-item:hover .faq-answer {
  max-height: 200px;
  margin-top: 1rem;
}

/* Footer */
footer {
  padding: 4rem 2rem;
  background: var(--color-basalt);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

/* Utility: Distance Matrix */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
}

.matrix-table th,
.matrix-table td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: left;
}

.matrix-table th {
  background: var(--color-basalt);
  color: white;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Utility: Insurance Guide */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.insurance-card {
  padding: 3rem;
  border: 2px solid var(--color-basalt);
  background: white;
  transition: all 0.3s ease;
}

.insurance-card.featured {
  background: var(--color-basalt);
  color: white;
  border-color: var(--color-solar);
}

/* Testimonials: Expedition Logs */
.logs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.log-entry {
  background: var(--color-paper);
  padding: 2rem;
  border-top: 4px solid var(--color-basalt);
}

.log-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.log-author {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1024px) {

  .logs-grid,
  .insurance-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {

  .fleet-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .routes-container {
    flex-direction: column;
  }
}