:root {
  --paper: #FAF7F0;
  --paper-dim: #F1ECE0;
  --ink: #1F2A24;
  --ink-soft: #4A5A50;
  --trail: #C15F3C;
  --trail-dark: #A34A2C;
  --moss: #6B7F5B;
  --mustard: #D4A24C;
  --line: rgba(31, 42, 36, 0.12);
  --card-shadow: 0 20px 50px -20px rgba(31, 42, 36, 0.25);
  --radius: 14px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Trail line signature element ---------- */
.trail-line {
  position: absolute;
  top: 780px;
  left: 50%;
  width: 4px;
  height: 2400px;
  z-index: 0;
  pointer-events: none;
}
.trail-line path {
  stroke: var(--trail);
  stroke-width: 3;
  opacity: 0.35;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--trail);
  color: var(--paper);
}
.btn-primary:hover { background: var(--trail-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6%;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark { color: var(--trail); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-weight: 600; font-size: 0.95rem; }
.menu-toggle { display: none; font-size: 1.4rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 90px 6% 110px;
  max-width: 1400px;
  margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--trail);
  margin-bottom: 18px;
}
.eyebrow-center { text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero h1 .highlight { color: var(--trail); }
.hero-sub {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-proof { margin-top: 56px; }
.hero-proof span { font-size: 0.85rem; color: var(--ink-soft); }
.logo-strip {
  display: flex;
  gap: 28px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.7;
  flex-wrap: wrap;
}

.hero-visual { display: flex; justify-content: center; }
.map-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  width: 100%;
  max-width: 380px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.map-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(250,247,240,0.1);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #E0665A; }
.dot-amber { background: var(--mustard); }
.dot-green { background: var(--moss); }
.map-card-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(250,247,240,0.6);
  margin-left: 6px;
}
.map-card-body { padding: 26px 22px 30px; }
.route-step { display: flex; align-items: flex-start; gap: 14px; }
.route-icon {
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,247,240,0.08);
  border-radius: 50%;
  flex-shrink: 0;
}
.route-step-final .route-icon { background: var(--moss); color: var(--ink); }
.route-label { font-weight: 600; font-size: 0.95rem; }
.route-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(250,247,240,0.5);
  margin-top: 3px;
}
.route-connector {
  width: 1.5px;
  height: 24px;
  background: rgba(250,247,240,0.15);
  margin-left: 16px;
}

/* ---------- Waypoint sections ---------- */
.waypoint {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 6%;
  align-items: start;
}
.waypoint-marker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--paper);
  background: var(--trail);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--trail);
  justify-self: center;
}
.waypoint-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 16px;
}
.waypoint-content p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 560px;
}
.feature-list { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--mustard);
  border-radius: 2px;
  transform: rotate(45deg);
}
.feature-list strong { color: var(--ink); }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  padding: 90px 6%;
  text-align: center;
  margin-top: 40px;
}
.stats .eyebrow { color: var(--mustard); }
.stats-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-card {
  background: rgba(250,247,240,0.05);
  border: 1px solid rgba(250,247,240,0.1);
  border-radius: var(--radius);
  padding: 34px 18px;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--trail);
}
.stat-unit { font-size: 1.2rem; color: var(--mustard); }
.stat-label { margin-top: 10px; font-size: 0.9rem; color: rgba(250,247,240,0.6); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 90px 6%; text-align: center; }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}
.testimonial-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.testimonial-card p { font-size: 1rem; color: var(--ink); }
.testimonial-author { margin-top: 20px; display: flex; flex-direction: column; }
.author-name { font-weight: 600; font-size: 0.92rem; }
.author-role { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 6%;
  background: var(--trail);
  color: var(--paper);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
}
.cta-band p { margin: 16px 0 34px; opacity: 0.9; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #10160f; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 70px 6% 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(250,247,240,0.12);
}
.footer-brand .logo { color: var(--paper); }
.footer-brand p { margin-top: 12px; color: rgba(250,247,240,0.55); font-size: 0.9rem; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--mustard); margin-bottom: 16px; }
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(250,247,240,0.7);
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 0.85rem;
  color: rgba(250,247,240,0.5);
}
.footer-social { display: flex; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .trail-line { display: none; }
}
@media (max-width: 700px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: block; }
  .waypoint { grid-template-columns: 1fr; text-align: left; }
  .waypoint-marker { justify-self: start; }
  .footer-top { grid-template-columns: 1fr; }
}
