/* ---------- Tokens ---------- */
:root {
  --ink: #101826;
  --ink-soft: #4A5568;
  --paper: #F5F7FA;
  --paper-alt: #ECF1F9;
  --route-blue: #1E5FFF;
  --route-blue-deep: #123FBF;
  --signal-green: #1F8A55;
  --amber: #C77C11;
  --coral: #F2643C;
  --coral-deep: #D14A26;
  --line: rgba(16, 24, 38, 0.10);
  --shadow: 0 1px 4px rgba(16, 24, 38, 0.16);
  --shadow-lg: 0 12px 32px rgba(16, 24, 38, 0.14);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--route-blue);
  outline-offset: 3px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn--coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 6px 18px rgba(242, 100, 60, 0.32);
}

.btn--coral:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.nav__links a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 4.6vw + 1rem, 4.25rem);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.hero__platform {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ---------- Hero visual: route card ---------- */
.route-card {
  position: relative;
  width: 100%;
  padding-top: 115%; /* ~400:460 ratio box, works without aspect-ratio support */
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.route-card__grid,
.route-card__path {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.chip {
  position: absolute;
  background: #fff;
  border-radius: 20px;
  padding: 7px 15px;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  border: none;
}

.chip--score {
  top: 22px;
  left: 22px;
}

.chip--badge {
  top: 22px;
  left: 70px;
  font-weight: 500;
  color: var(--ink-soft);
}

.chip--recenter {
  bottom: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  cursor: default;
}

/* ---------- Facts strip ---------- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.facts p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: none;
}

.facts strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .facts__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Feature sections ---------- */
.feature {
  padding: 84px 0;
}

.feature--tint {
  background: var(--paper-alt);
}

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature--reverse .feature__grid {
  grid-template-columns: 1fr 1fr;
}

.feature--reverse .feature__copy {
  order: 2;
}

.feature--reverse .feature__art {
  order: 1;
}

.feature h2 {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.375rem);
  max-width: 19ch;
}

.feature p {
  color: var(--ink-soft);
}

.feature__art img {
  border-radius: 20px;
}

@media (max-width: 860px) {
  .feature__grid,
  .feature--reverse .feature__grid {
    grid-template-columns: 1fr;
  }
  .feature--reverse .feature__copy,
  .feature--reverse .feature__art {
    order: initial;
  }
  .feature {
    padding: 56px 0;
  }
}

/* ---------- Score mock (feature 2 visual) ---------- */
.score-mock {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.score-mock__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.score-mock__pill {
  background: var(--paper);
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9375rem;
}

.score-mock__pill--muted {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Steps (sharing section) ---------- */
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.steps li {
  display: flex;
  gap: 16px;
}

.steps__num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.2em;
}

.steps p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0;
}

/* ---------- Viewer mock (sharing visual) ---------- */
.viewer-mock {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 ratio box, works without aspect-ratio support */
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.viewer-mock__map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.viewer-mock__banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--signal-green);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px;
}

.viewer-mock__recenter {
  cursor: default;
}

/* ---------- More section ---------- */
.more {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}

.more h2 {
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.375rem);
  max-width: 20ch;
  margin-bottom: 1em;
}

.more__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.more__list li {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.more__list h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.35em;
}

.more__list p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  margin: 0;
}

@media (max-width: 700px) {
  .more__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  padding: 88px 0;
}

.cta__inner {
  text-align: left;
  max-width: 640px;
}

.cta h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
}

.cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.0625rem;
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__muted {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.875rem;
}