@font-face {
  font-family: "Onest";
  src: url("/app/fonts/onest-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("/app/fonts/onest-semibold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #f3f4f6;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #626772;
  --line: rgba(22, 24, 29, .12);
  --blue: #4963d8;
  --blue-deep: #2f43a7;
  --coral: #ec765b;
  --night: #16181d;
  --font: "Onest", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; margin: 0; }
a { color: inherit; }

.hero { min-height: 100svh; overflow: hidden; padding: 24px max(24px, calc((100vw - 1180px) / 2)) 0; position: relative; }
.masthead { align-items: center; display: flex; justify-content: space-between; position: relative; z-index: 2; }
.wordmark { font-size: 25px; font-weight: 800; letter-spacing: 0; text-decoration: none; }
.wordmark span { color: var(--coral); }
.masthead-link { border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 600; padding-bottom: 2px; text-decoration: none; }
.hero-copy { margin: clamp(72px, 12vh, 132px) auto 0; max-width: 850px; position: relative; text-align: center; z-index: 1; }
.eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; margin: 0 0 15px; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(42px, 6.3vw, 82px); line-height: .99; margin-bottom: 24px; }
.hero-lede { color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); margin: 0 auto 28px; max-width: 610px; }
.telegram-action { align-items: center; background: var(--blue); border-radius: 14px; color: #fff; display: inline-flex; font-size: 16px; font-weight: 600; gap: 22px; min-height: 54px; padding: 0 18px 0 21px; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.telegram-action:hover { background: var(--blue-deep); transform: translateY(-2px); }
.telegram-action:focus-visible, .masthead-link:focus-visible, .wordmark:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.arrow { font-size: 23px; font-weight: 400; line-height: 1; }
.availability { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

.choice-stage { height: clamp(350px, 42vw, 515px); margin: clamp(38px, 7vw, 70px) auto 0; max-width: 960px; position: relative; }
.stage-line { border-top: 1px solid var(--line); left: -12vw; position: absolute; right: -12vw; top: 49%; }
.choice-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; position: absolute; text-transform: uppercase; top: 19%; }
.choice-label--left { left: 8%; }
.choice-label--right { right: 8%; }
.poster { background: #d4d7df; box-shadow: 0 22px 45px rgba(22, 24, 29, .14); height: clamp(200px, 27vw, 330px); overflow: hidden; position: absolute; top: 22%; transform-origin: bottom center; width: clamp(132px, 17vw, 205px); }
.poster img { display: block; height: 100%; object-fit: cover; width: 100%; }
.poster--one { animation: settle-left 5.2s ease-in-out infinite; left: 17%; transform: rotate(-11deg); }
.poster--two { animation: settle-center 5.2s ease-in-out infinite; left: calc(50% - clamp(66px, 8.5vw, 102px)); top: 15%; transform: rotate(2deg); z-index: 2; }
.poster--three { animation: settle-right 5.2s ease-in-out infinite; right: 17%; transform: rotate(11deg); }
.decision { background: var(--night); bottom: 0; box-shadow: 0 24px 42px rgba(22, 24, 29, .22); color: #fff; left: 50%; max-width: 325px; padding: 16px 18px 18px; position: absolute; transform: translateX(-50%); width: min(58vw, 325px); z-index: 3; }
.decision-top { align-items: center; color: #c7cad2; display: flex; font-size: 12px; justify-content: space-between; margin-bottom: 18px; }
.match-dot { background: #75cb9b; border-radius: 99px; height: 9px; width: 9px; }
.decision strong { display: block; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.1; }
.decision p { color: #c7cad2; font-size: 13px; line-height: 1.35; margin: 7px 0 0; }

.principle { background: var(--surface); display: grid; gap: 44px; grid-template-columns: 1.35fr .65fr; padding: clamp(80px, 12vw, 156px) max(24px, calc((100vw - 1180px) / 2)); }
.principle .eyebrow { grid-column: 1 / -1; margin-bottom: -24px; }
.principle h2, .closing h2 { font-size: clamp(31px, 4.2vw, 58px); line-height: 1.02; margin: 0; }
.principle-copy { color: var(--muted); font-size: 17px; max-width: 380px; }
.principle-copy p + p { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.closing { background: var(--blue); color: #fff; padding: clamp(84px, 13vw, 160px) max(24px, calc((100vw - 1180px) / 2)); }
.closing .eyebrow { color: rgba(255, 255, 255, .65); }
.closing h2 { margin-bottom: 32px; }
.telegram-action--light { background: #fff; color: var(--ink); }
.telegram-action--light:hover { background: #e8ebff; }

@keyframes settle-left { 0%, 100% { transform: rotate(-11deg) translateY(0); } 50% { transform: rotate(-8deg) translateY(-12px); } }
@keyframes settle-center { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-15px); } }
@keyframes settle-right { 0%, 100% { transform: rotate(11deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-10px); } }

@media (max-width: 680px) {
  .hero { min-height: auto; padding: 18px 20px 0; }
  .masthead-link { font-size: 13px; }
  .hero-copy { margin-top: 72px; text-align: left; }
  h1 { font-size: clamp(41px, 12vw, 58px); }
  .hero-lede { font-size: 17px; }
  .choice-stage { height: 336px; margin-top: 36px; }
  .choice-label { top: 14%; }
  .choice-label--left { left: 0; }
  .choice-label--right { right: 0; }
  .poster { height: 213px; top: 22%; width: 132px; }
  .poster--one { left: 1%; }
  .poster--two { left: calc(50% - 66px); top: 17%; }
  .poster--three { right: 1%; }
  .decision { padding: 13px 15px 15px; width: min(74vw, 295px); }
  .decision-top { margin-bottom: 13px; }
  .principle { display: block; padding: 76px 20px; }
  .principle .eyebrow { margin-bottom: 14px; }
  .principle h2 { margin-bottom: 34px; }
  .principle-copy { font-size: 16px; }
  .closing { padding: 76px 20px; }
}

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

/* Migration page: one quiet hand-off, kept separate from the marketing hero. */
.migration-page {
  --migration-blue: #4963d8;
  --migration-blue-deep: #2f43a7;
  --migration-coral: #ec765b;
  --migration-ink: #16181d;
  --migration-muted: #626772;
  --migration-line: rgba(22, 24, 29, .14);
  align-items: stretch;
  background: var(--canvas);
  color: var(--migration-ink);
  display: flex;
  min-height: 100svh;
}

.migration-page__shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0 auto;
  max-width: 704px;
  padding: 28px 24px 24px;
  width: 100%;
}

.migration-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.migration-wordmark {
  color: var(--migration-ink);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.migration-wordmark span { color: var(--migration-coral); }

.migration-header__label,
.migration-eyebrow,
.migration-route__label {
  color: var(--migration-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.migration-header__label { letter-spacing: .07em; }

.migration-card {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(22, 24, 29, .10);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(31, 35, 48, .10), 0 3px 10px rgba(31, 35, 48, .04);
  margin: auto 0;
  overflow: hidden;
  padding: clamp(30px, 7vw, 62px);
  position: relative;
}

.migration-card::before {
  background: var(--migration-coral);
  border-radius: 99px;
  content: "";
  height: 8px;
  left: clamp(30px, 7vw, 62px);
  position: absolute;
  top: 0;
  width: 48px;
}

.migration-card__intro { max-width: 510px; }
.migration-eyebrow { margin: 0 0 20px; }

.migration-card h1 {
  color: var(--migration-ink);
  font-size: clamp(44px, 8vw, 72px);
  letter-spacing: 0;
  line-height: .95;
  margin: 0 0 24px;
}

.migration-card h1 em {
  color: var(--migration-blue);
  font-style: normal;
}

.migration-lede {
  color: var(--migration-muted);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.45;
  margin: 0;
  max-width: 510px;
}

.migration-route {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  margin: clamp(42px, 8vw, 68px) 0 clamp(36px, 7vw, 54px);
}

.migration-route__node { min-width: 0; }

.migration-route__node strong {
  display: block;
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.2;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.migration-route__node--new strong { color: var(--migration-blue); }

.migration-route__line {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.migration-route__line::before {
  border-top: 1px solid var(--migration-line);
  content: "";
  left: -10px;
  position: absolute;
  right: -10px;
  top: 50%;
}

.migration-route__arrow {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--migration-line);
  border-radius: 99px;
  color: var(--migration-blue);
  display: inline-flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 40px;
}

.migration-card__action { max-width: 380px; }

.migration-cta {
  align-items: center;
  background: var(--migration-blue);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(73, 99, 216, .22);
  color: #fff;
  display: flex;
  font-size: 16px;
  font-weight: 650;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 17px 0 20px;
  text-decoration: none;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.migration-cta:hover {
  background: var(--migration-blue-deep);
  box-shadow: 0 11px 24px rgba(73, 99, 216, .28);
  transform: translateY(-2px);
}

.migration-cta:focus-visible,
.migration-wordmark:focus-visible,
.migration-footer a:focus-visible {
  outline: 3px solid var(--migration-coral);
  outline-offset: 4px;
}

.migration-cta__arrow { font-size: 23px; font-weight: 400; line-height: 1; }

.migration-hint {
  color: var(--migration-muted);
  font-size: 13px;
  margin: 12px 0 0;
}

.migration-footer {
  align-items: center;
  color: var(--migration-muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding-top: 20px;
}

.migration-footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .migration-page__shell { padding: 20px 16px 18px; }
  .migration-card { border-radius: 22px; padding: 32px 24px 28px; }
  .migration-card::before { left: 24px; }
  .migration-route { gap: 12px; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); margin: 40px 0 34px; }
  .migration-route__line::before { left: -6px; right: -6px; }
  .migration-route__arrow { font-size: 18px; height: 34px; width: 34px; }
  .migration-route__node strong { font-size: 16px; }
  .migration-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
