/* ═══════════════════════════════════════════════════════════════════════════
   GXPWAY MAPPING — MARKETING SITE
   gxpwaymapping.com

   Same design system as the cloud app (see frontend/src/index.css): amber
   #ec7d1c primary, Cabinet Grotesk + Satoshi, amber-tinted shadows. Adds
   GXPWAY's corporate navy and cyan as secondary accents, sampled from
   gxpway.com, which the app itself does not use.

   Deliberately dependency-free: no build step, no framework. The page is
   served by nginx straight out of a container.
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,600,700,800&f[]=satoshi@300,400,500,700&display=swap');

:root {
  /* Brand — shared with the app */
  --primary: #ec7d1c;
  --primary-hover: #c4661a;
  /* Brand fill that carries white text at >= 4.5:1. */
  --primary-solid: #b35c17;
  /* Brand-coloured TEXT on light grounds. #ec7d1c is only 2.8:1 on white. */
  --primary-ink: #9e5115;
  --primary-50: #fef0e0;
  --primary-100: #fde0c0;
  --primary-200: #f9c08a;

  /* GXPWAY corporate accents (gxpway.com) */
  --navy: #2f348f;
  --navy-deep: #1d2060;
  --cyan: #16b7cc;

  /* Neutrals — shared with the app */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --fg: #0f172a;
  --fg-secondary: #334155;
  --fg-muted: #64748b;
  --fg-faint: #94a3b8;

  --success: #16a34a;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Satoshi', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(236, 125, 28, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(236, 125, 28, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(236, 125, 28, 0.14), 0 4px 8px rgba(0, 0, 0, 0.06);

  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --content: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-secondary);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--primary-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Skip link for keyboard users. */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.brand img {
  height: 34px;
  width: auto;
}
.brand__divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}
.brand__product {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--fg);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  color: var(--fg-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 150ms var(--ease);
}
.site-nav a:hover {
  color: var(--primary-ink);
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
}

/* Below ~560px the brand lockup plus the CTA no longer fit on one line, so the
   product word and the button's arrow drop out rather than overflowing. */
@media (max-width: 560px) {
  .site-header__inner {
    gap: 0.75rem;
  }
  .brand img {
    height: 28px;
  }
  .brand__divider,
  .brand__product {
    display: none;
  }
  .site-header .btn {
    height: 40px;
    padding-inline: 0.875rem;
    font-size: 0.875rem;
  }
  .site-header .btn svg {
    display: none;
  }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0 1.25rem;
  height: 44px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 150ms var(--ease);
}
.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--primary-solid);
  color: #fff;
  box-shadow: 0 2px 8px rgba(236, 125, 28, 0.3);
}
.btn--primary:hover {
  background: var(--primary-ink);
  box-shadow: 0 4px 16px rgba(236, 125, 28, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg-secondary);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-ink);
  background: var(--primary-50);
}

.btn--on-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--lg {
  height: 52px;
  padding: 0 1.75rem;
  font-size: 1rem;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #3a3f9e 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(236, 125, 28, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(22, 183, 204, 0.22) 0%, transparent 45%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero p.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-200);
  background: rgba(236, 125, 28, 0.14);
  border: 1px solid rgba(236, 125, 28, 0.3);
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

/* The thermal scale — the page's signature mark. Cold to hot, matching the
   hot/cold-spot language the product is built around. */
.thermal-rail {
  --rail-height: 10px;
  border-radius: 999px;
  height: var(--rail-height);
  background: linear-gradient(90deg, #0ea5e9 0%, #16a34a 38%, #ec7d1c 72%, #dc2626 100%);
  box-shadow: 0 0 24px rgba(236, 125, 28, 0.45);
}

.thermal-scale {
  max-width: 460px;
}
.thermal-scale__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.section--tint {
  background: var(--bg);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}
.section__head h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section__head p {
  color: var(--fg-muted);
  font-size: 1.0625rem;
}

.section__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: 0.75rem;
}

/* ── Grids and cards ─────────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease),
    border-color 250ms var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-200);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.9375rem;
  color: var(--fg-muted);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-ink);
  margin-bottom: 1rem;
}
.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__range {
  display: inline-block;
  margin-top: 0.875rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.125rem 0.625rem;
}

/* ── Process ─────────────────────────────────────────────────────────────── */
.steps {
  counter-reset: step;
  list-style: none; /* the badges in .step::before are the numbering */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}

.step {
  position: relative;
  padding-top: 2.75rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--primary-solid);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
}
.step h3 {
  font-size: 1rem;
  margin-bottom: 0.375rem;
}
.step p {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ── Trust badges ────────────────────────────────────────────────────────── */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.badge {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.badge__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(47, 52, 143, 0.08);
  color: var(--navy);
}
.badge__mark svg {
  width: 19px;
  height: 19px;
}
.badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--fg);
}
.badge span {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* ── Platform feature list ───────────────────────────────────────────────── */
.feature-list {
  list-style: none;
  display: grid;
  gap: 0.875rem;
}
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
}
.feature-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--success);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

/* ── Clients ─────────────────────────────────────────────────────────────── */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
}
.clients li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--primary-ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--fg-muted);
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  /* --primary-solid, not --primary: white text on #ec7d1c is 2.8:1 and fails
     WCAG AA. The deeper amber is 4.7:1 and reads as the same brand. */
  background: var(--primary-solid);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.16) 0%, transparent 50%);
  pointer-events: none;
}
.cta > * {
  position: relative;
}
.cta h2 {
  color: #fff;
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta p {
  color: #fff;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.72);
  padding-block: 3rem 1.5rem;
  font-size: 0.9375rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}
.site-footer a:hover {
  color: var(--primary-200);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 800px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.footer__grid ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Respect a reduced-motion preference: the only motion here is hover lift. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
