/* ------------------------------------------------------------------
   Straits landing - single viewport, full-bleed video background
   ------------------------------------------------------------------ */

@font-face {
  font-family: "Geist Pixel Circle";
  src:
    url("fonts/GeistPixel-Circle.woff2") format("woff2"),
    url("https://cdn.jsdelivr.net/npm/geist@1.7.2/dist/fonts/geist-pixel/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Background video ---------- */
.bg {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  /* own compositor layer; no CSS filters here, they re-render every frame and cause jank */
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 1s linear;
}

.bg-video.is-on {
  opacity: 1;
}

.bg-video.is-incoming {
  z-index: 1;
}

/* Legibility scrim: lifts the type off the light band of the video without hiding it */
.bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(70% 52% at 50% 48%, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.46) 100%);
}

/* ---------- Page composition ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow), 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
  padding: 6px 6px 8px;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  transition: opacity 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.sign-in {
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 20px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  box-shadow: var(--nav-shadow), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 14.5px);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  display: none;
}

/* ---------- Hero: centered copy, wide swap card below ---------- */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: clamp(14px, 2.6vh, 30px) auto 0;
  gap: clamp(18px, 3vh, 30px);
}

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

/* ---------- Swap box (native) ---------- */
.swap-card {
  position: relative;
  width: min(880px, 100%);
  padding: clamp(14px, 2.4vw, 24px) clamp(14px, 2.4vw, 26px) clamp(16px, 2.4vw, 24px);
  border-radius: 22px;
  background: rgba(10, 10, 13, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-mono);
}

/* steps */
.sx-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6f78;
  padding: 2px 2px 14px;
}

.sx-steps i {
  font-style: normal;
  color: #4c4c55;
}

.sx-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sx-step.on {
  color: #fff;
  font-weight: 600;
}

.sx-step b {
  font-weight: 600;
  color: #b3b3bb;
}

.sx-step img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* tabs + rate */
.sx-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.sx-tabgroup {
  display: flex;
  gap: 4px;
}

.sx-tab {
  border: 0;
  background: none;
  color: #8f8f98;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 14px 12px;
  cursor: pointer;
  position: relative;
}

.sx-tab.on {
  color: #fff;
}

.sx-tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #fff;
}

.sx-rate {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.sx-ratetxt {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sx-rate .sw-live {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}

/* the two coin panels */
.sx-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.sx-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #0b0b0e;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sx-coin {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 18px 16px;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-mono);
  border-radius: 6px 6px 0 0;
  transition: background 0.15s ease;
}

.sx-coin:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sx-logo {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
}

.sx-logo > img:first-child {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1c1c22;
  object-fit: cover;
  display: block;
}

.sx-netdot {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #0b0b0e;
  background: #0b0b0e;
  object-fit: cover;
}

.sx-coininfo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.sx-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8f98;
}

.sx-sym {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sx-sym b {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.sx-sym small {
  font-size: 12px;
  color: #8f8f98;
  font-variant-numeric: tabular-nums;
}

.sx-name {
  font-size: 14px;
  color: #d0d0d6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sx-net {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #e6e6ea;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sx-chev {
  color: #6f6f78;
  flex-shrink: 0;
}

.sx-amountrow {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sx-amountrow label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8f98;
}

.sx-amountbox {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.sx-amount {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  padding: 0;
  outline: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sx-amount::placeholder {
  color: #4c4c55;
}

.is-quoting .sx-out {
  color: #6f6f78;
  animation: swPulse 1.1s ease-in-out infinite;
}

.sx-usd {
  font-size: 12px;
  color: #8f8f98;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.sx-arrow {
  align-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #0b0b0e;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.5, 1.4, 0.4, 1), background 0.15s ease;
}

.sx-arrow:hover {
  background: #1a1a20;
}

.sx-arrow.is-spun {
  transform: rotate(180deg);
}

/* route meta strip */
.sx-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.sx-meta span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sx-meta em {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f8f98;
}

.sx-meta b {
  font-weight: 500;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* receiving address */
.sx-dest {
  margin-top: 16px;
}

.sx-dest label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b3b3bb;
  margin-bottom: 8px;
}

.sx-dest label span {
  color: #6f6f78;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 11.5px;
  white-space: nowrap;
}

.sx-destrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #0b0b0e;
  transition: border-color 0.15s ease;
}

.sx-destrow:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
}

.sx-destrow input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
}

.sx-destrow input::placeholder {
  color: #5b5b64;
}

.sx-getaddr {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.sx-getaddr:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* the big button */
.sx-cta {
  margin-top: 16px;
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 26px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sx-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 34px rgba(255, 255, 255, 0.35);
}

.sx-cta:disabled {
  background: #1f1f25;
  color: #8f8f98;
  box-shadow: none;
  cursor: not-allowed;
}

.sx-cta.sw-cta-warn:disabled {
  color: #f5b23d;
}

.sw-foot {
  font-family: var(--font-sans);
}

.sw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
}

.sw-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.sw-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #9a9aa3;
  font-variant-numeric: tabular-nums;
}

.sw-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  animation: swPing 2.4s ease-out infinite;
}

@keyframes swPing {
  0%   { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); }
}

.sw-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 14px 13px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sw-panel:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.sw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sw-main {
  margin-top: 8px;
}

.sw-label {
  font-size: 12px;
  font-weight: 500;
  color: #8f8f98;
  letter-spacing: 0.01em;
}

.sw-usd {
  font-size: 12px;
  color: #8f8f98;
  font-variant-numeric: tabular-nums;
  min-height: 15px;
}

.sw-amount {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.02em;
  padding: 0;
  outline: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-amount::placeholder {
  color: #5b5b64;
}

.sw-out {
  color: #fff;
}

.is-quoting .sw-out {
  color: #6f6f78;
  animation: swPulse 1.1s ease-in-out infinite;
}

@keyframes swPulse {
  50% { opacity: 0.45; }
}

.sw-asset {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  max-width: 56%;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a20;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sw-asset:hover {
  background: #23232a;
  border-color: rgba(255, 255, 255, 0.24);
}

.sw-asset svg {
  color: #8f8f98;
  flex-shrink: 0;
}

.sw-coin {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.sw-coin > img:first-child,
.sw-coin-ph {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: block;
  background: #2a2a31;
  object-fit: cover;
}

.sw-coin-ph {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #ddd;
}

.sw-netdot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #15151a;
  background: #15151a;
  object-fit: cover;
}

.sw-asset-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  min-width: 0;
}

.sw-asset-txt b {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.sw-asset-txt small {
  font-size: 11px;
  color: #8f8f98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sw-flipwrap {
  display: flex;
  justify-content: center;
  height: 0;
  position: relative;
  z-index: 2;
}

.sw-flip {
  width: 38px;
  height: 38px;
  margin-top: -13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a20;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.5, 1.4, 0.4, 1), background 0.15s ease;
}

.sw-flip:hover {
  background: #23232a;
}

.sw-flip.is-spun {
  transform: rotate(180deg);
}

.sw-panel + .sw-flipwrap + .sw-panel {
  margin-top: 6px;
}

.sw-info {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.sw-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  font-size: 13px;
}

.sw-i + .sw-i {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sw-i span {
  color: #8f8f98;
}

.sw-i b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-dest {
  margin-top: 12px;
}

.sw-dest label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #b3b3bb;
  margin-bottom: 7px;
}

.sw-dest label span {
  font-weight: 400;
  color: #6f6f78;
  font-size: 11px;
  white-space: nowrap;
}

.sw-dest input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sw-dest input::placeholder {
  color: #5b5b64;
}

.sw-dest input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.sw-cta {
  margin-top: 14px;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sw-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.4);
}

.sw-cta:disabled {
  background: #1f1f25;
  color: #7e7e87;
  box-shadow: none;
  cursor: not-allowed;
}

.sw-cta-warn:disabled {
  color: #f5b23d;
}

.sw-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: #6f6f78;
}

/* ---------- Sheets (asset picker + confirm) ---------- */
.sw-lock {
  overflow: hidden;
}

.sw-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: overlayIn 0.22s ease both;
}

.sw-overlay[hidden] {
  display: none;
}

.sw-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 84vh;
  max-height: 84dvh;
  background: #0f0f13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: sheetIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 560px) {
  .sw-overlay {
    align-items: center;
    padding: 20px;
  }

  .sw-sheet {
    border-radius: 24px;
  }
}

.sw-sheet-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sw-sheet-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sw-sheet-confirm .sw-sheet-row {
  margin-bottom: 0;
}

.sw-sheet h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sw-sheet-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #9a9aa3;
}

.sw-x {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1a20;
  color: #c9c9d1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sw-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #8f8f98;
}

.sw-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.sw-search input::placeholder {
  color: #5b5b64;
}

.sw-chains {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.sw-chains::-webkit-scrollbar {
  display: none;
}

.sw-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #b3b3bb;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.sw-chip img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.sw-chip.on {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.sw-list {
  overflow-y: auto;
  padding: 6px;
  min-height: 200px;
}

.sw-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.12s ease;
}

.sw-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sw-item.sel {
  background: rgba(255, 255, 255, 0.08);
}

.sw-item.dim {
  opacity: 0.4;
}

.sw-item-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sw-item-txt b {
  font-weight: 600;
  font-size: 14.5px;
}

.sw-item-txt small {
  font-size: 12px;
  color: #8f8f98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-item-price {
  font-size: 13px;
  color: #9a9aa3;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.sw-empty {
  padding: 36px 16px;
  text-align: center;
  color: #6f6f78;
  font-size: 13px;
}

.sw-wallet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1a1a20;
  color: #e6e6ea;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sw-wallet:hover {
  background: #23232a;
  border-color: rgba(255, 255, 255, 0.26);
}

.sw-wallet.is-on {
  cursor: default;
}

.sw-wallet i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc97;
}

.sw-head .sw-live {
  margin-left: auto;
  margin-right: 10px;
}

.sw-confirm {
  padding: 14px 16px 16px;
  overflow-y: auto;
}

.sw-summary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.sw-sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  font-size: 13px;
}

.sw-sum + .sw-sum {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sw-sum span {
  color: #8f8f98;
  flex-shrink: 0;
}

.sw-sum b {
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.sw-sum b small {
  color: #8f8f98;
  font-weight: 400;
}

.sw-sum .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.sw-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0 2px;
  display: flex;
  flex-direction: column;
}

.sw-step {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
}

.sw-step:last-child {
  padding-bottom: 0;
}

.sw-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.1);
}

.sw-step.done:not(:last-child)::before {
  background: #3ddc97;
}

.sw-step-i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 600;
  background: #1f1f25;
  color: #8f8f98;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.sw-step.active .sw-step-i {
  background: #0f0f13;
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.sw-step.done .sw-step-i {
  background: #3ddc97;
  border-color: #3ddc97;
  color: #06261a;
}

.sw-step.error .sw-step-i {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

.sw-step-t {
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sw-step-t b {
  font-size: 14px;
  font-weight: 600;
}

.sw-step.pending .sw-step-t b {
  color: #8f8f98;
  font-weight: 500;
}

.sw-step-t small {
  font-size: 12px;
  color: #8f8f98;
  word-break: break-word;
}

.sw-step-t small a {
  color: #c9c9d1;
  text-decoration: underline;
}

.sw-step.error .sw-step-t small {
  color: #ff8a8a;
}

.sw-spin {
  animation: swRot 1s linear infinite;
}

@keyframes swRot {
  to { transform: rotate(360deg); }
}

.sw-confirm .sw-cta {
  margin-top: 16px;
}

.sw-confirm-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8f8f98;
  text-align: center;
}

.sw-nowallet {
  padding: 8px 4px 4px;
  font-size: 14px;
  color: #d0d0d6;
}

.sw-nowallet p {
  margin: 0 0 10px;
}

.sw-nowallet ul {
  margin: 0;
  padding-left: 18px;
  color: #b3b3bb;
  font-size: 13px;
  line-height: 1.6;
}

.sw-nowallet a {
  color: #fff;
  text-decoration: underline;
}

/* softer entrance for the box (no blur: an iframe inside a filtered parent repaints badly) */
.anim-soft {
  opacity: 0;
  transform: translateY(18px);
  animation: revealSoft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes revealSoft {
  to { opacity: 1; transform: translateY(0); }
}

.swap-card.is-nudged {
  animation: nudge 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nudge {
  0%   { transform: scale(1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35); }
  40%  { transform: scale(1.015); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.35); }
  100% { transform: scale(1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.35); }
}

/* Trust row */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: rgba(40, 40, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
}

.avatar i {
  font-size: calc(var(--trust-size) * 0.42);
  color: #111;
  line-height: 1;
}

.avatar.a1 { z-index: 1; }
.avatar.a2 { z-index: 2; margin-left: calc(var(--trust-size) * -0.42); }
.avatar.a3 { z-index: 4; margin-left: calc(var(--trust-size) * -0.42); }

.trust:hover .avatar.a1 { transform: translateY(-2px); }
.trust:hover .avatar.a2 { transform: translateY(-4px); }
.trust:hover .avatar.a3 { transform: translateY(-2px); }

.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 16px;
  border-radius: 999px;
  background: rgba(40, 40, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #dedcdd;
  font-weight: 500;
  font-size: clamp(12.5px, 1.4vw, 14px);
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}

/* Headline */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(27px, 4.9vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  text-rendering: geometricPrecision;
  /* thin dark halo so each dot keeps its edge over the light band of the video */
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 0 1px rgba(0, 0, 0, 0.6),
    0 6px 28px rgba(0, 0, 0, 0.35);
}

.headline span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline span:nth-child(1) { animation-delay: 0.12s; }
.headline span:nth-child(2) { animation-delay: 0.3s; }

/* Parent gets no reveal of its own */
.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

/* Subhead */
.subhead {
  max-width: min(560px, 100%);
  margin: clamp(12px, 2vh, 20px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  font-weight: 400;
  color: #e6e6e6;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(18px, 3vh, 28px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 15px);
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.45),
    0 0 60px rgba(255, 255, 255, 0.18);
}

/* ---------- Stats footer ---------- */
.stats {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  margin-top: clamp(20px, 4vh, 44px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1;
  color: #fff;
  margin-bottom: 7px;
  text-rendering: geometricPrecision;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 29px);
  letter-spacing: -0.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: clamp(11.5px, 1.25vw, 13px);
  color: #a6a6a6;
}

.fineprint {
  grid-column: 1 / -1;
  margin: clamp(6px, 1.2vh, 12px) auto 0;
  max-width: 660px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8f8f8f;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ---------- Shared entrance animation ---------- */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.cta.anim {
  animation-name: revealPulse;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes headlineFade {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes revealPulse {
  0%   { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  70%  { opacity: 1; transform: translateY(-2px) scale(1.015); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---------- Mobile menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.menu-overlay[hidden] {
  display: none;
}

.menu-sheet {
  position: absolute;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 28px));
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.menu-link {
  position: relative;
  display: block;
  padding: 13px 12px 15px;
  border-radius: 14px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  opacity: 0;
  animation: linkIn 0.4s ease forwards;
}

.menu-link:nth-child(1) { animation-delay: 0.06s; }
.menu-link:nth-child(2) { animation-delay: 0.12s; }
.menu-link:nth-child(3) { animation-delay: 0.18s; }
.menu-link:nth-child(4) { animation-delay: 0.24s; }
.menu-link:nth-child(5) { animation-delay: 0.3s; }

.menu-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.menu-signin {
  margin-top: 8px;
  background: var(--pill-dark);
  color: #fff;
  border-radius: 999px;
  width: 100%;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

@keyframes linkIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "box";
    row-gap: 22px;
    justify-items: center;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .subhead {
    margin-left: auto;
    margin-right: auto;
  }

  .headline {
    font-size: clamp(26px, 6.2vw, 58px);
  }

  .headline {
    font-size: clamp(26px, 6.2vw, 58px);
  }
}

@media (max-width: 760px) {
  .sx-panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .sx-arrow {
    transform: rotate(90deg);
    margin: -6px auto;
  }

  .sx-arrow.is-spun {
    transform: rotate(270deg);
  }

  .sx-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-destrow {
    flex-wrap: wrap;
    padding: 6px 10px 10px 14px;
  }

  .sx-getaddr {
    width: 100%;
  }

  .sx-rate {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  .header {
    max-width: 100%;
    justify-content: space-between;
  }

  .nav,
  .sign-in {
    display: none;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  }

  .burger.open {
    background: #fff;
  }

  .burger.open span {
    background: #000;
  }

  .burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 4vw, 22px) 12px;
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 12px;
  }

  .cta {
    margin-top: 16px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .header,
  .anim,
  .headline span,
  .menu-overlay,
  .menu-sheet,
  .menu-link {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .menu-sheet {
    transform: translateX(-50%) !important;
  }

  .headline {
    color: #fff;
  }
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* inputs inside the swap card carry their own focus treatment on the panel */
.sw-amount:focus-visible,
.sx-amount:focus-visible,
.sx-destrow input:focus-visible,
.sw-dest input:focus-visible,
.sw-search input:focus-visible {
  outline: none;
}

/* ---------- header wallet (replaces the old Launch app pill) ---------- */
.header .sw-wallet {
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 20px);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 14.5px);
  font-weight: 500;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sign-in-text);
  box-shadow: var(--nav-shadow);
}

.header .sw-wallet:hover {
  background: #323234;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.header .sw-wallet.is-on {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* the card header no longer carries a wallet button */
.sw-head .sw-live,
.sx-rate .sw-live {
  margin-left: 0;
  margin-right: 0;
}

/* hero holds only the swap card now */
.hero {
  justify-content: center;
}

/* ---------- "Is this safe?" trust panel under the swap CTA ---------- */
.sw-trust {
  margin: 12px 0 0;
  font-family: var(--font-sans);
}
.sw-trust > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 11.5px;
  color: #6f6f78;
}
.sw-trust > summary::-webkit-details-marker { display: none; }
.sw-trust-lead { color: #8a8a93; }
.sw-trust-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f3c1dd;
  border-bottom: 1px dotted rgba(243, 193, 221, 0.5);
  padding-bottom: 1px;
}
.sw-trust-more::after {
  content: "+";
  font-size: 12px;
  line-height: 1;
}
.sw-trust[open] .sw-trust-more::after { content: "\2212"; }
.sw-trust[open] > summary { margin-bottom: 12px; }

.sw-trust-body {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  padding: 14px 16px;
  animation: sw-trust-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sw-trust-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sw-trust-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #a7a7b0;
}
.sw-trust-body p + p { margin-top: 10px; }
.sw-trust-body b { color: #e7e7ea; font-weight: 600; }
.sw-trust-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}
.sw-trust-body a:hover { text-decoration-color: #fff; }

/* ---------- Privacy statement in the stats footer ---------- */
.fineprint-privacy {
  color: #a2a2ab;
  margin-bottom: 6px;
}
.fineprint-privacy b { color: #d8d8dc; font-weight: 600; }
.fineprint-privacy a {
  color: #d8d8dc;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(216, 216, 220, 0.45);
  text-shadow: none;
}
.fineprint-privacy a:hover { text-decoration-color: #fff; color: #fff; }

/* ---------- First screen: header, swap box, stats fill exactly one viewport ---------- */
.fold {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 2 * clamp(16px, 2.4vh, 28px));
  min-height: calc(100dvh - 2 * clamp(16px, 2.4vh, 28px));
}
.fold .hero {
  flex: 1;
  justify-content: center;
  margin-top: clamp(14px, 2.6vh, 30px);
}
.fold .stats { margin-top: clamp(16px, 3vh, 36px); }
.fold-notes { position: relative; z-index: 1; width: 100%; max-width: 920px; margin: clamp(28px, 5vh, 48px) auto 0; }
.fold-notes .fineprint { margin-left: auto; margin-right: auto; }
/* short laptop screens: keep swap box + stat row inside the first screen */
@media (min-width: 721px) and (max-height: 860px) {
  .fold .hero { margin-top: 12px; }
  .fold .stats { margin-top: 14px; }
  .fold .stat-icon { display: none; }
  .fold .stat-value { font-size: 22px; }
}

/* ---------- Pooled brand: dot-matrix pool mark in a dark circle (matches the X avatar) ---------- */
.logo {
  background: #000;
  overflow: hidden;
  box-shadow: var(--nav-shadow), 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* X / Twitter link in the header (desktop); lives in the burger menu on mobile */
.x-link {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: var(--pill-dark);
  color: #fff;
  box-shadow: var(--nav-shadow);
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.x-link:hover { transform: scale(1.05); background: #3a3a3e; }
.x-link svg { width: 17px; height: 17px; }
@media (min-width: 721px) { .header { max-width: 800px; } }
@media (max-width: 720px) { .x-link { display: none; } }

/* footer social line */
.fine-social { margin-top: 14px; }
.fine-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f3c1dd;
  text-decoration: none;
  font-size: 12.5px;
  text-shadow: none;
}
.fine-social a svg { width: 13px; height: 13px; }
.fine-social a span {
  border-bottom: 1px solid rgba(243, 193, 221, 0.35);
  padding-bottom: 1px;
}
.fine-social a:hover span { border-bottom-color: #f3c1dd; }
