:root {
  color-scheme: light;
  --canvas: #f8f7f4;
  --canvas-strong: #f1eee8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-solid: #ffffff;
  --ink: #201b17;
  --muted: #756d65;
  --muted-strong: #554d46;
  --line: rgba(82, 61, 43, 0.13);
  --line-strong: rgba(82, 61, 43, 0.2);
  --brand: #f97316;
  --brand-deep: #c2410c;
  --brand-soft: #fff0e3;
  --brand-pale: #fff8f1;
  --success: #15803d;
  --success-soft: #eaf7ee;
  --shadow-card: 0 30px 80px rgba(83, 51, 22, 0.12);
  --shadow-button: 0 12px 24px rgba(194, 65, 12, 0.22);
  --radius-card: 28px;
  --radius-control: 15px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans",
    sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(249, 115, 22, 0.15), transparent 28%),
    radial-gradient(circle at 8% 78%, rgba(249, 115, 22, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfaf8 0%, var(--canvas) 52%, #f6f3ee 100%);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(80, 58, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 58, 40, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 78%);
  content: "";
  pointer-events: none;
}

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

img,
svg {
  display: block;
}

.page-shell {
  display: grid;
  width: min(1180px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  animation: settle-in 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(249, 115, 22, 0.2);
}

.node-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(21, 128, 61, 0.14);
  border-radius: 999px;
  color: #256434;
  background: rgba(234, 247, 238, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(14px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.1);
}

.migration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
  padding: 64px 0 70px;
}

.migration-story {
  max-width: 660px;
  animation: settle-in 620ms 60ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 670px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: var(--brand);
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.82;
  letter-spacing: 0.003em;
}

.trust-note {
  display: flex;
  max-width: 620px;
  gap: 13px;
  align-items: flex-start;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.trust-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(249, 115, 22, 0.16);
  border-radius: 13px;
  color: var(--brand-deep);
  background: rgba(255, 240, 227, 0.72);
}

.trust-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.trust-note p,
.privacy-copy,
.site-footer p,
.noscript-bar {
  margin: 0;
}

.trust-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.trust-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 700;
}

.handoff-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 248, 0.82));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(1.08);
  animation: settle-in 660ms 130ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.handoff-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #fb923c, var(--brand), #ea580c);
  content: "";
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-kicker {
  margin-bottom: 9px;
  font-size: 11px;
}

h2 {
  max-width: 250px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.countdown-value {
  display: flex;
  min-width: 74px;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}

.countdown-value span {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 790;
  line-height: 1;
  letter-spacing: -0.07em;
}

.countdown-value small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.route {
  margin-top: 34px;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 247, 244, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.route-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.route-labels > div {
  min-width: 0;
}

.route-labels span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.route-labels strong {
  display: block;
  overflow: hidden;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-destination {
  text-align: right;
}

.route-destination strong {
  color: var(--brand-deep);
}

.route-track {
  position: relative;
  height: 38px;
  margin-top: 10px;
}

.route-line,
.route-progress {
  position: absolute;
  top: 50%;
  right: 17px;
  left: 17px;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.route-line {
  background: rgba(194, 65, 12, 0.14);
}

.route-progress {
  right: auto;
  width: calc(100% - 34px);
  background: linear-gradient(90deg, var(--brand), #fb923c);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
}

.route-marker {
  position: absolute;
  top: 50%;
  left: 17px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 4px solid var(--surface-solid);
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  box-shadow:
    0 0 0 1px rgba(194, 65, 12, 0.12),
    0 8px 18px rgba(194, 65, 12, 0.26);
  transform: translate3d(0, -50%, 0);
  will-change: transform;
}

.route-marker svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.countdown-copy {
  min-height: 24px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.65;
}

.primary-action {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
  padding: 15px 18px;
  border-radius: var(--radius-control);
  color: #ffffff;
  background: linear-gradient(180deg, #fb8a34, var(--brand));
  box-shadow: var(--shadow-button), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  transition:
    box-shadow 160ms ease-out,
    filter 160ms ease-out,
    transform 100ms ease-out;
}

.primary-action svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.primary-action:hover {
  filter: saturate(1.06) brightness(0.98);
  box-shadow: 0 15px 30px rgba(194, 65, 12, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.primary-action:hover svg {
  transform: translateX(3px);
}

.primary-action:active {
  transform: scale(0.975);
}

.primary-action:focus-visible {
  outline: 4px solid rgba(249, 115, 22, 0.24);
  outline-offset: 3px;
}

.privacy-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.site-footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  animation: settle-in 560ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-footer p:last-child {
  color: var(--muted-strong);
}

.noscript-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 380px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  line-height: 1.6;
}

.is-complete .countdown-value,
.is-paused .countdown-value {
  color: var(--muted-strong);
}

.is-complete .route-marker,
.is-paused .route-marker {
  background: var(--muted);
  box-shadow:
    0 0 0 1px rgba(85, 77, 70, 0.12),
    0 8px 18px rgba(85, 77, 70, 0.18);
}

@keyframes settle-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 940px) {
  .page-shell {
    width: min(100% - 40px, 720px);
  }

  .migration-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 50px 0 56px;
  }

  .migration-story {
    max-width: none;
  }

  h1 {
    max-width: 680px;
    font-size: clamp(48px, 8.2vw, 66px);
  }

  .lead,
  .trust-note {
    max-width: 680px;
  }

  .handoff-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: 100%;
  }

  .topbar {
    min-height: 78px;
    padding: 0 20px;
  }

  .brand-lockup {
    gap: 9px;
    font-size: 17px;
  }

  .brand-lockup img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .node-status {
    padding: 7px 9px;
    font-size: 11px;
  }

  .node-status {
    gap: 7px;
  }

  .migration-layout {
    gap: 34px;
    padding: 36px 20px 42px;
  }

  .eyebrow {
    margin-bottom: 17px;
  }

  h1 {
    font-size: clamp(39px, 11.7vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.052em;
  }

  .lead {
    margin-top: 21px;
    font-size: 15px;
    line-height: 1.8;
  }

  .trust-note {
    margin-top: 28px;
    padding-top: 20px;
  }

  .trust-note p {
    font-size: 13px;
  }

  .handoff-card {
    padding: 25px 20px 21px;
    border-radius: 24px;
  }

  .card-head {
    gap: 14px;
  }

  h2 {
    max-width: 220px;
    font-size: 20px;
  }

  .countdown-value {
    min-width: 66px;
  }

  .countdown-value span {
    font-size: 37px;
  }

  .route {
    margin-top: 29px;
    padding: 14px 13px 16px;
  }

  .route-labels {
    gap: 12px;
  }

  .route-labels strong {
    font-size: 10px;
  }

  .route-track {
    height: 36px;
  }

  .route-line,
  .route-progress {
    right: 16px;
    left: 16px;
  }

  .route-progress {
    width: calc(100% - 32px);
  }

  .route-marker {
    left: 16px;
    width: 32px;
    height: 32px;
  }

  .countdown-copy {
    margin-top: 19px;
    font-size: 13px;
  }

  .primary-action {
    min-height: 52px;
  }

  .site-footer {
    display: grid;
    min-height: auto;
    gap: 7px;
    padding: 20px;
  }
}

@media (max-width: 390px) {
  .node-status {
    max-width: 148px;
    justify-content: center;
    text-align: center;
  }

  .card-head {
    display: block;
  }

  .countdown-value {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .route-labels strong {
    max-width: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .topbar,
  .migration-story,
  .handoff-card,
  .site-footer {
    animation: none;
  }

  .primary-action,
  .primary-action svg {
    transition-duration: 0.01ms;
  }
}
