/* Movere marketing site. Tokens match packages/design-tokens. */

:root {
  --canvas: #f6f7fb;
  --surface: #ffffff;
  --canvas-dark: #0a1330;
  --ink: #0b1020;
  --ink-muted: #5d6680;
  --ink-faint: #8a94a6;
  --line: #e7e9f1;
  --accent-purple: #8717d5;
  --accent-indigo: #6771ce;
  --accent-teal: #47cbc7;
  --gradient: linear-gradient(90deg, #8717d5 0%, #6771ce 50%, #47cbc7 100%);
  --status-success: #1e9e6a;
  --status-warn: #c98a1b;
  --status-info: #6771ce;
  --status-neutral: #8a94a6;
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --container: 1180px;
  --pad: clamp(32px, 8vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 120ms ease;
}

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

.micro {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background-clip: padding-box;
  box-shadow: none;
}

.btn--primary {
  background-color: #6771ce;
  background-image: var(--gradient);
  color: #fff;
  overflow: hidden;
}

.btn--primary:hover {
  color: #fff;
  opacity: 0.95;
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn--ghost-dark {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn--sm {
  height: 38px;
  padding: 0 14px;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 247, 251, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__bar {
  height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  justify-self: start;
}

.logo img {
  height: 26px;
  width: auto;
}

.nav__links {
  display: none;
  align-items: center;
  justify-self: center;
  gap: 28px;
  font-size: 14px;
}

.nav__actions {
  display: none;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-self: end;
  grid-column: 3;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 10px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

#mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  padding-bottom: 20px;
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

#mobile-nav[hidden] {
  display: none !important;
}

#mobile-nav a {
  padding: 12px 4px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 720px) {
  .orch-flow {
    display: none;
  }

  .hero h1 {
    font-size: clamp(28px, 8.2vw, 36px);
    margin: 14px 0 16px;
  }

  .hero p {
    margin: 0 0 24px;
    max-width: none;
  }

  .hero__inner {
    padding-top: 28px;
    padding-bottom: 36px;
    gap: 28px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-row .btn,
  .devs .btn {
    width: 100%;
  }

  .hero .chip {
    display: none;
  }

  .hero .chevron-mark,
  .routing .chevron-mark,
  .cta-box .chevron-mark {
    display: none;
  }

  .hero .diagram {
    aspect-ratio: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero .diagram svg.wires,
  .hero .diagram .card--route {
    display: none;
  }

  .hero .diagram .card {
    position: static;
    width: auto;
    min-height: 86px;
    padding: 12px 14px;
  }

  .product--rev .diagram,
  .routing .diagram {
    display: none;
  }

  .table-scroll {
    margin-right: calc(-1 * var(--pad));
    padding-right: var(--pad);
    -webkit-overflow-scrolling: touch;
  }

  .hero__art,
  .product__copy,
  .product__art,
  .orch-end,
  .orch-mid {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }

  .diagram {
    aspect-ratio: 640 / 500;
    overflow: hidden;
  }

  .trust {
    margin: 28px 0 10px;
  }

  .trust-list {
    gap: 8px 18px;
  }

  .cta-box {
    padding: 28px 22px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .code {
    font-size: 11.5px;
    overflow-x: auto;
  }

  .compare-grid {
    min-width: 640px;
  }
}

@media (min-width: 860px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }
  .nav__toggle,
  #mobile-nav {
    display: none !important;
  }
}

.chevron-mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  height: 150%;
  width: auto;
  opacity: 0.14;
  pointer-events: none;
}

.hero .chevron-mark {
  right: -10%;
  top: 62%;
  height: 78%;
  opacity: 0.08;
}

.routing .chevron-mark {
  right: -8%;
  height: 120%;
  opacity: 0.1;
}

/* Hero */
.hero {
  position: relative;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 20%, black, transparent);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.hero__copy {
  flex: 1 1 400px;
  min-width: min(100%, 340px);
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 18px 0 20px;
  padding-top: 4px;
  text-wrap: balance;
}

.hero p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 30px;
  max-width: 460px;
}

.hero__cta,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust {
  margin: 44px 0 12px;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero__art {
  flex: 1 1 460px;
  min-width: min(100%, 320px);
}

.diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 520;
}

.diagram svg.wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
}

.diagram .card,
.diagram .chip {
  z-index: 1;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-sizing: border-box;
}

.card--node {
  position: absolute;
  width: 29%;
  padding: 5.5% 4.5%;
}

.card--route {
  position: absolute;
  left: 39.5%;
  top: 40%;
  width: 21.5%;
  text-align: center;
  padding: 10% 8%;
  overflow: hidden;
}

.card--prov {
  position: absolute;
  right: 0;
  width: 26%;
  padding: 4.5% 4%;
}

.accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.ico {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}

.chip {
  position: absolute;
  right: 23%;
  top: 16%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: chipCap 5.2s ease infinite;
  box-shadow: 0 6px 18px rgba(11, 16, 32, 0.06);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.ring {
  position: absolute;
  inset: -12%;
  border: 1.5px solid rgba(103, 113, 206, 0.4);
  border-radius: 20px;
  animation: ring 3s ease-out infinite;
}

/* Orchestration */
.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section {
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.section h2,
.products h2,
.compare h2,
.devs h2,
.cta-box h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 16px 0 14px;
  text-wrap: balance;
}

.lede {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  max-width: 640px;
}

.orch-row {
  margin-top: clamp(32px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 clamp(8px, 1.5vw, 16px);
}

.orch-end {
  flex: 1 1 200px;
  min-width: min(100%, 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.orch-flow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.orch-mid {
  flex: 2.2 1 320px;
  min-width: min(100%, 280px);
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}

.orch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.orch-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.pill {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-muted);
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
  overflow: hidden;
}

/* Products */
.products {
  padding-top: clamp(56px, 8vw, 110px);
  padding-bottom: 0;
}

.product {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.product--rev {
  flex-wrap: wrap-reverse;
}

.product:last-child {
  border-bottom: 0;
}

.product__copy {
  flex: 1 1 380px;
  min-width: min(100%, 320px);
}

.product__art {
  flex: 1 1 300px;
  min-width: min(100%, 280px);
}

.brand-prod {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.brand-prod img {
  height: 18px;
  width: auto;
}

.brand-prod span {
  font-size: 18px;
  font-weight: 700;
}

.product h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

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

.check b {
  color: #2ba7a3;
}

.phone {
  width: min(250px, 80vw);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  padding: 22px 20px 26px;
  box-shadow: 0 24px 60px rgba(11, 16, 32, 0.08);
}

.phone__bar {
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 0 auto 18px;
}

.term {
  position: relative;
  height: 240px;
}

.term__a,
.term__b {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.term__a {
  animation: termA 7s ease infinite;
}

.term__b {
  justify-content: center;
  animation: termB 7s ease infinite;
}

.qr {
  width: 118px;
  height: 118px;
  border: 1.5px dashed #c9cede;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
}

.code {
  background: var(--canvas-dark);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

/* Routing */
.routing {
  background: var(--canvas-dark);
  color: #fff;
}

.routing .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.routing h2 {
  color: #fff;
}

.routing .lede {
  color: rgba(255, 255, 255, 0.65);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step {
  display: flex;
  gap: 14px;
}

.step__n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

/* Compare */
.compare {
  padding-top: clamp(56px, 8vw, 100px);
  padding-bottom: clamp(56px, 8vw, 100px);
}

.table-scroll {
  overflow-x: auto;
}

.compare-grid {
  min-width: 760px;
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1fr 1fr;
  gap: 0 14px;
  font-size: 13.5px;
}

.col {
  display: grid;
  grid-template-rows: 64px repeat(6, 60px);
  align-items: center;
}

.col > div {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  height: 100%;
}

.col > div:first-child {
  border-top: 0;
}

.col--movere {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 18px;
  box-shadow: 0 18px 44px rgba(11, 16, 32, 0.09);
  overflow: hidden;
}

.col--movere::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gradient);
  pointer-events: none;
}

.col--other {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0 18px;
  color: var(--ink-faint);
}

/* Developers + CTA */
.devs {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.devs .wrap,
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.cta {
  padding: clamp(48px, 7vw, 96px) 0;
}

.cta-box {
  position: relative;
  background: var(--canvas-dark);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  color: #fff;
  overflow: hidden;
}

.cta-box .chevron-mark {
  right: -4%;
  top: 50%;
  height: 150%;
  opacity: 0.14;
}

.node-dot {
  display: inline-grid;
  place-items: center;
  width: min(44px, 9vw);
  height: min(44px, 9vw);
  border: 1px solid var(--line);
}

.node-dot--round {
  border-radius: 50%;
}

.node-dot--box {
  border-radius: 12px;
  background: var(--surface);
}

.node-label {
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.cta-box p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 26px;
  max-width: 440px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px) 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

[data-section] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-section].is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes ring {
  0% { transform: scale(0.7); opacity: 0.5; }
  80% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes chipCap {
  0%, 20% { opacity: 0; transform: translateY(6px); }
  25%, 52% { opacity: 1; transform: none; }
  58%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes termA {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes termB {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes chipOkA {
  0%, 23% { opacity: 0; }
  27%, 40% { opacity: 1; }
  44%, 100% { opacity: 0; }
}
@keyframes chipDegrade {
  0%, 43% { opacity: 0; }
  47%, 93% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes chipOkB {
  0%, 72% { opacity: 0; }
  76%, 93% { opacity: 1; }
  97%, 100% { opacity: 0; }
}
@keyframes healthA {
  0%, 42% { opacity: 1; }
  44%, 100% { opacity: 0; }
}
@keyframes healthAoff {
  0%, 42% { opacity: 0; }
  44%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-section] {
    opacity: 1;
    transform: none;
  }
}
