:root {
  --ink: #15202b;
  --ink-soft: #3d4f5f;
  --paper: #e6eef4;
  --paper-deep: #cfdce8;
  --line: rgba(21, 32, 43, 0.12);
  --teal: #0b6e63;
  --teal-deep: #08564e;
  --sand: #d8a15a;
  --white: #f7fafc;
  --shadow-soft: 0 18px 40px rgba(21, 32, 43, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --radius: 4px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(11, 110, 99, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(216, 161, 90, 0.12), transparent 50%),
    linear-gradient(180deg, #dfe8f0 0%, var(--paper) 35%, #edf3f7 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(21, 32, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 43, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
.brand,
.logo {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  max-width: 12ch;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.shell.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(230, 238, 244, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--teal-deep) !important;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.25rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none !important;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - 4rem);
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: clip;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(21, 32, 43, 0.04), transparent 40%),
    radial-gradient(ellipse 70% 55% at 75% 45%, rgba(11, 110, 99, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.brand {
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 800;
  color: var(--teal-deep);
}

.lede {
  max-width: 34ch;
  font-size: 1.15rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(21, 32, 43, 0.22);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* Hero visual — route board */

.hero-visual {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.route-board {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  padding: 1.5rem;
  background:
    linear-gradient(165deg, rgba(247, 250, 252, 0.92), rgba(207, 220, 232, 0.75));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.route-line {
  position: absolute;
  left: 2.35rem;
  top: 2.4rem;
  bottom: 2.4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--sand));
  transform-origin: top;
  animation: draw-line 1.4s ease-out 0.3s both;
}

.route-stop {
  position: relative;
  padding-left: 2.4rem;
  opacity: 0;
  animation: stop-in 0.55s ease forwards;
}

.route-stop::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  z-index: 1;
}

.route-stop[data-step="5"]::before {
  border-color: var(--sand);
  background: var(--sand);
}

.route-stop span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.route-stop[data-step="1"] { animation-delay: 0.45s; }
.route-stop[data-step="2"] { animation-delay: 0.6s; }
.route-stop[data-step="3"] { animation-delay: 0.75s; }
.route-stop[data-step="4"] { animation-delay: 0.9s; }
.route-stop[data-step="5"] { animation-delay: 1.05s; }

@keyframes draw-line {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes stop-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sections */

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.section-head p {
  font-size: 1.08rem;
}

.value {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.value h2 {
  max-width: 22ch;
}

.value p {
  font-size: 1.15rem;
  margin-top: 0.85rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--teal);
  line-height: 1;
  padding-top: 0.15rem;
}

.step h3 {
  grid-column: 2;
}

.step p {
  grid-column: 2;
}

.audience {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.audience li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.audience strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 0.35rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compare-col {
  padding: 1.5rem 0;
  border-top: 2px solid rgba(21, 32, 43, 0.2);
}

.compare-after {
  border-top-color: var(--teal);
}

.compare-col h3 {
  margin-bottom: 0.75rem;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}

.feature {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.quote {
  padding-block: 4rem;
}

blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
}

.faq-list {
  display: grid;
  gap: 0.5rem;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--ink);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 700;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 0.65rem;
  padding-right: 1.5rem;
}

.demo {
  padding-bottom: 6rem;
}

.demo-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.demo-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  border: 1px solid rgba(21, 32, 43, 0.2);
  background: rgba(247, 250, 252, 0.85);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: 2px solid rgba(11, 110, 99, 0.35);
  border-color: var(--teal);
}

.form-note {
  font-size: 0.95rem;
  color: var(--teal-deep);
}

.form-note.is-error {
  color: #9b2c2c;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.footer-meta {
  font-size: 0.95rem;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
  }

  .route-board {
    width: 100%;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .compare-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .route-line,
  .route-stop {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
