/* WEB3EX showcase — optimized (A)
   Same direction as /showcase: dark field, lime signal, dotted globe.
   Rewritten as one cascade (no late override blocks). Mobile rules live next to the
   component they change. */

@font-face {
  font-family: "Brand Inter";
  src: url(/assets/fonts/InterVariable.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #090d0b;
  --surface: #0f1511;
  --surface-2: #151d17;
  --line: #243026;
  --line-strong: #34433a;
  --lime: #c8f35f;
  --lime-hi: #d8ff73;
  --mint: #46e690;
  --wallet-orange: #ff5c16;
  --wallet-light: #ffa680;
  --ink: #f4f6f0;
  --ink-2: #c3cdc5;   /* body copy: 11.6:1 on --bg */
  --ink-3: #94a399;   /* captions: 7.0:1 on --bg */
  --font: "Brand Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: 48px;
  --ease: cubic-bezier(.22, .68, 0, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video, canvas, svg { display: block; max-width: 100%; }
p { color: var(--ink-2); text-wrap: pretty; }
::selection { background: var(--lime); color: var(--bg); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px; }

.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--lime); color: var(--bg); font-weight: 650; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 650; letter-spacing: .01em;
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
}
.button > span { font-size: 18px; line-height: 1; }
.button-fox { flex: none; object-fit: contain; }
/* Same lime→mint recipe as the trading app's primary CTA, so the hand-off feels continuous */
.button-primary { color: #07110c; background: linear-gradient(100deg, var(--lime), var(--mint)); box-shadow: 0 10px 30px -12px rgba(200, 243, 95, .55); }
.button-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button-primary:active { transform: none; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 14px; gap: 12px; }
.button-dark { color: var(--ink); background: #0b100d; }
.button-dark:hover { background: #18211b; }

.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 550; color: var(--ink); transition: color .2s; }
.text-link > span { color: var(--lime); transition: transform .2s var(--ease); }
.text-link:hover { color: var(--lime); }
.text-link:hover > span { transform: translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(9, 13, 11, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.wordmark { font-size: 24px; font-weight: 850; letter-spacing: -.06em; white-space: nowrap; }
.wordmark span { color: var(--lime); }
.desktop-nav { display: flex; gap: 6px; margin-inline: auto; }
.desktop-nav a { padding: 10px 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s; }
.desktop-nav a:hover { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }
.mobile-nav[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: min(720px, calc(100svh - var(--header-h))); padding-block: 56px 72px; }
.wallet-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; color: var(--wallet-light); font-size: 14px; font-weight: 550; }
.wallet-eyebrow img { flex: none; }
.hero h1 { font-size: clamp(48px, 6.2vw, 92px); font-weight: 650; line-height: 1.02; letter-spacing: -.04em; }
.hero h1 > span { color: var(--lime); }
.hero-lede { max-width: 28em; margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.key-icon { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--wallet-light); position: relative; }
.key-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--wallet-light); transform: translate(-50%, -50%); }

.hero-visual { position: relative; height: 520px; min-width: 0; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 14% 3%; z-index: -1; background: radial-gradient(ellipse, rgba(255, 92, 22, .12), transparent 66%); }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: hue-rotate(228deg) saturate(.6); opacity: .3; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse, #000 20%, transparent 70%); }
#market-globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit { position: absolute; border-radius: 50%; z-index: -1; }
.orbit-one { inset: 48px -8px; border: 1px solid rgba(200, 243, 95, .18); transform: rotate(-32deg) scaleY(.78); }
.orbit-two { inset: 10px 60px; border: 1px dashed rgba(255, 166, 128, .24); transform: rotate(38deg); }
.wallet-core { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: grid; justify-items: center; width: 220px; gap: 20px; }
.wallet-core::before { content: ""; position: absolute; inset: -20px -40px; z-index: -1; background: radial-gradient(ellipse, rgba(9, 13, 11, .95) 8%, rgba(9, 13, 11, .65) 40%, transparent 70%); }
.wallet-core-label { color: var(--wallet-light); font-size: 12px; font-weight: 500; letter-spacing: .015em; }
.hero-fox { width: 164px; height: auto; filter: drop-shadow(0 14px 25px rgba(255, 92, 22, .14)); }
.metamask-wordmark { width: 90px; height: auto; }
.token { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(21, 29, 23, .82); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -18px #000; backdrop-filter: blur(8px); animation: float 7s var(--ease) infinite alternate; }
.token img { border-radius: 50%; }
.token b { display: block; font-size: 16px; line-height: 1.2; }
.token small { display: block; font-size: 13px; color: var(--ink-3); }
.token-a { left: 0; top: 6%; }
.token-b { right: -2%; top: 28%; animation-delay: -2.4s; }
.token-c { left: 0; bottom: 13%; animation-delay: -4.6s; }
.token-d { right: 0; bottom: 3%; animation-delay: -1.2s; }
@keyframes float { to { transform: translateY(-12px); } }
.motion-paused .token { animation-play-state: paused; }

.motion-toggle { position: absolute; right: max(var(--gutter), calc((100% - 1200px) / 2)); bottom: 20px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(9, 13, 11, .7); font-size: 13px; color: var(--ink-2); }
.motion-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.motion-icon { width: 10px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.motion-paused .motion-icon { border: 0; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }

/* ---------- Wallet to markets: a compact explanation of the relationship ---------- */
.wallet-route { border-bottom: 1px solid var(--line); background: var(--surface); }
.wallet-route-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 30px; }
.wallet-route p { font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.wallet-route strong { color: var(--ink); font-weight: 550; }
.wallet-route ol { display: flex; align-items: center; gap: clamp(36px, 5vw, 80px); }
.wallet-route li { position: relative; display: flex; align-items: center; gap: 12px; }
.wallet-route li + li::before { content: "→"; position: absolute; right: calc(100% + clamp(12px, 2vw, 32px)); color: var(--ink-3); }
.wallet-route li img { flex: none; }
.wallet-route b { display: block; font-size: 15px; font-weight: 600; }
.wallet-route li span:not(.route-ex) { display: block; font-size: 12px; color: var(--ink-3); }
.route-ex { width: 34px; color: var(--lime); font-weight: 850; font-size: 25px; letter-spacing: -.06em; }

/* ---------- Sections ---------- */
.section { padding-block: 112px; }
.section-tinted { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 650; line-height: 1.08; letter-spacing: -.04em; }
.section-head p { max-width: 24em; color: var(--ink-3); }
.section-head-stack { display: block; }
.section-head-stack p { margin-top: 18px; }
.section-head-stack .text-link { margin-top: 12px; }
.soft { color: var(--ink-3); }
.h2-small { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }

/* ---------- Markets ---------- */
.market-tabs { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.market-tabs::-webkit-scrollbar { display: none; }
.market-tabs button { flex: none; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font-size: 15px; font-weight: 550; color: var(--ink-2); transition: background .2s, color .2s, border-color .2s; }
.market-tabs button:hover { color: var(--ink); border-color: var(--ink-3); }
.market-tabs [aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.market-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.market-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asset-card { display: grid; grid-template-rows: auto auto 1fr auto auto; min-height: 236px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.asset-card:hover { border-color: rgba(200, 243, 95, .45); background: var(--surface-2); transform: translateY(-3px); }
.asset-card img { border-radius: 50%; margin-bottom: 20px; }
.asset-kind { font-size: 13px; color: var(--ink-3); }
.asset-card h3 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.asset-pair { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 650; }
.asset-pair small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.asset-go { margin-top: 4px; font-size: 13px; color: var(--ink-3); transition: color .2s; }
.asset-card:hover .asset-go { color: var(--lime); }
.asset-enter { animation: enter .35s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; }
.panel-foot p { font-size: 15px; }
.fine-print { margin-top: 28px; max-width: 60em; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

/* ---------- Product + phone ---------- */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.feature-list { display: grid; gap: 4px; margin-top: 8px; }
.feature { display: grid; gap: 6px; padding: 20px 22px; text-align: left; border: 1px solid transparent; border-radius: 16px; background: transparent; transition: background .2s, border-color .2s; }
.feature:hover { background: var(--surface-2); }
.feature[aria-selected="true"] { background: var(--surface-2); border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--lime); }
.feature-title { font-size: 19px; font-weight: 650; }
.feature-text { font-size: 15px; line-height: 1.7; color: var(--ink-3); }
.feature[aria-selected="true"] .feature-text { color: var(--ink-2); }
.product-link { margin-top: 16px; margin-left: 22px; }
.feature-desc-mobile { display: none; }

.phone-figure { justify-self: center; display: grid; justify-items: center; gap: 14px; }
.phone-figure figcaption { font-size: 13px; color: var(--ink-3); }
.phone { position: relative; width: 320px; height: 640px; padding: 46px 16px 74px; border-radius: 46px; background: radial-gradient(420px 300px at 85% 10%, rgba(35, 90, 45, .45), transparent 62%), linear-gradient(168deg, #050c08, #071209 55%, #030603); border: 1px solid rgba(233, 255, 233, .12); box-shadow: 0 0 0 9px #0c110d, 0 0 0 10px #263026, 0 50px 100px -30px #000; overflow: hidden; font-family: "Brand Inter", sans-serif; }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.screen { animation: enter .3s var(--ease) both; }
.screen[hidden] { display: none; }
.app-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-bar b { font-size: 22px; letter-spacing: -.02em; }
.app-search { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 11px; color: var(--ink-3); }
.app-chips { display: flex; gap: 6px; margin-bottom: 14px; overflow: hidden; }
.app-chips span { flex: none; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 11px; color: var(--ink-2); }
.app-chips .on { background: var(--lime); color: #07110c; font-weight: 650; }
.app-rows { display: grid; gap: 6px; }
.app-rows li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(220, 244, 220, .06); }
.app-rows img { border-radius: 50%; }
.app-rows b { display: block; font-size: 13px; line-height: 1.2; }
.app-rows small { display: block; font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.app-rows i { font-style: normal; font-size: 10px; font-weight: 650; padding: 3px 7px; border-radius: 6px; color: var(--mint); background: rgba(70, 230, 144, .1); }
.app-rows-skeleton li { grid-template-columns: 30px 1fr; }
.app-rows-skeleton li > span:last-child { display: grid; gap: 6px; }
.dot { width: 30px; height: 30px; border-radius: 10px; background: rgba(200, 243, 95, .14); }
.skeleton { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .09); }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.app-card { display: grid; gap: 9px; padding: 16px; margin-bottom: 12px; border-radius: 18px; background: linear-gradient(155deg, #142a1c, #07120b 70%); border: 1px solid rgba(200, 243, 95, .2); }
.app-cta { justify-self: start; margin-top: 6px; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #07110c; background: linear-gradient(100deg, var(--lime), var(--mint)); }
.app-donut { width: 150px; height: 150px; margin: 6px auto 20px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #071209 58%, transparent 59%), conic-gradient(from -90deg, rgba(200, 243, 95, .25) 0 100%); }
.app-donut span { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.app-dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.app-dock span { display: grid; justify-items: center; gap: 6px; padding: 10px 0; border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 10px; color: var(--ink-2); }
.ic { width: 26px; height: 26px; border-radius: 9px; background: rgba(200, 243, 95, .13); position: relative; }
.ic::after { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--lime); border-radius: 2px; }
.ic-in::after { border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); inset: 7px 8px 10px; }
.ic-out::after { border-width: 1.5px 1.5px 0 0; transform: rotate(-45deg); inset: 10px 8px 7px; }
.ic-list::after { border-width: 1.5px 0; inset: 8px 7px; }
.ic-shield::after { border-radius: 2px 2px 8px 8px; }
.app-trend { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(220, 244, 220, .06); }
.app-trend small { font-size: 10px; color: var(--ink-3); }
.app-trend svg { width: 100%; height: 50px; }
.app-trend path { fill: none; stroke: rgba(200, 243, 95, .45); stroke-width: 1.5; stroke-dasharray: 4 4; }
.app-nav { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-around; padding: 12px 6px; border-radius: 22px; background: rgba(15, 21, 17, .92); border: 1px solid rgba(220, 244, 220, .08); font-size: 10px; color: var(--ink-3); }
.app-nav .on { color: var(--lime); font-weight: 650; }

/* ---------- History (stock-record story, carried over from version B) ---------- */
.history-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.history-steps li { position: relative; padding: 28px 28px 30px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
/* sequence connector between steps */
.history-steps li + li::before { content: ""; position: absolute; left: -17px; top: 82px; width: 17px; height: 1px; background: var(--line-strong); }
.vignette { width: 160px; height: 110px; margin-bottom: 24px; fill: none; stroke: var(--ink-3); stroke-width: .9; }
.numeral { display: block; font-size: 15px; font-weight: 650; letter-spacing: .04em; color: var(--ink-3); }
.history-steps h3 { margin-top: 6px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.history-steps p { margin-top: 10px; font-size: 15px; line-height: 1.7; }
/* the third way is where WEB3EX lives */
.history-steps .is-now { background: var(--surface-2); border-color: rgba(200, 243, 95, .45); }
.history-steps .is-now .vignette { stroke: var(--lime); }
.history-steps .is-now .numeral { color: var(--lime); }
.history-caveat { margin-top: 28px; padding: 18px 22px; max-width: 60em; border-left: 3px solid var(--lime); border-radius: 0 12px 12px 0; background: var(--surface); font-size: 15px; line-height: 1.7; color: var(--ink-2); }

/* ---------- Start + FAQ ---------- */
.start-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.steps { counter-reset: step; display: grid; gap: 0; margin: 28px 0 32px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 15px; font-weight: 650; color: var(--lime); }
.steps b { font-size: 17px; font-weight: 650; }
.steps .step-wallet b { display: flex; align-items: center; gap: 10px; }
.steps .step-wallet::before { color: var(--wallet-light); border-color: rgba(255, 166, 128, .4); }
.steps span { font-size: 15px; color: var(--ink-3); }
.faq-list { margin-top: 20px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(-135deg); border-color: var(--lime); }
.faq-list summary:hover { color: var(--lime); }
.faq-list details p { padding: 0 32px 22px 0; font-size: 16px; line-height: 1.65; max-width: 60ch; }

/* ---------- Risk ---------- */
.risk { padding-block: 72px; }
.risk-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; }
.risk ul { display: grid; gap: 12px; }
.risk li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.risk li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--lime); }

/* ---------- Closing ---------- */
.closing { padding-bottom: 96px; }
.closing-card { position: relative; overflow: hidden; padding: 80px 64px; border-radius: 28px; background: var(--lime); color: #07110c; }
.closing-card h2 { position: relative; z-index: 1; font-size: clamp(36px, 4.8vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.closing-card p { position: relative; z-index: 1; margin: 16px 0 32px; color: #2c3a1a; font-size: 17px; }
.closing-card .button { position: relative; z-index: 1; }
.closing-word { position: absolute; right: -20px; bottom: -70px; font-size: 300px; font-weight: 900; line-height: 1; letter-spacing: -.08em; color: rgba(7, 17, 12, .08); }

/* ---------- Wallet website entry ---------- */
.wallet-entry { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-1, #101712); color: var(--ink); box-shadow: 0 24px 100px #0009; }
.wallet-entry::backdrop { background: #020705bf; backdrop-filter: blur(8px); }
.wallet-entry h2 { margin-top: 22px; font-size: clamp(28px, 5vw, 38px); line-height: 1.12; }
.wallet-entry [data-wallet-status] { margin-block: 20px 24px; min-height: 3em; font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.wallet-entry-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--ink-2); background: transparent; font-size: 28px; cursor: pointer; }
.wallet-entry button:disabled { opacity: .6; cursor: wait; }
.wallet-entry-mobile { display: flex; margin-top: 20px; min-height: 44px; align-items: center; }
.wallet-entry-mobile[hidden] { display: none; }
.wallet-entry-help { margin-top: 24px; color: var(--ink-3); font-size: 13px; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
.footer-main { display: flex; justify-content: space-between; gap: 32px; align-items: start; }
.footer-main p { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-main nav a { padding: 10px 12px; font-size: 14px; color: var(--ink-2); }
.footer-main nav a:hover { color: var(--lime); }
.footer-registry { margin-top: 32px; max-width: 64em; scroll-margin-top: calc(var(--header-h) + 24px); }
.footer-registry-label { margin-bottom: 10px; font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.footer-registry a { display: inline-block; padding-block: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); text-underline-offset: 4px; }
.footer-registry a:hover { color: var(--lime); }
.footer-registry > p:last-child { margin-top: 8px; font-size: 13px; line-height: 1.8; color: var(--ink-3); }
.footer-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.8; color: var(--ink-3); max-width: 64em; }
.footer-copy { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.footer-attribution { display: flex; align-items: center; gap: 10px; margin-top: 16px; max-width: 64em; font-size: 12px; color: var(--ink-3); }
.footer-attribution img { flex: none; }
.noscript-note { position: fixed; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { gap: 40px; }
  .start-faq, .risk-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .hero-visual { height: 460px; }
  .wallet-core { gap: 18px; width: 180px; }
  .hero-fox { width: 138px; }
  .metamask-wordmark { width: 78px; }
  .token { gap: 8px; padding: 10px; }
  .token img { width: 32px; height: 32px; }
  .token b { font-size: 14px; }
  .token small { font-size: 11px; }
  .token-b { top: 12%; }
  .token-c { bottom: 4%; }
  .wallet-route-inner { gap: 24px; }
  .wallet-route ol { gap: 36px; }
  .wallet-route li + li::before { right: calc(100% + 12px); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: 64px; }
  body { font-size: 16px; }
  .wordmark { font-size: 21px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; align-content: center; justify-items: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
  .menu-toggle span { width: 20px; height: 1.5px; background: currentColor; transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .header-inner { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-actions .button { gap: 8px; padding-inline: 14px; }
  .mobile-nav { display: grid; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }

  /* Copy + CTA land above the fold; the globe becomes a short band below them */
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-block: 40px 64px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .wallet-eyebrow { margin-bottom: 22px; font-size: 12px; gap: 10px; }
  .wallet-eyebrow img { width: 24px; height: auto; }
  .hero-lede { margin-top: 20px; font-size: 17px; }
  .hero-actions { margin-top: 28px; gap: 8px 20px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-note { margin-top: 18px; font-size: 13px; }
  .hero-visual { height: 360px; margin-inline: calc(var(--gutter) * -1); }
  .token { padding: 9px 13px 9px 9px; gap: 9px; border-radius: 13px; }
  .token img { width: 30px; height: 30px; }
  .token b { font-size: 14px; }
  .token small { font-size: 12px; }
  .token-a { left: 4%; top: 5%; }
  .token-b { right: 4%; top: 10%; }
  .token-c { left: 4%; bottom: 4%; }
  .token-d { right: 4%; bottom: 1%; }
  .wallet-core { top: 46%; gap: 16px; }
  .wallet-core-label { font-size: 11px; }
  .hero-fox { width: 120px; }
  .metamask-wordmark { width: 70px; }
  .motion-toggle { right: var(--gutter); bottom: 14px; min-height: 44px; }

  .wallet-route-inner { display: block; padding-block: 24px; }
  .wallet-route p { margin-bottom: 22px; font-size: 14px; }
  .wallet-route p br { display: none; }
  .wallet-route p strong::before { content: " "; }
  .wallet-route ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .wallet-route li { display: grid; gap: 10px; }
  .wallet-route li + li::before { right: calc(100% + 6px); top: 3px; }
  .wallet-route b { font-size: 14px; }
  .wallet-route li span:not(.route-ex) { font-size: 11px; }
  .route-ex { height: 34px; line-height: 34px; }

  .section { padding-block: 72px; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head p { margin-top: 14px; }
  .market-tabs { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .market-grid, .market-grid[data-count="3"], .market-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .asset-card { min-height: 0; padding: 18px; }
  .asset-card img { width: 40px; height: 40px; margin-bottom: 14px; }
  .asset-card h3 { font-size: 19px; }
  .asset-pair { margin-top: 14px; padding-top: 10px; font-size: 14px; }
  .asset-go { font-size: 12px; }
  .panel-foot { display: block; }
  .panel-foot .text-link { margin-top: 6px; }

  /* Phone: features collapse to a segmented control right above the phone, so a tap visibly changes the screen */
  .product-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
  .feature { min-height: 44px; padding: 0 6px; place-items: center; border-radius: 999px; }
  .feature[aria-selected="true"] { background: var(--ink); box-shadow: none; }
  .feature[aria-selected="true"] .feature-title { color: var(--bg); }
  .feature-title { font-size: 15px; }
  .feature-text { display: none; }
  .feature-desc-mobile { display: block; min-height: 5.1em; margin-top: 16px; font-size: 15px; }
  .product-link { margin-left: 0; margin-top: 0; }
  .phone { width: 300px; height: 600px; }

  .history-steps { grid-template-columns: 1fr; gap: 10px; }
  .history-steps li { display: grid; grid-template-columns: 96px 1fr; column-gap: 18px; padding: 22px; }
  .history-steps li + li::before { left: 50px; top: -11px; width: 1px; height: 11px; }
  .history-steps .vignette { grid-row: span 3; width: 96px; height: 66px; margin: 4px 0 0; }
  .history-steps h3 { font-size: 20px; }
  .history-caveat { padding: 16px 18px; }

  .faq-list summary { font-size: 16px; }
  .faq-list details p { padding-right: 0; }

  .closing { padding-bottom: 64px; }
  .closing-card { padding: 48px 24px; border-radius: 22px; }
  .closing-card .button { width: 100%; }
  .closing-word { font-size: 180px; bottom: -40px; }

  .footer-main { display: block; }
  .footer-main nav { margin: 20px -12px 0; }
}

@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .header-actions .button { padding-inline: 11px; font-size: 12px; }
  .header-actions .button > span { display: none; }
  .wallet-core { top: 48%; }
  .wallet-core-label { display: none; }
  .hero-fox { width: 110px; }
  .token { padding: 8px; gap: 7px; }
  .token small { font-size: 11px; }
  .market-grid, .market-grid[data-count="3"], .market-grid[data-count="2"] { grid-template-columns: 1fr; }
  .phone { width: 272px; height: 560px; padding-inline: 12px; }
}

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