/* Self-hosted Manrope (variable, latin subset) so text never waits on a third-party font server. */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-900: #061a45;
  --navy-800: #0a2a6b;
  --blue-600: #1f5fd6;
  --blue-500: #2f80ff;
  --blue-300: #8cc2ff;
  --blue-100: #e3efff;
  --blue-50: #f4f8ff;
  --ink: #0d1b33;
  --muted: #5a6b86;
  --line: #e2e9f4;
  --ok: #0f8a5f;
  --err: #c0392b;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 .98rem/1 "Manrope", sans-serif;
  padding: 15px 22px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background-color .2s, border-color .2s;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--navy-800); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .26); }
.btn-outline { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--navy-800)); box-shadow: 0 12px 24px -12px rgba(31, 95, 214, .8); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(31, 95, 214, .85); }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(47, 128, 255, .5), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(140, 194, 255, .18), transparent 60%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 72%);
  padding-top: 24px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo { border-radius: 12px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); flex: none; }
.brand span { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1.25; }
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-300); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 14px; border-radius: 999px; color: rgba(255, 255, 255, .82); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links .nav-cta { color: #fff; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.nav-links .nav-cta:hover { background: rgba(255, 255, 255, .14); }

.hero-body { padding: 76px 0 34px; max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px;
  color: var(--blue-100); background: rgba(140, 194, 255, .12); border: 1px solid rgba(140, 194, 255, .3);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #5cf0b0; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92, 240, 176, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(92, 240, 176, 0); } }

h1 { margin-top: 22px; font-size: clamp(2.5rem, 6.6vw, 4.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
h1 span { background: linear-gradient(90deg, var(--blue-300), #fff 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; max-width: 590px; font-size: clamp(1.02rem, 2vw, 1.16rem); color: #c9dcf8; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* load-in */
.fade { opacity: 0; transform: translateY(14px); animation: fadeUp .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
/* The headline and intro are the page's main content: they slide up but are visible from the first frame. */
h1.fade, .lead.fade { opacity: 1; animation-name: slideUp; }
@keyframes slideUp { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- Road scene ---------- */
.road { position: relative; height: 170px; margin-top: 18px; }
.skyline { position: absolute; left: 0; right: 0; bottom: 56px; height: 92px; overflow: hidden; opacity: .1;
  mask-image: linear-gradient(to bottom, transparent, #000 45%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); }
.skyline .track { display: flex; width: 200%; height: 100%; animation: scroll 70s linear infinite; }
.skyline svg { width: 50%; height: 100%; fill: var(--blue-300); }
/* street lamps: a short arm plus a thin post, repeated every 260px */
.poles {
  position: absolute; left: 0; right: 0; bottom: 56px; height: 54px; opacity: .22;
  background-image:
    linear-gradient(90deg, transparent 0 200px, var(--blue-300) 200px 222px, transparent 222px),
    linear-gradient(90deg, transparent 0 220px, var(--blue-300) 220px 222px, transparent 222px);
  background-size: 260px 2px, 260px 100%;
  background-repeat: repeat-x;
  animation: poles 5s linear infinite;
}
.asphalt { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: rgba(3, 14, 40, .6); border-top: 1px solid rgba(255, 255, 255, .08); }
.lane {
  position: absolute; left: 0; right: 0; top: 26px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 34px, transparent 34px 72px);
  animation: lane 1.1s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes poles { to { background-position: -260px 0, -260px 0; } }
@keyframes lane { to { background-position: -72px 0; } }

.truck {
  position: absolute; bottom: 24px; left: -340px; width: 300px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35));
  animation: drive 16s cubic-bezier(.45, .05, .55, .95) infinite, bob .5s ease-in-out infinite alternate;
}
.truck .wheel { transform-box: fill-box; transform-origin: center; animation: spin .55s linear infinite; }
.truck .beam { animation: flicker 4s ease-in-out infinite; }
@keyframes drive { 0% { left: -340px; } 100% { left: calc(100% + 40px); } }
@keyframes bob { to { translate: 0 -1.5px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { 50% { opacity: .7; } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--blue-50); border-top: 1px solid var(--line); }
.section-head { max-width: 640px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); }
h2 { margin-top: 10px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }

.features { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 26px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: #cddcf3; box-shadow: 0 22px 40px -24px rgba(10, 42, 107, .35); }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--blue-500), var(--navy-800));
  box-shadow: 0 8px 18px -8px rgba(31, 95, 214, .7);
}
.ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-top: 18px; font-size: 1.04rem; font-weight: 800; letter-spacing: -.01em; }
.feature p { margin-top: 6px; color: var(--muted); font-size: .92rem; }

/* ---------- Quote ---------- */
.quote { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.note { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.mail-chip {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 14px; text-decoration: none; font-weight: 700; color: var(--navy-800);
  background: var(--blue-100); transition: background-color .2s; word-break: break-all;
}
.mail-chip:hover { background: #d4e6ff; }
.mail-chip svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card { background: #fff; border-radius: 20px; padding: 30px; border: 1px solid var(--line); box-shadow: 0 30px 60px -32px rgba(10, 42, 107, .35); }
form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; }
.field small { font-size: inherit; font-weight: 500; color: var(--muted); }
input, textarea {
  width: 100%; font: 500 .98rem "Manrope", sans-serif; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid #d5e3f7; background: var(--blue-50);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #93a3bb; }
input:focus, textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47, 128, 255, .14); }
textarea { min-height: 120px; resize: vertical; }
form .btn-primary { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.status { min-height: 1.4em; font-size: .92rem; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* ---------- Footer ---------- */
.footer { padding: 26px 0 34px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .quote { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-body { padding-top: 54px; }
  .section { padding: 70px 0; }
  .features, .row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .road { height: 140px; }
  .truck { width: 220px; left: -260px; }
  @keyframes drive { 0% { left: -260px; } 100% { left: calc(100% + 30px); } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .fade, .js .reveal { opacity: 1; transform: none; }
  .truck { left: 10%; }
}
