:root {
  --ink: #10241f;
  --ink-soft: #3a524b;
  --paper: #f2f6f3;
  --paper-2: #e6efea;
  --teal: #0f6e5d;
  --teal-deep: #0a453b;
  --signal: #f05a28;
  --signal-deep: #c94316;
  --white: #ffffff;
  --line: rgba(16, 36, 31, 0.12);
  --shadow: 0 18px 50px rgba(10, 40, 32, 0.14);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 6.35rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 110, 93, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 90, 40, 0.1), transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, var(--paper) 40%, #eef5f1 100%);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.shell.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

/* ---- Brand logos (never plain "Xpeedite" wordmarks) ---- */
.brand-logo {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-logo--header {
  height: 4.85rem;
  width: auto;
  max-width: min(360px, 52vw);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.15));
  transition: transform 220ms ease, filter 220ms ease;
}

.brand-lockup {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-lockup::before {
  content: "";
  position: absolute;
  inset: -0.55rem -0.85rem;
  border-radius: 1.35rem;
  background: radial-gradient(ellipse at 30% 50%, rgba(240, 90, 40, 0.18), transparent 62%);
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
  pointer-events: none;
}

.brand-lockup:hover::before,
.brand-lockup:focus-visible::before {
  opacity: 1;
}

.brand-lockup:hover .brand-logo--header,
.brand-lockup:focus-visible .brand-logo--header {
  transform: scale(1.025);
  filter: drop-shadow(0 8px 18px rgba(15, 110, 93, 0.28));
}

.brand-logo--hero {
  height: clamp(4.2rem, 10vw, 6.4rem);
  width: auto;
  max-width: min(480px, 90vw);
  filter:
    brightness(0) invert(1)
    drop-shadow(0 12px 32px rgba(0, 0, 0, 0.38));
}

.brand-logo--footer {
  height: 2.35rem;
  width: auto;
  max-width: 180px;
}

.brand-logo--inline {
  height: 1.55rem;
  width: auto;
  max-width: 160px;
}

.hero-brand {
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem 0.45rem 0.55rem;
  border-radius: 1.25rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.contact-brand {
  gap: 0.55rem;
}

.contact-brand .brand-logo--inline {
  /* logo on light button: keep brand colors */
  filter: none;
}

/* ---- Header: lives inside the hero atmosphere, not a template menu bar ---- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border: 0;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(var(--header-h) + 3.5rem);
  background:
    radial-gradient(720px 180px at 12% 0%, rgba(240, 90, 40, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(6, 22, 19, 0.42) 0%, rgba(6, 22, 19, 0.16) 55%, rgba(6, 22, 19, 0) 100%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 280ms ease, height 280ms ease;
}

.site-header.is-scrolled {
  position: sticky;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 250, 248, 0.92) 0%,
    rgba(247, 250, 248, 0.78) 62%,
    rgba(247, 250, 248, 0.28) 100%
  );
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: none;
  border: 0;
}

.site-header.is-scrolled::before {
  opacity: 0;
  height: var(--header-h);
}

.site-header.is-scrolled .header-haze {
  opacity: 1;
}

.site-header:not(.is-scrolled) .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.site-header:not(.is-scrolled) .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.site-header:not(.is-scrolled) .nav a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header:not(.is-scrolled) .nav a:hover,
.site-header:not(.is-scrolled) .nav a:focus-visible {
  color: #fff;
}

.site-header:not(.is-scrolled) .brand-logo--header {
  /* Keep brand colours on the hero; soft halo only for contrast */
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.35))
    drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.site-header:not(.is-scrolled) .nav-toggle {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.site-header:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}

.header-haze {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4.25rem;
  height: 4.25rem;
  opacity: 0;
  transition: opacity 320ms ease;
  background: linear-gradient(
    180deg,
    rgba(247, 250, 248, 0.55) 0%,
    rgba(247, 250, 248, 0.22) 40%,
    rgba(242, 246, 243, 0) 100%
  );
}

.header-inner {
  position: relative;
  z-index: 1;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  transition: color 160ms ease;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  opacity: 0.7;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--teal);
}

.header-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0.65rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.35rem 1.25rem 1.35rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.site-header.is-scrolled .mobile-nav:not([hidden]),
.site-header:not(.is-scrolled) .mobile-nav:not([hidden]) {
  display: flex;
}

.site-header:not(.is-scrolled) .mobile-nav {
  background: linear-gradient(180deg, rgba(8, 28, 24, 0.55), rgba(8, 28, 24, 0.35));
  color: #fff;
  backdrop-filter: blur(12px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--signal);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--signal-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn-light {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--white);
}

.btn-lg {
  padding: 0.95rem 1.35rem;
  font-size: 1rem;
}

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 22, 19, 0.28) 0%, rgba(6, 22, 19, 0.08) 18%, transparent 34%),
    linear-gradient(115deg, rgba(8, 28, 24, 0.88) 8%, rgba(8, 28, 24, 0.55) 46%, rgba(8, 28, 24, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 28, 24, 0.62), transparent 48%),
    linear-gradient(180deg, transparent 72%, rgba(242, 246, 243, 0.55) 92%, var(--paper) 100%);
}

.route-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.route-path {
  fill: none;
  stroke: #ffb089;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-route 2.8s ease forwards 0.35s;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 8.5rem 0 4.5rem;
  max-width: 40rem;
  margin-left: max(calc((100% - var(--shell)) / 2), 1.25rem);
  margin-right: auto;
  width: min(40rem, calc(100% - 2.5rem));
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lede {
  margin: 1.1rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.promise {
  margin-top: -2.5rem;
  padding-top: calc(clamp(4rem, 8vw, 6.5rem) + 1.25rem);
  background:
    linear-gradient(180deg, rgba(242, 246, 243, 0.95) 0%, transparent 18%),
    linear-gradient(180deg, rgba(15, 110, 93, 0.08), transparent 70%);
}

.promise h2,
.fit-copy h2,
.pricing h2,
.close h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.promise p,
.fit-copy > p,
.pricing-lede,
.close p {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.flow-list li {
  padding: 0.25rem 0.25rem 0.25rem 0;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), rgba(15, 110, 93, 0.15)) 1;
}

.flow-list .step {
  display: inline-block;
  margin: 1.1rem 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.04em;
}

.flow-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.flow-list p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.fit-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.fit-list li {
  position: relative;
  padding-left: 1.2rem;
  font-weight: 600;
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

.fit-visual {
  margin: 0;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fit-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.pricing {
  background:
    linear-gradient(160deg, rgba(15, 110, 93, 0.12), rgba(240, 90, 40, 0.08)),
    var(--paper-2);
}

.price-block {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border: 1px solid rgba(15, 110, 93, 0.18);
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255, 255, 255, 0.72);
}

.price-note {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 38ch;
}

.price-perks {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.price-perks li {
  padding-left: 1.1rem;
  position: relative;
  font-weight: 600;
}

.price-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--signal);
  border-radius: 1px;
  transform: rotate(45deg);
}

.close {
  text-align: left;
}

.close .cta-row {
  justify-content: flex-start;
}

.site-footer {
  border-top: 0;
  padding: 2.75rem 0 3rem;
  background:
    linear-gradient(180deg, transparent, rgba(15, 110, 93, 0.05) 18%),
    #e8f0ec;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 110, 93, 0.22), transparent);
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-legal {
  margin: 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-legal a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--teal-deep);
  text-decoration: underline;
}

.footer-sep {
  margin: 0 0.45rem;
  color: var(--ink-soft);
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-animate].is-in {
  opacity: 1;
  transform: none;
}

.hero-copy[data-animate] {
  transition-delay: 120ms;
}

@keyframes draw-route {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .brand-logo--header {
    height: 4.15rem;
    max-width: min(300px, 68vw);
  }

  :root {
    --header-h: 5.75rem;
  }

  .flow-list,
  .fit-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-legal {
    white-space: normal;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-copy {
    margin-left: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
