/* ============================================================
   Fast Express Transport Limited — Coming Soon
   Palette: navy #01214F · red #D11E25 · white · soft grey
   ============================================================ */

:root {
  --navy:       #01214F;
  --navy-deep:  #010E27;
  --navy-mid:   #0A3268;
  --red:        #D11E25;
  --red-soft:   rgba(209, 30, 37, 0.55);
  --white:      #FFFFFF;
  --mist:       #C7D3E6;               /* soft light-grey accent */
  --mist-dim:   rgba(199, 211, 230, 0.62);
  --glass:      rgba(2, 22, 51, 0.42);
  --line:       rgba(255, 255, 255, 0.08);

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body:    "Saira", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--white);
  background:
    radial-gradient(1100px 720px at 72% 22%, rgba(10, 50, 104, 0.55), transparent 65%),
    radial-gradient(900px 640px at 12% 85%, rgba(10, 50, 104, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Fine grain texture (pure CSS/data-URI, no external assets) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
}

::selection { background: var(--red); color: var(--white); }

/* ============================================================
   Background scene
   ============================================================ */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Faint transport grid */
.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 45%, #000 40%, transparent 90%);
          mask-image: radial-gradient(120% 100% at 50% 45%, #000 40%, transparent 90%);
}

/* Moving road-lane markings — forward travel */
.lane {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.16) 0 46px,
    transparent 46px 110px
  );
  animation: lane-move 1.5s linear infinite;
}

.lane-1 { top: 76%; opacity: 0.42; transform: rotate(-2.5deg); }
.lane-2 { top: 84%; opacity: 0.26; height: 2px; animation-duration: 2.1s; transform: rotate(-2.5deg); }
.lane-3 { top: 91%; opacity: 0.14; height: 2px; animation-duration: 2.9s; transform: rotate(-2.5deg); }

@keyframes lane-move {
  to { background-position: -156px 0; }
}

/* ---- Delivery route ---- */

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-under {
  stroke: rgba(199, 211, 230, 0.10);
  stroke-width: 1.5;
  stroke-dasharray: 0.006 0.006;   /* fine dotted trace of the full route */
}

.route-line {
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px var(--red-soft));
  animation: route-draw 10s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}

@keyframes route-draw {
  0%    { stroke-dashoffset: 1; opacity: 0; }
  3%    { opacity: 1; }
  40%   { stroke-dashoffset: 0; opacity: 1; }
  72%   { stroke-dashoffset: 0; opacity: 1; }
  84%   { stroke-dashoffset: 0; opacity: 0; }
  84.1% { stroke-dashoffset: 1; opacity: 0; }
  100%  { stroke-dashoffset: 1; opacity: 0; }
}

/* Waypoints */
.waypoint .wp-dot  { fill: var(--mist); opacity: 0.55; }
.waypoint .wp-ring {
  fill: none;
  stroke: var(--mist);
  stroke-width: 1;
  opacity: 0.22;
  transform-origin: center;
  animation: wp-pulse 10s ease-in-out infinite;
}
.waypoint .wp-label {
  fill: var(--mist);
  opacity: 0.34;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-anchor: middle;
}

.wp-1 .wp-ring { animation-delay: 1.4s; }
.wp-2 .wp-ring { animation-delay: 2.4s; }
.wp-3 .wp-ring { animation-delay: 3.3s; }

@keyframes wp-pulse {
  0%, 18%, 100% { transform: scale(1);   opacity: 0.22; }
  8%            { transform: scale(1.7); opacity: 0.45; }
}

/* Parcel marker */
.parcel-glow {
  fill: var(--red);
  opacity: 0.22;
  filter: blur(4px);
}
.parcel-box {
  fill: var(--white);
  stroke: var(--red);
  stroke-width: 2;
}

/* ============================================================
   Hero layout
   ============================================================ */

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.25rem, 5vw, 4rem);
}

.hero-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

/* ---- Text panel (restrained glass) ---- */

.content {
  padding: clamp(1.6rem, 3.2vw, 2.8rem);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 1.1rem;
}

.eyebrow-tick {
  width: 26px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  text-wrap: balance;
}

h1 .accent {
  color: var(--red);
  position: relative;
  white-space: nowrap;
}

/* Understated route stroke beneath the accent words */
h1 .accent::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.04em;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 18%, var(--red) 82%, transparent);
  opacity: 0.75;
}

.lede {
  margin-top: 1.1rem;
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  font-weight: 600;
  color: var(--white);
}

.desc {
  margin-top: 0.8rem;
  max-width: 54ch;
  font-size: clamp(0.96rem, 1.3vw, 1.04rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--mist);
}

/* Service statement */
.services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin-top: 1.35rem;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.services li { display: inline-flex; align-items: center; }

.services li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 0.85rem;
  border-radius: 50%;
  background: var(--red);
}

/* ---- Buttons ---- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.92rem 1.7rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.25s ease,
              background-color 0.25s ease,
              border-color 0.25s ease;
}

.btn-arrow {
  width: 18px;
  height: 11px;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Forward-motion sheen */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.55s ease;
}

.btn:hover, .btn:focus-visible { transform: translateX(3px); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(110%); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translateX(4px); }
.btn:active { transform: translateX(3px) scale(0.985); }

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(209, 30, 37, 0.32);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #E02830;
  box-shadow: 0 14px 32px rgba(209, 30, 37, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.alt-phone {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--mist-dim);
}

.alt-phone a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
}
.alt-phone a:hover { border-color: var(--red); }

/* ============================================================
   Logo visual
   ============================================================ */

.visual { display: grid; place-items: center; }

.logo-stage {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* Light badge so the navy/red emblem always reads clearly
   on the dark page — the SVG itself is untouched. */
.logo-badge {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(78% 78% at 50% 42%, #FFFFFF 0%, #EEF3FA 68%, #DDE6F2 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 6px 22px rgba(1, 14, 39, 0.5),
    inset 0 -8px 22px rgba(1, 33, 79, 0.12);
  animation:
    logo-enter 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both,
    logo-breathe 7s ease-in-out 1.6s infinite;
}

.logo {
  width: 88%;
  height: auto;
  display: block;
  animation: logo-focus 1.15s ease-out 0.35s both;
}

@keyframes logo-enter {
  from { opacity: 0; transform: scale(0.86) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Controlled motion-blur on entry, then crisp */
@keyframes logo-focus {
  from { filter: blur(7px); }
  60%  { filter: blur(1.5px); }
  to   { filter: blur(0); }
}

/* Very subtle breathing glow */
@keyframes logo-breathe {
  0%, 100% {
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.45),
      0 6px 22px rgba(1, 14, 39, 0.5),
      0 0 0 rgba(209, 30, 37, 0),
      inset 0 -8px 22px rgba(1, 33, 79, 0.12);
  }
  50% {
    box-shadow:
      0 30px 70px rgba(0, 0, 0, 0.45),
      0 6px 22px rgba(1, 14, 39, 0.5),
      0 0 42px rgba(209, 30, 37, 0.16),
      inset 0 -8px 22px rgba(1, 33, 79, 0.12);
  }
}

/* Restrained speed lines behind the badge */
.speedline {
  position: absolute;
  left: -14%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  animation: speed 2.6s ease-in-out infinite;
  opacity: 0;
}

.s-1 { top: 34%; width: 160px; animation-delay: 0.2s; }
.s-2 { top: 50%; width: 220px; animation-delay: 1.1s; }
.s-3 { top: 66%; width: 130px; animation-delay: 1.9s; }

@keyframes speed {
  0%   { transform: translateX(-40px); opacity: 0; }
  35%  { opacity: 0.7; }
  100% { transform: translateX(90px); opacity: 0; }
}

/* Drifting light particles */
.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  filter: blur(0.5px);
  animation: drift 9s linear infinite;
  opacity: 0;
}

.p-1 { top: 22%; left: 8%;  animation-delay: 0s;   animation-duration: 8s; }
.p-2 { top: 68%; left: 2%;  animation-delay: 2.5s; animation-duration: 11s; }
.p-3 { top: 40%; left: -4%; animation-delay: 5s;   animation-duration: 9.5s; width: 3px; height: 3px; }
.p-4 { top: 82%; left: 14%; animation-delay: 6.8s; animation-duration: 12s; width: 4px; height: 4px; }

@keyframes drift {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 0.55; }
  88%  { opacity: 0.4; }
  100% { transform: translateX(105%); opacity: 0; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 1.4rem clamp(1.25rem, 5vw, 4rem) 1.6rem;
  border-top: 1px solid var(--line);
  text-align: center;
  background: rgba(1, 14, 39, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.f-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
}

.f-line {
  margin-top: 0.4rem;
  font-size: 0.84rem;
  color: var(--mist-dim);
}

.f-copy { opacity: 0.75; }

/* ============================================================
   Focus visibility (keyboard users)
   ============================================================ */

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    text-align: center;
  }

  .visual { order: -1; }

  .logo-stage { width: min(62vw, 300px); }

  .content { padding: 1.6rem 1.35rem 1.9rem; }

  .eyebrow, .services, .actions { justify-content: center; }
  .desc { margin-inline: auto; }

  .actions { width: 100%; }
  .btn { flex: 1 1 210px; justify-content: center; min-height: 52px; }

  .lane-1 { top: 88%; }
  .lane-2 { top: 93%; }
  .lane-3 { display: none; }
}

@media (max-width: 400px) {
  h1 { font-size: 2.2rem; }
  .logo-stage { width: min(70vw, 260px); }
}

/* ============================================================
   Reduced motion: static, fully-legible scene
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .route-line { stroke-dashoffset: 0; opacity: 1; animation: none; }
  .parcel, .speedline, .particle { display: none; }
  .lane { animation: none; }
  .logo-badge { animation: none; opacity: 1; transform: none; }
  .logo { animation: none; filter: none; }
  .content { animation: none; opacity: 1; transform: none; }
}
