/* Moving Spaces USA — Coming Soon */

:root {
  --navy-950: #0a0f1a;
  --navy-900: #0f1729;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --red: #b91c1c;
  --red-bright: #dc2626;
  --blue-light: #3b6ea5;
  --gold: #c9a227;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-vinyl: "Bebas Neue", "Arial Narrow", "Helvetica Neue", sans-serif;
  --vinyl-navy: #0c2340;
  --vinyl-red: #bf0a30;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-zoom: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  height: 100dvh;
  max-height: 100dvh;
  font-family: var(--font-body);
  color: var(--slate-300);
  background: var(--navy-950);
  overflow: hidden;
}

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(30, 58, 95, 0.5), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 80%, rgba(185, 28, 28, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 70%, rgba(59, 110, 165, 0.12), transparent 45%),
    linear-gradient(180deg, var(--navy-950) 0%, #0f1729 50%, var(--navy-950) 100%);
  animation: gradientShift 18s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { opacity: 1; }
  100% { opacity: 0.92; }
}

.bg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 85%, rgba(201, 162, 39, 0.4), transparent);
  animation: starTwinkle 6s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 75%);
}

/* Centered page shell — single viewport, no scroll */
.page {
  position: relative;
  z-index: 1;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(0.35rem, 1vh, 0.75rem) clamp(1.25rem, 4vw, 2rem)
    clamp(0.75rem, 2vh, 1.25rem);
  text-align: center;
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 40rem);
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  gap: clamp(0.5rem, 1.4vh, 0.85rem);
}

/* Fleet truck — cutout blended into page */
.truck-scene {
  position: relative;
  width: min(100%, 44rem);
  margin: 0 auto clamp(0.75rem, 2vh, 1.15rem);
  padding: 0;
  border: none;
  background: transparent;
  flex-shrink: 1;
  min-height: 0;
  animation: truckReveal 1.2s var(--ease-zoom) both;
  isolation: isolate;
}

.truck-glow {
  position: absolute;
  left: 50%;
  bottom: 2%;
  z-index: 0;
  width: 70%;
  height: 18%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(59, 110, 165, 0.28) 0%,
    rgba(15, 23, 42, 0.12) 45%,
    transparent 72%
  );
  filter: blur(18px);
  pointer-events: none;
}

.truck-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(52dvh, 420px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
  filter:
    brightness(0.98)
    contrast(1.03)
    saturate(0.96)
    drop-shadow(0 24px 42px rgba(0, 0, 0, 0.52))
    drop-shadow(0 10px 24px rgba(30, 58, 95, 0.2));
}

@keyframes truckReveal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.stripe-bar {
  display: flex;
  height: 3px;
  width: 4.5rem;
  margin: 0 auto 0.25rem;
  border-radius: 2px;
  overflow: hidden;
  opacity: 1;
  animation:
    fadeUp 0.9s var(--ease-out) 0.45s forwards,
    stripeGlow 4s ease-in-out infinite;
}

.stripe-bar span { flex: 1; }
.stripe-bar span:nth-child(1) { background: var(--red); }
.stripe-bar span:nth-child(2) { background: var(--white); }
.stripe-bar span:nth-child(3) { background: var(--blue-light); }

@keyframes stripeGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(185, 28, 28, 0.2); }
  50% { box-shadow: 0 0 20px rgba(59, 110, 165, 0.35); }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.15rem;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.55s forwards;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--slate-100);
  margin: 0 0 0.15rem;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.65s forwards;
}

.subhead {
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  line-height: 1.6;
  color: var(--slate-400);
  max-width: 38ch;
  margin: 0 auto 0.35rem;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.75s forwards;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.status-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-300);
}

.site-footer {
  width: min(100%, 40rem);
  flex-shrink: 0;
  margin-top: auto;
  padding-top: clamp(0.65rem, 1.5vh, 1rem);
  padding-bottom: 0.5rem;
  opacity: 1;
  animation: fadeUp 0.9s var(--ease-out) 0.95s forwards;
}

.footer-stripe {
  height: 1px;
  max-width: 12rem;
  margin: 0 auto 1rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--red) 20%,
    var(--white) 50%,
    var(--blue-light) 80%,
    transparent
  );
  opacity: 0.5;
}

.site-footer p {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--slate-400);
  opacity: 0.7;
}

@keyframes fadeUp {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

@media (max-height: 680px) {
  .truck-photo {
    max-height: min(46dvh, 340px);
  }

  .headline {
    font-size: clamp(1.95rem, 5.5vw, 2.75rem);
  }

  .page {
    padding-top: clamp(0.25rem, 0.75vh, 0.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .truck-scene {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .stripe-bar,
  .eyebrow,
  .headline,
  .subhead,
  .status,
  .site-footer {
    animation: none !important;
    transform: none !important;
  }

  .bg-gradient,
  .bg-stars,
  .status-dot {
    animation: none !important;
  }
}
