:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #526173;
  --line: #d8e6e0;
  --paper: #fbfdfb;
  --soft: #eef8f4;
  --mint: #0f766e;
  --mint-strong: #0b4f49;
  --night: #111827;
  --amber: #d97706;
  --rose: #be4769;
  --blue: #2563eb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(238, 248, 244, .74) 38%, rgba(255, 255, 255, .94)),
    linear-gradient(120deg, rgba(15, 118, 110, .12), rgba(217, 119, 6, .08) 38%, rgba(37, 99, 235, .09) 72%, rgba(190, 71, 105, .07));
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .36);
  outline-offset: 3px;
}

.three-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .62;
  pointer-events: none;
}

.three-field canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 253, 251, .86);
  border-bottom: 1px solid rgba(216, 230, 224, .88);
  backdrop-filter: blur(18px);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--night);
  box-shadow: 0 10px 26px rgba(17, 24, 39, .16);
}

.nav-links,
.nav-actions,
.hero-actions,
.section-actions,
.language-switch,
.story-tabs,
.metric-row,
.mini-row,
.flow-row,
.image-caption {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: .94rem;
}

.nav-actions {
  gap: 10px;
}

.language-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.lang-link.active {
  color: var(--white);
  background: var(--night);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  white-space: nowrap;
}

.button.primary {
  color: var(--white);
  background: var(--night);
  border-color: var(--night);
}

.button.light {
  color: var(--night);
  background: var(--white);
  border-color: var(--white);
}

.hero {
  min-height: 88vh;
  padding: 74px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 6vw, 5.45rem);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h3 {
  margin-bottom: 8px;
}

.hero-copy,
.section-lead,
.story-card p,
.step-card p,
.route-card p,
.faq-item p,
.visual-copy,
.metric-label {
  color: var(--muted);
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 28px;
  font-size: 1.13rem;
}

.hero-actions,
.section-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proof-item,
.story-card,
.step-card,
.route-card,
.faq-item,
.screen-frame,
.visual-panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(216, 230, 224, .92);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .07);
}

.proof-item {
  padding: 14px;
}

.proof-item strong {
  display: block;
  margin-bottom: 3px;
}

.proof-item span {
  color: var(--muted);
  font-size: .94rem;
}

.scene-console {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
}

.screen-frame {
  padding: 18px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
}

.screen-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.screen-top span {
  color: var(--muted);
}

.mini-row {
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e6eeea;
  background: var(--white);
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 10px;
}

.mini-row.highlight {
  border-color: rgba(15, 118, 110, .32);
  background: #ecfdf7;
}

.mini-row strong {
  white-space: nowrap;
}

.mini-row span {
  color: var(--muted);
  text-align: right;
}

.section {
  padding: 72px 0;
  border-top: 1px solid rgba(216, 230, 224, .86);
}

.section-lead {
  max-width: 760px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card,
.step-card,
.route-card,
.faq-item {
  padding: 22px;
}

.story-card {
  min-height: 260px;
}

.story-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.story-tab {
  color: var(--night);
  background: #f4f8f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: .88rem;
}

.story-card.customer .story-tab:first-child,
.story-card.provider .story-tab:last-child {
  color: var(--white);
  background: var(--night);
  border-color: var(--night);
}

.story-card.customer {
  border-top: 4px solid var(--mint);
}

.story-card.provider {
  border-top: 4px solid var(--amber);
}

.flow-row {
  gap: 12px;
  margin-top: 18px;
}

.flow-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, .1);
}

.story-card.provider .flow-dot {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(217, 119, 6, .12);
}

.flow-line {
  flex: 1;
  height: 2px;
  background: rgba(216, 230, 224, .88);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 1.14fr);
  gap: 42px;
  align-items: center;
}

.split-section.reverse {
  grid-template-columns: minmax(360px, 1.14fr) minmax(0, .86fr);
}

.split-section.reverse .visual-panel {
  order: -1;
}

.visual-panel {
  overflow: hidden;
  background: var(--white);
}

.visual-panel img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
}

.image-caption {
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .94rem;
}

.image-caption strong {
  color: var(--night);
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.step-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  box-shadow: none;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--night);
  font-weight: 850;
}

.provider-accent .step-number {
  background: var(--amber);
}

.routes-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  min-height: 190px;
}

.route-card h3 {
  font-size: 1.14rem;
}

.route-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--white);
  background: var(--mint);
  font-weight: 850;
  font-size: .82rem;
  margin-bottom: 16px;
}

.route-card:nth-child(2) .route-chip {
  background: var(--amber);
}

.route-card:nth-child(3) .route-chip {
  background: var(--blue);
}

.route-card:nth-child(4) .route-chip {
  background: var(--rose);
}

.route-card:nth-child(5) .route-chip {
  background: var(--night);
}

.metric-row {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.metric-pill {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7faf8;
  border: 1px solid var(--line);
  font-weight: 800;
}

.metric-pill i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  background: var(--mint);
}

.metric-pill:nth-child(2) i {
  background: var(--amber);
}

.metric-pill:nth-child(3) i {
  background: var(--blue);
}

.dark-band {
  color: var(--white);
  background: var(--night);
  border-top: 0;
}

.dark-band .section-lead,
.dark-band p {
  color: #c9d4df;
}

.dark-band .button.light {
  border-color: var(--white);
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  background: #090f1b;
  color: var(--white);
  padding: 36px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #cbd5e1;
}

.scroll-motion-ready .site-header {
  box-shadow: 0 8px 30px rgba(17, 24, 39, var(--header-shadow-opacity, 0));
}

.scroll-motion-ready .scroll-motion {
  opacity: var(--scroll-fade, 1);
  transform:
    translate3d(var(--scroll-shift, 0px), var(--scroll-lift, 0px), 0)
    scale(var(--scroll-scale, 1))
    rotate(var(--scroll-tilt, 0deg));
  transform-origin: center;
  will-change: transform, opacity;
}

.scroll-motion-ready .visual-panel {
  perspective: 900px;
}

.scroll-motion-ready .visual-panel img {
  transform: translate3d(0, var(--image-shift, 0px), 0) scale(var(--image-scale, 1));
  will-change: transform;
}

.scroll-motion-ready .step-card .step-number,
.scroll-motion-ready .route-chip,
.scroll-motion-ready .story-tab {
  transform: scale(var(--presence-scale, 1));
  transform-origin: center;
}

.scroll-motion-ready .flow-line {
  position: relative;
  overflow: hidden;
}

.scroll-motion-ready .flow-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 118, 110, .68), rgba(217, 119, 6, .62), rgba(37, 99, 235, .54));
  transform: scaleX(var(--line-progress, 0));
  transform-origin: left center;
}

.scroll-motion-ready .dark-band {
  background:
    radial-gradient(circle at 18% 0%, rgba(15, 118, 110, .34), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(217, 119, 6, .22), transparent 26%),
    var(--night);
}

.reveal-ready [data-reveal] {
  opacity: 1;
  transform: translateY(16px);
  transition: transform .7s ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .three-field {
    display: none;
  }

  .scroll-motion-ready .scroll-motion,
  .scroll-motion-ready .visual-panel img,
  .scroll-motion-ready .step-card .step-number,
  .scroll-motion-ready .route-chip,
  .scroll-motion-ready .story-tab {
    opacity: 1;
    transform: none;
  }

  .scroll-motion-ready .flow-line::after {
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .scene-console {
    min-height: 360px;
  }

  .split-section.reverse .visual-panel {
    order: 0;
  }

  .story-grid,
  .routes-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
  }

  .three-field {
    opacity: .24;
  }

  .shell {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    font-size: .88rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .language-switch .button {
    width: auto;
  }

  .story-card,
  .step-card,
  .route-card,
  .faq-item {
    padding: 18px;
  }

  .footer-content {
    flex-direction: column;
  }
}
