:root {
  --ink: #10161d;
  --steel: #1c2733;
  --paper: #f5f2ec;
  --paper-tint: #ece7dc;
  --line: #ddd6c8;
  --text: #1b2026;
  --muted: #5c6570;
  --accent: #e6551f;
  --accent-deep: #b8410f;
  --accent-soft: #f7ceb6;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Big Shoulders Display", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); }
h3 { font-size: 1.2rem; color: var(--ink); }

p { margin: 0 0 14px; color: var(--muted); }
a { color: var(--accent-deep); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0 0 14px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245,242,236,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark { width: 24px; height: 24px; color: var(--ink); flex-shrink: 0; }
.brand-name { font-family: "Big Shoulders Display", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
header nav { display: flex; gap: 28px; }
header nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
header nav a:hover { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 0 8px; background: var(--ink); }

/* Hero */
#hero {
  padding: 110px 0 90px;
  min-height: 560px;
  background:
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 30%, rgba(245,242,236,0.7) 44%, rgba(245,242,236,0) 68%),
    url('https://images.unsplash.com/photo-1684695749267-233af13276d0?auto=format&fit=crop&w=2400&q=80') center 40%/cover no-repeat;
}
#hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); color: var(--ink); max-width: 780px; }
.hero-photo { display: none; }
.lede { font-size: 1.1rem; max-width: 600px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* Services */
#services { padding: 80px 0; background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}
#services article {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(230,85,31,0.12);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 22px; height: 22px; }
#services h3 { margin-bottom: 8px; }
#services p { margin: 0; }

/* Integrations */
#integrations { padding: 0 0 70px; background: var(--paper); text-align: center; }
.integrations-label { max-width: 520px; margin: 0 auto 26px; font-size: 0.95rem; }
.integrations-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.integration-item {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 18px;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.integration-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.integration-icon { width: 15px; height: 15px; object-fit: contain; }

/* Visibility */
#visibility { padding: 80px 0; background: var(--ink); color: var(--paper); }
#visibility .eyebrow { color: var(--accent-soft); }
#visibility h2 { color: var(--paper); max-width: 640px; }
#visibility p { color: #b7bfc7; max-width: 620px; margin: 0; }

/* How it works */
#how-it-works { padding: 80px 0; background: var(--paper-tint); }
.process-list {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 0;
  right: 0;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.process-step { position: relative; padding-top: 0; transition: transform .18s ease; }
.process-step:hover { transform: translateY(-3px); }
.step-marker {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper-tint);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.step-marker svg { width: 20px; height: 20px; }
.process-step:hover .step-marker { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(230,85,31,0.18); }
.process-list h3 { margin-bottom: 6px; }
.process-list p { margin: 0; }

/* Why Routefi */
#why-routefi { padding: 80px 0; background: var(--paper); }
.reasons-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reasons-list li {
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--paper-tint);
  font-weight: 600;
  color: var(--ink);
}

/* Trust */
#trust { padding: 44px 0; background: var(--paper-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#trust p { margin: 0; text-align: center; font-style: italic; color: var(--muted); font-size: 1.05rem; }

/* Pricing */
#pricing { padding: 80px 0; background: var(--accent); text-align: center; color: #fff; }
#pricing .eyebrow { color: rgba(255,255,255,0.85); }
#pricing h2 { color: #fff; }
#pricing p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 24px; }

/* Contact */
#contact { padding: 64px 0; background: var(--paper); }
#contact h2 { max-width: 560px; }
#contact .btn { margin-bottom: 0; }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-inner nav a:hover { color: var(--ink); }
.footer-tag { margin: 0; font-size: 0.85rem; color: var(--muted); width: 100%; text-align: center; order: 3; }
.footer-copy { margin: 4px 0 0; font-size: 0.78rem; color: #8a8f97; width: 100%; text-align: center; order: 4; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list::before { display: none; }
  .reasons-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 16px;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-menu a:last-child { border-bottom: none; }

  #hero {
    min-height: 0;
    padding: 0 0 50px;
    background: var(--paper);
  }
  .hero-photo {
    display: block;
    height: 220px;
    background: url('https://images.unsplash.com/photo-1684695749267-233af13276d0?auto=format&fit=crop&w=1200&q=75') center 45%/cover no-repeat;
    margin-bottom: 30px;
  }
  #hero .wrap { padding-top: 4px; }

  #services, #trust, #contact, footer {
    padding-bottom: 100px;
  }

  .footer-inner { justify-content: center; text-align: center; }
}
