/* ==========================================================================
   Arivion DeFi
   Mobile-first. Breakpoints: 640px (tablet), 1024px (desktop), 1440px (large).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg-primary: #070f1d;
  --bg-secondary: #091527;
  --bg-tertiary: #0d1d32;
  --bg-tile: #102239;
  --bg-input: #0b192b;

  --border-primary: #1e344e;
  --border-secondary: #26415f;
  --border-tertiary: #355274;

  --text-primary: #f5f8fc;
  --text-secondary: #9babc0;
  --text-tertiary: #708299;

  --blue: #2f80ff;
  --blue-hover: #246de0;
  --blue-soft: rgba(47, 128, 255, 0.12);
  --focus: #8fb9ff;

  --success: #35c98a;
  --warning: #f5b942;
  --error: #ef6a5b;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;

  --container: 1240px;
  --gutter: 16px;
  --nav-height: 64px;
  --section-space: clamp(64px, 9vw, 112px);

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 40px -24px rgba(0, 0, 0, 0.8);
  --shadow-widget: 0 0 0 1px var(--border-primary), 0 30px 80px -30px rgba(47, 128, 255, 0.35), 0 20px 50px -20px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; --nav-height: 72px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* No element-level resets for a, img or svg: the Mayan widget renders into
   this page (not an iframe), and those rules would leak into it. */

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

[id] { scroll-margin-top: calc(var(--nav-height) + 16px); }

[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Typography ---------- */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.55rem + 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.muted { color: var(--text-secondary); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn svg { flex: none; transition: transform 0.15s ease; }
.btn:hover svg { transform: translateX(2px); }

.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover { background: var(--blue-hover); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-secondary);
  color: var(--text-primary);
}
.btn--ghost:hover { background: var(--bg-tertiary); border-color: var(--border-tertiary); }

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
  border-radius: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { color: #5d9bff; text-decoration: underline; text-underline-offset: 3px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 15, 29, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.nav.is-scrolled,
.nav.is-open { border-bottom-color: var(--border-primary); background: rgba(7, 15, 29, 0.94); }

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-height);
}

.brand {
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.brand__mark { width: auto; height: 30px; }
.brand__sub { color: var(--text-secondary); font-weight: 600; }

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}
.nav__toggle:hover { background: var(--bg-tertiary); }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
}
.nav.is-open .nav__menu { display: block; }

.nav__links {
  display: grid;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text-primary); }
.nav__menu .btn { width: 100%; }

@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav__links {
    display: flex;
    gap: 28px;
    margin: 0;
  }
  .nav__links a {
    padding: 8px 0;
    border: 0;
    font-size: 0.9375rem;
  }
  .nav__menu .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  background:
    radial-gradient(560px circle at 72% 32%, rgba(47, 128, 255, 0.2), transparent 62%),
    radial-gradient(420px circle at 12% 8%, rgba(47, 128, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__copy { max-width: 600px; }
.hero__copy .lede { margin-top: 20px; max-width: 520px; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* The swap engine's numbers under the buttons (they count up; count-up.js). */
.hero__proof { margin-top: 32px; }
.hero-stats { display: flex; margin: 0; }
.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding-inline: 22px;
}
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div + div { border-left: 1px solid var(--border-secondary); }
.hero-stats dd {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 20%, #8fb9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats dt { color: var(--text-secondary); font-size: 0.8125rem; }
.hero__proof-note { max-width: 46ch; margin-top: 12px; color: var(--text-tertiary); font-size: 0.8125rem; line-height: 1.5; }

@media (max-width: 1023px) {
  .hero__copy { margin-inline: auto; text-align: center; }
  .hero__copy .lede,
  .hero__proof-note { margin-inline: auto; }
  .hero__ctas,
  .hero-stats { justify-content: center; }
  .hero-stats > div:first-child { padding-left: 22px; }
  .hero .rotator--line { justify-items: center; }
}
@media (max-width: 379px) {
  .hero-stats > div { padding-inline: 14px; }
}

@media (max-width: 479px) {
  .hero__ctas { margin-top: 28px; gap: 10px; }
  .hero__ctas .btn { flex: 1 1 auto; padding-inline: 16px; }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 480px);
    gap: 64px;
  }
}

/* ---------- Swap panel / widget shell ---------- */
.swap-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.swap-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-inline: 4px;
}

.swap-panel__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}


.widget-shell {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  box-shadow: var(--shadow-widget);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
.widget-shell:focus { outline: none; }
.widget-shell:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.widget-shell:not([data-state="ready"]) { min-height: 392px; }

.widget-shell__loading,
.widget-shell__error {
  position: absolute;
  inset: 0;
  display: none;
}
.widget-shell[data-state="loading"] .widget-shell__loading { display: flex; }
.widget-shell[data-state="error"] .widget-shell__error { display: flex; }

.widget-shell__loading {
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.widget-shell__loading .skeleton--bar { height: 20px; width: 40%; }
.widget-shell__loading .skeleton--tile { height: 76px; }
.widget-shell__loading .skeleton--button { height: 52px; margin-top: auto; border-radius: 26px; }
.widget-shell__loading-text {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  text-align: center;
}

.widget-shell__error {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 28px;
  text-align: center;
}
.widget-shell__error svg { color: var(--warning); }
.widget-shell__error h3 { font-size: 1.0625rem; }
.widget-shell__error p { color: var(--text-secondary); font-size: 0.9375rem; max-width: 34ch; }
.widget-shell__error .btn { margin-top: 8px; }

.skeleton {
  display: block;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tile) 50%, var(--bg-secondary) 100%);
  background-size: 200% 100%;
}
.skeleton--chip { width: 72px; height: 26px; border-radius: 999px; }

@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: shimmer 1.6s ease-in-out infinite; }
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.swap-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-inline: 4px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.swap-note svg { flex: none; margin-top: 2px; color: var(--text-secondary); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-space); }
.section--after-hero { padding-block: 0 clamp(48px, 6vw, 80px); }
.section--line { border-top: 1px solid var(--border-primary); }

.section__head {
  max-width: 640px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__head .lede { margin-top: 14px; }
.section__head--center { margin-inline: auto; text-align: center; }

/* ---------- Quick routes ---------- */
.route-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 480px) {
  .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .route-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.route-card {
  display: grid;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 18px 18px 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.route-card:hover {
  border-color: var(--border-tertiary);
  background: var(--bg-tertiary);
}
@media (prefers-reduced-motion: no-preference) {
  .route-card:hover { transform: translateY(-2px); }
}
.route-card[aria-busy="true"] { cursor: progress; }

.route-card__token {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.route-card__path {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.route-card__path svg { color: var(--text-tertiary); }
.route-card__cta {
  margin-top: 12px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
}
.route-card.is-set { border-color: rgba(53, 201, 138, 0.55); }

/* Compact rows, action on the right, on phones. */
@media (max-width: 479px) {
  .route-card {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px 16px;
  }
  .route-card .route-card__cta {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}
.route-card.is-set .route-card__cta { color: var(--success); }

.route-status {
  min-height: 1.6em;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.route-status[data-tone="ok"] { color: var(--success); }
.route-status[data-tone="warn"] { color: var(--warning); }

/* ---------- Tokenized stocks ---------- */
.stock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .stock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stock-card {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.stock-card:hover { border-color: var(--border-tertiary); background: var(--bg-tertiary); }
@media (prefers-reduced-motion: no-preference) {
  .stock-card:hover { transform: translateY(-2px); }
}
.stock-card[aria-busy="true"] { cursor: progress; }
.stock-card.is-set { border-color: rgba(53, 201, 138, 0.55); }
.stock-card.is-set .route-card__cta { color: var(--success); }
.stock-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.stock-card__title { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.stock-card__symbol { color: var(--text-secondary); font-size: 0.875rem; }
.stock-card__price {
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.stock-card .route-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.stock-card .route-card__cta svg,
.stock-card .asset-logo { transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.stock-card:hover .route-card__cta svg { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
  .stock-card:hover .asset-logo { transform: scale(1.08) rotate(-6deg); }
}
.badge--redeem { background: rgba(53, 201, 138, 0.12); color: var(--success); }

.stocks-foot {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
  padding: 20px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: rgba(9, 21, 39, 0.6);
}
@media (min-width: 1024px) {
  .stocks-foot { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
}
.stocks-foot__links { display: grid; gap: 10px; justify-items: start; }

.mini-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .mini-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.mini-steps li { display: flex; gap: 10px; align-items: flex-start; }
.mini-steps span {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fine-print {
  max-width: 820px;
  margin-top: 20px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.fine-print a { color: var(--text-secondary); text-underline-offset: 2px; }

/* ---------- Supported assets ---------- */
.asset-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .asset-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.asset-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-card);
}
.asset-card__head { display: flex; align-items: center; gap: 12px; }
.asset-card__symbol { font-size: 1.125rem; }
.asset-card__name { color: var(--text-secondary); font-size: 0.875rem; }
.asset-card__blurb { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; }
.asset-card__nets { display: grid; gap: 8px; margin-top: auto; }
.asset-card__nets:has(.skeleton) { display: flex; gap: 6px; }
.asset-card__count { color: var(--text-tertiary); font-size: 0.8125rem; }
.asset-card__note { color: var(--text-tertiary); font-size: 0.8125rem; }

.asset-logo {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tile);
  object-fit: cover;
}
.asset-logo--text {
  display: inline-grid;
  place-items: center;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}
.chip--muted { color: var(--text-tertiary); }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--border-tertiary); color: var(--text-primary); }

.assets-more { margin-top: 24px; }

.browse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}
.browse__title {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
}
.browse .chip-row { margin: 0; padding: 0; list-style: none; gap: 8px; }

.chip--button {
  min-height: 36px;
  padding: 6px 14px;
  color: var(--text-primary);
  font: 500 0.875rem/1.2 var(--font);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chip--button:hover { border-color: var(--border-tertiary); background: var(--bg-tertiary); }
.chip--button[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: #fff;
}
.chip__count { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.chip--button[aria-pressed="true"] .chip__count { color: #b9d3ff; }

.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border-secondary);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  background: var(--bg-secondary);
}
.callout svg { flex: none; margin-top: 2px; color: var(--blue); }
.callout h3 { font-size: 1rem; margin-bottom: 6px; }
.callout p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; max-width: 80ch; }

.dir-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }

.asset-directory {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.dir-controls {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .dir-controls { grid-template-columns: 220px minmax(0, 1fr); }
}

.field {
  display: grid;
  gap: 6px;
}
.field__label {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field__control {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  font: 500 1rem var(--font);
}
.field__control::placeholder { color: var(--text-tertiary); }
.field__control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.25); }
select.field__control {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%239babc0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.dir-status {
  margin: 16px 0 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.dir-status[data-tone="warn"] { color: var(--warning); }
.dir-status[data-tone="ok"] { color: var(--success); }
.dir-status__action { display: flex; width: fit-content; margin-top: 12px; }

.dir-tabs {
  margin-top: 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
@media (min-width: 640px) {
  .dir-tabs { flex-wrap: wrap; overflow: visible; }
}

.dir-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 560px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dir-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-areas:
    "logo main net"
    "logo addr addr";
  align-items: center;
  gap: 2px 12px;
  padding: 12px 4px;
  border-top: 1px solid var(--border-primary);
}
.dir-row:first-child { border-top: 0; }
.dir-row .asset-logo { grid-area: logo; }
.dir-row__main { grid-area: main; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dir-row__symbol { font-weight: 600; white-space: nowrap; }
.dir-row__name { color: var(--text-secondary); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir-row__net { grid-area: net; color: var(--text-tertiary); font-size: 0.8125rem; text-align: right; }
.dir-row__actions {
  grid-area: addr;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.dir-row__addr { color: var(--text-tertiary); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dir-row__swap {
  padding: 4px 12px;
  border: 1px solid rgba(47, 128, 255, 0.45);
  border-radius: 999px;
  background: var(--blue-soft);
  color: #8fb9ff;
  font: 600 0.8125rem/1.3 var(--font);
  cursor: pointer;
}
.dir-row__swap:hover { border-color: var(--blue); color: #fff; }
.dir-row__swap:disabled { cursor: progress; opacity: 0.7; }

.dir-row__copy {
  display: inline-flex;
  gap: 8px;
  padding: 2px 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.dir-row__copy:hover { color: var(--text-primary); }
.dir-row__copy-hint { color: var(--blue); font-weight: 600; }

@media (min-width: 768px) {
  .dir-row {
    grid-template-columns: 36px minmax(0, 1fr) 120px 240px;
    grid-template-areas: "logo main net addr";
  }
  .dir-row__net { text-align: left; }
  .dir-row__actions { justify-self: end; }
}

.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.badge--warn { background: rgba(245, 185, 66, 0.12); color: var(--warning); }
.badge--cat { background: var(--blue-soft); color: #8fb9ff; }
.badge--muted { background: var(--bg-tile); color: var(--text-secondary); }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

.step {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: var(--bg-secondary);
}
.step__num {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; }

/* ---------- Why Arivion (bento grid) ---------- */
.bento {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--own { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .bento__card--own { grid-column: span 2; }
}

.bento__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
/* Soft light that follows the pointer (--mx/--my set by spotlight.js). */
.bento__card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 128, 255, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.bento__card:hover { border-color: var(--border-secondary); }
.bento__card:hover::before { opacity: 1; }
.bento__card h3 { margin-bottom: 8px; }
.bento__card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.55; }

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.viz { margin-top: auto; padding-top: 24px; }

/* Own: copy beside a mock wallet. */
.bento__card--own {
  gap: 28px;
  background:
    radial-gradient(520px circle at 100% 100%, rgba(47, 128, 255, 0.16), transparent 70%),
    var(--bg-secondary);
}
.bento__card--own h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.bento__card--own p { max-width: 42ch; }
@media (min-width: 640px) {
  .bento__card--own {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
    align-items: center;
    padding: 28px;
  }
}

.viz-wallet {
  padding: 14px;
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  background: rgba(7, 15, 29, 0.72);
  box-shadow: 0 24px 50px -30px rgba(47, 128, 255, 0.7);
}
.viz-wallet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
}
.viz-wallet__lock { display: inline-flex; align-items: center; gap: 5px; color: var(--success); }
.viz-wallet ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.viz-wallet li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}
.viz-wallet img { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tile); object-fit: cover; }
.viz-wallet small { display: block; color: var(--text-tertiary); font-size: 0.75rem; font-weight: 500; }

/* Speed: a pulse racing from one network to the other. */
.viz-speed { display: flex; align-items: center; gap: 10px; }
.viz-speed img { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-tile); }
.viz-speed__track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border-secondary), var(--blue));
  overflow: hidden;
}
.viz-speed__track i {
  position: absolute;
  top: 0;
  left: -48px;
  width: 48px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #cfe0ff);
  opacity: 0;
}
.viz-speed__end { position: relative; display: inline-flex; }
.viz-speed__check {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
  background: var(--success);
  color: #06281a;
}

/* Price: competing offers, the best one wins. */
.viz-bids { display: grid; gap: 9px; }
.viz-bids__row { display: flex; align-items: center; gap: 10px; }
.viz-bids__bar {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 6px;
  background: var(--bg-tile);
}
.viz-bids__bar::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--border-tertiary);
  transform-origin: left;
}
.viz-bids__row.is-best .viz-bids__bar::before { background: linear-gradient(90deg, var(--blue), var(--success)); }
.viz-bids__row b {
  width: 38px;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  visibility: hidden;
}
.viz-bids__row.is-best b { visibility: visible; }

/* Coverage: network chips. */
.viz-chains { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding-left: 0; list-style: none; }
.viz-chains li {
  padding: 4px 11px;
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 0.8125rem;
}
.viz-chains li:last-child { border-style: dashed; color: var(--text-tertiary); }

/* One signature: a button that confirms itself. */
.viz-sign { display: flex; }
.viz-sign__btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 150px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -14px rgba(47, 128, 255, 0.9);
}
.viz-sign__btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.viz-sign__done { opacity: 0; color: #06281a; }


/* Motion: loops start once the card has scrolled into view. */
@media (prefers-reduced-motion: no-preference) {
  .viz-wallet { animation: float 6s ease-in-out infinite; }
  .js .viz-wallet li { opacity: 0; }
  .js .is-visible .viz-wallet li {
    animation: rise-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(0.25s + var(--i) * 110ms);
  }

  .is-visible .viz-speed__track i { animation: comet 2.8s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
  .is-visible .viz-speed__check { animation: pop 2.8s ease infinite; }

  .is-visible .viz-bids__bar::before { animation: bid 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; animation-delay: calc(var(--i) * 140ms); }
  .is-visible .viz-bids__row.is-best b { animation: best 4s ease infinite; }

  .is-visible .viz-sign__btn { animation: sign-btn 4.2s ease infinite; }
  .is-visible .viz-sign__label { animation: sign-label 4.2s ease infinite; }
  .is-visible .viz-sign__done { animation: sign-done 4.2s ease infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes comet {
  0% { left: -48px; opacity: 0; }
  8% { opacity: 1; }
  40% { left: 100%; opacity: 1; }
  41%, 100% { left: 100%; opacity: 0; }
}
@keyframes pop {
  0%, 38% { transform: scale(0); opacity: 0; }
  46% { transform: scale(1.25); opacity: 1; }
  52%, 86% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0; }
}
@keyframes bid {
  0% { transform: scaleX(0); opacity: 1; }
  32%, 86% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes best {
  0%, 36% { opacity: 0; transform: translateX(-6px); }
  44%, 86% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes sign-btn {
  0%, 24% { transform: scale(1); background: var(--blue); }
  28% { transform: scale(0.94); background: var(--blue); }
  34% { transform: scale(1); background: var(--success); }
  86% { transform: scale(1); background: var(--success); }
  94%, 100% { transform: scale(1); background: var(--blue); }
}
@keyframes sign-label {
  0%, 28% { opacity: 1; transform: none; }
  34%, 88% { opacity: 0; transform: translateY(-8px); }
  96%, 100% { opacity: 1; transform: none; }
}
@keyframes sign-done {
  0%, 30% { opacity: 0; transform: translateY(8px); }
  38%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateY(8px); }
}

/* ---------- Community ---------- */
.community {
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(480px circle at 100% 0%, rgba(47, 128, 255, 0.12), transparent 70%),
    var(--bg-secondary);
}
.community .lede { margin-top: 16px; max-width: 560px; }
.community .btn { margin-top: 28px; }

.community__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: center;
}
.community__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: rgba(7, 15, 29, 0.5);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.community__list strong { display: block; color: var(--text-primary); font-weight: 600; }
.community__list svg { flex: none; margin-top: 3px; color: var(--blue); }

@media (min-width: 1024px) {
  .community { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--border-primary);
}
.faq details { border-bottom: 1px solid var(--border-primary); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary::after {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%239babc0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  display: grid;
  gap: 12px;
  padding: 0 4px 22px;
  color: var(--text-secondary);
  max-width: 68ch;
}
.faq__answer a { color: var(--blue); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  text-align: center;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px circle at 50% 120%, rgba(47, 128, 255, 0.22), transparent 70%);
}
.final-cta .lede { margin: 16px auto 0; max-width: 520px; }
.final-cta .btn { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin-top: 14px; max-width: 320px; }
.footer__col h2 {
  margin-bottom: 14px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__col a { color: var(--text-secondary); text-decoration: none; }
.footer__col a:hover { color: var(--text-primary); }
.footer__legal {
  display: grid;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border-primary);
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr)); }
  .footer__brand { grid-column: auto; }
}

/* ---------- Swap page ---------- */
.swap-page { padding-top: clamp(24px, 5vw, 56px); }

.swap-layout {
  display: grid;
  gap: 40px;
  grid-template-areas:
    "widget"
    "stocks";
  margin-bottom: var(--section-space);
}
.swap-layout__widget { grid-area: widget; }
.swap-layout__stocks { grid-area: stocks; }

.swap-panel__status { margin-top: 12px; padding-inline: 4px; }
.swap-panel__status:empty { display: none; }

.side-title {
  margin-bottom: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .swap-layout {
    grid-template-columns: minmax(300px, 360px) minmax(420px, 480px);
    grid-template-areas: "stocks widget";
    justify-content: center;
    column-gap: 56px;
    align-items: start;
  }
}

@media (min-width: 1440px) {
  .swap-layout { column-gap: 80px; }
}

/* "Start owning" card in the /swap sidebar. */
.own {
  position: relative;
  isolation: isolate;
  padding: 22px 18px 18px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(340px circle at 100% 0%, rgba(47, 128, 255, 0.18), transparent 70%),
    var(--bg-secondary);
  box-shadow: var(--shadow-card);
}
.own__title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.025em; }
.own__lede { margin-top: 8px; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.5; }
.own__hint {
  min-height: 3em; /* two lines, so the list doesn't jump between tabs */
  margin: 10px 2px 8px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.own .route-status { margin-top: 10px; }
.own .route-status:empty { display: none; }

/* The tab's list scrolls inside the card; the bottom fades out, and extra
   padding lets the last row clear the fade. */
.stock-scroll {
  max-height: min(420px, 60vh);
  margin-inline: -4px;
  padding: 2px 4px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-tertiary) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent);
}
.stock-scroll .stock-rows { padding-bottom: 36px; }
@media (min-width: 1024px) {
  .stock-scroll { max-height: 336px; }
}
.own__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* Segmented control with a sliding highlight (--index, --count from JS). */
.segmented {
  --count: 3;
  --index: 0;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  background: var(--bg-input);
}
.segmented:empty { visibility: hidden; min-height: 46px; }
.segmented::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--count));
  border-radius: 9px;
  background: var(--blue);
  box-shadow: 0 6px 18px -6px rgba(47, 128, 255, 0.7);
  transform: translateX(calc(var(--index) * 100%));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.segmented__option {
  position: relative;
  min-height: 36px;
  padding: 0 6px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-secondary);
  font: 600 0.8125rem/1.2 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}
.segmented__option:hover { color: var(--text-primary); }
.segmented__option[aria-pressed="true"] { color: #fff; }

.stock-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stock-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: rgba(7, 15, 29, 0.55);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* Light sweep on hover. */
.stock-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(143, 185, 255, 0.13) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}
.stock-row:hover {
  border-color: rgba(47, 128, 255, 0.5);
  background: var(--bg-tertiary);
  box-shadow: 0 12px 30px -18px rgba(47, 128, 255, 0.8);
}
.stock-row[aria-busy="true"] { cursor: progress; }
.stock-row__title {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stock-row__token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}
.stock-row__token .asset-logo {
  width: 20px;
  height: 20px;
  font-size: 0.6875rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stock-row__side {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stock-row__price { font-size: 0.9375rem; font-weight: 600; }
.stock-row__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #8fb9ff;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.stock-row__cta svg { transition: transform 0.2s ease; }
.stock-row:hover .stock-row__cta { background: var(--blue); color: #fff; }
.stock-row:hover .stock-row__cta svg { transform: translateX(2px); }
.stock-row.is-set { border-color: rgba(53, 201, 138, 0.55); }
.stock-row.is-set .stock-row__cta { background: rgba(53, 201, 138, 0.14); color: var(--success); }
@media (prefers-reduced-motion: no-preference) {
  .stock-row:hover { transform: translateY(-1px); }
  .stock-row:hover::after { transform: translateX(100%); transition: transform 0.7s ease; }
  .stock-row:hover .asset-logo { transform: scale(1.18) rotate(-8deg); }
}

.tag-redeem {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(53, 201, 138, 0.12);
  color: var(--success);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Own across markets (ticker marquee, /swap) ---------- */
.tickers-section { overflow: hidden; }
.tickers {
  display: grid;
  gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.tickers__row { overflow: hidden; padding-block: 3px; }
.tickers__track { display: flex; width: max-content; }
.tickers__list {
  display: flex;
  flex: none;
  gap: 12px;
  margin: 0;
  padding: 0 6px;
  list-style: none;
}
.ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: 600 0.9375rem/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.ticker .asset-logo { width: 34px; height: 34px; font-size: 0.8125rem; }
.ticker:hover { border-color: rgba(47, 128, 255, 0.6); background: var(--bg-tertiary); }
.ticker[aria-busy="true"] { cursor: progress; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .tickers__track { animation: marquee var(--dur, 80s) linear infinite; }
  .tickers__row--reverse .tickers__track { animation-direction: reverse; }
  .tickers__row:hover .tickers__track,
  .tickers__row:focus-within .tickers__track { animation-play-state: paused; }
  .ticker:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .tickers__row { overflow-x: auto; }
  .tickers__list[aria-hidden="true"] { display: none; }
}

/* ---------- Always open markets (/swap) ---------- */
.accent-text {
  background: linear-gradient(90deg, #4d8dff, #9cc2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.week {
  max-width: 1080px;
  margin-inline: auto;
  padding: 22px clamp(16px, 3vw, 32px) 20px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-card);
}
.week__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.week__clock { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.week__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(10px, 3vw, 28px);
  margin-top: 40px;
}
.week__labels,
.week__chart {
  display: grid;
  grid-template-rows: 30px 56px 56px;
}
.week__labels span {
  align-self: center;
  max-width: 8.5ch;
  font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.2;
}
.week__chart {
  position: relative;
  border-right: 1px solid var(--border-primary);
  background: linear-gradient(90deg, var(--border-primary) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%;
}
.week__days {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.week__days .is-weekend { color: #f3a097; }
.week__row { position: relative; }
/* Regular hours, 9:30 AM to 4:00 PM ET: 9.5/24 into the day, 6.5/24 long. */
.week__session {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: calc((var(--day) + 0.3958) / 7 * 100%);
  width: calc(0.2708 / 7 * 100%);
  min-width: 6px;
  border-radius: 6px;
  background: #5d6d82;
}
.week__closed {
  position: absolute;
  top: 0;
  left: calc(5 / 7 * 100%);
  right: 0;
  height: calc(30px + 56px);
  border: 1px solid rgba(239, 106, 91, 0.35);
  border-radius: 8px;
  background: rgba(239, 106, 91, 0.13);
}
.week__open {
  position: absolute;
  inset: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(53, 201, 138, 0.55);
  border-radius: 8px;
  background: rgba(53, 201, 138, 0.14);
}
.week__open::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(53, 201, 138, 0.35), transparent);
  transform: translateX(-100%);
}
.week__now {
  position: absolute;
  z-index: 2;
  top: -14px;
  bottom: 6px;
  left: 0;
  width: 1px;
  background: rgba(245, 248, 252, 0.7);
}
.week.is-visible .week__now,
.week:not(.reveal) .week__now { left: calc(var(--now, 0) * 100%); }
.week__now span {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translate(-50%, -100%);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.week__now::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}
.week__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}
.week__legend li { display: inline-flex; align-items: center; gap: 8px; }
.week__key { width: 10px; height: 10px; border-radius: 50%; }
.week__key--session { background: #5d6d82; }
.week__key--closed { background: rgba(239, 106, 91, 0.7); }
.week__key--open { background: var(--success); }
@media (prefers-reduced-motion: no-preference) {
  .week__now { transition: left 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
  .week__now::after { animation: pulse-green 1.8s ease-in-out infinite; }
  .week.is-visible .week__open::after { animation: sweep 3.6s ease-in-out infinite; }
}
@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(340%); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(53, 201, 138, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(53, 201, 138, 0); }
}

.duo {
  display: grid;
  gap: 12px;
  max-width: 1080px;
  margin: 16px auto 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
.feature__icon--violet { background: rgba(167, 139, 250, 0.14); color: #b69cff; }

/* ---------- What you own (/swap) ---------- */
.yours { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .yours { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 72px; }
}
.yours .lede { margin-top: 14px; max-width: 520px; }
.checks {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.checks svg {
  flex: none;
  margin-top: 1px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(53, 201, 138, 0.14);
  color: var(--success);
}
.checks strong { color: var(--text-primary); font-weight: 600; }
.yours__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.yours + .container .fine-print { margin-top: 48px; }

.price-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px circle at 100% 0%, rgba(47, 128, 255, 0.16), transparent 70%),
    var(--bg-secondary);
  box-shadow: var(--shadow-widget);
}
.price-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(53, 201, 138, 0.12);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
}
.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.price-card__asset {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 22px;
}
.price-card__asset .asset-logo { width: 44px; height: 44px; }
.price-card__name { display: grid; line-height: 1.3; }
.price-card__name strong { font-size: 1.0625rem; }
.price-card__name small { color: var(--text-tertiary); font-size: 0.8125rem; }
.price-card__price {
  margin-top: 14px;
  font-size: clamp(2.25rem, 1.7rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease, opacity 0.2s ease;
}
.price-card__price[aria-busy="true"] { opacity: 0.55; }
.skeleton--price { display: inline-block; width: 190px; height: 0.8em; vertical-align: middle; }
.price-card__price.is-up { color: var(--success); }
.price-card__price.is-down { color: var(--error); }
.price-card[data-state="error"] .price-card__price { color: var(--text-tertiary); font-size: 1.25rem; }
.price-card__note { margin-top: 4px; color: var(--text-tertiary); font-size: 0.8125rem; }
.price-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 16px 0;
  border-block: 1px solid var(--border-primary);
}
.price-card__facts dt { color: var(--text-tertiary); font-size: 0.75rem; }
.price-card__facts dd { margin: 2px 0 0; font-size: 0.9375rem; font-weight: 600; }
.price-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font: 600 0.8125rem/1 var(--font);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.price-chip .asset-logo { width: 24px; height: 24px; font-size: 0.6875rem; }
.price-chip:hover { border-color: var(--border-tertiary); color: var(--text-primary); }
.price-chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: #fff; }
.price-card__buy { width: 100%; margin-top: 20px; }
.price-card__buy[aria-busy="true"] { cursor: progress; opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot::before { animation: pulse-green 1.8s ease-in-out infinite; }
}

/* ---------- Rotating headline word (rotator.js) ---------- */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  /* Room for descenders inside the clipped box. */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.rotator--line { display: grid; }
.rotator > span {
  grid-area: 1 / 1;
  background: linear-gradient(90deg, #4d8dff, #9cc2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rotator:not(.is-running) > span + span { visibility: hidden; }
.rotator.is-running > span {
  opacity: 0;
  transform: translateY(75%);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rotator.is-running > span.is-active { opacity: 1; transform: none; }
.rotator.is-running > span.is-leaving { opacity: 0; transform: translateY(-75%); }

/* ---------- Swap status ---------- */
.status-page { padding-block: clamp(32px, 6vw, 72px) var(--section-space); }
.status-layout { max-width: 800px; }
.status-page__title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }

.status-form { display: grid; gap: 8px; }
.status-form__row { display: flex; flex-wrap: wrap; gap: 10px; }
.status-form__row .field__control { flex: 1 1 280px; min-height: 50px; font-family: var(--font); }
.status-form__row .btn { flex: 0 0 auto; min-height: 50px; padding-inline: 28px; }
@media (max-width: 479px) {
  .status-form__row .btn { flex: 1 1 100%; }
}
.status-form__hint { color: var(--text-tertiary); font-size: 0.875rem; }

.status-results { margin-top: 28px; }
.status-results:empty { display: none; }

.status-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-card);
}
.status-card[aria-busy="true"] .skeleton--bar { height: 22px; width: 35%; }
.status-card[aria-busy="true"] .skeleton--tile { height: 64px; }
.status-card--message { gap: 12px; }
.status-card--message[data-tone="warn"] { border-left: 3px solid var(--warning); }
.status-card--message p { color: var(--text-secondary); }
.status-card code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.875em;
}
.status-card a:not(.btn) { color: var(--blue); }
.status-card__head { display: grid; gap: 8px; justify-items: start; }
.status-card__title { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); }
.status-muted { color: var(--text-tertiary); font-size: 0.875rem; }
.status-intro { color: var(--text-secondary); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill--progress { background: var(--blue-soft); color: #8fb9ff; }
.status-pill--ok { background: rgba(53, 201, 138, 0.12); color: var(--success); }
.status-pill--warn { background: rgba(245, 185, 66, 0.12); color: var(--warning); }
.status-pill--neutral { background: var(--bg-tile); color: var(--text-secondary); }

.status-amounts { display: grid; gap: 12px; }
@media (min-width: 560px) {
  .status-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.status-amount {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: var(--bg-input);
}
.status-amount > div { display: grid; min-width: 0; }
.status-amount__label { color: var(--text-tertiary); font-size: 0.8125rem; }
.status-amount__value { font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.status-amount__chain { color: var(--text-secondary); font-size: 0.8125rem; }

.status-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.status-step {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.status-step:last-child { padding-bottom: 0; }
.status-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 16px;
  bottom: 2px;
  width: 2px;
  background: var(--border-secondary);
}
.status-step__dot {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: 2px solid var(--border-tertiary);
  border-radius: 50%;
  background: var(--bg-secondary);
}
.status-step--completed { color: var(--text-primary); }
.status-step--completed .status-step__dot { border-color: var(--success); background: var(--success); }
.status-step--active { color: var(--text-primary); font-weight: 500; }
.status-step--active .status-step__dot { border-color: var(--blue); background: var(--blue); }

.status-poll,
.track-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.status-poll__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
@media (prefers-reduced-motion: no-preference) {
  .status-poll__dot,
  .status-step--active .status-step__dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 128, 255, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(47, 128, 255, 0); }
}
.status-slow { color: var(--warning); font-size: 0.9375rem; }
.status-slow a { color: inherit; text-decoration: underline; }

.status-details {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--border-primary);
}
.status-details > div {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-primary);
}
@media (min-width: 560px) {
  .status-details > div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
}
.status-details dt { color: var(--text-tertiary); font-size: 0.875rem; }
.status-details dd { margin: 0; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.status-txs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.status-txs li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.status-txs li span { color: var(--text-secondary); min-width: 72px; }

.status-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.copy-inline {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}
.copy-inline span { color: var(--blue); font-weight: 600; }

.swap-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.swap-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.swap-row:hover { border-color: var(--border-tertiary); background: var(--bg-tertiary); }
.swap-row__main { display: grid; min-width: 0; }
.swap-row__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swap-row__meta { color: var(--text-tertiary); font-size: 0.8125rem; }
.swap-row__cta { color: var(--blue); font-size: 0.875rem; font-weight: 600; }
@media (max-width: 479px) {
  .swap-row { grid-template-columns: minmax(0, 1fr) auto; }
  .swap-row .status-pill { grid-column: 1 / -1; justify-self: start; }
}

.status-recent { margin-top: 36px; }
.status-recent__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.recent-swap {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font: 500 0.875rem var(--font);
  cursor: pointer;
}
.recent-swap:hover { border-color: var(--border-tertiary); }
.recent-swap__time { color: var(--text-tertiary); font-size: 0.8125rem; }

.status-help { margin-top: 36px; color: var(--text-tertiary); font-size: 0.875rem; }
.status-help a { color: var(--blue); }

.track-banner {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(47, 128, 255, 0.35);
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--text-primary);
}
.track-banner .text-link { margin-left: auto; }

/* ---------- Asset marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--border-primary);
  background: rgba(9, 21, 39, 0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .section--after-hero { padding-top: clamp(48px, 6vw, 80px); }

.marquee__track {
  display: flex;
  width: max-content;
}
.marquee__list {
  display: flex;
  flex: none;
  gap: 40px;
  margin: 0;
  padding: 0 20px;
  list-style: none;
}
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.marquee__list img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tile);
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 45s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  /* No movement: show one copy and let people scroll it. */
  .marquee { overflow-x: auto; }
  .marquee__list[aria-hidden="true"] { display: none; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Items rise in one after another (--i on each). */
  .js .stagger > li { opacity: 0; }
  .js .stagger.is-visible > li {
    animation: rise-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(min(var(--i, 0), 10) * 60ms);
  }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Live price tags (price-tags.js) ---------- */
[data-price-mint] {
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}
[data-price-mint].is-up { color: var(--success); }
[data-price-mint].is-down { color: var(--error); }
.skeleton--num {
  display: inline-block;
  width: 4.2em;
  height: 0.9em;
  border-radius: 4px;
  vertical-align: middle;
}

/* Section heading with a tag on the right (home Stocks). */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.head-row .section__head { margin-bottom: 0; }

/* ---------- Hero price chips (hero-chips.js, wide screens) ---------- */
.hero-chips { display: none; }
@media (min-width: 1280px) {
  .hero-chips { display: block; }
}
.hero-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  background: rgba(13, 29, 50, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  color: var(--text-primary);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.hero-chip:hover { border-color: rgba(47, 128, 255, 0.65); background: rgba(16, 34, 57, 0.95); }
.hero-chip[aria-busy="true"] { cursor: progress; }
.hero-chip .asset-logo { width: 32px; height: 32px; font-size: 0.8125rem; }
.hero-chip__text { display: grid; line-height: 1.25; text-align: left; }
.hero-chip__symbol { font-size: 0.8125rem; font-weight: 700; }
.hero-chip__price { color: var(--text-secondary); font-size: 0.8125rem; }
.hero-chip__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}
/* Positions around the swap: three in the gap on the left, one above the
   panel and one below it, clear of the swap controls. */
.hero-chip--1 { top: 96px; left: -160px; }
.hero-chip--2 { top: -14px; right: 4px; }
.hero-chip--3 { top: 256px; left: -164px; }
.hero-chip--4 { top: 420px; left: -156px; }
.hero-chip--5 { bottom: -64px; right: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-chip { animation: float 6s ease-in-out infinite; }
  .hero-chip--2 { animation-delay: -1.2s; }
  .hero-chip--3 { animation-delay: -2.6s; }
  .hero-chip--4 { animation-delay: -3.8s; }
  .hero-chip--5 { animation-delay: -4.9s; }
  .hero-chip__live { animation: pulse-green 1.8s ease-in-out infinite; }
}

/* ---------- Sticky Start Owning bar (sticky-cta.js, phones) ---------- */
.sticky-cta {
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-secondary);
  background: rgba(9, 21, 39, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 -18px 40px -16px rgba(0, 0, 0, 0.8);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.sticky-cta.is-shown {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}
.sticky-cta .btn { flex: none; min-height: 48px; padding-inline: 18px; }
.sticky-cta__ticker { flex: 1 1 auto; min-width: 0; display: grid; }
.sticky-cta__item {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sticky-cta__item + .sticky-cta__item { visibility: hidden; }
.sticky-cta__item .asset-logo { width: 34px; height: 34px; font-size: 0.8125rem; }
.sticky-cta__text { display: grid; min-width: 0; line-height: 1.25; }
.sticky-cta__text strong { overflow: hidden; font-size: 0.875rem; text-overflow: ellipsis; white-space: nowrap; }
.sticky-cta__price { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 0.8125rem; }
.sticky-cta__live { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .sticky-cta__item + .sticky-cta__item { visibility: inherit; }
  .sticky-cta__item { animation: ticker-cycle 9s ease-in-out infinite both; }
  .sticky-cta__item:nth-child(2) { animation-delay: -6s; }
  .sticky-cta__item:nth-child(3) { animation-delay: -3s; }
  .sticky-cta__live { animation: pulse-green 1.8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .sticky-cta.is-shown { transition: none; }
}
@keyframes ticker-cycle {
  0% { opacity: 0; transform: translateY(8px); }
  5%, 30% { opacity: 1; transform: none; }
  35%, 100% { opacity: 0; transform: translateY(-8px); }
}

/* ---------- Your stocks (holdings.js, /swap) ---------- */
.holdings { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
  .holdings { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 64px; }
}
.holdings__intro .lede { margin-top: 14px; }
.holdings__form { display: grid; gap: 8px; margin-top: 28px; }
.holdings__form .btn { margin-top: 4px; }
.holdings__hint { margin-top: 8px; color: var(--text-secondary); font-size: 0.875rem; }
.holdings__hint:empty { margin: 0; }
.holdings__hint[data-tone="warn"] { color: var(--warning); }
.holdings__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
}
.holdings__or::before,
.holdings__or::after { content: ''; flex: 1; height: 1px; background: var(--border-primary); }
.holdings__connected { width: 100%; }
.holdings__note {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.holdings__note svg { flex: none; margin-top: 2px; color: var(--success); }

.holdings-card {
  min-height: 360px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(420px circle at 100% 0%, rgba(47, 128, 255, 0.16), transparent 70%),
    var(--bg-secondary);
  box-shadow: var(--shadow-widget);
}
.holdings-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.holdings-card__wallet { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.holdings-card__tools { display: inline-flex; align-items: center; gap: 14px; font-size: 0.875rem; }
.holdings-card__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 20px;
}
.holdings-card__label { margin-top: 20px; color: var(--text-secondary); font-size: 0.875rem; }
.holdings-card__summary .holdings-card__label { margin-top: 0; }
.holdings-card__total {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.holdings-card__usdc { padding-bottom: 6px; color: var(--text-secondary); font-size: 0.875rem; }
.skeleton--total { display: block; width: 200px; height: 44px; margin-top: 6px; }
.holdings-card__message {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--text-secondary);
  text-align: center;
}
.holdings-card__message--empty { margin-top: 48px; }
.holdings-card__message strong { color: var(--text-primary); }
.holdings-card__foot { margin-top: 14px; color: var(--text-tertiary); font-size: 0.75rem; line-height: 1.5; }

.h-ghost { display: grid; gap: 10px; margin: 24px 0 16px; padding: 0; list-style: none; }
.h-ghost li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-primary);
}
.h-ghost span { height: 12px; border-radius: 6px; background: var(--bg-tile); }
.h-ghost span:first-child { height: 32px; border-radius: 50%; }
.h-ghost li:nth-child(2) span:nth-child(2) { width: 70%; }
.h-ghost li:nth-child(3) span:nth-child(2) { width: 55%; }
@media (prefers-reduced-motion: no-preference) {
  [data-state="loading"] .h-ghost span {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tile) 50%, var(--bg-secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
  }
}

.h-bar { display: flex; gap: 3px; height: 10px; margin-top: 18px; }
.h-bar span { min-width: 4px; border-radius: 5px; transition: width 0.6s ease; }

.h-cols,
.h-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  align-items: center;
  gap: 12px;
}
.h-cols {
  margin-top: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.h-rows { margin: 0; padding: 0; list-style: none; }
.h-row { padding: 12px 0; border-bottom: 1px solid var(--border-primary); font-size: 0.875rem; }
.h-row:last-child { border-bottom: 0; }
.h-row__asset { display: flex; align-items: center; gap: 10px; min-width: 0; }
.h-row__logo { position: relative; flex: none; }
.h-row__logo .asset-logo { width: 32px; height: 32px; font-size: 0.8125rem; }
.h-row__dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--bg-secondary);
  border-radius: 50%;
}
.h-row__name { display: grid; min-width: 0; line-height: 1.3; }
.h-row__name strong { overflow: hidden; font-size: 0.9375rem; text-overflow: ellipsis; white-space: nowrap; }
.h-row__name small { color: var(--text-tertiary); font-size: 0.75rem; }
.h-row__hold,
.h-row__price,
.h-row__value { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.h-row__price { color: var(--text-secondary); }
.h-row__actions { display: flex; justify-content: flex-end; gap: 6px; }
.h-btn {
  padding: 6px 12px;
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: 600 0.8125rem/1.2 var(--font);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.h-btn:hover { border-color: var(--border-tertiary); background: var(--bg-tertiary); }
.h-btn--buy { border-color: transparent; background: var(--blue-soft); color: #8fb9ff; }
.h-btn--buy:hover { border-color: transparent; background: var(--blue); color: #fff; }
.h-btn[aria-busy="true"] { cursor: progress; opacity: 0.7; }

/* Phones: name and value on top, amount and actions underneath. */
@media (max-width: 639px) {
  .h-cols { display: none; }
  .h-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "asset value"
      "hold actions";
    row-gap: 6px;
  }
  .h-row__asset { grid-area: asset; }
  .h-row__value { grid-area: value; text-align: right; }
  .h-row__hold { grid-area: hold; padding-left: 42px; color: var(--text-secondary); font-size: 0.8125rem; }
  .h-row__price { display: none; }
  .h-row__actions { grid-area: actions; }
}

/* ---------- Guide page ---------- */
.guide-page { padding-top: clamp(32px, 6vw, 72px); }
.guide-hero { padding-bottom: clamp(48px, 7vw, 88px); }
.guide-hero__title { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem); line-height: 1.08; letter-spacing: -0.035em; }
.guide-hero .section__head { max-width: 720px; }

.paths {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) {
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
.path-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  box-sizing: border-box;
  padding: 24px;
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(360px circle at 100% 0%, rgba(47, 128, 255, 0.14), transparent 70%),
    var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.path-card:hover {
  border-color: rgba(47, 128, 255, 0.55);
  box-shadow: 0 18px 40px -24px rgba(47, 128, 255, 0.7);
}
.path-card__flow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.path-card__flow img { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-tile); }
.path-card__title { font-size: 1.375rem; letter-spacing: -0.02em; }
.path-card__text { color: var(--text-secondary); }
.path-card .text-link { align-self: flex-start; margin-top: auto; padding-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .path-card:hover { transform: translateY(-2px); }
}

.flow-coin {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 700;
}
.flow-coin--peso { background: rgba(53, 201, 138, 0.16); color: var(--success); font-size: 1.125rem; }
/* A dot running along a short line: "this becomes that". */
.flow-arrow {
  position: relative;
  flex: 0 1 40px;
  min-width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--border-secondary);
  overflow: hidden;
}
.flow-arrow i {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  border-radius: inherit;
  background: #8fb9ff;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .flow-arrow i { animation: flow-dot 2.2s ease-in-out infinite; }
  .flow-arrow + * + .flow-arrow i { animation-delay: 0.5s; }
}
@keyframes flow-dot {
  0% { transform: translateX(-12px); opacity: 0; }
  15% { opacity: 1; }
  70% { transform: translateX(40px); opacity: 1; }
  100% { transform: translateX(40px); opacity: 0; }
}

.guide { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) {
  .guide { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 72px; }
  .guide__intro { position: sticky; top: calc(var(--nav-height) + 32px); }
}
.guide__intro .lede { margin-top: 14px; }
.guide__intro .btn { margin-top: 24px; }

.timeline { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.t-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
/* Line joining the numbers; it draws in as each step appears. */
.t-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 44px;
  bottom: -14px;
  left: 19px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--border-secondary));
  transform-origin: top;
}
.t-step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(47, 128, 255, 0.5);
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: #8fb9ff;
  font-weight: 700;
  box-shadow: 0 0 0 5px var(--bg-primary);
}
.t-step__body {
  padding: 20px 22px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}
.t-step__body h3 { margin-bottom: 8px; font-size: 1.1875rem; }
.t-step__body p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }
.t-step__body p a { color: var(--blue); }
.t-step__body strong { color: var(--text-primary); font-weight: 600; }
.t-step__body .t-step__tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(245, 185, 66, 0.1);
  color: var(--warning);
  font-size: 0.875rem;
}
@media (prefers-reduced-motion: no-preference) {
  .js .t-step.reveal:not(:last-child)::before { transform: scaleY(0); transition: transform 0.7s ease 0.25s; }
  .js .t-step.reveal.is-visible:not(:last-child)::before { transform: none; }
  .js .t-step.reveal .t-step__num { transform: scale(0.6); transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
  .js .t-step.reveal.is-visible .t-step__num { transform: none; }
}

/* Small drawings of the screen each step talks about. */
.mock {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border-secondary);
  border-radius: 14px;
  background: var(--bg-input);
  font-size: 0.8125rem;
}
.mock__label { color: var(--text-tertiary); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mock__warn { color: var(--warning); font-weight: 600; }
.mock-phrase ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .mock-phrase ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mock-phrase li {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}
.mock-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mock-pay img { width: 32px; height: 32px; border-radius: 50%; }
.mock-pay .flow-coin { width: 32px; height: 32px; }
.mock-pay__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.mock-pay__chips span {
  padding: 3px 10px;
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  color: var(--text-secondary);
}
.mock-network__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border: 1px solid var(--border-primary);
  border-radius: 10px;
  color: var(--text-tertiary);
}
.mock-network__row.is-picked {
  border-color: rgba(53, 201, 138, 0.6);
  background: rgba(53, 201, 138, 0.08);
  color: var(--text-primary);
  font-weight: 600;
}
.mock-network__row svg { color: var(--success); }
.mock-swap__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  font-weight: 600;
}
.mock-swap__row img { width: 28px; height: 28px; border-radius: 50%; }
.mock-swap__row small { display: block; color: var(--text-tertiary); font-weight: 500; }
.mock-swap__arrow { display: grid; place-items: center; color: var(--text-tertiary); }
.mock-swap__btn,
.mock-p2p__btn {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.mock-sell { display: flex; align-items: center; gap: 10px; }
.mock-sell img { width: 28px; height: 28px; border-radius: 50%; }
.mock-sell strong { display: block; font-size: 0.875rem; }
.mock-sell small { color: var(--text-tertiary); }
.mock-sell__btns { display: flex; gap: 6px; margin-left: auto; }
.mock-sell__btns span {
  padding: 5px 12px;
  border: 1px solid var(--border-secondary);
  border-radius: 999px;
  font-weight: 600;
}
.mock-sell__btns .is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.mock-address__row { display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px; background: var(--bg-tertiary); font-weight: 600; }
.mock-address__row small { color: var(--text-tertiary); font-weight: 500; }
.mock-address__value { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-secondary); }
.mock-address__copy { color: var(--blue); }
.mock-p2p__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(53, 201, 138, 0.1);
  color: var(--success);
  font-weight: 600;
}
.mock-p2p__btn { background: var(--success); color: #06281a; }

.guide-callout { margin-top: 32px; }
.guide-callout a { color: var(--blue); }

.safe-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .safe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.guide-fine { margin: 32px auto 0; text-align: center; }
.holdings__guide { margin-top: 16px; }

/* ---------- 404 (404.html) ---------- */
.notfound {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 9vw, 112px) var(--section-space);
  text-align: center;
}
.notfound::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  z-index: -1;
  background: radial-gradient(560px circle at 50% 22%, rgba(47, 128, 255, 0.2), transparent 65%);
}
.notfound__panel { max-width: 720px; }
.notfound__code {
  margin: 0;
  font-size: clamp(5.5rem, 3rem + 11vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #cfe0ff, #4d8dff 55%, rgba(47, 128, 255, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound__title { margin-top: 16px; font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
.notfound__alt {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.notfound__alt .rotator { justify-items: center; }
.notfound .lede { margin: 20px auto 0; max-width: 460px; }
.notfound__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.notfound__picks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 460px; /* two even rows of three */
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
}
.notfound__picks .ticker { text-decoration: none; }
.notfound__links { margin-top: 32px; color: var(--text-tertiary); font-size: 0.9375rem; }
.notfound__links a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.notfound__links a:hover { color: var(--text-primary); }
@media (prefers-reduced-motion: no-preference) {
  .notfound__code { animation: float 6s ease-in-out infinite; }
}
