/* OptiPath homepage (v4). Everything here is scoped to .hx so no other page is affected. */

.hx {
  --hx-night: #060b18;
  --hx-ink: #0a1020;
  --hx-navy: #101d3d;
  --hx-blue: #2563eb;
  --hx-sky: #8ab4ff;
  --hx-green: #34d399;
  --hx-paper: #ffffff;
  --hx-tint: #f4f6fa;
  --hx-text: #0c1424;
  --hx-mute: #5b6577;
  --hx-line: rgba(12, 20, 36, 0.11);
  --hx-line-light: rgba(255, 255, 255, 0.12);
  --hx-ease: cubic-bezier(0.22, 0.8, 0.25, 1);
  --hx-pad: clamp(5.5rem, 11vw, 10.5rem);
  --hx-gutter: clamp(1.25rem, 4vw, 3rem);
  --hx-max: 1320px;
  --hx-side: max(var(--hx-gutter), calc((100vw - var(--hx-max)) / 2 + var(--hx-gutter)));

  overflow-x: clip;
  color: var(--hx-text);
  background: var(--hx-paper);
}

.hx-wrap {
  width: 100%;
  max-width: var(--hx-max);
  margin: 0 auto;
  padding: 0 var(--hx-gutter);
}

:where(.hx) p { margin: 0; }
:where(.hx) svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Old id-based decoration (dot patterns, overlays) must not leak into the new sections. */
.hx #services, .hx #process, .hx #why-perform { position: static; overflow: visible; }
.hx #services::before, .hx #process::before, .hx #why-perform::before { content: none; }

/* ---------- Type ---------- */

.hx-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hx-mute);
}
.hx-eyebrow-light { color: rgba(255, 255, 255, 0.62); }

.hx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hx-green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}

.hx-h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--hx-text);
}
.hx-h2-sm { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 12ch; }

.hx-lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: var(--hx-mute);
}
.hx-lead-light { color: rgba(255, 255, 255, 0.66); }

.hx-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.hx-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.hx-stars { margin-right: 0.5rem; letter-spacing: 0.12em; color: #f5b301; }

/* ---------- Buttons and links ---------- */

.hx-btn {
  --chip: 44px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  height: 60px;
  padding: 0 8px 0 1.75rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.45s var(--hx-ease), box-shadow 0.45s var(--hx-ease);
  will-change: transform;
}
.hx-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 8px;
  width: var(--chip);
  height: var(--chip);
  margin-top: calc(var(--chip) / -2);
  border-radius: 50%;
  background: var(--hx-blue);
  transition: transform 0.65s var(--hx-ease);
}
.hx-btn-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--chip);
  height: var(--chip);
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
}
.hx-btn-chip svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition: transform 0.55s var(--hx-ease);
}
.hx-btn-chip svg:last-child { transform: translateX(-220%); }

.hx-btn-light { background: #fff; color: var(--hx-ink); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); }
.hx-btn-dark { background: var(--hx-ink); color: #fff; box-shadow: 0 18px 40px -20px rgba(10, 16, 32, 0.55); }
.hx-btn-onblue { background: #fff; color: var(--hx-ink); box-shadow: 0 24px 50px -20px rgba(4, 12, 40, 0.6); }
.hx-btn-onblue::before { background: var(--hx-ink); }

.hx-btn-sm { --chip: 36px; height: 50px; padding-left: 1.35rem; gap: 0.8rem; font-size: 0.9375rem; }
.hx-btn-sm::before { right: 7px; }
.hx-btn-sm { padding-right: 7px; }
.hx-btn-xl { --chip: 52px; height: 72px; padding-left: 2.1rem; font-size: 1.1875rem; }

.hx-btn:hover, .hx-btn:focus-visible { color: #fff; }
.hx-btn:hover::before, .hx-btn:focus-visible::before { transform: scale(18); }
.hx-btn:hover .hx-btn-chip svg:first-child, .hx-btn:focus-visible .hx-btn-chip svg:first-child { transform: translateX(220%); }
.hx-btn:hover .hx-btn-chip svg:last-child, .hx-btn:focus-visible .hx-btn-chip svg:last-child { transform: translateX(0); }
.hx-btn:focus-visible { outline: 2px solid var(--hx-sky); outline-offset: 4px; }

.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(12, 20, 36, 0.2);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--hx-text);
  cursor: pointer;
  transition: background 0.45s var(--hx-ease), border-color 0.45s, color 0.45s, transform 0.5s var(--hx-ease);
}
.hx-link::after {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.5s var(--hx-ease);
}
.hx-link:hover, .hx-link:focus-visible { border-color: var(--hx-ink); background: var(--hx-ink); color: #fff; }
.hx-link:hover::after, .hx-link:focus-visible::after { transform: translateX(5px); }
.hx-link:focus-visible { outline: 2px solid var(--hx-blue); outline-offset: 3px; }
.hx-link-light { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.hx-link-light:hover, .hx-link-light:focus-visible { border-color: #fff; background: #fff; color: var(--hx-ink); }

/* ---------- Browser frame ---------- */

.hx-browser {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(10px, 1.2vw, 16px);
  background: #0d1528;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.75);
}
.hx-browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: clamp(28px, 3vw, 40px);
  padding: 0 clamp(10px, 1.3vw, 16px);
  background: #111a30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hx-browser-plain { border-radius: clamp(14px, 1.6vw, 22px); }
.hx-stage .hx-browser-plain { border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05), 0 70px 130px -50px rgba(0, 0, 0, 0.85); }
.hx-browser-bar > span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.625rem, 0.9vw, 0.78rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}
.hx-browser-view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1220;
}
.hx-browser-view img { width: 100%; height: auto; }

/* ---------- 1. Hero ---------- */

.hx-hero {
  position: relative;
  padding: calc(80px + clamp(2.75rem, 5vw, 4.25rem)) 0 clamp(4rem, 8vw, 7rem);
  color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, #15275a 0%, #0b1430 42%, var(--hx-night) 100%);
}
.hx-hero-copy { text-align: center; }
.hx-gbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.4s var(--hx-ease), border-color 0.4s, transform 0.5s var(--hx-ease);
}
.hx-gbadge:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.3); }
.hx-gbadge-logo { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.hx-g { width: 20px; height: 20px; stroke: none; }
.hx-gbadge strong { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.hx-gbadge .hx-stars { margin: 0; font-size: 1.125rem; }

.hx-h1 {
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
}
.hx-line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hx-line > span { display: block; }
.hx-h1-soft { color: var(--hx-sky); }

.hx-hero-sub {
  max-width: 41rem;
  margin: clamp(1.5rem, 2.4vw, 2rem) auto 0 !important;
  font-size: clamp(1.0625rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}
.hx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: clamp(2rem, 3vw, 2.5rem);
}
.hx-hero-trust {
  margin-top: 1.75rem !important;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}
.hx-hero-trust a { color: rgba(255, 255, 255, 0.85); transition: color 0.3s; }
.hx-hero-trust a:hover { color: #fff; }
.hx-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.22); }

.hx-stage-wrap {
  margin-top: clamp(5rem, 9vw, 8rem);
  padding: 0 var(--hx-gutter);
}
.hx-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}
.hx-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 12% 4% -6%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.5), transparent);
  filter: blur(70px);
}
/* The hero's showpiece: the real app, scaled down so the whole thing fits in one frame,
   with the headline and buttons beside it. */
.hx-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1320px;
  margin: 0 auto;
}
.hx-demo-title {
  font-size: clamp(2rem, 3.7vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
}
.hx-demo-sub { margin-top: clamp(1.1rem, 2vw, 1.6rem); font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, 0.68); }
.hx-showcase-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.hx-showcase .hx-stage { max-width: none; margin: 0; }
/* The script sets the height to match the scaled app. This is the size before it runs. */
.hx-tool-view { aspect-ratio: 1240 / 1176; background: #f8fafc; }
.hx-tool-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; transform-origin: 0 0; }

.hx-demo-eyebrow { margin-bottom: 1.1rem; color: var(--hx-sky); }

@media (max-width: 999px) {
  .hx-showcase { grid-template-columns: minmax(0, 1fr); }
}

.hx-stage-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: 1240px;
  margin: clamp(1.25rem, 2vw, 1.75rem) auto 0;
  padding: clamp(1.1rem, 2vw, 1.6rem) clamp(1.25rem, 2.6vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(18px, 2vw, 26px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}
.hx-stage-cta p { font-family: var(--font-heading); font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: #fff; }
.hx-stage-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; }
.hx-stage-cta small { display: block; margin-top: 0.4rem; font-size: clamp(0.9375rem, 1.15vw, 1.0625rem); color: rgba(255, 255, 255, 0.62); }

@media (max-width: 699px) {
}

/* ---------- 2. What we do: stacked panels ---------- */

.hx-services { padding: var(--hx-pad) 0; }
.hx-services-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.hx-services-head .hx-h2 { max-width: none; }
.hx-services-head .hx-link { flex: 0 0 auto; margin-bottom: 0.5rem; }

.hx-stack { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }

/* Each panel sticks a little lower than the one before, so they pile up like cards. */
.hx-panel {
  --pp: clamp(1.75rem, 4vw, 4rem);
  position: sticky;
  top: calc(96px + var(--n) * 14px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  min-height: clamp(500px, 70vh, 640px);
  overflow: hidden;
  border-radius: clamp(22px, 2.6vw, 36px);
  transform-origin: 50% 0;
  will-change: transform;
}
.hx-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #060b18;
  opacity: var(--dim, 0);
  pointer-events: none;
}
.hx-panel-dark { color: #fff; background: radial-gradient(130% 130% at 100% 0%, #17337a 0%, #0b1533 48%, #070d1c 100%); }
.hx-panel-light { color: var(--hx-text); background: var(--hx-tint); box-shadow: inset 0 0 0 1px var(--hx-line); }

.hx-panel-copy { display: flex; flex-direction: column; justify-content: center; padding: var(--pp); }
.hx-panel h3 {
  max-width: 11ch;
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: inherit;
}
.hx-panel-copy p { max-width: 23rem; margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.55; opacity: 0.72; }
.hx-panel-copy .hx-btn { align-self: flex-start; margin-top: 2.25rem; }
.hx-panel-light .hx-btn-dark { box-shadow: 0 18px 40px -22px rgba(10, 16, 32, 0.6); }

.hx-pv { position: relative; min-height: 300px; }

/* 01: a real client site, slowly scrolling */
.hx-pv-web .hx-browser { position: absolute; top: 13%; left: 9%; width: 112%; }
.hx-pv-web .hx-browser-view img { transition: transform 1.2s var(--hx-ease); }
.hx-panel.is-in .hx-pv-web .hx-browser-view img { transform: translateY(-42%); transition: transform 11s cubic-bezier(0.45, 0, 0.2, 1) 0.6s; }
.hx-phone { position: absolute; padding: clamp(3px, 0.4vw, 6px); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: clamp(12px, 2.3vw, 32px); background: #0d1528; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85); }
.hx-phone-view { position: relative; aspect-ratio: 9 / 18.4; overflow: hidden; border-radius: clamp(9px, 1.9vw, 26px); background: #0b1220; }
.hx-pv-web .hx-phone { bottom: -12%; left: -3%; width: 24%; }
.hx-pv-web .hx-phone img { width: 100%; height: auto; }

/* 02: two app windows that slide into place */
.hx-pv-app .hx-browser { position: absolute; width: 80%; box-shadow: 0 50px 90px -45px rgba(12, 20, 36, 0.6); transition: transform 1.3s var(--hx-ease), opacity 0.8s; }
.hx-pv-app .hx-browser:nth-child(1) { top: 9%; right: -12%; opacity: 0; transform: translate(60px, 0); }
.hx-pv-app .hx-browser:nth-child(2) { bottom: -10%; left: 2%; opacity: 0; transform: translate(-40px, 50px); }
.hx-panel.is-in .hx-pv-app .hx-browser { opacity: 1; transform: none; }
.hx-panel.is-in .hx-pv-app .hx-browser:nth-child(2) { transition-delay: 0.2s; }

/* 03: a real Google search where a client is the first result and is named in the AI Overview */
.hx-pv-seo { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: var(--pp); padding-left: 0; }
.hx-goog {
  width: min(100%, 620px);
  padding: clamp(1rem, 1.6vw, 1.4rem);
  border-radius: 22px;
  background: #fff;
  color: #202124;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.6s, transform 1s var(--hx-ease);
}
.hx-panel.is-in .hx-goog { opacity: 1; transform: none; }
.hx-goog-real { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; padding: 0 0.3rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5f6368; }
.hx-goog-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 46px;
  padding: 0 1rem;
  border: 1px solid #dfe1e5;
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.14);
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
}
.hx-goog-bar .hx-g { flex: 0 0 auto; width: 20px; height: 20px; }
.hx-goog-bar span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hx-goog-bar > svg:last-child { flex: 0 0 auto; width: 18px; height: 18px; stroke: #4285f4; }
.hx-goog-tabs { display: flex; gap: 1.3rem; margin-top: 0.9rem; padding: 0 0.4rem; overflow: hidden; border-bottom: 1px solid #ebebeb; font-size: 0.8125rem; white-space: nowrap; color: #5f6368; }
.hx-goog-tabs b, .hx-goog-tabs span { padding-bottom: 0.55rem; }
.hx-goog-tabs b { border-bottom: 3px solid #202124; font-weight: 500; color: #202124; }

.hx-goog-hit, .hx-goog-ai {
  margin: 0.7rem -0.4rem 0;
  padding: 0.8rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1.5px transparent;
  transition: background 0.6s, box-shadow 0.6s;
}
.hx-panel.is-in .hx-goog-hit { background: #f3f7ff; box-shadow: 0 0 0 1.5px #1a73e8; transition-delay: 0.9s; }
.hx-panel.is-in .hx-goog-ai { background: #f3f7ff; box-shadow: 0 0 0 1.5px #1a73e8; transition-delay: 2s; }

.hx-goog-site { display: flex; align-items: center; gap: 0.7rem; }
.hx-goog-site i { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; overflow: hidden; border: 1px solid #ebebeb; border-radius: 50%; background: #fff; }
.hx-goog-site i img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0); }
.hx-goog-site > div { min-width: 0; }
.hx-goog-site strong { display: block; font-size: 0.875rem; font-weight: 500; line-height: 1.25; }
.hx-goog-site small { display: block; overflow: hidden; font-size: 0.75rem; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; color: #4d5156; }
.hx-goog-site em, .hx-goog-ai-top em {
  margin-left: auto;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #1a73e8;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s, transform 0.6s var(--hx-ease);
}
.hx-panel.is-in .hx-goog-site em { opacity: 1; transform: none; transition-delay: 1.2s; }
.hx-panel.is-in .hx-goog-ai-top em { opacity: 1; transform: none; transition-delay: 2.3s; }
.hx-goog-title { margin-top: 0.5rem; overflow: hidden; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; color: #1a0dab; }
.hx-goog-desc { margin-top: 0.25rem; font-size: clamp(0.8125rem, 1vw, 0.875rem); line-height: 1.5; color: #4d5156; }

.hx-goog-ai-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.hx-goog-ai-top svg { width: 18px; height: 18px; fill: #4285f4; stroke: none; }
.hx-goog-ai-top strong { font-size: 0.875rem; font-weight: 500; }
.hx-goog-ai > p { font-size: clamp(0.8125rem, 1.05vw, 0.9375rem); line-height: 1.55; color: #202124; }
.hx-goog-ai u { text-decoration: underline; text-underline-offset: 2px; color: #1a0dab; background: #e8f0fe; }
.hx-goog-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.05rem 0.5rem; border-radius: 999px; background: #f1f3f4; font-size: 0.75rem; white-space: nowrap; color: #5f6368; vertical-align: baseline; }
.hx-goog-chip img { width: 14px; height: 14px; object-fit: contain; filter: brightness(0); }

/* 04: cause and effect. We write the article, then AI quotes the same sentence as its answer. */
.hx-pv-doc { position: relative; min-height: 440px; }
.hx-art, .hx-cite {
  position: absolute;
  padding: clamp(1.1rem, 1.8vw, 1.6rem);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(12, 20, 36, 0.05), 0 50px 90px -45px rgba(12, 20, 36, 0.55);
  font-size: clamp(0.8125rem, 1.05vw, 0.9375rem);
  line-height: 1.55;
  color: var(--hx-text);
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.6s, transform 1s var(--hx-ease);
}
.hx-art { top: 12%; left: 0; width: 60%; }
.hx-cite { right: 6%; bottom: 9%; width: 56%; transition-delay: 1.5s; }
.hx-panel.is-in .hx-art, .hx-panel.is-in .hx-cite { opacity: 1; transform: none; }

/* Numbered label that sits on the top edge of each card */
.hx-flow-step {
  position: absolute;
  top: 0;
  left: clamp(1.1rem, 1.8vw, 1.6rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  border-radius: 999px;
  background: var(--hx-ink);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  transform: translateY(-50%);
}
.hx-flow-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--hx-blue); font-size: 0.75rem; }

.hx-art .hx-doc-tag, .hx-doc-tag { display: inline-block; margin-top: 0.6rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(37, 99, 235, 0.1); font-size: 0.75rem; font-weight: 600; color: var(--hx-blue); }
.hx-art > strong { display: block; margin: 0.7rem 0 0.6rem; font-family: var(--font-heading); font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
.hx-art-lines { display: grid; gap: 9px; margin-top: 0.9rem; }
.hx-art-lines i { height: 7px; border-radius: 7px; background: rgba(12, 20, 36, 0.09); }
.hx-art-lines i:nth-child(2) { width: 90%; }
.hx-art-lines i:nth-child(3) { width: 55%; }

/* The same sentence is highlighted in both cards, so the eye connects them. */
.hx-pv-doc mark {
  color: inherit;
  background: linear-gradient(rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.2)) no-repeat left / 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1.1s var(--hx-ease);
}
.hx-panel.is-in .hx-art mark { background-size: 100% 100%; transition-delay: 0.7s; }
.hx-panel.is-in .hx-cite mark { background-size: 100% 100%; transition-delay: 2.3s; }

.hx-cite-top { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.7rem; }
.hx-cite-top strong { font-size: 0.9375rem; font-weight: 600; }
.hx-cite-top small { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8e8e8e; }
.hx-cite-q { width: fit-content; margin: 0.7rem 0 0.8rem auto; padding: 0.5rem 0.9rem; border-radius: 16px; background: #f1f1f1; }
.hx-cite-src { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 0.9rem; padding: 0.35rem 0.85rem 0.35rem 0.4rem; border: 1px solid #e3e3e3; border-radius: 999px; }
.hx-cite-src img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
.hx-cite-src b { display: block; font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.hx-cite-src small { display: block; font-size: 0.625rem; line-height: 1.2; color: #8e8e8e; }

@media (max-width: 899px) {
  .hx-services-head { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .hx-panel { position: relative; top: auto; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hx-pv { min-height: 0; }
  .hx-pv-web, .hx-pv-app { aspect-ratio: 4 / 3; }
  .hx-pv-web .hx-browser { top: 4%; }
  .hx-pv-seo { padding-top: 0; }
  .hx-pv-doc { display: grid; gap: 2.25rem; min-height: 0; padding: 1rem var(--pp) var(--pp); }
  .hx-art, .hx-cite { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100%; }
  .hx-pv-seo { padding: 0 var(--pp) var(--pp); }
  .hx-goog-site em, .hx-goog-ai-top em { display: none; }
}

/* ---------- 4. Work ---------- */

.hx-work { padding: var(--hx-pad) 0; background: var(--hx-tint); }
.hx-work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.hx-work-head .hx-h2 { max-width: none; }
.hx-work-head .hx-link { flex: 0 0 auto; margin-bottom: 0.5rem; }

/* Padding leaves room for card shadows and the hover lift inside the clipped strip. */
.hx-work-viewport {
  margin-bottom: -70px;
  padding: 14px 0 70px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--hx-side);
  scrollbar-width: none;
}
.hx-work-viewport::-webkit-scrollbar { display: none; }
.hx-work-track { display: flex; width: max-content; padding: 0 var(--hx-side); }
.hx-card {
  flex: 0 0 auto;
  width: clamp(280px, 40vw, 600px);
  margin-right: clamp(1.25rem, 2.6vw, 2.75rem);
  scroll-snap-align: start;
}
.hx-work.is-marquee .hx-work-viewport { overflow: hidden; }
.hx-work.is-marquee .hx-work-track { padding: 0; animation: hx-marquee 80s linear infinite; }
.hx-work.is-marquee .hx-work-viewport:hover .hx-work-track { animation-play-state: paused; }
@keyframes hx-marquee { to { transform: translateX(-50%); } }
.hx-work.is-marquee.is-held .hx-work-track { animation-play-state: paused; }

.hx-card-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: clamp(10px, 1.2vw, 16px);
  background: #0b1220;
  box-shadow: 0 1px 0 rgba(12, 20, 36, 0.06), 0 40px 70px -45px rgba(12, 20, 36, 0.55);
  transition: box-shadow 0.6s var(--hx-ease), transform 0.6s var(--hx-ease);
}
.hx-card-shot img { width: 100%; height: auto; transition: transform 1.4s var(--hx-ease); }
.hx-card-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0.25rem 0;
}
.hx-card-cap h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 700; letter-spacing: -0.025em; color: var(--hx-text); }
.hx-card-cap p { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--hx-mute); }
.hx-card-go {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hx-line);
  border-radius: 50%;
  transition: background 0.45s var(--hx-ease), color 0.45s, border-color 0.45s, transform 0.6s var(--hx-ease);
}
.hx-card-go svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .hx-card:hover .hx-card-shot { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(12, 20, 36, 0.06), 0 60px 90px -45px rgba(12, 20, 36, 0.7); }
  .hx-card:hover .hx-card-shot img { transform: translateY(-36%); transition: transform 7s cubic-bezier(0.3, 0.1, 0.3, 1); }
  .hx-card:hover .hx-card-go { background: var(--hx-text); border-color: var(--hx-text); color: #fff; transform: rotate(45deg); }
}

.hx-cursor {
  position: fixed;
  z-index: 70;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--hx-blue);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) translate(14px, 14px);
  transition: opacity 0.3s var(--hx-ease);
  box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.7);
}
.hx-cursor svg { width: 16px; height: 16px; }
.hx-cursor.is-on { opacity: 1; }

/* ---------- 5. Why ---------- */

.hx #why-perform {
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(2rem, 5vw, 5rem);
  color: #fff;
  background: linear-gradient(180deg, #0a1126 0%, var(--hx-night) 30%);
}
.hx-h2-light { color: #fff; }

/* The story holds still on screen while four points play through, one per stretch of scroll. */
.hx-story { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hx-story.is-scrolly { height: 400vh; margin-top: 0; }
.hx-story-pin {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 5rem);
}
.is-scrolly .hx-story-pin { position: sticky; top: 0; height: 100vh; padding-top: 70px; }

/* Left: the four points. The current one lifts into a lit card, its icon turns on,
   and a bar along the bottom fills as you scroll through it. */
.hx-steps { display: grid; gap: 0.4rem; }
.hx-step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: clamp(0.85rem, 1.3vw, 1.15rem) clamp(0.9rem, 1.4vw, 1.25rem);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: background 0.6s var(--hx-ease), border-color 0.6s, box-shadow 0.6s;
}
.hx-step-ico {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  transition: background 0.5s var(--hx-ease), border-color 0.5s, color 0.5s, box-shadow 0.6s, transform 0.6s var(--hx-ease);
}
.hx-step-ico svg { width: 19px; height: 19px; }
.hx-step h3 {
  padding-top: 0.55rem;
  font-size: clamp(1.2rem, 1.85vw, 1.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  transition: color 0.5s var(--hx-ease);
}
.hx-step-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.7s var(--hx-ease); }
.hx-step-body p { overflow: hidden; max-width: 24rem; font-size: 1.0625rem; line-height: 1.6; color: rgba(255, 255, 255, 0.68); }
.hx-step-body p::before { content: ""; display: block; height: 0.6rem; }
.hx-step-body p::after { content: ""; display: block; height: 0.35rem; }
.hx-step-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hx-blue), var(--hx-sky));
  opacity: 0;
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  transition: opacity 0.4s;
}

.is-scrolly .hx-step h3 { color: rgba(255, 255, 255, 0.62); }
.is-scrolly .hx-step-body { grid-template-rows: 0fr; }
.is-scrolly .hx-step.is-done h3 { color: rgba(255, 255, 255, 0.8); }
.is-scrolly .hx-step.is-done .hx-step-ico { border-color: rgba(52, 211, 153, 0.45); color: var(--hx-green); }
.is-scrolly .hx-step.is-on {
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.is-scrolly .hx-step.is-on h3 { color: #fff; }
.is-scrolly .hx-step.is-on .hx-step-body { grid-template-rows: 1fr; }
.is-scrolly .hx-step.is-on .hx-step-bar { opacity: 1; }
.is-scrolly .hx-step.is-on .hx-step-ico {
  border-color: var(--hx-blue);
  background: var(--hx-blue);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2), 0 12px 30px -6px rgba(37, 99, 235, 0.9);
  transform: scale(1.06);
}

.hx-steps-hint {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-left: 1.2rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--hx-sky);
  transition: opacity 0.4s;
}
.hx-steps-hint svg { width: 17px; height: 17px; animation: hx-nudge 1.6s ease-in-out infinite; }
.is-scrolly .hx-steps-hint { display: flex; }
.is-scrolly.is-started .hx-steps-hint { opacity: 0; }
@keyframes hx-nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
.hx-step-num { display: none; }

/* Wide screens: one composed screen. The headline holds on the left above a plain numbered list,
   the site preview fills the right. No boxes or badges, just rules and type. */
@media (min-width: 1024px) {
  .hx #why-perform.is-composed { padding-top: 0; }
  .is-composed .hx-story-pin { grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: clamp(2.5rem, 5vw, 5.5rem); padding-top: 84px; padding-bottom: 14px; }
  .hx-steps-col .hx-why-intro { max-width: none; margin: 0 0 clamp(1.25rem, 3.6vh, 2.5rem); padding: 0; }
  .hx-steps-col .hx-why-intro .hx-eyebrow { margin-bottom: clamp(0.75rem, 2vh, 1.25rem); color: var(--hx-sky); }
  .hx-steps-col .hx-why-intro .hx-h2 { max-width: none; font-size: clamp(2rem, min(3.5vw, 6vh), 3.4rem); }

  .is-composed .hx-steps { gap: 0; }
  .is-composed .hx-step:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .is-composed .hx-step {
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 0;
    padding: clamp(0.8rem, 2.1vh, 1.3rem) 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .is-composed .hx-step-ico { display: none; }
  .is-composed .hx-step-num {
    display: block;
    padding-top: 0.42em;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.5s var(--hx-ease);
  }
  .is-composed .hx-step h3 { padding-top: 0; font-size: clamp(1.15rem, min(1.7vw, 3vh), 1.5rem); color: rgba(255, 255, 255, 0.5); }
  .is-composed .hx-step.is-done h3 { color: rgba(255, 255, 255, 0.5); }
  .is-composed .hx-step.is-on { border-color: rgba(255, 255, 255, 0.14); background: none; box-shadow: none; }
  .is-composed .hx-step.is-on h3 { color: #fff; }
  .is-composed .hx-step.is-on .hx-step-num { color: var(--hx-sky); }
  .is-composed .hx-step-body p { max-width: 26rem; font-size: clamp(0.95rem, min(1.15vw, 2.1vh), 1.0625rem); }
  .is-composed .hx-step-bar { top: -1px; bottom: auto; height: 1px; background: var(--hx-sky); }
  .is-composed .hx-steps-hint { display: none; }

  .is-composed .hx-story-frame { max-width: calc((100vh - 210px) * 1.6); }
  .is-composed .hx-story-frame::before { inset: 0 -6% -8%; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.5), transparent); filter: blur(90px); }
  .is-composed .hx-story-top { margin-bottom: 0.9rem; }
  .is-composed .hx-story-cap { font-family: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
  .is-composed .hx-story-cap b { font-weight: 600; }
}

.hx-story-sticky { position: static; perspective: 1600px; }

.hx-story-frame { position: relative; width: 100%; max-width: calc((100vh - 250px) * 1.6); margin-left: auto; }
.hx-story-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 2% -4%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.38), transparent);
  filter: blur(70px);
}
.hx-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(0.9rem, 1.6vw, 1.5rem);
}
.hx-story-cap {
  display: grid;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.1vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}
.hx-story-cap b {
  grid-area: 1 / 1;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s, transform 0.6s var(--hx-ease);
}
.hx-story-pips { display: flex; flex: 0 0 auto; gap: 6px; }
.hx-story-pips i { width: 8px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.2); transition: width 0.6s var(--hx-ease), background 0.4s; }
[data-state="0"] .hx-story-pips i:nth-child(1),
[data-state="1"] .hx-story-pips i:nth-child(2),
[data-state="2"] .hx-story-pips i:nth-child(3),
[data-state="3"] .hx-story-pips i:nth-child(4),
[data-state="4"] .hx-story-pips i:nth-child(5) { width: 30px; background: #fff; }
[data-state="0"] .hx-story-cap b:nth-child(1),
[data-state="1"] .hx-story-cap b:nth-child(2),
[data-state="2"] .hx-story-cap b:nth-child(3),
[data-state="3"] .hx-story-cap b:nth-child(4),
[data-state="4"] .hx-story-cap b:nth-child(5) { opacity: 1; transform: none; }

/* Dims the site so the panel on top of it is the thing you read. */
.hx-scrim { position: absolute; inset: 0; background: rgba(6, 11, 24, 0.66); opacity: 0; transition: opacity 0.7s; }
[data-state="2"] .hx-scrim, [data-state="3"] .hx-scrim, [data-state="4"] .hx-scrim { opacity: 1; }

/* Step 1: the code, with plain-English labels */
.hx-layer-code {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3%;
  padding: 3.5% 4%;
  background: #0a1122;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--hx-ease);
}
[data-state="1"] .hx-layer-code { clip-path: inset(0 0 0 0); }
[data-state="2"] .hx-layer-code, [data-state="3"] .hx-layer-code, [data-state="4"] .hx-layer-code { clip-path: inset(0 0 0 100%); }
.hx-cb {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 4%;
  padding: 2.4% 3%;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 10px 10px 0;
  transition: background 0.7s, border-color 0.7s;
}
.hx-cb pre {
  margin: 0;
  overflow: hidden;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(0.4375rem, 0.9vw, 0.8125rem);
  line-height: 1.7;
  color: #dbe4f3;
  white-space: pre;
}
.hx-cb pre b { font-weight: 400; color: #7fb2ff; }
.hx-cb pre u { text-decoration: none; color: #a9b8d4; }
.hx-cb pre s { text-decoration: none; color: #7ee0b0; }
.hx-cb pre i { font-style: normal; color: rgba(255, 255, 255, 0.4); }
.hx-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
  font-family: var(--font-heading);
  font-size: clamp(0.5625rem, 1.12vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s, transform 0.8s var(--hx-ease);
}
.hx-note::before { content: ""; flex: 0 0 auto; width: 1.5em; height: 1.5px; margin-top: 0.62em; background: var(--hx-sky); }
[data-state="1"] .hx-cb { background: rgba(37, 99, 235, 0.16); border-left-color: var(--hx-sky); }
[data-state="1"] .hx-note { opacity: 1; transform: none; }
[data-state="1"] .hx-cb:nth-child(1), [data-state="1"] .hx-cb:nth-child(1) .hx-note { transition-delay: 0.9s; }
[data-state="1"] .hx-cb:nth-child(2), [data-state="1"] .hx-cb:nth-child(2) .hx-note { transition-delay: 1.35s; }
[data-state="1"] .hx-cb:nth-child(3), [data-state="1"] .hx-cb:nth-child(3) .hx-note { transition-delay: 1.8s; }

.hx-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 24px 6px rgba(96, 165, 250, 0.9);
  opacity: 0;
}
[data-state="1"] .hx-scanline { animation: hx-scan 1.1s var(--hx-ease) both; }
[data-state="2"] .hx-scanline { animation: hx-scan-b 1.1s var(--hx-ease) both; }
@keyframes hx-scan { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes hx-scan-b { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: 99.9%; opacity: 0; } }

/* Panels that sit on top of the site */
.hx-float {
  position: absolute;
  padding: clamp(1rem, 1.7vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(13, 21, 40, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.5s, transform 0.8s var(--hx-ease);
  pointer-events: none;
}
.hx-float-kicker {
  margin-bottom: 0.9rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
[data-state="2"] .hx-float-sec,
[data-state="3"] .hx-float-vitals,
[data-state="4"] .hx-float-ai { opacity: 1; transform: none; transition-delay: 0.3s; }

/* Step 2: security check */
.hx-float-sec { left: 50%; top: 56%; width: clamp(240px, 34vw, 470px); margin: 0 0 0 calc(clamp(240px, 34vw, 470px) / -2); translate: 0 -50%; }
.hx-sec-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.hx-sec-head strong { display: block; font-family: var(--font-heading); font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.hx-sec-head small { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.6); }
.hx-shield {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(44px, 4.4vw, 60px);
  height: clamp(44px, 4.4vw, 60px);
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  color: var(--hx-green);
}
.hx-shield::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--hx-green); border-radius: 50%; opacity: 0; }
[data-state="2"] .hx-shield::after { animation: hx-ring 1.6s ease-out 0.7s 2; }
@keyframes hx-ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
.hx-shield svg { width: 55%; height: 55%; stroke-width: 1.8; }
.hx-shield-tick { stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset 0.5s ease 0.9s; }
[data-state="2"] .hx-shield-tick { stroke-dashoffset: 0; }
.hx-sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  color: rgba(255, 255, 255, 0.86);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.6s var(--hx-ease);
}
.hx-sec-row em { padding: 0.2rem 0.7rem; border-radius: 999px; background: rgba(52, 211, 153, 0.14); font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--hx-green); }
[data-state="2"] .hx-sec-row { opacity: 1; transform: none; }
[data-state="2"] .hx-sec-row:nth-of-type(2) { transition-delay: 0.7s; }
[data-state="2"] .hx-sec-row:nth-of-type(3) { transition-delay: 0.85s; }
[data-state="2"] .hx-sec-row:nth-of-type(4) { transition-delay: 1s; }

/* Step 3: speed, in plain words */
.hx-float-vitals { left: -4%; bottom: -9%; width: clamp(230px, 30vw, 410px); }
.hx-vital { padding: 0.6rem 0; }
.hx-vital p { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: clamp(0.8125rem, 1.1vw, 0.9375rem); }
.hx-vital span { font-weight: 600; color: #fff; }
.hx-vital em { font-style: normal; font-size: 0.8125rem; font-weight: 600; color: var(--hx-green); }
.hx-vital i { display: block; height: 4px; margin-top: 0.55rem; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.hx-vital b { display: block; width: var(--w); height: 100%; border-radius: 4px; background: var(--hx-green); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--hx-ease) 0.5s; }
[data-state="3"] .hx-vital b { transform: scaleX(1); }
[data-state="3"] .hx-vital:nth-of-type(2) b { transition-delay: 0.65s; }
[data-state="3"] .hx-vital:nth-of-type(3) b { transition-delay: 0.8s; }

/* Step 4: a phone showing the kind of AI chat people already use */
.hx-float-ai {
  top: 10.5%;
  right: 5%;
  width: min(clamp(240px, 24vw, 330px), calc((100vh - 290px) / 2.04));
  container-type: inline-size;
  aspect-ratio: 9 / 18.4;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 44px;
  background: #05070d;
  box-shadow: 0 60px 110px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.hx-gpt-screen { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 36px; background: #fff; color: #0d0d0d; }
.hx-gpt-top { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1rem 0.7rem; }
.hx-gpt-top svg { width: 19px; height: 19px; stroke: #0d0d0d; }
.hx-gpt-top strong { display: flex; align-items: center; gap: 0.15rem; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.hx-gpt-top strong svg { width: 15px; height: 15px; stroke: #8e8e8e; }
.hx-gpt-body { display: flex; flex: 1; flex-direction: column; gap: 0.9rem; padding: 0.6rem 0.9rem; overflow: hidden; font-size: 4.7cqw; line-height: 1.5; }
.hx-gpt-user { align-self: flex-end; max-width: 84%; padding: 0.6rem 0.9rem; border-radius: 18px; background: #f1f1f1; opacity: 0; }
.hx-gpt-bot { display: grid; grid-template-columns: minmax(0, 1fr); }
.hx-gpt-dots, .hx-gpt-answer { grid-area: 1 / 1; }
.hx-gpt-dots { display: flex; align-self: start; gap: 5px; padding: 0.5rem 0.2rem; opacity: 0; }
.hx-gpt-dots i { width: 7px; height: 7px; border-radius: 50%; background: #0d0d0d; animation: hx-bounce 1s ease-in-out infinite; }
.hx-gpt-dots i:nth-child(2) { animation-delay: 0.15s; }
.hx-gpt-dots i:nth-child(3) { animation-delay: 0.3s; }
.hx-gpt-answer > p, .hx-gpt-answer li, .hx-gpt-src { opacity: 0; }
.hx-gpt-answer ul { margin: 0.6rem 0 0.9rem; padding-left: 1.15rem; list-style: disc; }
.hx-gpt-answer li { margin-bottom: 0.3rem; }
.hx-gpt-cite { display: inline-flex; align-items: center; gap: 0.3em; padding: 0.05em 0.55em; border-radius: 999px; background: #f1f1f1; font-size: 0.82em; white-space: nowrap; color: #5d5d5d; vertical-align: baseline; }
.hx-gpt-cite img { width: 1.1em; height: 1.1em; object-fit: contain; filter: brightness(0); }
.hx-gpt-src { display: block; }
.hx-gpt-src-label { display: block; margin-bottom: 0.4em; font-size: 0.78em; font-weight: 600; color: #8e8e8e; }
.hx-gpt-src-card { display: flex; align-items: center; gap: 0.7em; padding: 0.6em 0.75em; border: 1px solid #e3e3e3; border-radius: 14px; background: #fafafa; }
.hx-gpt-src-card img { flex: 0 0 auto; width: 2em; height: 2em; object-fit: contain; filter: brightness(0); }
.hx-gpt-src-card > span { min-width: 0; }
.hx-gpt-src-card b { display: block; overflow: hidden; font-size: 0.86em; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.hx-gpt-src-card small { display: block; font-size: 0.78em; line-height: 1.3; color: #1a73e8; }
.hx-gpt-input { display: flex; align-items: center; justify-content: space-between; margin: 0.4rem 0.8rem 0; padding: 0.45rem 0.45rem 0.45rem 1rem; border-radius: 999px; background: #f4f4f4; font-size: 0.8125rem; color: #8e8e8e; }
.hx-gpt-input i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0d0d0d; color: #fff; }
.hx-gpt-input svg { width: 14px; height: 14px; }
.hx-gpt-note { display: block; padding: 0.45rem 0 0.8rem; font-size: 0.625rem; text-align: center; color: #a3a3a3; }
[data-state="4"] .hx-gpt-user { animation: hx-pop 0.5s var(--hx-ease) 0.9s both; }
[data-state="4"] .hx-gpt-dots { animation: hx-think 1.4s linear 1.4s both; }
[data-state="4"] .hx-gpt-answer > p { animation: hx-pop 0.5s var(--hx-ease) 2.9s both; }
[data-state="4"] .hx-gpt-answer li:nth-child(1) { animation: hx-pop 0.45s var(--hx-ease) 3.3s both; }
[data-state="4"] .hx-gpt-answer li:nth-child(2) { animation: hx-pop 0.45s var(--hx-ease) 3.6s both; }
[data-state="4"] .hx-gpt-answer li:nth-child(3) { animation: hx-pop 0.45s var(--hx-ease) 3.9s both; }
[data-state="4"] .hx-gpt-src { animation: hx-pop 0.5s var(--hx-ease) 4.4s both; }
@keyframes hx-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hx-think { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hx-bounce { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- 6. Scanner ---------- */

.hx-scan { padding: var(--hx-pad) 0; }
.hx-scan-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.hx-scan-copy .hx-lead { margin-top: 1.75rem; }
.hx-scan-form {
  display: flex;
  max-width: 31rem;
  margin-top: 2.5rem;
  padding: 6px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 24px 50px -32px rgba(12, 20, 36, 0.4);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hx-scan-form:focus-within { border-color: var(--hx-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 24px 50px -32px rgba(12, 20, 36, 0.4); }
.hx-scan-form input {
  flex: 1;
  min-width: 0;
  padding: 0 0.75rem 0 1.25rem;
  border: 0;
  outline: 0;
  background: none;
  font-size: 1.0625rem;
  color: var(--hx-text);
}
.hx-scan-form input::placeholder { color: #98a2b3; }
.hx-scan-note { margin-top: 1.1rem !important; padding-left: 1.4rem; font-size: 0.875rem; color: var(--hx-mute); }

.hx-scan-visual { position: relative; }
.hx-scan-brand { display: none; }
/* Copy that has a shorter version for phones. */
.hx-only-phone { display: none; }
.hx-shot { display: none; }
.hx-browser-lift { box-shadow: 0 60px 100px -50px rgba(12, 20, 36, 0.6); transition: transform 0.7s var(--hx-ease), box-shadow 0.7s var(--hx-ease); }
.hx-browser-lift:hover { transform: translateY(-8px); box-shadow: 0 80px 120px -50px rgba(12, 20, 36, 0.7); }
.hx-browser-view-tall { aspect-ratio: 16 / 11.5; }

.hx-live {
  position: absolute;
  left: -7%;
  bottom: -9%;
  width: clamp(200px, 22vw, 270px);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--hx-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 70px -35px rgba(12, 20, 36, 0.5);
}
.hx-live-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem !important; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hx-mute); }
.hx-live li { display: flex; align-items: center; justify-content: space-between; padding: 0.45rem 0; font-size: 0.875rem; font-weight: 500; color: var(--hx-text); }
.hx-live li i {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(12, 20, 36, 0.12);
  border-top-color: var(--hx-blue);
  border-radius: 50%;
}
.hx-live li i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.is-live .hx-live li i { animation: hx-spin 0.7s linear calc(var(--i) * 0.55s) 2, hx-done 0.35s ease calc(var(--i) * 0.55s + 1.4s) forwards; }
.is-live .hx-live li i::after { animation: hx-tick 0.3s ease calc(var(--i) * 0.55s + 1.5s) forwards; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-done { to { border-color: var(--hx-green); background: var(--hx-green); } }
@keyframes hx-tick { to { opacity: 1; } }

/* ---------- 7. Reviews ---------- */

.hx-reviews { padding: var(--hx-pad) 0; overflow: hidden; background: var(--hx-tint); }
.hx-reviews-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hx-reviews-head .hx-h2 { max-width: 18ch; }
.hx-gbadge-light { border-color: var(--hx-line); background: #fff; color: var(--hx-mute); box-shadow: 0 16px 34px -22px rgba(12, 20, 36, 0.4); }
.hx-gbadge-light:hover { border-color: rgba(12, 20, 36, 0.25); background: #fff; }
.hx-gbadge-light strong { color: var(--hx-text); }
.hx-gbadge-light .hx-gbadge-logo { background: var(--hx-tint); }

.hx-wheel-stage {
  --R: clamp(1700px, 180vw, 2700px);
  --cw: calc(var(--R) * 0.15);
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
/* Without the wheel (reduced motion or no script) this is a plain swipeable row. */
.hx-wheel {
  display: flex;
  gap: 1.5rem;
  padding: 1rem var(--hx-side) 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hx-wheel::-webkit-scrollbar { display: none; }
.hx-rcard {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 1.1rem;
  width: min(82vw, 400px);
  padding: clamp(1.25rem, 1.9vw, 1.9rem);
  border: 1px solid var(--hx-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 60px -42px rgba(12, 20, 36, 0.45);
  scroll-snap-align: center;
}
.hx-rcard { position: relative; transition: box-shadow 0.5s var(--hx-ease), border-color 0.4s; }
.hx-rcard-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hx-rcard-link:focus-visible { outline: 2px solid var(--hx-blue); outline-offset: 3px; }
.hx-rcard:hover { border-color: rgba(37, 99, 235, 0.45); box-shadow: 0 44px 70px -40px rgba(37, 99, 235, 0.5); }
.hx-rcard-top { display: flex; align-items: center; justify-content: space-between; }
.hx-rcard-top .hx-stars { margin: 0; font-size: 1.125rem; }
.hx-rcard-top .hx-g { width: 22px; height: 22px; }
.hx-rcard blockquote { flex: 1; font-size: clamp(0.9375rem, 1.15vw, 1.0625rem); line-height: 1.55; color: var(--hx-text); }
.hx-rcard footer { display: flex; align-items: center; gap: 0.8rem; }
.hx-ava {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}
.hx-rcard footer strong { display: block; font-family: var(--font-heading); font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; color: var(--hx-text); }
.hx-rcard footer small { display: block; font-size: 0.8125rem; color: var(--hx-mute); }

/* Wheel: cards sit on the rim of a very large circle that turns slowly. */
.hx-wheel-stage.is-wheel {
  height: calc(var(--R) * 0.045 + 400px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.is-wheel .hx-wheel {
  position: absolute;
  top: 34px;
  left: 50%;
  display: block;
  width: calc(var(--R) * 2);
  height: calc(var(--R) * 2);
  margin-left: calc(var(--R) * -1);
  padding: 0;
  overflow: visible;
  animation: hx-wheel 430s linear infinite paused;
}
.is-wheel.is-turning .hx-wheel { animation-play-state: running; }
.is-wheel.is-turning:hover .hx-wheel { animation-play-state: paused; }
.is-wheel .hx-rcard {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--cw);
  min-height: 300px;
  margin-left: calc(var(--cw) / -2);
  transform: rotate(calc(var(--i) * 10deg));
  transform-origin: 50% var(--R);
}
@keyframes hx-wheel { to { transform: rotate(-360deg); } }
.hx-reviews-more { margin-top: clamp(1.5rem, 3vw, 2.5rem); text-align: center; }

/* ---------- 8. Partner ---------- */

.hx-partner { padding: var(--hx-pad) 0; }
.hx-partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}
.hx-partner-copy .hx-h2 { max-width: 12ch; }
.hx-partner-copy .hx-lead { margin-top: 1.5rem; }
.hx-partner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.5rem; }

.hx-promise-card {
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  border: 1px solid var(--hx-line);
  border-radius: clamp(20px, 2.2vw, 30px);
  background: #fff;
  box-shadow: 0 50px 90px -60px rgba(12, 20, 36, 0.45);
}
.hx-promise-kicker { margin-bottom: 0.75rem; padding: 0 0.9rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hx-mute); }
.hx-promise-list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(0.9rem, 1.4vw, 1.25rem) 0.9rem;
  border-radius: 16px;
  transition: background 0.4s var(--hx-ease);
}
.hx-promise-list li + li { background: linear-gradient(var(--hx-line), var(--hx-line)) center top / calc(100% - 1.8rem) 1px no-repeat; }
.hx-promise-list strong { display: block; font-family: var(--font-heading); font-size: clamp(1.0625rem, 1.5vw, 1.3rem); font-weight: 700; letter-spacing: -0.02em; color: var(--hx-text); }
.hx-promise-list p { margin-top: 0.15rem; font-size: 0.9375rem; line-height: 1.5; color: var(--hx-mute); }
.hx-tick {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--hx-blue);
  transition: background 0.4s var(--hx-ease), color 0.4s, transform 0.5s var(--hx-ease);
}
.hx-tick svg { width: 18px; height: 18px; stroke-width: 2.4; }
@media (hover: hover) {
  .hx-promise-list li:hover { background: var(--hx-tint); }
  .hx-promise-list li:hover + li { background: none; }
  .hx-promise-list li:hover .hx-tick { background: var(--hx-blue); color: #fff; transform: scale(1.08); }
}
@media (max-width: 1023px) {
  .hx-partner-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 9. FAQ ---------- */

.hx-faq { padding: var(--hx-pad) 0; background: var(--hx-tint); }
.hx-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.hx-faq-side { position: sticky; top: 120px; }
.hx-faq-side .hx-h2 { margin-bottom: 2rem; }
.hx-faq-item { border-top: 1px solid var(--hx-line); }
.hx-faq-item:last-child { border-bottom: 1px solid var(--hx-line); }
.hx-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: clamp(1.4rem, 2.4vw, 2rem) 0;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--hx-text);
}
.hx-faq-q i {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hx-line);
  border-radius: 50%;
  transition: background 0.45s var(--hx-ease), border-color 0.45s, transform 0.6s var(--hx-ease);
}
.hx-faq-q i::before, .hx-faq-q i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  margin: -0.75px 0 0 -6.5px;
  background: var(--hx-text);
  transition: transform 0.5s var(--hx-ease), background 0.45s;
}
.hx-faq-q i::after { transform: rotate(90deg); }
.hx-faq-q:hover i { background: var(--hx-text); border-color: var(--hx-text); }
.hx-faq-q:hover i::before, .hx-faq-q:hover i::after { background: #fff; }
.hx-faq-item.is-open .hx-faq-q i { transform: rotate(180deg); }
.hx-faq-item.is-open .hx-faq-q i::after { transform: rotate(0deg); }
.hx-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--hx-ease); }
.hx-faq-a > div { overflow: hidden; }
.hx-faq-a p { max-width: 40rem; padding: 0 4rem 2rem 0; font-size: 1.0625rem; line-height: 1.65; color: var(--hx-mute); }
.hx-faq-item.is-open .hx-faq-a { grid-template-rows: 1fr; }

/* ---------- 10. Final CTA ---------- */

.hx-cta { padding: clamp(0.75rem, 1.6vw, 1.5rem) clamp(0.75rem, 1.6vw, 1.5rem) 0; }
.hx-cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8.5rem) var(--hx-gutter);
  border-radius: clamp(24px, 3vw, 40px);
  text-align: center;
  color: #fff;
  background: radial-gradient(120% 90% at 50% 0%, #15275a 0%, #0b1430 46%, var(--hx-night) 100%);
}
.hx-cta-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--my, 20%);
  left: var(--mx, 50%);
  width: 70vmax;
  height: 70vmax;
  margin: -35vmax 0 0 -35vmax;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.28), transparent);
  transition: opacity 0.6s;
}
.hx-cta-panel .hx-eyebrow { justify-content: center; color: rgba(255, 255, 255, 0.62); }
.hx-cta-title {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.hx-cta-sub { max-width: 32rem; margin: clamp(1.75rem, 3vw, 2.5rem) auto 0 !important; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.hx-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem 2.25rem; margin-top: clamp(2.5rem, 4.5vw, 3.75rem); }

/* ---------- Motion start states (only when the page script is running) ---------- */

.hx-js .hx-line > span { transform: translateY(112%); }
.hx-js [data-hx-in] { opacity: 0; transform: translateY(22px); }
.hx-js [data-rv] { opacity: 0; transform: translateY(30px); }
.hx-js .hx-stage { opacity: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .hx-head-split { grid-template-columns: minmax(0, 1fr); }
  .hx-scan-grid, .hx-reviews-grid, .hx-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-faq-side { position: static; }
  .hx-scan-visual { width: 94%; max-width: 640px; margin-left: 6%; }

  .hx-story-pin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: clamp(4.5rem, 12vh, 6.5rem); }
  .hx-story-stage { order: -1; }
  .hx-story-frame { max-width: min(560px, calc((100vh - 470px) * 1.6)); margin: 0 auto; }
  .hx-steps { gap: 0.15rem; }
  .hx-step { gap: 0.75rem; padding: 0.55rem 0.8rem; border-radius: 16px; }
  .hx-step-ico { width: 2.1rem; height: 2.1rem; }
  .hx-step-ico svg { width: 16px; height: 16px; }
  .hx-step h3 { padding-top: 0.35rem; font-size: 1.0625rem; }
  .hx-step-body p { font-size: 0.9375rem; line-height: 1.5; }
  .hx-steps-hint { margin-top: 1rem; }
  .hx-float-vitals { left: 3%; bottom: -16%; width: min(72%, 320px); }
  .hx-float-ai { top: auto; right: 3%; bottom: -34%; width: min(86%, 380px); aspect-ratio: auto; padding: 5px; border-radius: 24px; }
  .hx-gpt-screen { border-radius: 19px; }
  .hx-gpt-top, .hx-gpt-input, .hx-gpt-note, .hx-gpt-answer ul { display: none; }
  .hx-float-ai { container-type: normal; }
  .hx-gpt-body { padding: 0.9rem; font-size: 0.8125rem; }
  .hx-gpt-answer > p { margin-bottom: 0.6rem; }
  .hx-float-sec { top: 60%; width: min(84%, 380px); margin-left: calc(min(84%, 380px) / -2); }
  .hx-work-head { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
}

@media (max-width: 640px) {
  .hx-h1 { font-size: clamp(2rem, 9.3vw, 2.75rem); }
  .hx-gbadge { font-size: 0.9375rem; gap: 0.55rem; }
  .hx-gbadge-logo { width: 32px; height: 32px; }
  .hx-cta-title { font-size: clamp(2.25rem, 10vw, 3rem); }
  .hx-sep { display: none; }
  .hx-btn { height: 56px; font-size: 1rem; padding-left: 1.4rem; }
  .hx-btn-xl { height: 62px; --chip: 46px; font-size: 1.0625rem; padding-left: 1.6rem; }
  .hx-btn-sm { height: 48px; font-size: 0.9375rem; padding-left: 1.1rem; }
  .hx-faq-a p { padding-right: 0; }
  .hx-live { left: -4%; bottom: -16%; width: 200px; padding: 1rem 1.1rem; }
  .hx-scan { padding-bottom: calc(var(--hx-pad) + 2rem); }
  .hx-card { width: 80vw; }
}

/* =====================================================================
   Phone and small-tablet pass. Everything here only applies below 900px.
   ===================================================================== */

@media (max-width: 899px) {
  .hx { --hx-pad: clamp(3.5rem, 11vw, 5rem); }

  /* Content is simply there on phones. Scroll-in effects on a flicked page read as slow loading. */
  .hx-js [data-rv] { opacity: 1; transform: none; }

  /* --- Hero --- */
  .hx-hero { padding-top: calc(80px + 2rem); padding-bottom: 3.5rem; }
  .hx-stage-wrap { margin-top: 3.25rem; }
  .hx-showcase { gap: 1.75rem; }
  .hx-demo-title { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .hx-demo-sub { margin-top: 0.8rem; font-size: 1rem; }
  .hx-showcase-actions { margin-top: 1.25rem; }

  /* --- Services: one swipeable row of compact cards, not four tall ones --- */
  .hx-services-head { margin-bottom: 1.75rem; }
  .hx-stack {
    display: flex;
    gap: 0.75rem;
    margin: 0 calc(var(--hx-gutter) * -1);
    padding: 0 var(--hx-gutter) 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--hx-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hx-stack::-webkit-scrollbar { display: none; }
  .hx-panel {
    position: relative;
    top: auto;
    display: grid;
    flex: 0 0 86%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: min(560px, 74vh);
    min-height: 0;
    border-radius: 22px;
    scroll-snap-align: start;
  }
  .hx-panel-copy { justify-content: flex-start; padding: 1.4rem 1.4rem 1.1rem; }
  .hx-panel h3 { max-width: none; font-size: clamp(1.4rem, 6vw, 1.75rem); line-height: 1.05; }
  .hx-panel-copy p { margin-top: 0.55rem; font-size: 0.9375rem; line-height: 1.45; }
  .hx-panel-copy .hx-btn { --chip: 32px; height: 44px; margin-top: 1rem; padding-left: 1.05rem; gap: 0.7rem; font-size: 0.9rem; }
  .hx-panel-copy .hx-btn::before { right: 6px; }
  .hx-panel-copy .hx-btn { padding-right: 6px; }
  .hx-pv { min-height: 0; overflow: hidden; }
  .hx-pv-web, .hx-pv-app { aspect-ratio: auto; }
  .hx-pv-web .hx-browser { top: 6%; left: 8%; width: 120%; }
  .hx-pv-web .hx-phone { bottom: -14%; left: -2%; width: 30%; }
  .hx-pv-app .hx-browser { width: 92%; }
  .hx-pv-app .hx-browser:nth-child(1) { top: 4%; right: -22%; }
  .hx-pv-app .hx-browser:nth-child(2) { bottom: -22%; left: 6%; }
  /* The search and article mock-ups are drawn smaller so they fit the card. */
  .hx-pv-seo, .hx-pv-doc { display: block; padding: 0.25rem 1rem 1rem; }
  .hx-goog, .hx-art, .hx-cite { zoom: 0.72; }
  .hx-art, .hx-cite { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100%; }
  .hx-art { margin-top: 0.9rem; }
  .hx-cite { margin-top: 1.6rem; }
  .hx-goog-site em, .hx-goog-ai-top em { display: none; }

  /* --- Work strip --- */
  .hx-card { width: 78vw; margin-right: 0.9rem; }
  .hx-card-cap { padding-top: 1rem; }

  /* --- Scroll story: shorter hold, sized to the phone's real screen --- */
  .hx-story.is-scrolly { height: 340vh; }
  .hx-story-pin { gap: clamp(3.5rem, 9vh, 5rem); }

  /* --- Scanner --- */
  .hx-scan-grid { gap: 2.5rem; }
  .hx-scan-form { margin-top: 1.75rem; }

  /* --- Reviews --- */
  .hx-wheel-stage { margin-top: 1.75rem; }

  /* --- Partner, FAQ, final CTA --- */
  .hx-partner-grid { gap: 2.25rem; }
  .hx-promise-card { padding: 1rem; }
  .hx-promise-list li { gap: 0.85rem; padding: 0.8rem 0.6rem; }
  .hx-tick { width: 2.1rem; height: 2.1rem; }
  .hx-faq-grid { gap: 1.75rem; }
  .hx-faq-q { padding: 1.15rem 0; }
  .hx-cta-panel { padding: 3.75rem 1.25rem; border-radius: 22px; }
  .hx-link { min-height: 48px; padding: 0.5rem 1.2rem; font-size: 0.9375rem; }
}

/* Phones change their screen height as the address bar slides away. These units ignore that,
   so the held sections don't jump. */
@supports (height: 100svh) {
  @media (max-width: 899px) {
    .hx-story.is-scrolly { height: 340svh; }
    .is-scrolly .hx-story-pin { height: 100svh; }
    .hx-panel { height: min(560px, 74svh); }
  }
}

/* --- Hero app on phones: a compact window in which the real app drifts from top to chart and back.
   The drift itself is driven from the script, because a browser only keeps an embedded app
   painted when the page moves it, not when a stylesheet animation does. --- */
@media (max-width: 699px) {
  .hx-tool-view.is-glide { height: min(520px, 64vh) !important; }
}

/* =====================================================================
   Phone clean-up. One idea per screen, nothing clipped, nothing to swipe for.
   ===================================================================== */

/* --- Scroll story on phones and tablets: the preview on top, and under it only the point
   being shown, instead of all four squeezed into a list. --- */
@media (max-width: 1023px) {
  .hx-story-top { margin-bottom: 0.75rem; }
  .hx-story-cap { font-family: inherit; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
  .hx-story-cap b { font-weight: 600; }

  .is-scrolly .hx-steps-col { display: grid; }
  .is-scrolly .hx-steps, .is-scrolly .hx-steps-hint { grid-area: 1 / 1; }
  .is-scrolly .hx-steps { display: grid; gap: 0; }
  .is-scrolly .hx-step {
    grid-area: 1 / 1;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0.55rem;
    padding: 1.1rem 0 0;
    overflow: visible;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s, transform 0.6s var(--hx-ease), visibility 0s 0.35s;
  }
  .is-scrolly .hx-step.is-on { border-color: rgba(255, 255, 255, 0.16); background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s 0.1s, transform 0.6s var(--hx-ease) 0.1s, visibility 0s; }
  .is-scrolly .hx-step-ico { display: none; }
  .is-scrolly .hx-step-num { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; color: var(--hx-sky); }
  .is-scrolly .hx-step-num::after { content: " / 04"; color: rgba(255, 255, 255, 0.4); }
  .is-scrolly .hx-step h3 { padding-top: 0; font-size: clamp(1.4rem, 6.2vw, 1.9rem); line-height: 1.08; color: #fff; }
  .is-scrolly .hx-step-body { grid-template-rows: 1fr; }
  .is-scrolly .hx-step-body p { max-width: 30rem; font-size: 1rem; line-height: 1.55; }
  .is-scrolly .hx-step-body p::before { height: 0.5rem; }
  .is-scrolly .hx-step-bar { top: -1px; bottom: auto; height: 1px; background: var(--hx-sky); opacity: 1; }
  .is-scrolly .hx-steps-hint { align-self: start; margin-top: 1.1rem; padding-left: 0; }
  .is-scrolly .hx-story-pin { gap: clamp(4.75rem, 12vh, 6.5rem); }
}

/* --- "Why" on phones and tablets: a deck of four cards. Each point is one card with its own
   working demo inside, and the cards stack over each other as you scroll. The script adds
   .is-cards; without it the plain list above still shows. --- */
.hx-story.is-cards { margin-top: 2rem; }
.is-cards .hx-story-pin { display: block; }
.is-cards .hx-story-stage, .is-cards .hx-steps-hint, .is-cards .hx-step-ico, .is-cards .hx-step-bar { display: none; }
.is-cards .hx-steps { display: grid; gap: 1rem; max-width: 620px; margin: 0 auto; }
.is-cards .hx-step {
  position: sticky;
  top: calc(80px + var(--n, 0) * 10px);
  display: block;
  padding: 1.5rem 1.25rem 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: radial-gradient(130% 90% at 100% 0%, #17337a 0%, #0c1733 46%, #0a1226 100%);
  box-shadow: 0 -22px 44px -22px rgba(0, 0, 0, 0.75);
}
.is-cards .hx-step-num { display: block; margin-bottom: 0.85rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; color: var(--hx-sky); }
.is-cards .hx-step-num::after { content: " / 04"; color: rgba(255, 255, 255, 0.4); }
.is-cards .hx-step h3 { padding-top: 0; font-size: clamp(1.5rem, 6.6vw, 2rem); line-height: 1.06; color: #fff; }
.is-cards .hx-step-body { display: block; }
.is-cards .hx-step-body p { max-width: none; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }
.is-cards .hx-step-body p::after { content: none; }
.hx-cardvis { margin-top: 1.25rem; }

/* The demos were floating panels over the big preview. Inside a card they sit flat and full width. */
.is-cards .hx-float {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin: 0;
  padding: 1.1rem 1.15rem;
  translate: none;
  border-radius: 18px;
  background: rgba(6, 11, 24, 0.6);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.is-cards .hx-sec-head strong { font-size: 1.125rem; }
.is-cards .hx-sec-row, .is-cards .hx-vital p { font-size: 0.9375rem; }
.is-cards .hx-layer-code { position: relative; inset: auto; gap: 0.6rem; padding: 0.85rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(6, 11, 24, 0.6); }
.is-cards .hx-cb { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding: 0.65rem 0.8rem; }
.is-cards .hx-cb:nth-child(3) { display: none; }
.is-cards .hx-cb pre { font-size: clamp(0.625rem, 2.75vw, 0.75rem); }
.is-cards .hx-note { font-size: 0.875rem; }
.is-cards .hx-float-ai { aspect-ratio: auto; padding: 6px; border-radius: 24px; background: #05070d; container-type: normal; }
.is-cards .hx-gpt-screen { height: auto; border-radius: 19px; }
/* The ChatGPT header and message box stay in, so it is recognisably the ChatGPT app. */
.is-cards .hx-gpt-top { display: flex; padding: 0.95rem 1rem 0.75rem; border-bottom: 1px solid #ececec; }
.is-cards .hx-gpt-top strong { font-size: 1.0625rem; }
.is-cards .hx-gpt-input { display: flex; margin: 0.5rem 0.8rem 0; }
.is-cards .hx-gpt-body { padding: 0.9rem 0.9rem 0.4rem; font-size: 0.875rem; }
.is-cards .hx-gpt-answer ul { display: block; margin: 0.5rem 0 0.7rem; }
.is-cards .hx-gpt-answer > p { margin-bottom: 0; }
.is-cards .hx-gpt-note { display: block; padding: 0.5rem 0 0.7rem; }
/* Very short screens cannot hold a whole card under the menu, so the cards simply follow each other. */
@media (max-height: 640px) {
  .is-cards .hx-step { position: relative; top: auto; }
}

@media (max-width: 699px) {
  /* --- Services: four calm cards, one under the other. Each has one picture on top (a single
     window, nothing overlapping), then the title, a sentence and the button, with room around all of it. --- */
  .hx-services-head { margin-bottom: 2.25rem; }
  .hx-stack { display: grid; gap: 1.25rem; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
  .hx-panel { display: flex; flex-direction: column; height: auto; padding: 1.25rem 1.25rem 1.75rem; border-radius: 24px; scroll-snap-align: none; }
  .hx-panel-copy { padding: 0 0.25rem; }
  .hx-panel h3 { font-size: clamp(1.45rem, 6.4vw, 1.75rem); }
  .hx-panel-copy p { margin-top: 0.7rem; font-size: 1rem; line-height: 1.55; }
  .hx-panel-copy .hx-btn { margin-top: 1.4rem; }

  .hx-pv { order: -1; height: auto; margin-bottom: 1.6rem; overflow: hidden; border-radius: 16px; }
  .hx-pv-web, .hx-pv-app { aspect-ratio: 16 / 10.4; }
  .hx-pv-web .hx-browser, .hx-pv-app .hx-browser:nth-child(1) { top: 0; right: auto; left: 0; width: 100%; border-radius: 16px; box-shadow: none; }
  .hx-pv-web .hx-phone, .hx-pv-app .hx-browser:nth-child(2) { display: none; }
  .hx-pv-app .hx-browser:nth-child(1) { border-color: var(--hx-line); }
  .hx-pv-seo, .hx-pv-doc { padding: 0; }
  .hx-goog, .hx-cite { box-shadow: none; }
  .hx-goog-real, .hx-goog-tabs, .hx-goog-ai, .hx-art, .hx-cite .hx-flow-step { display: none; }
  .hx-goog-hit { margin-bottom: 0; }
  .hx-cite { zoom: 1; margin-top: 0; padding: 1.1rem 1.15rem 1.2rem; border-radius: 16px; font-size: 0.8125rem; transition-delay: 0.2s; }
  .hx-panel.is-in .hx-cite mark { transition-delay: 0.9s; }
  .hx-panel-light .hx-cite { border: 1px solid var(--hx-line); }

  /* --- Scanner: the whole section becomes one dark product card, so it reads as a tool of ours.
     Name and logo on top, a big field and button, the numbers, then the scan running. --- */
  .hx-scan { padding: var(--hx-pad) 0; }
  .hx-scan-grid {
    position: relative;
    display: block;
    width: auto;
    max-width: none;
    margin: 0 var(--hx-gutter);
    padding: 1.4rem 1.3rem 1.4rem;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background:
      radial-gradient(110% 60% at 100% 0%, rgba(124, 58, 237, 0.6) 0%, transparent 62%),
      radial-gradient(90% 55% at 0% 100%, rgba(37, 99, 235, 0.5) 0%, transparent 66%),
      #0a1020;
    box-shadow: 0 44px 70px -42px rgba(10, 16, 32, 0.75);
  }
  .hx-scan-copy .hx-eyebrow { display: none; }
  .hx-scan-brand { display: grid; gap: 0.95rem; margin: 0 0 1.6rem; }
  /* The full OptiPath logo, kept small. The file has empty space around the artwork, so it is cropped to it. */
  .hx-scan-brand-logo { display: block; width: 4.55em; height: 1em; overflow: hidden; font-size: 26px; }
  .hx-scan-brand-logo img { display: block; width: auto; max-width: none; height: 2.518em; margin: -0.746em 0 0 -0.03em; }
  .hx-scan-brand strong { display: block; font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
  .hx-scan-brand small { display: block; margin-top: 0.1rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.66); }
  .hx-scan .hx-h2 { max-width: none; font-size: clamp(1.9rem, 8.6vw, 2.5rem); color: #fff; }
  .hx-scan-copy .hx-lead { margin-top: 1rem; font-size: 1rem; line-height: 1.55; color: rgba(255, 255, 255, 0.74); }

  .hx-scan-form { display: grid; gap: 0.65rem; max-width: none; margin-top: 1.6rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .hx-scan-form:focus-within { border: 0; box-shadow: none; }
  .hx-scan-form input {
    height: 58px;
    padding: 0 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    font-size: 1.0625rem;
    color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .hx-scan-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
  .hx-scan-form input:focus { border-color: var(--hx-sky); box-shadow: 0 0 0 4px rgba(138, 180, 255, 0.22); }
  .hx-scan-form .hx-btn { --chip: 42px; justify-content: space-between; width: 100%; height: 58px; padding-left: 1.4rem; background: #fff; font-size: 1.0625rem; color: var(--hx-ink); box-shadow: 0 20px 40px -16px rgba(124, 58, 237, 0.8); }
  .hx-scan-form .hx-btn::before { right: 8px; }
  .hx-scan-form .hx-btn { padding-right: 8px; }
  .hx-scan-note { margin-top: 0.9rem !important; padding-left: 0; text-align: center; color: rgba(255, 255, 255, 0.62); }

  .hx-scan-visual { width: 100%; margin: 1.6rem 0 0; }
  .hx-scan-visual .hx-browser { display: none; }
  .hx-live { position: static; width: auto; padding: 1.05rem 1.15rem 0.7rem; border-color: rgba(255, 255, 255, 0.14); border-radius: 18px; background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .hx-live-head { color: rgba(255, 255, 255, 0.62); }
  .hx-live li { padding: 0.6rem 0; font-size: 1rem; color: #fff; }
  .hx-live li i { border-color: rgba(255, 255, 255, 0.2); border-top-color: var(--hx-sky); }

  /* --- Reviews: a short list you can read at a glance, in place of the turning wheel. --- */
  .hx-wheel-stage { margin-top: 1.5rem; }
  .hx-wheel { display: grid; gap: 0.7rem; padding: 0 var(--hx-gutter); overflow: visible; scroll-snap-type: none; }
  .hx-rcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem 0.75rem;
    width: auto;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 18px;
    box-shadow: none;
  }
  .hx-rcard:nth-child(n+5) { display: none; }
  .hx-rcard footer { grid-area: 1 / 1; gap: 0.6rem; }
  .hx-rcard footer strong { font-size: 0.9375rem; }
  .hx-rcard footer small { font-size: 0.75rem; }
  .hx-ava { width: 34px; height: 34px; font-size: 0.75rem; }
  .hx-rcard-top { grid-area: 1 / 2; }
  .hx-rcard-top .hx-g { display: none; }
  .hx-rcard-top .hx-stars { font-size: 0.9375rem; }
  .hx-rcard blockquote { display: -webkit-box; grid-column: 1 / -1; overflow: hidden; font-size: 0.9375rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; }
  .hx-reviews-more { margin-top: 1.75rem; }

  /* The rating becomes the headline: a very large 5.0 with stars that fill in gold when first seen. */
  .hx-reviews .hx-gbadge { display: grid; justify-items: center; gap: 0.3rem; margin-bottom: 1.4rem; padding: 0; border: 0; background: none; box-shadow: none; }
  .hx-reviews .hx-gbadge-logo { width: 46px; height: 46px; margin-bottom: 0.5rem; background: #fff; box-shadow: 0 14px 28px -16px rgba(12, 20, 36, 0.5); }
  .hx-reviews .hx-gbadge strong { font-size: clamp(4.75rem, 25vw, 6.25rem); line-height: 0.92; letter-spacing: -0.055em; }
  .hx-reviews .hx-gbadge .hx-stars {
    font-size: 1.9rem;
    letter-spacing: 0.14em;
    color: transparent;
    background: linear-gradient(90deg, #f5b301 50%, #d5dae4 50%) 100% 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 1.5s cubic-bezier(0.3, 0, 0.2, 1) 0.25s;
  }
  .hx-reviews.is-in .hx-gbadge .hx-stars { background-position: 0 0; }
  .hx-reviews .hx-gbadge-text { font-size: 0.9375rem; }
  .hx-reviews-head .hx-h2 { font-size: clamp(1.6rem, 7vw, 2rem); }

  /* Two rows of small cards drift past in opposite directions. Hold a finger on them to stop. */
  .hx-wheel-stage.is-rows {
    margin-top: 1.75rem;
    padding: 0.25rem 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .is-rows .hx-wheel { display: flex; gap: 0.75rem; width: max-content; padding: 0 0 0 0.75rem; animation: hx-row 44s linear infinite; }
  .is-rows .hx-wheel-b { margin-top: 0.75rem; animation-duration: 52s; animation-direction: reverse; }
  .is-rows.is-held .hx-wheel { animation-play-state: paused; }
  .is-rows .hx-rcard, .is-rows .hx-rcard:nth-child(n+5) { display: grid; flex: 0 0 auto; align-content: start; width: 268px; }
}
@keyframes hx-row { to { transform: translateX(-50%); } }
@media (max-width: 699px) {
  .hx-only-wide { display: none; }
  /* The work strip moves about three times faster on phones, where far less of it fits on screen. */
  .hx-work.is-marquee .hx-work-track { animation-duration: 26s; }
  .hx-only-phone { display: inline; }

  /* --- How we work, short version: the headline, five ticked promises in a few words each,
     and one link. The paragraph, the descriptions and the second button are left out. --- */
  .hx-partner-grid { gap: 0; }
  .hx-partner-copy { display: contents; }
  .hx-partner-copy .hx-lead, .hx-partner-actions .hx-btn, .hx-promise-kicker, .hx-promise-list p { display: none; }
  .hx-promise-card { order: 1; margin-top: 1.6rem; padding: 0.45rem 1.1rem; border-radius: 20px; }
  .hx-partner-actions { order: 2; margin-top: 1.5rem; }
  .hx-promise-list li { align-items: center; gap: 0.9rem; padding: 0.85rem 0; }
  .hx-promise-list li + li { background-size: 100% 1px; }
  .hx-promise-list strong { font-size: 1.0625rem; }
  .hx-tick { width: 1.75rem; height: 1.75rem; background: var(--hx-blue); color: #fff; }
  .hx-tick svg { width: 15px; height: 15px; }
  .is-armed .hx-tick { transform: scale(0); transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
  .is-armed.is-in .hx-tick { transform: none; }
  .is-armed.is-in li:nth-child(2) .hx-tick { transition-delay: 0.12s; }
  .is-armed.is-in li:nth-child(3) .hx-tick { transition-delay: 0.24s; }
  .is-armed.is-in li:nth-child(4) .hx-tick { transition-delay: 0.36s; }
  .is-armed.is-in li:nth-child(5) .hx-tick { transition-delay: 0.48s; }

  /* --- Hero tool on phones. The live app only showed a slice of itself in a small window, so here
     it is one clean picture of the whole tool, with nothing laid over it. Tapping it opens the live app. --- */
  .hx-showcase .hx-stage > .hx-browser { display: none; }
  .hx-shot { display: block; }
  .hx-shot-frame {
    display: block;
    aspect-ratio: 1440 / 1180;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05), 0 50px 90px -40px rgba(0, 0, 0, 0.85);
  }
  .hx-shot-frame img { display: block; width: 100%; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
