/* Index Page — Dark Hero + Light Body */

/* ─── Navbar override for dark hero ─── */
.hero-dark-page .navbar {
  background: rgba(15, 23, 42, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.hero-dark-page .navbar .logo-text {
  color: #ffffff;
}

.hero-dark-page .navbar .nav-link {
  color: rgba(255, 255, 255, 0.6);
}

.hero-dark-page .navbar .nav-link:hover,
.hero-dark-page .navbar .nav-link.active {
  color: #ffffff;
}

.hero-dark-page .navbar .mobile-menu-btn {
  color: #ffffff;
}

.hero-dark-page .mobile-menu {
  background: #0f172a;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.hero-dark-page .mobile-menu .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.hero-dark-page .mobile-menu .nav-link:hover {
  color: #ffffff;
}

/* ─── Hero ─── */
.hero {
  background: #0f172a;
  padding-top: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 30%, rgba(16, 185, 129, 0.03), transparent);
  pointer-events: none;
}

/* ─── Constellation SVG art layer ─── */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-art svg {
    width: 240%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 26%;
    transform: translate(-50%, -50%);
  }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes dashFlow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -30; }
}

@keyframes ringExpand {
  0% { r: 8; opacity: 0.4; }
  100% { r: 35; opacity: 0; }
}

@keyframes hubGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

@keyframes travelDot {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes orbitSat {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* ─── Hero Grid Layout ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }
}

/* ─── Hero Content (left) ─── */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-title .accent {
  color: var(--primary);
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
}

.hero-desc {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.hero-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ─── Stats inline ─── */
.hero-stats-inline {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .stat-value { font-size: 1.5rem; }
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.125rem;
}

/* ─── Hero Card (right) ─── */
.hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  overflow: hidden;
  min-width: 0;
}

.hero-card-header {
  padding: 0.875rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-card-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.row-flag {
  font-size: 1.625rem;
  line-height: 1;
  flex-shrink: 0;
}

.row-country {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-grid {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-desc {
    font-size: 0.875rem;
  }
  .hero-stats-inline {
    gap: 1.25rem;
  }
  .stat-value {
    font-size: 1.125rem;
  }
  .stat-label {
    font-size: 0.6875rem;
  }
}

@media (max-width: 480px) {
  .hero-card-header {
    padding: 0.625rem 1rem;
    font-size: 0.6875rem;
  }
  .hero-card-row {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }
  .row-flag {
    font-size: 1.25rem;
  }
  .row-country {
    font-size: 0.8125rem;
  }
}

/* ─── Catalog Section (white bg) ─── */
.catalog-section {
  padding: 5rem 0;
  background: var(--background);
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .catalog-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.catalog-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.catalog-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .catalog-title { font-size: 2.5rem; }
}

.catalog-section .car-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.catalog-section .car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.catalog-section .car-image {
  border-radius: 0;
  margin-bottom: 0;
}

.catalog-section .car-image img {
  border-radius: 0;
}

.catalog-section .car-info {
  padding: 0.875rem 1rem 1rem;
}

.catalog-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ─── Features Section (light gray bg) ─── */
.features-section {
  padding: 5rem 0;
  background: #f8fafc;
  border-top: none;
  border-bottom: none;
}

.features-header {
  margin-bottom: 3rem;
}

.features-label {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.features-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .features-title { font-size: 2.5rem; }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}

.feature-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(16, 185, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.feature-card h3 {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

/* ─── CTA Section (dark, matches hero) ─── */
.cta-section {
  padding: 5rem 0;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(16, 185, 129, 0.06), transparent);
  pointer-events: none;
}

.cta-content {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .cta-title { font-size: 2.75rem; }
}

.cta-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons { flex-direction: row; }
}

.cta-buttons .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.cta-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-address, .cta-hours {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.cta-hours {
  margin-top: 0.25rem;
}

/* ─── Entrance animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeUp 0.7s ease both;
}

.hero-card {
  animation: fadeUp 0.7s 0.15s ease both;
}
