:root {
  --paper:       #fcfcfc;
  --surface:     #ffffff;
  --ink:         #000000;
  --ink-nav:     #141a21;
  --ink-soft:    #414141;
  --ink-faint:   #535361;
  --brand:       #2347ff;
  --brand-hi:    #1937e6;
  --rail:        #f4f4f4;
  --hairline:    #f8f8f8;
  --border:      #f2f2f2;
  --card:        #ededef;
  --logo-ink:    #9ca3af;

  --container:   1200px;
  --gutter:      20px;

  --font-display: "Outfit", "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-ui:      "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; padding-inline: 10px;
  border: 1px solid transparent; border-radius: 7px;
  font: 500 14px/1 var(--font-ui); letter-spacing: -.008em;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hi); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--ink-nav); }
.btn--ghost:hover { background: #f7f7f8; }
.btn--lg { height: 40px; padding-inline: 16px; gap: 7px; border-radius: 8px; font-size: 15px; }
.btn--outline { background: var(--surface); border-color: var(--border); color: var(--ink-nav); }
.btn--outline:hover { background: #f7f7f8; }
.btn--outline img { width: 18px; height: 18px; }

.btn__arrow { display: inline-flex; align-items: center; width: 13px; flex: none; }
.btn__arrow svg { width: 18px; height: 12px; overflow: visible; display: block; }
.btn__arrow path {
  fill: none; stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn__arrow-shaft {
  stroke-dasharray: 11.2; stroke-dashoffset: 11.2;
  transition: stroke-dashoffset .3s cubic-bezier(.2, .8, .3, 1);
}
.btn__arrow-head {
  transform: translateX(-4.4px);
  transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.btn--arrow:hover .btn__arrow-shaft,
.btn--arrow:focus-visible .btn__arrow-shaft { stroke-dashoffset: 0; }
.btn--arrow:hover .btn__arrow-head,
.btn--arrow:focus-visible .btn__arrow-head { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .btn__arrow-shaft, .btn__arrow-head { transition: none; }
}

.eyebrow {
  display: block;
  margin: 0;
  font: 500 12px/1 var(--font-ui); letter-spacing: .09em; text-transform: uppercase;
  color: #8b8f9a;
}
a.eyebrow { display: inline-block; transition: color .15s ease; }
a.eyebrow:hover { color: var(--ink-nav); }

.nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: 64px;
  display: flex; align-items: center;
}
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { width: 122px; height: auto; display: block; }

.nav__links {
  margin-left: 61px;
  align-self: stretch;
  display: flex; align-items: stretch; gap: 22px;
  font: 500 14.5px/1 var(--font-ui);
  letter-spacing: -.006em;
  color: var(--ink-nav);
}
.nav__item { position: static; display: flex; align-items: center; }

.nav__link {
  display: inline-flex; align-items: center; gap: 5px; padding-block: 6px;
  background: none; border: 0; font: inherit; color: inherit;
  letter-spacing: inherit; cursor: pointer;
}
.nav__link:hover { color: #5b6470; }
.nav__caret { width: 16px; height: 16px; color: #5f5f5f; transition: transform .22s ease; }
.nav__item.is-open > .nav__link { color: var(--brand); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); color: var(--brand); }

.mm {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 55%, #f7f9fd 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 20px 34px -30px rgb(16 24 40 / .18);
  transform: translateY(-8px);
  visibility: hidden; opacity: 0;
  transition: opacity .16s ease,
              transform .24s cubic-bezier(.2, .8, .3, 1),
              visibility .16s;
}
.mm.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
/* From one open menu to the next (main.js sets .mm-swap): the panels change
   in place, the new one fading in over the old, which stays whole until it's
   in. Sliding past each other left a strip of one card alone above the other,
   a black line over the blue AI Assistant card. */
@media (min-width: 901px) {
  .nav.mm-swap .mm { transform: none; transition: opacity .16s ease, visibility .16s; }
  .nav.mm-swap .mm.is-open { z-index: 41; }
  .nav.mm-swap .mm:not(.is-open) { pointer-events: none; transition: opacity .12s ease .1s, visibility 0s .22s; }
}

.nav::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 100vh;
  z-index: 20; pointer-events: none;
  background: rgb(16 24 40 / .14);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  visibility: hidden; opacity: 0;
  transition: opacity .24s ease, visibility .24s;
}
.nav.has-menu::after { visibility: visible; opacity: 1; }
@media (max-width: 900px) { .nav::after { display: none; } }
@media (prefers-reduced-motion: reduce) { .nav::after { transition: none; } }

.mm__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter) 14px;
}

.mm-body {
  --mm-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --mm-tint: #f5f6f8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
}

.mm-eyebrow {
  margin: 0 0 8px;
  font: 400 13px/1 var(--font-ui); letter-spacing: -.004em;
  color: #8b8f9a;
}

.mm-items {
  list-style: none; margin: 0 -10px; padding: 0;
  display: grid; gap: 2px 6px;
}
.mm-items--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mm-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px;
  transition: background-color .15s ease;
}
.mm-item:hover { background: var(--mm-tint); }
.mm-item__icon {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(16 24 40 / .05);
  color: var(--brand);
}
.mm-item__icon svg { width: 19px; height: 19px; }
.mm-item__text { min-width: 0; }
.mm-item__title {
  display: flex; align-items: center; gap: 7px;
  font: 400 16px/1.25 var(--font-display); letter-spacing: -.012em;
  color: var(--ink-nav); white-space: nowrap;
}
.mm-item__desc {
  display: block; margin-top: 2px;
  font: 400 13px/1.35 var(--font-ui); color: #7a808c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mm-tag {
  padding: 2px 6px; border-radius: 999px;
  background: #e8eeff; color: var(--brand);
  font: 600 9.5px/1 var(--font-ui); letter-spacing: .06em; text-transform: uppercase;
}
.mm-item__desc .mm-tag { display: inline-block; margin-right: 2px; vertical-align: 1px; }

.mm-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.mm-links { list-style: none; margin: 0 -10px; padding: 0; display: grid; gap: 1px; }
.mm-link {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: 9px;
  font: 400 16px/1.3 var(--font-display); letter-spacing: -.012em;
  color: var(--ink-nav); white-space: nowrap;
  transition: background-color .15s ease;
}
.mm-link:hover { background: var(--mm-tint); }
.mm-link__icon {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; margin-right: 3px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgb(16 24 40 / .05);
  color: var(--brand);
}
.mm-link__icon svg { width: 16px; height: 16px; }

.mm-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  margin: 18px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--hairline);
  font: 400 14px/1.4 var(--font-ui); letter-spacing: -.006em; color: #6b7280;
}
.mm-main { display: flex; flex-direction: column; }
.mm-main > :is(.mm-items, .mm-groups) { margin-bottom: 18px; }
.mm-main > .mm-strip { margin-top: auto; }

.mm-strip__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink-nav);
  transition: color .15s ease;
}
.mm-strip__link:hover { color: var(--brand); }
.mm-arrow { flex: none; width: 14px; height: 14px; transition: transform .2s ease; }
.mm-strip__link:hover .mm-arrow { transform: translateX(2px); }

.mm-strip__logos { display: inline-flex; padding-left: 6px; }
.mm-strip__logos span {
  display: grid; place-items: center;
  width: 24px; height: 24px; margin-left: -6px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
}
.mm-strip__logos img { width: 13px; height: 13px; object-fit: contain; }

.mm-go { width: 13px; height: 13px; color: #a0a6b1; transition: color .15s ease, transform .2s ease; }

.mm-others { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline); }
.mm-item--other { padding-block: 6px; }
.mm-item--other .mm-item__icon { width: 34px; height: 34px; }
.mm-item--other .mm-item__icon img { width: 18px; height: 18px; object-fit: contain; }
.mm-item--other .mm-item__title { font-size: 15px; }
.mm-item--other .mm-item__desc { font-size: 12.5px; }
.mm-item--other .mm-go { flex: none; margin-left: auto; }
.mm-item--other:hover .mm-go { color: var(--brand); transform: translate(1px, -1px); }

.mm-feature,
.mm-case {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 16px; color: #fff;
}
.mm-feature { display: block; min-height: 262px; padding: 20px 22px; }
.mm-feature--brand {
  background:
    radial-gradient(75% 90% at 50% 108%, #2347ff 0%, rgb(35 71 255 / 0) 72%),
    #0b1682;
}
.mm-feature--ink {
  background:
    radial-gradient(90% 70% at 0% 100%, rgb(35 71 255 / .38) 0%, rgb(35 71 255 / 0) 66%),
    linear-gradient(165deg, #1b1e25 0%, #0d0e12 100%);
}
.mm-feature--brand::before,
.mm-feature--ink::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain); background-size: 200px 200px;
  opacity: .3; mix-blend-mode: overlay;
}
.mm-feature--ink::before { opacity: .12; mix-blend-mode: normal; }

.mm-flutes {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
}
.mm-flutes.is-live { opacity: 1; }
@keyframes mm-caret { 50% { opacity: 0; } }
.mm:not(.is-open) .mm-prompt * { animation-play-state: paused; }

.mm-feature__head { position: relative; z-index: 2; display: block; max-width: 360px; }
.mm-feature__title {
  display: flex; align-items: center; gap: 8px;
  font: 400 21px/1.2 var(--font-display); letter-spacing: -.016em;
}
.mm-feature__title .mm-arrow { width: 16px; height: 16px; opacity: .6; transition: transform .2s ease, opacity .2s ease; }
a.mm-feature:hover .mm-feature__title .mm-arrow { opacity: 1; transform: translateX(3px); }
/* the phone card: the whole card links to /mobile, the store badges over it */
.mm-feature__hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.mm-feature__hit:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.mm-feature--app .mm-feature__head { pointer-events: none; }
.mm-feature--app .mm-stores { z-index: 3; }
.mm-feature--app:has(.mm-feature__hit:hover) .mm-arrow,
.mm-feature--app:has(.mm-feature__hit:focus-visible) .mm-arrow { opacity: 1; transform: translateX(3px); }
.mm-feature__sub {
  display: block; margin-top: 6px;
  font: 400 13.5px/1.45 var(--font-ui); color: rgb(255 255 255 / .74);
}
.mm-feature__pill,
.mm-case__pill {
  padding: 5px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 11.5px/1 var(--font-ui); color: #fff;
}
.mm-feature__pill { display: inline-block; margin-bottom: 10px; }

.mm-glass {
  position: absolute; z-index: 1; left: 28px; right: 28px; top: 92px; bottom: -40px;
  border-radius: 14px;
  background: rgb(255 255 255 / .1);
  border: 1px solid rgb(255 255 255 / .22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mm-browser {
  position: absolute; left: 22%; right: 7%; top: 16px; bottom: 0;
  border-radius: 9px 9px 0 0; background: #fff;
  box-shadow: 0 18px 40px -20px rgb(4 10 60 / .6);
}
.mm-browser__bar {
  display: flex; align-items: center; gap: 4px;
  height: 24px; padding: 0 9px;
  border-bottom: 1px solid #edf0f6;
}
.mm-browser__bar i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; }
.mm-browser__bar i:nth-child(2) { background: #febc2e; }
.mm-browser__bar i:nth-child(3) { background: #28c840; }
.mm-browser__url {
  margin: 0 auto; transform: translateX(-10px);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 6px; background: #f3f5f9;
  font: 400 9.5px/1 var(--font-ui); color: #8b8f9a;
}
.mm-browser__url svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.mm-browser__page { display: grid; gap: 7px; padding: 14px 16px; }
.mm-browser__page b { display: block; height: 7px; border-radius: 4px; background: #eef1f7; }
.mm-browser__page b:nth-child(1) { width: 40%; height: 9px; background: #e2e7f4; }
.mm-browser__page b:nth-child(2) { width: 88%; }
.mm-browser__page b:nth-child(3) { width: 70%; }
.mm-browser__page b:nth-child(4) { width: 32%; height: 14px; margin-top: 3px; border-radius: 5px; background: rgb(35 71 255 / .16); }

.mm-prompt {
  position: absolute; left: 6%; bottom: 54px;
  width: min(300px, 86%);
  border-radius: 14px; background: #fff; color: var(--ink-nav);
  box-shadow: 0 1px 2px rgb(4 10 60 / .1), 0 20px 40px -18px rgb(4 10 60 / .55);
}
.mm-prompt__field {
  display: block; height: 52px; padding: 12px 14px 0; overflow: hidden;
  font: 400 13.5px/1.45 var(--font-ui); letter-spacing: -.006em;
}
.mm-prompt__text { transition: opacity .2s ease; }
.mm-prompt__text.is-out { opacity: 0; }
.mm-prompt__text::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px;
  vertical-align: -.2em; background: var(--brand);
  animation: mm-caret 1.1s steps(1) infinite;
}
.mm-prompt__bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; }
.mm-prompt__plus {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid #e4e4e7; color: #71717a;
}
.mm-prompt__plus svg { width: 13px; height: 13px; }
.mm-prompt__apps { display: inline-flex; padding-left: 5px; }
.mm-prompt__apps span {
  display: grid; place-items: center; width: 22px; height: 22px; margin-left: -5px;
  border-radius: 50%; background: #fff; border: 1px solid #e4e4e7;
}
.mm-prompt__apps img { width: 12px; height: 12px; object-fit: contain; }
.mm-prompt__send {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto;
  border-radius: 8px; background: var(--brand); color: #fff;
  transition: background-color .15s ease, transform .15s ease;
}
.mm-prompt__send svg { width: 14px; height: 14px; }
.mm-prompt.is-sent .mm-prompt__send { background: var(--brand-hi); transform: scale(.9); }

.mm-devices { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mm-tablet {
  position: absolute; top: 133px; right: 58px;
  width: 200px; height: 144px; padding: 5px;
  border-radius: 14px;
  background: linear-gradient(150deg, #43464f 0%, #1c1e24 45%, #30333b 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .2),
    0 0 0 1px rgb(0 0 0 / .55),
    0 22px 36px -16px rgb(0 0 0 / .75);
}
.mm-tablet::before,
.mm-tablet::after { content: ""; position: absolute; }
.mm-tablet::before {
  top: 1.5px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 2px; border-radius: 50%; background: #0b0c0f;
}
.mm-tablet::after { top: -2px; left: 26px; width: 22px; height: 2px; border-radius: 1px; background: #30333b; }
.mm-tablet__screen {
  display: block; height: 100%;
  border-radius: 9px;
  background: #eef0f6 url(/assets/img/menu/app-tablet.webp) center / cover no-repeat;
}
.mm-phone {
  position: absolute; top: 164px; right: 16px;
  width: 84px; height: 172px; padding: 3px;
  border-radius: 17px;
  background: linear-gradient(150deg, #43464f 0%, #1c1e24 45%, #30333b 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / .2),
    0 0 0 1px rgb(0 0 0 / .55),
    -12px 18px 30px -12px rgb(0 0 0 / .8);
}
.mm-phone::before,
.mm-phone::after {
  content: ""; position: absolute; width: 2px; border-radius: 1px; background: #30333b;
}
.mm-phone::before { right: -2px; top: 45px; height: 20px; }
.mm-phone::after { left: -2px; top: 36px; height: 26px; }
.mm-phone__screen {
  display: block; height: 100%;
  border-radius: 14px;
  background: #f2f3f7 url(/assets/img/menu/app-phone.webp) center top / cover no-repeat;
}

.mm-stores { position: absolute; left: 22px; bottom: 18px; z-index: 2; display: grid; width: max-content; gap: 8px; }
.mm-store {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 11px 0 10px; border-radius: 8px;
  background: #000; color: #fff;
  border: 1px solid rgb(255 255 255 / .3);
  font: 500 13px/1 var(--font-ui); letter-spacing: -.01em; white-space: nowrap;
  transition: border-color .15s ease;
}
.mm-store small { display: block; margin-bottom: 2px; font: 400 8.5px/1 var(--font-ui); letter-spacing: .01em; color: rgb(255 255 255 / .75); }
.mm-store svg { flex: none; width: 15px; height: 17px; fill: currentColor; }
a.mm-store[href]:hover { border-color: rgb(255 255 255 / .7); }

.mm-body--solutions { grid-template-columns: minmax(0, 1fr) 300px; }
.mm-case {
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 262px; padding: 16px 18px 17px;
  background: #1b1e25;
}
.mm-case__photo {
  position: absolute; inset: -14px; z-index: 0;
  width: calc(100% + 28px); max-width: none; height: calc(100% + 28px);
  object-fit: cover; object-position: 50% 30%;
  filter: blur(5px);
}
.mm-case::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(12 14 22 / .34) 0%, rgb(12 14 22 / .2) 45%, rgb(12 14 22 / .72) 100%);
}
.mm-case__pill { position: absolute; top: 14px; right: 14px; z-index: 2; }
.mm-case__mark {
  position: absolute; inset: 0 0 56px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 400 30px/1 var(--font-display); letter-spacing: -.03em;
  text-shadow: 0 2px 18px rgb(0 0 0 / .25);
}
.mm-case__mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.mm-case__title {
  position: relative; z-index: 2; display: block;
  font: 400 15px/1.3 var(--font-ui); letter-spacing: -.01em;
  text-wrap: balance;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
.mm-case:hover .mm-case__title { text-decoration-color: rgb(255 255 255 / .55); }
.mm-case__mark img {
  width: auto; height: 30px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgb(0 0 0 / .25));
}

@media (prefers-reduced-motion: reduce) {
  .mm-prompt__text::after { animation: none; }
  .mm-arrow, .mm-go { transition: none; }
}

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.nav__plain {
  font: 500 14.5px/1 var(--font-ui); letter-spacing: -.006em; color: var(--ink-nav);
  white-space: nowrap;
  transition: color .14s ease;
}
.nav__plain:hover { color: var(--brand); }

.nav__toggle { display: none; }
.nav__cta { display: none; }
.nav__toggle .nav__close,
.nav__toggle[aria-expanded="true"] .nav__burger { display: none; }
.nav__toggle[aria-expanded="true"] .nav__close { display: block; }

.rails {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.rails::before {
  content: ""; display: block; height: 100%;
  max-width: var(--container); margin-inline: auto;
  border-left: 1px solid var(--rail);
  border-right: 1px solid var(--rail);
}
.corners { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.corners svg {
  position: absolute; overflow: hidden;
  fill: var(--logo-ink); opacity: .3;
}
@media (max-width: 1240px) { .corners { display: none; } }

.page { position: relative; }
.hero { position: relative; z-index: 1; padding-top: 80px; }
.hero > .container { position: relative; z-index: 1; }
.hero__top { position: relative; }
.hero__head {
  position: relative; z-index: 1;
  text-align: left;
}
.hero__head > * { max-width: 620px; }

.hero__aura {
  position: absolute; inset: -84px 0 -380px; z-index: 0;
  max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  overflow: hidden; pointer-events: none;
}
.hero__aura-in { position: absolute; inset: 0 var(--gutter); }
.hero__aura canvas { display: block; width: 100%; height: 100%; }

.ratings {
  display: flex; justify-content: flex-start; align-items: center;
  gap: 33px;
  font: 400 15px/1 var(--font-ui); color: var(--ink-soft);
  letter-spacing: -.008em;
}
.ratings span { display: inline-flex; align-items: center; gap: 9px; }
.ratings img { width: 22px; height: 22px; display: block; }

.hero__title {
  margin: 14px 0 0;
  font: 300 58px/1.138 var(--font-display);
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__sub {
  margin: 20px 0 0;
  max-width: 530px;
  font: 400 16px/26px var(--font-ui);
  letter-spacing: -.002em;
  color: var(--ink-soft);
}

.hero__cta { margin-top: 10px; display: flex; justify-content: flex-start; gap: 12px; }

.hero__note {
  margin: 10px 0 0;
  font: 400 14px/16px var(--font-display); letter-spacing: -.184px;
  color: var(--ink-faint);
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); filter: blur(7px); }
  to   { opacity: 1; transform: none;             filter: blur(0); }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

.hero.is-enter .hero__head > * { animation: heroIn .78s cubic-bezier(.22, .7, .16, 1) backwards; }
.hero.is-enter .ratings     { animation-delay: .04s; }
.hero.is-enter .hero__title { animation-delay: .12s; }
.hero.is-enter .hero__sub   { animation-delay: .22s; }
.hero.is-enter .hero__cta   { animation-delay: .30s; }
.hero__note {
  background: linear-gradient(90deg,
              var(--ink-faint) 0%, var(--ink-faint) 40%,
              #fafafa 50%,
              var(--ink-faint) 60%, var(--ink-faint) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: noteShimmer 6s linear 1.4s infinite;
}
.hero.is-enter .hero__note {
  animation: heroIn .78s cubic-bezier(.22, .7, .16, 1) .37s backwards,
             noteShimmer 6s linear 1.4s infinite;
}
@keyframes noteShimmer {
  from { background-position: 120% 0; }
  to   { background-position: -120% 0; }
}
.hero.is-enter .showcase { animation: heroRise .9s cubic-bezier(.22, .7, .16, 1) .40s backwards; }
.hero.is-enter .hero__aura { animation: heroFade .95s ease .30s backwards; }

.swap {
  position: relative; display: inline-block;
  vertical-align: baseline;
  transition: width .5s cubic-bezier(.22, .7, .16, 1);
}
.swap__ghost { visibility: hidden; display: inline-block; white-space: nowrap; }
.swap__word {
  position: absolute; left: 0; top: 0;
  white-space: nowrap;
  transition: opacity .38s ease,
              transform .5s cubic-bezier(.22, .7, .16, 1),
              filter .38s ease;
}
/* with no ghost (reduced motion, no JS) the word holds its own width */
.swap__word:only-child { position: static; }
.swap__word.is-enter { opacity: 0; transform: translateY(.3em);  filter: blur(7px); }
.swap__word.is-live  { opacity: 1; transform: none;              filter: blur(0); }
.swap__word.is-exit  { opacity: 0; transform: translateY(-.3em); filter: blur(7px); }

.showcase {
  position: relative;
  z-index: 2;
  margin-top: 27px;
  min-height: 400px;
  display: grid;
  place-items: center;
  padding: 24px var(--gutter);
}

.showcase__bg {
  position: absolute; inset: 0; z-index: 0;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 12% 0%, #e6effc 0%, rgba(230,239,252,0) 55%),
    radial-gradient(120% 140% at 88% 0%, #eeeefd 0%, rgba(238,238,253,0) 55%),
    radial-gradient(90% 120% at 50% 100%, #eff1fa 0%, rgba(239,241,250,0) 60%),
    rgba(247, 248, 254, .72);
}
.showcase__fg { position: relative; z-index: 1; width: 100%; }

.stats {
  position: relative; z-index: 1;
  margin-top: 20px;
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  min-height: 299px;
  border-radius: 20px;
  padding: 30px 30px 32px;
  display: flex; flex-direction: column;
  background: var(--card);
}
.stat__body { margin-top: auto; }
/* The figures in a row stand level, however many lines their labels take:
   each card is two of the row's tracks, the space above and then the
   figure with its label, whose track the tallest label in the row sets.
   The home page's claim card keeps its own layout. */
.stats { grid-auto-rows: 1fr auto; }
.stats > .stat { grid-row: span 2; }
.stats > .stat:has(.stat__value) { display: grid; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
.stats > .stat:has(.stat__value) > .stat__eyebrow { grid-row: 1; }
.stats > .stat:has(.stat__value) > .stat__body { grid-row: 2; margin-top: 0; }
.stat__eyebrow {
  margin: 0;
  font: 500 12px/1 var(--font-ui); letter-spacing: .09em; text-transform: uppercase;
  color: #8b8f9a;
}
.stat__value {
  margin: 0;
  font: 400 55px/1 var(--font-ui);
  /* one line; a row too narrow for its widest figure sets them all smaller (main.js) */
  font-size: calc(55px * var(--stat-fit, 1));
  white-space: nowrap;
  letter-spacing: -.042em;
  color: var(--ink);
}
.stat__label {
  margin: 10px 0 0;
  font: 400 20px/1.26 var(--font-ui);
  font-size: calc(20px * var(--stat-label-fit, 1));
  letter-spacing: -.018em;
  color: var(--ink-nav);
}
/* one line when the row's labels fit by shrinking a little (main.js); else they wrap */
.stats.is-measuring .stat__label,
.stats.is-one-line .stat__label { white-space: nowrap; }
.stat__note {
  margin: 11px 0 0;
  font: 400 14px/1.45 var(--font-ui); letter-spacing: -.004em;
  color: #6b7280;
}
.stat--dark {
  background: linear-gradient(145deg, #2c2c2c 0%, #141414 45%, #0a0a0a 100%);
  color: #fff;
}
.stat--dark .stat__eyebrow { color: rgb(255 255 255 / .5); }
.stat__claim {
  margin: 0;
  font: 500 21px/1.32 var(--font-ui);
  letter-spacing: -.018em;
  color: #fff;
}
.stat__proof {
  margin: 15px 0 0; padding-top: 15px;
  border-top: 1px solid rgb(255 255 255 / .15);
  font: 400 14px/1.4 var(--font-ui); letter-spacing: -.004em;
  color: rgb(255 255 255 / .66);
}


.marquee {
  position: relative; z-index: 1;
  margin-top: 20px;
  height: 99px;
  background: var(--paper);
  border-top: 1px solid var(--rail);
  border-bottom: 1px solid var(--rail);
  display: flex; align-items: center;
  overflow: hidden;
  --marquee-fade: min(200px, 22%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--marquee-fade),
                                      #000 calc(100% - var(--marquee-fade)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--marquee-fade),
                              #000 calc(100% - var(--marquee-fade)), transparent 100%);
}
.marquee__track {
  display: flex; align-items: center; gap: 64px;
  padding-right: 64px;
  flex: none;
  animation: marquee var(--marquee-duration, 78s) linear infinite;
  will-change: transform;
}
.marquee.is-idle .marquee__track { animation-play-state: paused; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__logo {
  flex: none;
  background-color: var(--logo-ink);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat;  mask-repeat: no-repeat;
  -webkit-mask-size: contain;      mask-size: contain;
}

@media (max-width: 1100px) {
  .hero__aura { display: none; }
  .hero__title { font-size: 50px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 240px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .nav__links { margin-left: 30px; gap: 17px; }
  .nav__plain { font-size: 13.5px; }
  .nav__actions { gap: 10px; }

  .mm-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .mm-body { gap: 24px; }
  .mm-items, .mm-links { margin-inline: -8px; }
  .mm-item { gap: 10px; padding-inline: 8px; }
  .mm-item__icon { width: 34px; height: 34px; }
  .mm-item__icon svg { width: 17px; height: 17px; }
  .mm-item__title, .mm-link { font-size: 15px; }
  .mm-item__desc { font-size: 12.5px; }
  .mm-link { padding-inline: 8px; }
  .mm-glass { left: 18px; right: 18px; }
  .mm-devices { display: none; }
  .mm-body--solutions { grid-template-columns: minmax(0, 1fr) 240px; }
  .mm-link__icon { width: 28px; height: 28px; margin-right: 1px; }
  .mm-case { padding-inline: 14px; }
  .mm-case__mark img { height: 24px; }
  .mm-case__mark { font-size: 24px; }
  .mm-case__mark svg { width: 19px; height: 19px; }
  .mm-case__title { font-size: 14px; }
}

@media (max-width: 900px) {
  .nav__links {
    position: absolute; inset: 64px 0 auto; z-index: 20;
    margin-left: 0;
    max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 16px;
    box-shadow: 0 12px 24px -16px rgb(0 0 0 / .25);
  }
  .nav__links[hidden] { display: none; }
  .nav__item { display: block; }
  .nav__link { width: 100%; justify-content: space-between; padding: 12px 0; }

  .mm {
    position: static; z-index: auto;
    transform: none; visibility: visible; opacity: 0;
    display: none;
    background: none; border: 0; box-shadow: none;
    transition: none;
  }
  .mm.is-open { display: block; opacity: 1; }
  .mm__inner { padding: 2px 0 12px; max-width: none; }

  .mm-body { grid-template-columns: 1fr; gap: 12px; }
  .mm-eyebrow { margin: 4px 0 6px; }
  .mm-main > .mm-eyebrow { display: none; }
  .mm-items--3 { grid-template-columns: 1fr; }
  .mm-items, .mm-links { margin-inline: 0; }
  .mm-item, .mm-link { padding-inline: 0; }
  .mm-item:hover, .mm-link:hover { background: none; }
  .mm-groups { grid-template-columns: 1fr; gap: 14px; }
  .mm-link { font-size: 15px; }

  .mm-feature { min-height: 0; padding: 16px; }
  .mm-feature__head { max-width: none; }
  .mm-glass { position: relative; inset: auto; display: block; height: 170px; margin: 16px 0 -56px; }
  .mm-devices { display: none; }
  .mm-stores { position: relative; left: auto; bottom: auto; margin-top: 14px; }
  .mm-case { min-height: 200px; padding: 14px 16px 15px; }
  .mm-strip { margin-top: 14px; font-size: 13.5px; }
  .mm-strip__logos { display: none; }

  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; margin-left: auto;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); color: var(--ink-nav); cursor: pointer;
  }
  .nav__cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 12px; padding-top: 16px;
    border-top: 1px solid var(--hairline);
  }
  .nav__cta .btn { height: 42px; font-size: 15px; }
  .nav__actions { margin-left: 10px; gap: 8px; }
  .nav__actions .btn--ghost,
  .nav__plain { display: none; }
}

@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .hero__head > * { max-width: none; }
  .hero__title { font-size: 40px; letter-spacing: -.024em; }
  .hero__sub { font-size: 17px; max-width: 440px; }
  .ratings { gap: 20px; font-size: 13.5px; }
  .showcase { min-height: 0; padding: 20px 14px; border-radius: 20px; }
  .showcase__bg { border-radius: 20px; }
  .stat { min-height: 200px; padding: 24px; border-radius: 16px; }
  .stat__value { font-size: calc(42px * var(--stat-fit, 1)); }
  .stat__label { font-size: calc(18px * var(--stat-label-fit, 1)); }
  .stat__claim { font-size: 18px; }
  .marquee { height: 80px; }
  .marquee__track { gap: 44px; padding-right: 44px; }
}

@media (max-width: 520px) {
  .hero__title { font-size: 34px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .stat { min-height: 0; }
  /* one card a row: nothing to line up */
  .stats > .stat { grid-row: auto; }
  .stats > .stat:has(.stat__value) { display: flex; }
  .stats > .stat:has(.stat__value) > .stat__body { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero .hero__head > *, .hero .showcase, .hero .hero__aura { animation: none; }
  .hero__note { background: none; color: var(--ink-faint); -webkit-text-fill-color: currentColor; }
  .swap, .swap__word { transition: none; }
  * { scroll-behavior: auto !important; }
}

.brand-menu { position: fixed; z-index: 1000; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); font: 500 14px/1.2 var(--font-ui); }
.brand-menu[hidden] { display: none; }
.brand-menu button, .brand-menu a { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: none; color: var(--ink-nav); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.brand-menu button:hover, .brand-menu a:hover, .brand-menu :focus-visible { background: var(--hairline); outline: none; }
.brand-menu hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--border); }

/* Translated pages (src/i18n): headings in Japanese, Chinese and Korean break
   between words, not inside them, and balance their lines. */
/* a phrase too long for a phone may still break, so it never widens the page */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; text-wrap: balance; overflow-wrap: anywhere; }
:lang(zh) :is(h1, h2, h3) { text-wrap: balance; }
:lang(ko) :is(h1, h2, h3, p, li) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ko) :is(h1, h2, h3) { text-wrap: balance; }
