:root {
  --bg: #fbfbfd;
  --bg-soft: #f6f8fb;
  --card: #ffffff;
  --ink: #1b2230;
  --text: #3e4858;
  --muted: #747f90;
  --faint: #a4adba;
  --line: #e8ebf1;
  --line-strong: #dde2ea;
  --accent: #f69988;
  --accent-strong: #ef826d;
  --accent-dark: #d96650;
  --shadow: 0 26px 70px -46px rgba(27, 34, 48, .42);
  --shadow-soft: 0 18px 48px -36px rgba(27, 34, 48, .26);
  --radius: 22px;
  --topbar-h: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 84% 18%, rgba(246, 153, 136, .14), transparent 28rem),
    radial-gradient(circle at 15% 8%, rgba(216, 228, 244, .44), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, var(--bg-soft) 100%);
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

p,
h1 {
  margin: 0;
}

button {
  font: inherit;
}

.topbar {
  min-height: var(--topbar-h);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 19px clamp(20px, 4.4vw, 64px) 12px;
  position: relative;
  z-index: 5;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 26px -20px rgba(27, 34, 48, .5);
  overflow: hidden;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.topbar-spacer {
  flex: 1 1 auto;
}

.authority-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.3vw, 30px);
}

.authority-nav a {
  color: #687385;
  font-size: .91rem;
  font-weight: 650;
  white-space: nowrap;
  transition: color .18s ease;
}

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

main {
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100dvh - var(--topbar-h));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.hero {
  width: min(100%, 1228px);
  margin: 0 auto;
  padding: clamp(24px, 5.1vh, 60px) clamp(20px, 4.4vw, 64px) 18px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
}

.hero-copy {
  min-width: 0;
}

h1 {
  max-width: 8.5ch;
  color: var(--ink);
  font-size: clamp(4.35rem, 6.25vw, 5.25rem);
  font-weight: 820;
  line-height: .93;
  letter-spacing: 0;
}

.deck {
  max-width: 45ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.07rem, 1.28vw, 1.22rem);
  line-height: 1.64;
}

.deck strong {
  color: var(--ink);
  font-weight: 760;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}

.trust-chips li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  color: #465061;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 28px -24px rgba(27, 34, 48, .28);
  font-size: .91rem;
  font-weight: 680;
}

.cta {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 38px -22px rgba(239, 130, 109, .74), inset 0 1px 0 rgba(255, 255, 255, .28);
  font-weight: 780;
  letter-spacing: 0;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
  box-shadow: 0 24px 44px -22px rgba(239, 130, 109, .86), inset 0 1px 0 rgba(255, 255, 255, .36);
}

.cta:focus-visible,
.route-switch:focus-visible,
.authority-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(246, 153, 136, .36);
  outline-offset: 4px;
}

.cta-hero {
  min-width: min(100%, 232px);
  min-height: 62px;
  margin-top: 32px;
  padding: 0 32px;
  font-size: 1.06rem;
}

.stake-console {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .86)),
    var(--card);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .86);
  position: relative;
}

.stake-console::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232, 235, 241, .58);
  border-radius: 16px;
  pointer-events: none;
}

.console-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.selector-pill,
.preview-pill {
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: #465061;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: .88rem;
  font-weight: 720;
  white-space: nowrap;
}

.selector-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(246, 153, 136, .16);
}

.preview-pill {
  color: var(--muted);
}

.preview-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(246, 153, 136, .48);
  animation: previewPulse 2.4s ease-out infinite;
}

.route-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  position: relative;
  isolation: isolate;
  z-index: 1;
}

.asset-panel {
  min-width: 0;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 18px 42px -34px rgba(27, 34, 48, .34);
}

.asset-label {
  color: var(--faint);
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.asset-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.asset-chip img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(221, 226, 234, .9), 0 16px 30px -24px rgba(27, 34, 48, .5);
}

.asset-chip div {
  min-width: 0;
}

.asset-chip strong,
.asset-chip span {
  display: block;
}

.asset-chip strong {
  color: var(--ink);
  font-size: clamp(1.1rem, 1.48vw, 1.28rem);
  font-weight: 810;
  line-height: 1.1;
}

.asset-chip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 610;
  line-height: 1.28;
}

.route-switch {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 9px var(--card), 0 18px 34px -24px rgba(27, 34, 48, .52);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

.route-switch span {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.route-switch:hover {
  color: var(--accent-dark);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 9px var(--card), 0 22px 38px -24px rgba(27, 34, 48, .62);
  transform: translate(-50%, -50%) scale(1.04);
}

.route-switch.is-reversed span {
  transform: rotate(180deg);
}

.route-meta {
  min-height: 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 15px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: .88rem;
  font-weight: 680;
  position: relative;
  z-index: 1;
}

.hop-dots {
  min-width: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hop-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9dee8;
}

.hop-dots i:nth-child(2),
.hop-dots i:nth-child(3) {
  background: rgba(246, 153, 136, .62);
}

.cta-console {
  width: 100%;
  margin-top: 17px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.texture-band {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(232, 235, 241, .76);
  border-bottom: 1px solid rgba(232, 235, 241, .64);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .86), transparent),
    #f5f7fb;
}

.texture-inner {
  width: min(100%, 1228px);
  height: 48px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 68px);
  padding: 0 clamp(20px, 4.4vw, 64px);
  opacity: .88;
}

.texture-inner span {
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, transparent, #dfe4ec, transparent);
}

.texture-inner span::before,
.texture-inner span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid #dfe4ec;
  border-radius: 50%;
  background: var(--bg-soft);
  transform: translateY(-50%);
}

.texture-inner span::before {
  left: 0;
}

.texture-inner span::after {
  right: 0;
}

.footer {
  width: min(100%, 1228px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(20px, 4.4vw, 64px) 18px;
  color: #8993a3;
  font-size: .82rem;
  font-weight: 590;
}

@keyframes previewPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 153, 136, .45);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(246, 153, 136, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(246, 153, 136, 0);
  }
}

@media (min-width: 861px) {
  html,
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  :root {
    --topbar-h: 64px;
  }

  .topbar {
    padding-top: 13px;
    padding-bottom: 8px;
  }

  .hero {
    padding-top: 18px;
    gap: clamp(28px, 4.6vw, 62px);
  }

  h1 {
    font-size: clamp(3.6rem, 5.6vw, 4.6rem);
  }

  .deck {
    margin-top: 18px;
    font-size: 1.02rem;
    line-height: 1.52;
  }

  .trust-chips {
    margin-top: 17px;
  }

  .cta-hero {
    min-height: 54px;
    margin-top: 22px;
  }

  .stake-console {
    padding: 18px;
  }

  .console-chrome {
    margin-bottom: 14px;
  }

  .asset-panel {
    min-height: 132px;
  }

  .route-meta {
    min-height: 43px;
    margin-top: 12px;
  }

  .cta-console {
    min-height: 51px;
    margin-top: 12px;
  }

  .texture-inner {
    height: 34px;
  }

  .footer {
    padding-top: 10px;
    padding-bottom: 12px;
  }
}

@media (min-width: 861px) and (max-height: 620px) {
  :root {
    --topbar-h: 56px;
  }

  .topbar {
    padding-top: 9px;
    padding-bottom: 6px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand img {
    width: 29px;
    height: 29px;
  }

  .hero {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  h1 {
    font-size: clamp(3rem, 4.8vw, 3.85rem);
  }

  .deck {
    margin-top: 12px;
    font-size: .96rem;
    line-height: 1.42;
  }

  .trust-chips {
    margin-top: 12px;
  }

  .trust-chips li {
    min-height: 32px;
    font-size: .82rem;
  }

  .cta-hero {
    min-height: 48px;
    margin-top: 15px;
  }

  .stake-console {
    padding: 14px;
  }

  .asset-panel {
    min-height: 112px;
    padding: 14px;
  }

  .route-meta {
    min-height: 40px;
  }

  .texture-inner {
    height: 28px;
  }

  .footer {
    padding-top: 7px;
    padding-bottom: 9px;
    font-size: .76rem;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 34px;
  }

  h1 {
    max-width: none;
    font-size: clamp(3.25rem, 9.4vw, 4.4rem);
  }

  .deck {
    max-width: 58ch;
  }

  .stake-console {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 62px;
    padding: 14px 16px 8px;
  }

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

  main {
    min-height: auto;
    display: block;
  }

  .hero {
    padding: 42px 16px 22px;
  }

  .deck {
    margin-top: 20px;
    line-height: 1.56;
  }

  .trust-chips {
    gap: 9px;
  }

  .cta-hero {
    width: 100%;
    margin-top: 27px;
  }

  .route-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .asset-panel {
    min-height: 124px;
  }

  .route-switch {
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 0 0 9px var(--card), 0 18px 34px -24px rgba(27, 34, 48, .52);
  }

  .route-switch span {
    transform: rotate(90deg);
  }

  .route-switch.is-reversed span {
    transform: rotate(270deg);
  }

  .route-meta {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 12px;
    text-align: center;
  }

  .footer {
    display: block;
    padding: 15px 16px 20px;
  }

  .footer p + p {
    margin-top: 5px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: .95rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  h1 {
    font-size: clamp(2.85rem, 12vw, 3.5rem);
    line-height: .96;
  }

  .deck {
    font-size: 1rem;
  }

  .trust-chips li {
    min-height: 36px;
    padding: 0 12px;
    font-size: .86rem;
  }

  .stake-console {
    padding: 14px;
  }

  .console-chrome {
    gap: 8px;
    margin-bottom: 14px;
  }

  .selector-pill,
  .preview-pill {
    min-height: 34px;
    padding: 0 10px;
    font-size: .82rem;
  }

  .asset-panel {
    padding: 15px;
  }

  .asset-chip {
    gap: 11px;
  }

  .asset-chip img {
    width: 38px;
    height: 38px;
  }

  .texture-inner {
    height: 38px;
    grid-template-columns: repeat(3, 1fr);
  }

  .texture-inner span:nth-child(n+4) {
    display: none;
  }
}

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