:root {
  --blue-950: #052b43;
  --blue-900: #073c5a;
  --blue-800: #0d4f72;
  --blue-650: #1d6b8e;
  --ice: #f8fbff;
  --mist: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --glow: rgba(134, 218, 255, 0.55);
  --gold: #d9b46f;
  --coral: #ff7b61;
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ice);
  background:
    radial-gradient(circle at 17% 24%, rgba(29, 107, 142, 0.68), transparent 32rem),
    radial-gradient(circle at 82% 16%, rgba(217, 180, 111, 0.22), transparent 28rem),
    linear-gradient(145deg, var(--blue-950), var(--blue-900) 48%, #021a2b);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: -12%;
  z-index: -2;
  content: "";
  opacity: 0.32;
  background-image:
    radial-gradient(circle at center, transparent 0 35px, rgba(255, 255, 255, 0.25) 36px 38px, transparent 39px),
    radial-gradient(circle at center, transparent 0 35px, rgba(255, 255, 255, 0.18) 36px 38px, transparent 39px);
  background-position: 0 0, 42px 42px;
  background-size: 84px 84px;
  animation: patternDrift 26s linear infinite;
}

#motion-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.site-shell {
  width: min(1140px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 34px;
  display: grid;
  gap: 34px;
}

.hero {
  min-height: calc(100vh - 58px);
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(18px, 4vh, 42px) 0;
}

.brand-mark {
  position: relative;
  width: min(460px, 88vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.38));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(42px);
  animation: logoFloat 5.4s ease-in-out infinite;
}

.brand-mark::after {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 52px rgba(255, 255, 255, 0.2), inset 0 0 34px rgba(134, 218, 255, 0.22);
  animation: haloPulse 3.2s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  inset: 8%;
  animation: rotate 15s linear infinite;
}

.orbit-two {
  inset: 23% 2%;
  transform: rotate(-16deg);
  animation: rotateReverse 19s linear infinite;
}

.spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 28px var(--ice), 0 0 54px var(--glow);
}

.spark-one {
  right: 15%;
  top: 25%;
  animation: sparkTravel 4.8s ease-in-out infinite;
}

.spark-two {
  left: 18%;
  bottom: 24%;
  width: 9px;
  height: 9px;
  background: var(--gold);
  animation: sparkTravel 6.2s ease-in-out infinite reverse;
}

.hero-copy {
  min-width: 0;
  transform: translateY(0);
  animation: revealUp 900ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Cinzel, Georgia, serif;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 560px;
  font-size: clamp(2.6rem, 4.9vw, 4.7rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.8rem);
}

.lead {
  max-width: 560px;
  margin: 28px 0;
  color: var(--mist);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.7;
}

.progress-panel {
  max-width: 540px;
  padding: 18px 0 8px;
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.progress-top strong {
  color: var(--ice);
  font-size: 1.15rem;
}

.progress-track {
  height: 12px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ice), #89d9ff 62%, var(--gold));
  box-shadow: 0 0 24px var(--glow);
  transform-origin: left;
  animation: progressBreathe 2.8s ease-in-out infinite;
}

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

.primary-action,
.ghost-action {
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-950);
  background: var(--ice);
  font: 800 0.9rem/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ghost-action {
  color: var(--ice);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

.primary-action:hover,
.ghost-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.route-board {
  min-height: 168px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(330px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 34px 0 0;
}

.route-copy p:last-child {
  max-width: 490px;
  color: var(--mist);
  line-height: 1.65;
}

.map-stage {
  position: relative;
  min-height: 180px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.11)),
    radial-gradient(circle at 50% 50%, rgba(134, 218, 255, 0.16), transparent 22rem);
  overflow: hidden;
}

.map-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.45;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  animation: gridMove 12s linear infinite;
}

.port {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-950);
  background: var(--ice);
  font-size: 0.82rem;
  font-weight: 900;
  transform: translateY(-50%);
  box-shadow: 0 0 0 10px rgba(255,255,255,0.05), 0 16px 40px rgba(0,0,0,0.28);
}

.port-nic {
  left: 7%;
}

.port-usa {
  right: 7%;
}

.route-line {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--ice), var(--gold), transparent);
  transform: translateY(-50%);
  box-shadow: 0 0 24px var(--glow);
}

.cargo {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(217, 180, 111, 0.8);
  animation: cargoRun 4.5s linear infinite;
}

.cargo-two {
  animation-delay: -1.5s;
  background: var(--ice);
}

.cargo-three {
  animation-delay: -3s;
  background: var(--coral);
}

.map-stage.is-boosted .cargo {
  animation-duration: 1.6s;
}

@keyframes patternDrift {
  to { transform: translate3d(84px, 42px, 0); }
}

@keyframes logoFloat {
  50% { transform: translate3d(0, -14px, 42px) scale(1.015); }
}

@keyframes haloPulse {
  50% { transform: scale(1.05); opacity: 0.75; }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  to { transform: rotate(-376deg); }
}

@keyframes sparkTravel {
  50% { transform: translate3d(-18px, 16px, 0) scale(1.45); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
}

@keyframes progressBreathe {
  50% { filter: brightness(1.25); transform: scaleX(1.04); }
}

@keyframes gridMove {
  to { background-position: 42px 42px; }
}

@keyframes cargoRun {
  from { left: 14%; transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, calc(-50% - 18px)) rotate(7deg); }
  to { left: 86%; transform: translate(-50%, -50%) rotate(0deg); }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 24px, 620px);
    padding-top: 20px;
  }

  .hero,
  .route-board {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    text-align: center;
  }

  .brand-mark {
    margin: 0 auto;
    width: min(290px, 78vw);
  }

  .brand-mark::after {
    inset: 20%;
  }

  .lead,
  .progress-panel,
  .route-copy p:last-child {
    margin-left: auto;
    margin-right: auto;
  }

  .actions {
    justify-content: center;
  }

  .route-board {
    text-align: center;
  }

  .map-stage {
    min-height: 160px;
  }
}

@media (max-height: 720px) and (max-width: 820px) {
  .brand-mark {
    width: min(230px, 64vw);
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 4.4rem);
  }

  .lead {
    margin: 18px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
