@font-face {
  font-family: Inter;
  src: url('/assets/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --red: #e60028;
  --electric: #ff1738;
  --red-text: #b40025;
  --ink: #1c1618;
  --muted: #5f5357;
  --paper: #faf8f7;
  --ease: cubic-bezier(.22, .8, .24, 1);
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 Inter, system-ui, sans-serif;
  scrollbar-gutter: stable;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 2px solid #a80026; outline-offset: 4px; }
.hero :focus-visible, .closing :focus-visible, footer :focus-visible { outline-color: white; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem;
  background: white;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.navigation {
  --pill: 304px;
  --pill-height: 54px;
  --nav-inset: 18px;
  position: fixed;
  inset: var(--nav-inset) 0 auto;
  z-index: 50;
  pointer-events: none;
}
.navigation.is-compact { --pill: 248px; --pill-height: 48px; }
.nav-pill, .mega-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nav-pill {
  pointer-events: auto;
  margin-inline: auto;
  width: min(var(--pill), calc(100% - 24px));
  height: var(--pill-height);
  padding-inline: 20px 17px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 5px 24px #29000819;
  transition: width .44s var(--ease), height .44s var(--ease);
}
.navigation:has(dialog[open]) .nav-pill { visibility: hidden; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: -.05em;
}
.brand img { object-fit: contain; }
.wordmark { font-weight: 400; letter-spacing: -.04em; white-space: nowrap; }
.wordmark strong { font-weight: 800; }
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .88rem;
}
.menu-label {
  max-width: 70px;
  opacity: 1;
  overflow: hidden;
  transition: max-width .36s var(--ease), opacity .24s;
}
.is-compact .menu-label { max-width: 0; opacity: 0; }
.menu-icon { position: relative; display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; }
.menu-icon::before, .menu-icon::after {
  position: absolute;
  inset: 5px 1px auto;
  height: 1.5px;
  background: currentColor;
  content: '';
}
.menu-icon::after { top: 10px; }
.menu-icon.cross::before, .menu-icon.cross::after { top: 7px; transform: rotate(45deg); }
.menu-icon.cross::after { transform: rotate(-45deg); }
.mega-menu {
  pointer-events: auto;
  position: fixed;
  inset: var(--nav-inset) 0 auto;
  width: min(1110px, calc(100% - 30px));
  max-width: none;
  max-height: calc(100dvh - 2 * var(--nav-inset));
  padding: 0;
  margin: 0 auto;
  border: 0;
  border-radius: 27px;
  background: white;
  color: var(--ink);
  overflow: hidden;
  --closed-shape: inset(0 max(0px, calc((100% - var(--pill)) / 2)) calc(100% - var(--pill-height)) round 28px);
  box-shadow: 0 30px 90px #33001430;
}
.mega-menu[open] { animation: menu-expand .50s var(--ease) both; }
.mega-menu[open].is-closing { animation: menu-collapse .30s var(--ease) both; }
.mega-menu::backdrop { background: #1b020861; animation: backdrop-in .30s ease both; }
.mega-menu.is-closing::backdrop { animation: backdrop-out .30s ease both; }
:root:has(.mega-menu[open]) { overflow: hidden; }
.mega-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: inherit;
}
.mega-header { min-height: var(--pill-height); padding: 0 26px; }
.mega-body {
  display: grid;
  grid-template-columns: minmax(162px, .92fr) minmax(144px, .78fr) minmax(0, 1.9fr);
  gap: 16px;
  padding: 10px 20px 18px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mega-menu[open]:not(.is-closing) :is(.mega-body, .mega-footer) { animation: item-in .38s .10s var(--ease) both; }
.mega-group { min-width: 0; }
.mega-group h2 {
  margin: 6px 0 10px;
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 620;
  letter-spacing: .11em;
}
.mega-option {
  display: block;
  position: relative;
  width: 100%;
  padding: 7px 8px 7px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  color: #575053;
  font-size: .99rem;
  line-height: 1.28;
  letter-spacing: -.025em;
  transition: color .18s, background .18s;
}
.mega-option[aria-expanded="true"] { color: var(--red-text); font-weight: 630; background: #fff1f3; }
.mega-option[aria-expanded="true"]::before {
  content: '';
  position: absolute;
  inset: 6px auto 6px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--red);
}
.mega-option small { display: none; }
.mega-preview {
  min-height: 298px;
  padding: 23px;
  border-radius: 18px;
  background: #f5efef;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 17px;
}
.mega-preview h3 { max-width: 22ch; font-size: clamp(1.28rem, 2.1vw, 1.8rem); line-height: 1.14; letter-spacing: -.045em; font-weight: 660; }
.preview-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(14px, 5%, 28px) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 0;
}
.preview-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 77px;
  align-content: center;
  padding: 13px 12px;
  border: 1px solid #ecdedf;
  border-radius: 12px;
  background: white;
  box-shadow: 0 12px 22px #43212819;
  overflow-wrap: anywhere;
}
.preview-card span { color: var(--muted); font-size: .72rem; }
.preview-card strong { font-size: .83rem; line-height: 1.3; font-weight: 680; }
.preview-result { transform: translateY(17px); border-color: #f7cbd3; }
.preview-result::before {
  content: '';
  position: absolute;
  inset: 14px auto 14px 0;
  width: 2px;
  border-radius: 2px;
  background: var(--red);
}
.preview-connector { position: relative; height: 1px; background: #e1aab5; }
.preview-connector::before {
  content: '';
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.preview-link { font-size: .86rem; font-weight: 690; color: var(--red-text); text-underline-offset: .18em; }
.preview-diagram.is-running .preview-card:first-child { animation: item-in .35s var(--ease) both; }
.preview-diagram.is-running .preview-result { animation: result-in .45s .22s var(--ease) both; }
.preview-diagram.is-running .preview-connector::before { animation: signal-across .65s .08s var(--ease) both; }
.mega-footer {
  border-top: 1px solid #eee4e6;
  margin-inline: 20px;
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
}
.mega-links { display: flex; flex-wrap: wrap; gap: 7px 16px; color: #493f42; font-size: .84rem; }
.mega-links a { text-decoration: none; }
.mega-links a:hover { text-decoration: underline; text-underline-offset: .18em; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
  transition: background .2s, transform .25s var(--ease);
}
.button:hover { transform: translateY(-2px); }
.button-white { background: white; color: var(--red-text); }
.button-white:hover { background: #ffeaf0; }
.button-red { background: #cf0027; color: white; }
.button-red:hover { background: #aa0020; }

.hero {
  --stage-height: max(650px, 100svh);
  background: var(--red);
  color: white;
}
.hero-stage {
  position: relative;
  height: var(--stage-height);
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 64% 55%, #ff2446, transparent 57%), var(--red);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(710px, 61%);
  margin-left: max(6vw, calc((100vw - 1420px) / 2));
  padding-top: clamp(112px, 16svh, 194px);
}
.hero h1 { font-size: clamp(2.9rem, 5.25vw, 6rem); line-height: 1.04; font-weight: 545; letter-spacing: -.058em; }
.headline-line { display: block; text-wrap: balance; }
.hero mark {
  display: inline-block;
  margin-block: .1em .02em;
  padding: 0 .14em .085em;
  border-radius: .085em;
  background: #fffafa;
  color: #cf0026;
}
.hero-copy > p:not(.hero-eyebrow) { max-width: 44ch; margin: 18px 0 22px; font-size: clamp(.98rem, 1.35vw, 1.2rem); }
.hero-copy .hero-eyebrow { margin-bottom: 15px; font-size: .8rem; font-weight: 680; letter-spacing: .06em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 19px; }
.hero-demo-link { text-underline-offset: .22em; font-size: .89rem; font-weight: 620; }
.hero-visual {
  --release-height: clamp(52px, 5vw, 72px);
  --ad-lift: var(--release-height);
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero.is-animated .hero-copy > * { animation: intro-in .8s var(--ease) both; }
.hero.is-animated .hero-copy p { animation-delay: .10s; }
.hero.is-animated .hero-actions { animation-delay: .18s; }
.deck {
  --deck-top: 58%;
  --tile-height: clamp(89px, 8vw, 125px);
  --tile-gap: 10px;
  position: absolute;
  inset: 0;
  perspective: 900px;
  perspective-origin: 62% 56%;
  mask-image: linear-gradient(black 92%, transparent);
}
.floor-grid {
  position: absolute;
  left: 50%;
  top: var(--deck-top);
  width: max(1080px, 119vw);
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-auto-rows: var(--tile-height);
  gap: var(--tile-gap);
  transform-origin: center top;
  transform-style: preserve-3d;
  transform: translateX(-50%) rotateX(63deg)
    translateY(var(--belt-y, calc(-2 * (var(--tile-height) + var(--tile-gap)))));
}
.floor-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(89px, 8vw, 125px);
  gap: 4px;
  padding: 11px;
  border: 1px solid #ffffff49;
  border-radius: 12px;
  background: #ffffff16;
  color: #fff0f3;
  overflow: hidden;
}
.floor-card-details { display: flex; flex-direction: column; gap: 4px; }
.card-kicker { display: flex; align-items: center; gap: 5px; font-size: clamp(.5rem, .71vw, .7rem); }
.card-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: #ffffff29; }
.floor-card strong { font-size: clamp(.62rem, .95vw, .97rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 640; }
.card-status { opacity: .84; font-size: clamp(.48rem, .66vw, .67rem); }
.card-trace { display: block; width: 68%; height: 2px; margin-top: 5px; border-radius: 2px; background: currentColor; opacity: .32; }
.film-card {
  isolation: auto;
  overflow: visible;
  transform-style: preserve-3d;
  background: #ffffff1d;
}
.floor-grid > :nth-child(-n+9) { opacity: var(--back-row-opacity, 0); }
.floor-grid > :nth-child(n+10):nth-child(-n+18) { opacity: var(--incoming-row-opacity, 0); }
.seated-ad {
  display: none;
  position: absolute;
  inset: -1px;
  justify-content: center;
  padding: inherit;
  border-radius: inherit;
  background: white;
  color: #85102c;
  opacity: 0;
}
.seated-ad .card-icon { background: #fbe2e8; }
.has-deliveries .seated-ad { display: flex; }
.seated-ad.is-seated { opacity: 1; transform: translateZ(.6px); }
.film-card.is-scanning::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #fff4f9;
  border-radius: inherit;
  background: linear-gradient(transparent 30%, #ffe3ee9c 48%, #fff 50%, transparent 58%)
    center var(--scan-line) / 100% 40% no-repeat;
}
.engine-logo { width: clamp(105px, 10.5vw, 156px); height: auto; }
.hero-engine {
  display: grid;
  justify-items: center;
  gap: 6px;
  position: absolute;
  z-index: 2;
  top: 32%;
  left: 68%;
  transform: translateX(-50%);
}
.hero-engine .wordmark { font-size: clamp(.92rem, 1.7vw, 1.55rem); line-height: 1; }
.scan-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #70001bcc;
}
.scan-dots { display: none; align-items: center; gap: 3px; }
.scan-dots i { width: 4px; height: 4px; border-radius: 50%; background: white; }
.has-deliveries .scan-caption { visibility: hidden; }
.has-deliveries .scan-caption.is-scanning { visibility: visible; }
.has-deliveries .scan-dots { display: flex; }
.has-deliveries .scan-dots i { animation: scan-dot .72s var(--dot-delay, 0s) ease-in-out infinite both; }
.scan-dots i:nth-child(2) { --dot-delay: .12s; }
.scan-dots i:nth-child(3) { --dot-delay: .24s; }
.motion-enabled .has-deliveries .hero-engine {
  inset: 0 auto auto 0;
  --stop-first: translate3d(var(--stop-1-x), calc(var(--stop-1-y) - var(--release-height)), 0) translate(-50%, -100%);
  --stop-second: translate3d(var(--stop-2-x), calc(var(--stop-2-y) - var(--release-height)), 0) translate(-50%, -100%);
  --stop-third: translate3d(var(--stop-3-x), calc(var(--stop-3-y) - var(--release-height)), 0) translate(-50%, -100%);
  --stop-next: translate3d(var(--stop-4-x), calc(var(--stop-4-y) - var(--release-height)), 0) translate(-50%, -100%);
  animation: place-logo var(--delivery-cycle) cubic-bezier(.44,.07,.29,1) infinite;
}
.hero-controls { position: absolute; z-index: 3; bottom: max(24px, env(safe-area-inset-bottom)); left: max(22px, 6vw); display: flex; gap: 7px; }
.scroll-cue, .motion-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffffff9c;
  border-radius: 99px;
  background: #a60023;
  color: white;
  text-decoration: none;
  font-size: .81rem;
}
.scroll-cue { padding: 8px 13px; }
.motion-toggle { position: relative; width: 42px; aspect-ratio: 1; padding: 0; cursor: pointer; }
.motion-glyph { width: 10px; height: 11px; border-inline: 2px solid; }
.motion-paused .motion-glyph { width: 0; height: 0; border: 6px solid transparent; border-right: 0; border-left: 8px solid; margin-left: 2px; }

.section { width: min(1160px, calc(100% - 52px)); margin-inline: auto; padding-block: clamp(70px, 9vw, 136px); }
.section-lead { margin-bottom: 28px; }
.eyebrow {
  margin-bottom: 13px;
  color: var(--red-text);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 725;
}
.section h2, .closing h2 { font-size: clamp(2.35rem, 5.3vw, 4.95rem); line-height: 1.01; font-weight: 590; letter-spacing: -.054em; text-wrap: balance; max-width: 17ch; }
.section-lead h2 + p { margin-top: 17px; max-width: 55ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.scene-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 15px;
  border: 1px solid #e8dadc;
  border-radius: 100px;
  padding: 4px;
  background: white;
}
.scene-picker input, .scene-picker legend { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.scene-picker label { padding: 7px 14px; font-size: .89rem; border-radius: 100px; cursor: pointer; transition: color .2s, background .2s; }
.scene-picker input:focus-visible + label { outline: 2px solid var(--red-text); outline-offset: 1px; }
.scene-picker input:checked + label { background: #9d0023; color: white; }
.demo-panel {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  padding: clamp(12px, 2.4vw, 27px);
  gap: clamp(15px, 2.6vw, 30px);
  border: 1px solid #351e26;
  border-radius: 26px;
  background: #20151b;
  color: white;
  box-shadow: 0 18px 52px #42142520;
}
.demo-scene { min-width: 0; overflow: hidden; border-radius: 16px; background: #32232a; }
.scene-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: radial-gradient(at 60% 60%, #844449, #2c1820); }
.scene-image { width: 100%; height: 100%; object-fit: cover; }
.scene-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #23141ce0;
  color: white;
  font-size: .72rem;
}
.scene-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #ff6782; }
.scene-scan { position: absolute; inset: -75% 0 0; pointer-events: none; background: linear-gradient(transparent 42%, #ff456835 49%, #ffd1da73 50%, transparent 51%); opacity: 0; }
.demo-copy { padding: 15px 18px 16px; }
.demo-copy p:first-child { color: #ffc1ce; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.demo-copy h3 { margin: 3px 0 4px; font-size: clamp(1.2rem, 2.4vw, 1.62rem); line-height: 1.16; letter-spacing: -.05em; }
.demo-copy p:last-child { color: #f0d7de; font-size: .86rem; }
.demo-route { display: grid; align-content: center; gap: 13px; }
.route-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px;
  min-width: 0;
  border: 1px solid #5a3945;
  border-radius: 14px;
  background: #2c1d25;
}
.step-icon, .feature-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #ffd0db; background: #502333; font-size: 1.13rem; line-height: 1; }
.route-step h3 { font-size: .98rem; font-weight: 640; margin-bottom: 5px; }
.route-step p { font-size: .87rem; color: #f0d7de; }
.route-result { border-color: #d3385b; background: #4b1627; }
.scene-tags { list-style: none; display: flex; padding: 0; margin: 0; flex-wrap: wrap; gap: 5px; }
.scene-tags li { font-size: .76rem; background: #593140; border: 1px solid #7f465a; color: #ffdae3; border-radius: 999px; padding: 2px 8px; }
.demo-panel.is-running .scene-scan { animation: scene-scan .8s var(--ease) both; }
.demo-panel.is-running .route-step { animation: route-in .44s var(--ease) both; }
.demo-panel.is-running .route-step:nth-child(2) { animation-delay: .13s; }
.demo-panel.is-running .route-step:nth-child(3) { animation-delay: .26s; }
.demo-caption { margin-top: 10px; color: var(--muted); font-size: .81rem; }

.capabilities { background: #f2ecec; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.feature-grid article { min-height: 210px; padding: clamp(17px, 2.55vw, 32px); background: #ffffff; border: 1px solid #e5d9dc; border-radius: 18px; }
.feature-grid h3 { margin: 20px 0 8px; font-size: clamp(1.15rem, 1.65vw, 1.42rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 680; }
.feature-grid p { color: var(--muted); }
.feature-grid article:target { border-color: var(--red); }
.feature-icon { background: #fce9ee; color: #a50025; }
.feature-grid .feature-context { background: #a90025; color: white; border-color: #a90025; }
.feature-context .feature-icon { background: #ffffff28; color: white; }
.feature-context p { color: #fff1f4; }

.integration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; align-items: center; }
.integration .section-lead { margin: 0; }
.text-link { display: inline-block; margin-top: 19px; text-underline-offset: 4px; font-weight: 670; color: var(--red-text); }
.integration-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: clamp(6px, 1.6vw, 22px);
  min-height: 230px;
  padding: 18px 13px;
  border: 1px solid #eedce0;
  border-radius: 22px;
  background: radial-gradient(#b840582a 1px, transparent 1px) center / 13px 13px, #fff1f3;
}
.integration-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: min(100%, 178px);
  gap: 3px;
  padding: 13px 9px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 24px #81304919;
  text-align: center;
}
.integration-node strong { font-size: clamp(.74rem, 3.5vw, .99rem); overflow-wrap: anywhere; }
.integration-node .wordmark { font-size: clamp(.74rem, 3.5vw, .99rem); }
.integration-node > small { color: var(--muted); }
.integration-node img, .context-symbol { margin-bottom: 9px; width: 46px; height: 49px; object-fit: contain; }
.context-symbol { display: grid; place-items: center; color: #a70025; font-size: 2.2rem; }
.integration-connector { color: #9b0020; font-size: 1.5rem; }
.faq {
  border-top: 1px solid #e4d8da;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(12px, 5vw, 60px);
}
details { border-bottom: 1px solid #ded1d4; }
summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 660; padding-block: 15px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 500; color: var(--red-text); }
details[open] summary::after { content: '−'; }
details p { padding: 0 16px 17px 0; color: var(--muted); }
.closing {
  text-align: center;
  background: radial-gradient(ellipse at 50% 80%, #f1153d, #cb0028 75%);
  color: white;
  padding: clamp(66px, 9vw, 118px) 22px;
}
.closing img { margin: 0 auto 12px; }
.closing h2 { margin-inline: auto; }
.closing p { margin-top: 15px; }
.closing .button { margin-top: 23px; }
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 29px max(26px, 6vw) 89px;
  background: #23161d;
  color: white;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
footer nav > span { color: #efcbd5; }
footer a { text-underline-offset: 3px; }
.language-switcher .language-toggle,
.language-switcher .language-menu button[aria-checked="true"] { color: var(--red-text); }
.language-switcher .language-menu button[aria-checked="true"] { background: #ffe9ed; }

.motion-enabled [data-reveal].is-awaiting-reveal { opacity: .55; transform: translateY(20px); }
.motion-enabled [data-reveal] { transition: opacity .59s var(--ease), transform .59s var(--ease); }

@keyframes menu-expand { from { clip-path: var(--closed-shape); } to { clip-path: inset(0 round 27px); } }
@keyframes menu-collapse { from { clip-path: inset(0 round 27px); } to { clip-path: var(--closed-shape); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes item-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes result-in { from { opacity: .35; transform: translateY(23px); } to { opacity: 1; transform: translateY(17px); } }
@keyframes signal-across { from { left: 0; opacity: 0; } 30% { opacity: 1; } to { left: calc(100% - 5px); opacity: 1; } }
@keyframes intro-in { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes place-logo {
  0%, 21% { transform: var(--stop-first); }
  33.333%, 54.333% { transform: var(--stop-second); }
  66.667%, 87.667% { transform: var(--stop-third); }
  100% { transform: var(--stop-next); }
}
@keyframes scan-dot {
  0%, 60%, 100% { opacity: .45; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@keyframes scene-scan {
  0% { opacity: 0; transform: translateY(0); }
  22%, 64% { opacity: 1; }
  100% { opacity: 0; transform: translateY(70%); }
}
@keyframes route-in { from { opacity: .42; transform: translate3d(0, 7px, 0); } }

@media (max-width: 900px) {
  .hero-copy { width: 61%; }
  .hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); }
  .hero-engine { left: 73%; top: 38%; }
  .integration { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .navigation { --nav-inset: 12px; }
  .mega-menu { width: calc(100% - 16px); border-radius: 22px; }
  .mega-header { padding-inline: 16px; }
  .mega-body { display: block; padding: 4px 15px 10px; }
  .mega-group + .mega-group { margin-top: 16px; }
  .mega-group h2 { margin: 7px 0; }
  .mega-option { padding: 10px 17px 10px 8px; font-size: 1.04rem; }
  .mega-option small { display: block; font-size: .79rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 3px; }
  .mega-option::after { content: '+'; position: absolute; top: 10px; right: 5px; }
  .mega-option[aria-expanded="true"]::after { content: '−'; }
  .mega-preview { min-height: 0; margin: 4px 0 9px; padding: 16px; gap: 12px; }
  .preview-result { transform: translateY(10px); }
  .preview-diagram.is-running .preview-result { animation-name: result-in-mobile; }
  .preview-diagram { margin-bottom: 10px; }
  .preview-card { min-height: 64px; padding: 8px; }
  .mega-preview-slot:empty { display: none; }
  .mega-footer { margin-inline: 14px; padding-block: 10px; align-items: flex-start; flex-direction: column; }
  .mega-footer .button { align-self: flex-end; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq, .demo-panel { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  .hero { --stage-height: max(620px, 100svh); }
  .hero-copy { width: auto; max-width: 510px; margin-inline: auto; padding: clamp(100px, 14svh, 156px) 20px 0; text-align: center; }
  .hero h1 { font-size: clamp(2.2rem, 10.2vw, 3.9rem); }
  .hero-copy p { margin: 13px auto 17px; font-size: .94rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { --release-height: 43px; }
  .hero-engine { top: max(54%, 374px); left: 50%; }
  .engine-logo { width: 73px; }
  .deck { --deck-top: 66%; --tile-height: 82px; --tile-gap: 8px; perspective: 720px; perspective-origin: 50% 65%; }
  .floor-grid { width: clamp(620px, 205vw, 960px); }
  .floor-card { min-height: 82px; padding: 7px; border-radius: 7px; }
  .hero-controls { left: 14px; bottom: max(19px, env(safe-area-inset-bottom)); }
  .section { width: calc(100% - 32px); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(1.95rem, 9.65vw, 2.3rem); }
  .hero-actions { gap: 9px 12px; }
  .hero-actions .button, .hero-demo-link { font-size: .81rem; }
  .hero-actions .button { padding-inline: 12px; }
  .deck { --deck-top: 71%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.motion-enabled { scroll-behavior: smooth; }
:is(.motion-paused, .hero-stage.is-outside) .hero-visual * {
  animation-play-state: paused !important;
}
@keyframes result-in-mobile { from { opacity: .35; transform: translateY(16px); } to { opacity: 1; transform: translateY(10px); } }
