@font-face {
  font-family: "Geist";
  src: url("assets/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  font-family: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #ffffff;
  --soft: #f4f5f6;
  --soft-strong: #e7e9eb;
  --ink: #18191b;
  --quiet: #5f6268;
  --muted: #6f737a;
  --line: rgba(24, 25, 27, 0.1);
  --white: #ffffff;
  --green: #20a875;
  --inverse-bg: #18191b;
  --inverse-text: #ffffff;
  --inverse-muted: #b9bcc2;
  --inverse-subtle: #a2a6ad;
  --inverse-surface: #292b2e;
  --inverse-line: rgba(255, 255, 255, 0.13);
  --telegram-bg: #eceef0;
  --telegram-text: #242528;
  --telegram-muted: #555960;
  --badge-bg: #d8dbde;
  --badge-text: #414449;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --scroll-thumb: rgba(24, 25, 27, 0.82);
  --shadow: rgba(24, 25, 27, 0.08);
  --shadow-strong: rgba(24, 25, 27, 0.16);
  --primary-hover: #303236;
  --soft-hover: #eceef0;
  --button-light-hover: #eef0f1;
  --container: 1140px;
  --pad: clamp(20px, 4vw, 58px);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
  scrollbar-color: var(--scroll-thumb) transparent;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.018em;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  color: var(--white);
  background: var(--ink);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.section {
  padding-block: clamp(88px, 9vw, 122px);
  scroll-margin-top: 90px;
}

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

.nav-wrap {
  position: fixed;
  z-index: 100;
  top: 16px;
  right: 0;
  left: 0;
  width: min(720px, calc(100% - 30px));
  margin-inline: auto;
}

.nav-shell {
  display: flex;
  min-height: 54px;
  padding: 7px;
  border-radius: 17px;
  align-items: center;
  gap: 18px;
  background: var(--nav-bg);
  box-shadow: 0 8px 24px var(--shadow);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.brand-link,
.nav-links,
.button {
  display: inline-flex;
  align-items: center;
}

.brand-link {
  min-width: 156px;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 640;
}

.brand-portrait {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  object-fit: cover;
  object-position: 50% 28%;
}

.nav-links {
  margin-inline: auto;
  justify-content: center;
  gap: 24px;
}

.nav-links a,
.nav-cta {
  font-size: 12.5px;
  font-weight: 610;
  letter-spacing: -0.014em;
}

.nav-links a {
  color: var(--quiet);
  transition: color 160ms ease;
}

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

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  min-height: 40px;
  padding-inline: 14px;
  border: 0;
  border-radius: 12px;
  align-items: center;
  gap: 6px;
  color: var(--white);
  background: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background 160ms ease;
}

.nav-cta:hover,
.button-dark:hover {
  background: var(--primary-hover);
}

.button {
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  justify-content: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 640;
  letter-spacing: -0.014em;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
}

.button:active {
  opacity: 0.78;
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-soft {
  color: var(--quiet);
  background: var(--soft);
}

.button-soft:hover {
  background: var(--soft-hover);
}

.button-white {
  color: var(--ink);
  background: var(--white);
}

.button-white:hover {
  background: var(--button-light-hover);
}

.contact-picker {
  position: relative;
  display: inline-flex;
}

.contact-trigger {
  touch-action: manipulation;
}

.contact-picker.is-open {
  z-index: 30;
}

.contact-chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  font-size: 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-picker.is-open .contact-chevron {
  transform: translateY(2px) rotate(225deg);
}

.contact-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 14px 36px var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -6px, 0);
  transform-origin: top right;
  contain: layout paint;
  will-change: opacity, transform;
  transition:
    opacity 150ms ease,
    visibility 150ms ease,
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-picker.is-open .contact-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.contact-picker-dropup .contact-menu {
  top: auto;
  bottom: calc(100% + 10px);
  transform: translate3d(0, 6px, 0);
  transform-origin: bottom right;
}

.contact-picker-dropup.is-open .contact-menu {
  transform: translate3d(0, 0, 0);
}

.contact-option {
  display: flex;
  min-height: 56px;
  padding: 9px 10px;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  transition: background 160ms ease;
}

.contact-option:hover,
.contact-option:focus-visible {
  background: var(--soft);
}

.contact-option:focus-visible {
  outline-offset: -2px;
}

.contact-option > span:first-child {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
}

.contact-option-telegram {
  margin-top: 4px;
  color: var(--telegram-text);
  background: var(--telegram-bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

.contact-option-telegram:hover,
.contact-option-telegram:focus-visible {
  background: var(--soft-strong);
}

.contact-option-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.contact-badge {
  display: inline-flex;
  min-height: 18px;
  padding-inline: 6px;
  border-radius: 999px;
  align-items: center;
  color: var(--badge-text);
  background: var(--badge-bg);
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.contact-option-telegram small,
.contact-option-telegram > span:last-child {
  color: var(--telegram-muted);
}

.contact-option strong {
  font-size: 12.5px;
  font-weight: 650;
}

.contact-option small {
  margin-top: 2px;
  color: var(--quiet);
  font-size: 11px;
  letter-spacing: -0.01em;
}

.contact-option > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.hero {
  padding-top: clamp(146px, 15vw, 184px);
  padding-bottom: 42px;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.status {
  display: inline-flex;
  min-height: 29px;
  margin: 0 0 25px;
  padding-inline: 11px;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  color: var(--quiet);
  background: var(--soft);
  font-size: 11px;
  font-weight: 580;
}

.status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(32, 168, 117, 0.1);
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 13px 0 0;
  font-size: clamp(43px, 6vw, 68px);
  font-weight: 585;
  line-height: 0.98;
  letter-spacing: -0.066em;
  text-wrap: balance;
}

.hero h1 span,
.section-heading h2 span,
.offers-heading h2 span,
.footer h2 span {
  display: block;
}

.hero-lead {
  max-width: 680px;
  margin: 23px auto 0;
  color: var(--quiet);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.52;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  margin-top: 27px;
  justify-content: center;
  gap: 9px;
}

.capability-list {
  display: flex;
  margin: 27px 0 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.capability-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 570;
}

.call-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 78px);
  padding: 8px;
  border-radius: 22px;
  gap: 8px;
  color: var(--inverse-text);
  background: var(--inverse-bg);
  box-shadow: 0 20px 60px var(--shadow-strong);
}

.path-node {
  position: relative;
  display: flex;
  min-height: 140px;
  padding: 18px;
  border-radius: 16px;
  flex-direction: column;
  background: var(--inverse-surface);
}

.path-node > span {
  color: var(--inverse-subtle);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.path-node strong {
  margin-top: auto;
  font-size: 16px;
  font-weight: 610;
  letter-spacing: -0.035em;
}

.path-node small {
  margin-top: 3px;
  color: var(--inverse-muted);
  font-size: 11.5px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 18px 68px;
  gap: 9px;
}

.proof-item {
  display: flex;
  min-height: 112px;
  padding: 18px;
  border-radius: 16px;
  flex-direction: column;
  background: var(--soft);
}

.proof-item strong {
  font-size: 20px;
  font-weight: 610;
  letter-spacing: -0.045em;
}

.proof-item span {
  max-width: 185px;
  margin-top: auto;
  color: var(--quiet);
  font-size: 11.5px;
  line-height: 1.4;
}

.problems,
.offers {
  background: var(--soft);
}

.section-heading {
  display: flex;
  margin-bottom: 38px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2,
.offers-heading h2,
.case-copy h2,
.fit h2,
.founder-note h2,
.footer h2 {
  margin: 0;
  font-size: clamp(31px, 3.8vw, 44px);
  font-weight: 575;
  line-height: 1.04;
  letter-spacing: -0.054em;
  text-wrap: balance;
}

.offers-heading {
  margin-bottom: 38px;
}

.offers-heading > p {
  margin: 15px 0 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.6;
}

.offers-heading > .regression-note {
  max-width: 860px;
  margin-top: 6px;
  font-size: 12.5px;
}

.section-heading > p {
  max-width: 440px;
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.6;
  text-align: right;
}

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

.problem-card {
  min-height: 244px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px var(--shadow);
}

.card-index {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  place-items: center;
  color: var(--quiet);
  background: var(--soft);
  font-size: 10px;
  font-weight: 650;
}

.problem-card h3 {
  margin: 47px 0 0;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.problem-card p {
  max-width: 450px;
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.58;
}

.case-study {
  background: var(--paper);
}

.case-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  padding: clamp(32px, 5vw, 58px);
  border-radius: 26px;
  gap: clamp(58px, 8vw, 110px);
  color: var(--inverse-text);
  background: var(--inverse-bg);
}

.case-copy .section-label,
.footer .section-label {
  color: var(--inverse-subtle);
}

.case-copy h2 {
  margin-top: 22px;
}

.case-copy > p:not(.section-label) {
  margin: 18px 0 0;
  color: var(--inverse-muted);
  font-size: 14px;
  line-height: 1.66;
}

code {
  color: var(--inverse-text);
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
}

.case-evidence {
  display: grid;
  gap: 8px;
}

.case-evidence > div {
  display: flex;
  min-height: 116px;
  padding: 18px;
  border-radius: 16px;
  flex-direction: column;
  background: var(--inverse-surface);
}

.case-evidence span {
  color: var(--inverse-subtle);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-evidence strong {
  margin-top: auto;
  font-size: 15px;
  font-weight: 610;
}

.case-evidence small {
  margin-top: 3px;
  color: var(--inverse-muted);
  font-size: 11.5px;
}

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

.offer-card {
  display: flex;
  padding: 28px;
  border-radius: 20px;
  flex-direction: column;
  background: var(--paper);
  box-shadow: 0 14px 40px var(--shadow);
}

.offer-featured {
  color: var(--inverse-text);
  background: var(--inverse-bg);
  box-shadow: 0 18px 50px var(--shadow-strong);
}

.offer-topline,
.offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.offer-topline span {
  padding: 6px 9px;
  border-radius: 9px;
  color: var(--quiet);
  background: var(--soft);
  font-size: 10px;
  font-weight: 600;
}

.offer-featured .offer-topline span {
  color: var(--inverse-muted);
  background: var(--inverse-surface);
}

.offer-card h3 {
  max-width: 440px;
  margin: 36px 0 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 570;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.offer-card > p {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 13.5px;
  line-height: 1.62;
}

.offer-featured > p {
  color: var(--inverse-muted);
}

.offer-card ul {
  display: grid;
  margin: 28px 0 34px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  gap: 13px;
  list-style: none;
}

.offer-featured ul {
  border-color: var(--inverse-line);
}

.offer-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
}

.offer-card li::before {
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--muted);
  content: "";
}

.offer-featured li::before {
  background: var(--inverse-muted);
}

.offer-footer {
  margin-top: auto;
  align-items: flex-end;
}

.offer-footer > strong {
  max-width: 150px;
  color: var(--quiet);
  font-size: 11.5px;
  font-weight: 580;
  line-height: 1.35;
}

.offer-featured .offer-footer > strong {
  color: var(--inverse-muted);
}

.audit-strip {
  display: flex;
  margin-top: 12px;
  padding: 17px 19px;
  border-radius: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  background: var(--soft-strong);
}

.audit-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audit-mark {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  border-radius: 11px;
  place-items: center;
  color: var(--quiet);
  background: var(--paper);
}

.audit-strip p {
  margin: 0;
  color: var(--quiet);
  font-size: 12.5px;
}

.audit-strip strong {
  color: var(--ink);
  font-weight: 640;
}

.audit-strip > span {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 640;
}

.fit-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(460px, 1.15fr);
  gap: clamp(60px, 10vw, 140px);
}

.fit h2 {
  max-width: 430px;
  margin-top: 20px;
}

.fit-list {
  display: grid;
}

.fit-list p {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(220px, 1.28fr);
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.fit-list p:first-child {
  padding-top: 0;
}

.fit-list p:last-child {
  border-bottom: 0;
}

.fit-list strong {
  font-size: 13px;
  font-weight: 630;
}

.fit-list span {
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.55;
}

.founder-note {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  margin-bottom: clamp(80px, 9vw, 120px);
  padding: 28px;
  border-radius: 20px;
  align-items: center;
  gap: 24px;
  background: var(--soft);
}

.founder-portrait {
  width: 96px;
  height: 104px;
  border-radius: 18px;
  background: var(--ink);
  object-fit: cover;
  object-position: 50% 28%;
}

.founder-note h2 {
  font-size: 24px;
}

.founder-note p {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.58;
}

.migration-subhead {
  max-width: 780px;
  margin: 20px auto 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 570;
  line-height: 1.12;
  letter-spacing: -0.046em;
  text-wrap: balance;
}

.migration-hero .hero-lead {
  margin-top: 17px;
}

.migration-hero .capability-list li {
  padding-inline: 13px;
}

.migration-reasons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.migration-reasons .problem-card {
  min-height: 230px;
}

.migration-reasons .problem-card h3 {
  margin-top: 40px;
}

.problem-detail summary {
  display: inline-flex;
  margin-top: 14px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 610;
  letter-spacing: -0.014em;
  cursor: pointer;
  list-style: none;
}

.problem-detail summary::-webkit-details-marker {
  display: none;
}

.problem-detail summary::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease;
  content: "";
}

.problem-detail[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.migration-note {
  justify-content: flex-start;
}

.migration-note p {
  max-width: 880px;
}

.migration-scope-shell {
  grid-template-columns: minmax(0, 0.68fr) minmax(520px, 1.32fr);
}

.migration-scope-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.migration-scope-groups article {
  display: flex;
  padding: 18px;
  border-radius: 16px;
  flex-direction: column;
  background: var(--inverse-surface);
}

.migration-scope-groups article > span {
  color: var(--inverse-subtle);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.migration-scope-groups ul {
  display: grid;
  margin: 0;
  padding: 16px 0 0;
  gap: 9px;
  list-style: none;
}

.migration-scope-groups li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--inverse-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.migration-scope-groups li::before {
  width: 4px;
  height: 4px;
  margin-top: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--inverse-subtle);
  content: "";
}

.migration-process-section {
  background: var(--paper);
}

.migration-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 8px;
  border-radius: 22px;
  gap: 8px;
  color: var(--inverse-text);
  background: var(--inverse-bg);
  box-shadow: 0 20px 60px var(--shadow-strong);
  list-style: none;
}

.migration-process li {
  display: flex;
  padding: 18px;
  border-radius: 16px;
  flex-direction: column;
  background: var(--inverse-surface);
}

.migration-step-label {
  margin: 0;
  color: var(--inverse-text);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.migration-process li > p:last-child {
  margin: 12px 0 0;
  color: var(--inverse-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.migration-two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(520px, 1.25fr);
  gap: clamp(60px, 10vw, 140px);
}

.migration-prose {
  max-width: 480px;
}

.migration-prose p {
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.66;
}

.migration-prose p + p {
  margin-top: 18px;
}

.migration-technical-list p:first-child {
  padding-top: 0;
}

.migration-experience-shell {
  align-items: start;
}

.migration-experience-shell .case-evidence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.migration-experience-shell .case-evidence > div {
  min-height: 148px;
}

.migration-engagement .offers-heading {
  max-width: 920px;
}

.migration-engagement .offers-heading .section-label {
  margin-bottom: 20px;
}

.migration-engagement-card {
  min-height: 0;
}

.migration-engagement-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  margin-top: 34px;
  gap: clamp(44px, 8vw, 96px);
}

.migration-engagement-copy h3 {
  margin: 0;
}

.migration-engagement-copy > div:first-child > p {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 13.5px;
  line-height: 1.62;
}

.migration-list-label {
  margin: 0;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.migration-engagement-card ul {
  margin: 13px 0 0;
  padding-top: 18px;
}

.migration-engagement-card .offer-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.migration-engagement-card .offer-footer > strong {
  max-width: 300px;
}

.migration-risk-note {
  max-width: 440px;
  color: var(--quiet);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: right;
}

/* The lede an assistant quotes. blog.css has .answer-block, but loading blog.css here would also
   apply its #content bottom padding to this page's <main>, and .section already pads both ends. */
.migration-summary {
  max-width: 820px;
  margin-top: clamp(8px, 1.5vw, 18px);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 32px);
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft);
}

.migration-summary .section-label {
  margin-bottom: 13px;
}

.migration-summary p:not(.section-label) {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(15.5px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.56;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.migration-summary p:last-child {
  margin-bottom: 0;
}

.migration-faq details {
  border-bottom: 1px solid var(--line);
}

.migration-faq summary {
  display: flex;
  padding: 18px 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink);
  font-size: clamp(15px, 1.5vw, 16.5px);
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: -0.024em;
  cursor: pointer;
  list-style: none;
}

.migration-faq summary::-webkit-details-marker {
  display: none;
}

.migration-faq summary::after {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--quiet);
  border-bottom: 1.5px solid var(--quiet);
  transform: translateY(-1px) rotate(45deg);
  transition: transform 220ms ease;
  content: "";
}

.migration-faq details[open] summary::after {
  transform: translateY(3px) rotate(225deg);
}

.migration-faq details p {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.62;
  text-wrap: pretty;
}

.migration-faq-footer {
  margin-top: clamp(28px, 3vw, 40px);
}

.footer {
  border-radius: 26px 26px 0 0;
  color: var(--inverse-text);
  background: var(--inverse-bg);
  overflow: hidden;
}

.footer-inner {
  padding: clamp(60px, 7vw, 84px) 0 22px;
}

.footer-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 54px;
}

.footer-copy {
  max-width: 760px;
}

.footer h2 {
  margin-top: 22px;
  font-size: clamp(30px, 4vw, 46px);
}

.footer-copy > p:not(.section-label) {
  max-width: 530px;
  margin: 18px 0 0;
  color: var(--inverse-muted);
  font-size: 14px;
}

.footer-cta {
  flex: 0 0 auto;
}

.footer-links {
  display: flex;
  margin-top: clamp(40px, 4.6vw, 56px);
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-notes-link {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--inverse-line);
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  color: var(--inverse-text);
  font-size: 12.5px;
  font-weight: 620;
  letter-spacing: -0.014em;
  transition: border-color 160ms ease, background 160ms ease;
}

.footer-notes-link:hover,
.footer-notes-link:focus-visible {
  border-color: var(--inverse-muted);
  background: var(--inverse-surface);
}

.footer-links-note {
  color: var(--inverse-subtle);
  font-size: 11.5px;
}

.footer-meta {
  display: flex;
  margin-top: clamp(62px, 7vw, 82px);
  padding-top: 19px;
  border-top: 1px solid var(--inverse-line);
  justify-content: space-between;
  gap: 24px;
  color: var(--inverse-subtle);
  font-size: 11.5px;
}

.footer-identity {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.footer-powered {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.footer-powered a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}

.footer-powered img {
  width: 112px;
  height: auto;
  opacity: 0.72;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-powered a:hover img,
.footer-powered a:focus-visible img {
  opacity: 1;
  transform: scale(1.025);
}

@media (max-width: 900px) {
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-shell,
  .fit-layout,
  .migration-two-column,
  .migration-engagement-copy {
    grid-template-columns: 1fr;
  }

  .case-shell {
    gap: 48px;
  }

  .fit-layout {
    gap: 44px;
  }

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

  .migration-two-column,
  .migration-engagement-copy {
    gap: 44px;
  }

  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 18px;
    --radius: 16px;
  }

  .section {
    padding-block: 82px;
  }

  .nav-wrap {
    top: 11px;
    width: calc(100% - 22px);
  }

  .nav-shell {
    min-height: 52px;
    padding: 6px;
  }

  .brand-link {
    min-width: 0;
  }

  .brand-name,
  .nav-links {
    display: none;
  }

  .nav-contact {
    margin-left: auto;
    position: static;
  }

  .contact-menu {
    width: min(250px, calc(100vw - 36px));
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.5vw, 53px);
  }

  .hero h1 span {
    display: inline;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-actions {
    width: 100%;
    max-width: 430px;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions > .contact-picker,
  .offer-footer .contact-picker,
  .footer-contact {
    width: 100%;
  }

  .offer-footer .contact-trigger,
  .footer-contact .contact-trigger {
    width: 100%;
  }

  .call-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
  }

  .path-node {
    min-height: 126px;
    padding: 15px;
  }

  .proof {
    padding-bottom: 54px;
  }

  .section-heading {
    display: block;
    margin-bottom: 29px;
  }

  .section-heading > p {
    max-width: 560px;
    margin-top: 15px;
    text-align: left;
  }

  .offers-heading {
    margin-bottom: 29px;
  }

  .offers-heading > p {
    margin-top: 15px;
  }

  .problem-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .migration-process {
    grid-template-columns: 1fr;
  }

  .problem-card {
    min-height: 226px;
    padding: 22px;
  }

  .case-shell {
    padding: 28px 22px 22px;
    border-radius: 22px;
  }

  .offer-card {
    min-height: 0;
    padding: 24px 21px;
  }

  .offer-footer {
    margin-top: 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .offer-footer > strong {
    max-width: none;
  }

  .migration-risk-note {
    max-width: none;
    text-align: left;
  }

  .audit-strip,
  .audit-strip > div {
    align-items: flex-start;
  }

  .audit-strip {
    flex-direction: column;
  }

  .fit-list p {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .founder-note {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 20px;
    gap: 16px;
  }

  .founder-portrait {
    width: 76px;
    height: 82px;
    border-radius: 15px;
  }

  .footer {
    border-radius: 22px 22px 0 0;
  }

  .footer-main {
    gap: 32px;
  }

  .footer-cta {
    width: 100%;
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .footer-powered {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .nav-cta {
    padding-inline: 12px;
    font-size: 12px;
  }

  .call-path,
  .proof {
    grid-template-columns: 1fr;
  }

  .path-node {
    min-height: 114px;
  }

  .proof-item {
    min-height: 100px;
  }

  .migration-scope-groups,
  .migration-experience-shell .case-evidence {
    grid-template-columns: 1fr;
  }

  .offer-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .founder-note {
    grid-template-columns: 1fr;
  }
}

@media print {
  .skip-link,
  .nav-wrap {
    display: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111214;
    --soft: #1a1c1f;
    --soft-strong: #24262a;
    --ink: #f2f3f4;
    --quiet: #b5b8be;
    --muted: #979ba3;
    --line: rgba(255, 255, 255, 0.13);
    --white: #111214;
    --green: #2bc58e;
    --inverse-bg: #f2f3f4;
    --inverse-text: #18191b;
    --inverse-muted: #555960;
    --inverse-subtle: #60646a;
    --inverse-surface: #e3e5e8;
    --inverse-line: rgba(24, 25, 27, 0.13);
    --telegram-bg: #2a2c30;
    --telegram-text: #f2f3f4;
    --telegram-muted: #b8bbc1;
    --badge-bg: #3b3e43;
    --badge-text: #f0f1f2;
    --nav-bg: rgba(28, 30, 34, 0.82);
    --scroll-thumb: rgba(242, 243, 244, 0.72);
    --shadow: rgba(0, 0, 0, 0.26);
    --shadow-strong: rgba(0, 0, 0, 0.38);
    --primary-hover: #dfe1e4;
    --soft-hover: #23252a;
    --button-light-hover: #202226;
  }

  .footer-powered img {
    filter: invert(1);
  }

  /* A black shadow vanishes on a near-black page, so the ring is what gives the pill its edge. */
  .nav-shell {
    box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px var(--shadow);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
