/* Nuvora landing page — page layout built on tokens.css + nuvora-components.css.
   Every value is a token or follows the system's spacing scale; corners stay square. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { min-width: 320px; }
img, svg { display: block; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Copy the business still has to supply: dotted underline so it can't ship by accident. */
/* The [brackets] themselves mark copy the business still has to supply; no extra styling, to keep the page quiet. */
.tbd { white-space: nowrap; }

/* Inline text links are the only blue on the page. */
.text-link { color: var(--action-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { text-decoration-thickness: 2px; }

.skip-link { position: absolute; left: var(--space-16); top: -100px; z-index: 50; }
.skip-link:focus { top: var(--space-16); }

/* ---------- Grid frame: 1192 content, 124 margins at 1440, 16 on mobile ---------- */
.wrap { padding-inline: max(var(--grid-margin-mobile), calc((100% - var(--content-width)) / 2)); }

.section { padding-block: var(--space-128); } /* sections are separated by space, not rules */
.nv-sh + * { margin-top: var(--space-48); }

.split { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); column-gap: var(--grid-gutter); align-items: start; }
.split__aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-32); }
.split__main { grid-column: span 2; }
.split--even .split__aside { grid-column: span 1; }
.split--even { align-items: center; }   /* Security: copy and settings panel centred on each other */
.split .nv-sh + * { margin-top: 0; }

/* ---------- Pixel liquid background (header + hero) ---------- */
.liquid-bg {
  position: absolute; top: 0; left: 0; right: 0; z-index: 0;
  height: var(--liquid-height, 100vh);
  overflow: hidden; pointer-events: none;
  opacity: .25;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.liquid-bg canvas { image-rendering: pixelated; }
.hero { background: transparent; }

/* ---------- 1. Header: full-width navbar (after visuvate.com) ---------- */
/* Edge to edge and pinned to the top. Clear at the top of the hero; scrolling within the hero
   (.is-scrolled, js/landing.js) turns it into a blurred black glass bar with a hairline underneath.
   Inside: logo | centred links | actions, on the page's content grid so the logo lines up with it. */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; background: rgba(10, 10, 10, 0);
  transition: background-color .5s cubic-bezier(.22,.61,.36,1), border-color .5s cubic-bezier(.22,.61,.36,1), -webkit-backdrop-filter .5s cubic-bezier(.22,.61,.36,1), backdrop-filter .5s cubic-bezier(.22,.61,.36,1); }
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .09); background: rgba(10, 10, 10, .72); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }
/* --nav-edge: the page's content margin; the large bar pads in by it so the logo sits on the grid. */
.site-header { --nav-edge: max(var(--grid-margin-mobile), calc((100% - var(--content-width)) / 2)); --nav-ease: cubic-bezier(.22,.61,.36,1); }
.navbar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-24); height: 68px;
  margin-inline: 0; padding-inline: var(--nav-edge); border: 1px solid transparent; background: rgba(33, 31, 30, 0);
  transition: margin .5s var(--nav-ease), padding .5s var(--nav-ease), height .5s var(--nav-ease), transform .5s var(--nav-ease), border-color .5s var(--nav-ease), background-color .5s var(--nav-ease), -webkit-backdrop-filter .5s var(--nav-ease), backdrop-filter .5s var(--nav-ease); }

/* Past the hero (.is-compact, js/landing.js): the bar draws in to the earlier floating version,
   a raised translucent box the width of the content, 64px tall and 16px from the top. */
.site-header.is-compact { border-bottom-color: transparent; background: rgba(10, 10, 10, 0); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-compact .navbar { height: 64px; margin-inline: var(--nav-edge); padding-inline: var(--space-24) var(--space-12); transform: translateY(var(--space-16));
  border-color: var(--line); background: rgba(33, 31, 30, .72); -webkit-backdrop-filter: blur(14px) saturate(110%); backdrop-filter: blur(14px) saturate(110%); }
.site-header.is-compact .navbar__panel { margin: var(--space-8) var(--nav-edge) 0; padding-inline: var(--space-24); transform: translateY(var(--space-16)); border: 1px solid var(--line); background: rgba(33, 31, 30, .94); }
.navbar__logo { display: inline-flex; flex: none; }
.navbar__logo:focus-visible { outline-offset: 6px; }
/* Navbar mark motion. The loop's 480×480 canvas holds the 48-unit mark at 7× with 72px padding,
   so at a 28px mark the player is 40px square, offset 6px; overflow stays visible because the
   outgoing and incoming candles travel into that padding during a tick. */
.navbar__logo { align-items: center; }
.logo-motion { position: relative; display: block; width: 28px; height: 28px; flex: none; }
.logo-motion__still { display: block; }
.logo-motion__player { position: absolute; left: -6px; top: -6px; width: 40px; height: 40px; pointer-events: none; }
.logo-motion__player svg { display: block; }
.logo-motion.is-ready .logo-motion__still { visibility: hidden; }
.navbar__links { display: flex; align-items: center; justify-content: center; gap: var(--space-24); }
.navbar__link { display: inline-flex; align-items: center; height: 36px; color: var(--ink-muted); font-size: 15px; text-decoration: none; white-space: nowrap; transition: color .16s cubic-bezier(.2,.8,.2,1); }
.navbar__link:hover, .navbar__link.is-active { color: var(--ink); }
.navbar__link.is-active { font-weight: 500; }
.navbar__link:focus-visible { outline-offset: -4px; }
.navbar__actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-24); }
.navbar__menu { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-none); background: transparent; cursor: pointer; }
.navbar__menu svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: square; }
.navbar__menu-close, .navbar__menu[aria-expanded="true"] .navbar__menu-open { display: none; }
.navbar__menu[aria-expanded="true"] .navbar__menu-close { display: inline; }
.navbar__panel { padding: var(--space-8) max(var(--grid-margin-mobile), calc((100% - var(--content-width)) / 2)) var(--space-24); border-top: 1px solid rgba(255, 255, 255, .09); background: rgba(10, 10, 10, .9); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }
.navbar__panel nav { display: flex; flex-direction: column; }
.site-header:has(.navbar__menu[aria-expanded="true"]) { background: rgba(10, 10, 10, .9); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); }
.site-header.is-compact:has(.navbar__menu[aria-expanded="true"]) { background: rgba(10, 10, 10, 0); -webkit-backdrop-filter: none; backdrop-filter: none; }
.navbar__panel-link { padding: var(--space-12) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.navbar__panel-link.is-active { color: var(--brand-text); }
.navbar__panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); margin-top: var(--space-24); }
.navbar__panel-actions .nv-btn { width: 100%; }

/* ---------- Hero glow (behind header + hero) ---------- */
.hero-glow { position: absolute; top: 0; left: 0; right: 0; z-index: 0; height: var(--liquid-height, 100vh); overflow: hidden; pointer-events: none; }
/* warm haze on top, gold light rising up both sides */
.hero-glow::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 48% 26% at 50% 0%, rgba(221, 167, 60, .14), transparent 70%),
    radial-gradient(ellipse 16% 42% at 0% 62%, rgba(221, 167, 60, .38), rgba(221, 167, 60, .1) 55%, transparent 80%),
    radial-gradient(ellipse 16% 42% at 100% 62%, rgba(221, 167, 60, .38), rgba(221, 167, 60, .1) 55%, transparent 80%),
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(10, 10, 10, .55), transparent 75%); }

/* ---------- 2. Hero ---------- */
.hero { padding-top: var(--space-64); }
.hero__top { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); gap: var(--space-48) var(--grid-gutter); align-items: end; }
.hero .nv-hero__copy { grid-column: span 2; }
.hero .nv-hero__title { max-width: 784px; }

.trust { display: flex; flex-direction: column; gap: var(--space-24); animation: nv-rise .48s cubic-bezier(.2,.8,.2,1) .32s both; }
.trust__item { position: relative; display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-12); border-top: 1px solid var(--line); }
.trust dt { color: var(--ink-subtle); }
.trust dd { color: var(--ink); }

.hero-visual { margin-top: var(--space-96); animation-delay: .4s; }
.terminal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); min-height: 440px; }

.chart { display: flex; flex-direction: column; gap: var(--space-24); padding: var(--space-32); min-width: 0; }
.chart__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); flex-wrap: wrap; }
.chart__quote { display: flex; align-items: center; gap: var(--space-16); flex-wrap: wrap; }
.chart__pair { color: var(--ink-muted); }
.chart__price { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.interval { display: flex; border: 1px solid var(--line); }
.interval span { padding: var(--space-4) var(--space-12); color: var(--ink-subtle); }
.interval span + span { border-left: 1px solid var(--line); }
.interval .is-on { background: var(--bg-hover); color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.chart__svg { width: 100%; height: auto; flex: 1; overflow: visible; }
.chart__svg text { font-family: var(--font-display); font-size: 12px; fill: var(--ink-subtle); font-variant-numeric: tabular-nums; }
.chart__svg .gridline { stroke: var(--line); stroke-width: 1; }
.chart__svg .wick { stroke-width: 1; }
.chart__svg .c-up { fill: var(--neutral-light2); stroke: var(--neutral-light2); }
.chart__svg .c-down { fill: var(--bg); stroke: var(--line-strong); }
.chart__svg .c-mark { fill: var(--brand); }
.chart__svg .last-line { stroke: var(--brand); stroke-width: 1; stroke-dasharray: 3 4; }
.chart__svg .tag { fill: var(--brand); }
.chart__svg .tag-text { fill: var(--on-brand); font-weight: 600; }

.preview { display: flex; flex-direction: column; gap: var(--space-24); padding: var(--space-32); border-left: 1px solid var(--line); background: var(--bg-raised); }
.preview__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); }
.preview__title { color: var(--ink-muted); }
.preview__big { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.preview__big > div { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-16); background: var(--bg); }
.preview__big dt { color: var(--ink-subtle); }
.preview__big dd { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.preview__big dd span { color: var(--ink-muted); font-size: 16px; font-weight: 500; }
.preview__rows { display: flex; flex-direction: column; }
.preview__rows > div { display: flex; justify-content: space-between; gap: var(--space-12); padding: var(--space-12) 0; border-bottom: 1px solid var(--line); }
.preview__rows > div:first-child { padding-top: 0; }
.preview__rows dt { color: var(--ink-muted); }
.preview__rows dd { font-variant-numeric: tabular-nums; text-align: right; }
.preview__note { margin-top: auto; color: var(--ink-subtle); }

/* ---------- Key facts: full-width grey band of Stat cards ---------- */
.stats { padding-block: var(--space-64); background: var(--bg-raised); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gutter); }
/* dt is the label but sits under the number visually: column-reverse keeps the reading order right */
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-12); padding: var(--space-48) var(--space-24) var(--space-24); border: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; top: var(--space-24); left: var(--space-24); width: var(--space-24); height: 2px; background: var(--brand); }
.stat__value { display: flex; align-items: baseline; margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 60px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__unit { margin-left: var(--space-4); font-size: 18px; line-height: 1; font-weight: 500; letter-spacing: 0; color: var(--brand-display); }
.stat__label { color: var(--ink-muted); }

/* ---------- 3. Markets ---------- */
.markets__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); flex-wrap: wrap; }
.seg { display: flex; border: 1px solid var(--line); }
.seg__btn { height: 40px; padding: 0 var(--space-18); border: 0; background: transparent; color: var(--ink-muted); cursor: pointer; transition: background-color .16s cubic-bezier(.2,.8,.2,1), color .16s cubic-bezier(.2,.8,.2,1); }
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn:hover { background: var(--bg-hover); color: var(--ink); }
.seg__btn[aria-pressed="true"] { background: var(--bg-raised); color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.search { position: relative; width: min(320px, 100%); }
.search__icon { position: absolute; left: var(--space-12); top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-subtle); stroke-width: 1.5; stroke-linecap: square; pointer-events: none; }
.search__input { width: 100%; height: 40px; padding: 0 var(--space-12) 0 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-none); background: var(--bg); outline: none; transition: border-color .16s cubic-bezier(.2,.8,.2,1); }
.search__input::placeholder { color: var(--ink-subtle); }
.search__input:hover { border-color: var(--ink-muted); }
.search__input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search__input::-webkit-search-cancel-button { filter: grayscale(1); }

.table-wrap { margin-top: var(--space-24); border-top: 1px solid var(--line); }
.mkt { width: 100%; border-collapse: collapse; }
.mkt th { padding: var(--space-12) var(--space-16); color: var(--ink-subtle); font-weight: 500; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.mkt th.num { text-align: right; }
.mkt td { height: 72px; padding: 0 var(--space-16); border-bottom: 1px solid var(--line); vertical-align: middle; }
.mkt th:first-child, .mkt td:first-child { padding-left: 0; }
.mkt th:last-child, .mkt td:last-child { padding-right: 0; text-align: right; }
.mkt tbody tr { transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
.mkt tbody tr:hover { background: var(--bg-raised); }
.asset { display: flex; align-items: center; gap: var(--space-12); }
.asset__tile { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink-muted); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.asset__name { display: flex; flex-direction: column; }
.asset__name a { text-decoration: none; font-weight: 500; }
.asset__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.asset__ticker { display: flex; align-items: center; gap: var(--space-8); color: var(--ink-subtle); }
.asset__ticker .nv-badge { height: 20px; padding: 0 var(--space-4); }
.mkt__price { font-family: var(--font-display); font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mkt__vol { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.mkt__inline-change { display: none; }
.spark { width: 112px; height: 32px; fill: none; stroke: var(--ink-subtle); stroke-width: 1.5; stroke-linejoin: round; }
.mkt__empty { padding: var(--space-32) 0; color: var(--ink-muted); border-bottom: 1px solid var(--line); }
.mkt__empty:empty { display: none; }
.markets__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); margin-top: var(--space-24); color: var(--ink-subtle); flex-wrap: wrap; }

/* ---------- 4. Ways to trade ---------- */
/* Feature cards: an illustrated scene across the top of the card, the copy below it. Each scene sits on a
   faint hairline grid with a gold glow at its heart and melts into the card at its bottom edge. */
.ways { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); gap: var(--grid-gutter); }
.way { gap: 0; min-height: 0; padding: 0; overflow: hidden; }
.way__visual { position: relative; z-index: 0; height: 288px; overflow: hidden; isolation: isolate;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.way__visual::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line-faint) 1px, transparent 1px), linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 58% 68% at 50% 42%, #000, transparent); mask-image: radial-gradient(ellipse 58% 68% at 50% 42%, #000, transparent); }
.way__visual::after { content: ""; position: absolute; left: var(--glow-x, 50%); top: var(--glow-y, 42%); z-index: -1; width: 320px; height: 240px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(221, 167, 60, .2), rgba(221, 167, 60, 0)); pointer-events: none; }
.way__body { position: relative; display: flex; flex-direction: column; flex: 1; gap: var(--space-12); margin-top: calc(-1 * var(--space-16)); padding: 0 var(--space-32) var(--space-32); }
.way__title { margin-top: var(--space-4); }
.way .nv-feature__desc { flex: 1; }
.way__link { align-self: flex-start; margin-top: var(--space-8); }

/* 01: the buy core in orbit, card and bank drifting nearby, over a breathing ASCII glow (js/ascii-glow.js) */
.ascii-glow { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }
.orbit, .core, .sat { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); border-radius: 50%; }
.orbit--outer { width: 240px; height: 240px; border: 1px solid var(--line-alpha); }
.orbit--dashed { width: 164px; height: 164px; border: 1px dashed rgba(221, 167, 60, .45); animation: orbit-spin 48s linear infinite; }
.core { display: grid; place-items: center; width: 88px; height: 88px; border: 1px solid rgba(221, 167, 60, .7); color: var(--primary-light2);
  background: radial-gradient(circle at 50% 30%, var(--primary-dark4), var(--bg) 78%);
  box-shadow: 0 0 0 6px rgba(221, 167, 60, .06), 0 0 52px rgba(221, 167, 60, .38), inset 0 1px 0 rgba(255, 255, 255, .1); }
.core svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sat { display: grid; place-items: center; border: 1px solid var(--line-alpha); background: rgba(28, 27, 23, .85); color: var(--ink-muted); }
.sat svg { width: 45%; height: 45%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sat--card { width: 56px; height: 56px; left: 17%; top: 22%; animation: sat-float 7s ease-in-out infinite alternate; }
.sat--bank { width: 40px; height: 40px; left: 84%; top: 16%; opacity: .7; animation: sat-float 9s ease-in-out -3s infinite alternate; }
.orbit-chip { position: absolute; left: 50%; top: 76%; transform: translate(-50%, -50%); padding: 6px 10px; white-space: nowrap; border: 1px solid var(--line); background: var(--bg); color: var(--ink-muted); }
.orbit-chip span { color: var(--brand-text); }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes sat-float { from { transform: translate(-50%, -50%) translateY(-5px); } to { transform: translate(-50%, -50%) translateY(5px); } }

/* 02: a wall of coin tiles around the gold swap tile; ETH and SOL light in turn */
.tiles { position: absolute; left: 50%; top: 42%; display: grid; grid-template-columns: repeat(7, 48px); grid-auto-rows: 48px; gap: 8px; transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 30%, transparent); mask-image: radial-gradient(ellipse 52% 54% at 50% 50%, #000 30%, transparent); }
.tiles > span { display: grid; place-items: center; border: 1px solid var(--line-alpha); background: rgba(255, 255, 255, .015); color: var(--neutral-dark2); font-family: var(--font-display); font-size: 18px; }
.tiles .tile--swap { position: relative; z-index: 1; transform: scale(1.3); border-color: rgba(246, 222, 168, .6); color: var(--on-brand);
  background: linear-gradient(160deg, var(--primary-light2) 0%, var(--primary-normal) 52%, var(--primary-dark1) 100%);
  box-shadow: 0 0 0 1px rgba(221, 167, 60, .25), 0 8px 44px rgba(221, 167, 60, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.tiles .tile--swap svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.tiles .tile--from, .tiles .tile--to { animation: tile-lit 5s ease-in-out infinite; }
.tiles .tile--to { animation-delay: -2.5s; }
@keyframes tile-lit {
  0%, 100% { border-color: var(--line-alpha); color: var(--neutral-dark2); background: rgba(255, 255, 255, .015); box-shadow: none; }
  30%, 50% { border-color: rgba(221, 167, 60, .6); color: var(--primary-light2); background: var(--brand-wash); box-shadow: 0 0 24px rgba(221, 167, 60, .22); }
}

/* 03: the trading panel, cropped by the card's right edge */
.way__visual--term { --glow-x: 34%; --glow-y: 30%; }
.term { position: absolute; left: var(--space-32); top: var(--space-32); display: flex; flex-direction: column; gap: var(--space-12); width: 420px; padding: var(--space-16);
  border: 1px solid var(--line-alpha); background: linear-gradient(180deg, rgba(40, 38, 31, .92), rgba(28, 27, 23, .92)); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.term__head { display: flex; align-items: center; gap: var(--space-8); }
.term__icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-alpha); color: var(--brand-text); }
.term__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.term__price { margin-left: var(--space-8); font-family: var(--font-display); font-weight: 600; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.term__tabs { display: flex; gap: var(--space-8); }
.term__tabs span { padding: 6px 12px; border: 1px solid var(--line-alpha); color: var(--ink-subtle); }
.term__tabs .is-on { border-color: var(--ink-muted); background: rgba(255, 255, 255, .04); color: var(--ink); }
.term__chart { display: block; width: 100%; height: 104px; margin-top: var(--space-4); overflow: visible; }
.term__chart path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.term__chart .up path { stroke: var(--brand); }
.term__chart .up rect { fill: var(--brand); }
.term__chart .dn path { stroke: var(--neutral-dark2); }
.term__chart .dn rect { fill: var(--neutral-dark3); }
.term__chart .term__last { stroke: rgba(221, 167, 60, .55); stroke-dasharray: 3 4; }

/* ---------- 5. Fees ---------- */
.fee-tables { display: flex; flex-direction: column; gap: var(--space-48); }
.fees { width: 100%; border-collapse: collapse; }
.fees thead th { padding: 0 0 var(--space-12); color: var(--ink-subtle); font-weight: 500; text-align: left; border-bottom: 1px solid var(--line-strong); }
.fees thead th.num { text-align: right; }
.fees tbody th, .fees tbody td { padding: var(--space-16) 0; border-bottom: 1px solid var(--line); font-weight: 400; text-align: left; }
.fees tbody td.num { text-align: right; font-family: var(--font-display); font-weight: 600; }

/* ---------- 6. Security ---------- */
.safety { display: flex; flex-direction: column; width: 100%; }
.safety__item { display: grid; grid-template-columns: 24px 1fr; column-gap: var(--space-16); row-gap: var(--space-4); padding: var(--space-24) 0; border-top: 1px solid var(--line); }
.safety__icon { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: var(--ink-muted); stroke-width: 1.5; stroke-linecap: square; }
.safety dd { color: var(--ink-muted); }
.settings { padding: var(--space-32); }
.settings__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding-bottom: var(--space-24); border-bottom: 1px solid var(--line); }
.settings__list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: var(--space-24) 0; border-bottom: 1px solid var(--line); }
.settings__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.settings__list li > div { display: flex; flex-direction: column; gap: var(--space-4); }
.settings__list .body-sm { color: var(--ink-subtle); }

/* ---------- 7. Get started: how it works ---------- */
/* One raised panel with an offset hairline frame, the blueprint grid fading in from the top,
   a centred header and the four steps on a connected timeline. */
.flow { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: var(--space-96) var(--space-64) var(--space-64); border: 1px solid var(--line); background: var(--bg-raised); outline: 1px solid var(--line); outline-offset: var(--space-12); }
.flow__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(to right, var(--line-faint) 1px, transparent 1px), linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px); background-size: var(--space-64) var(--space-64); background-position: 50% 0;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 100%); }
.flow__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-48) var(--grid-gutter); width: 100%; margin-top: var(--space-64); }
.flow__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-8); text-align: center; }
.flow__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-16); border: 1px solid var(--neutral-dark3); background: var(--brand-wash); }
.flow__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-text); stroke-width: 1.5; stroke-linecap: square; }
.flow__num { color: var(--ink-subtle); }
.flow__title { color: var(--ink); }
.flow__step p { max-width: 260px; color: var(--ink-muted); }
.flow__cta { margin-top: var(--space-64); }

/* Connectors: a hairline from each icon to the next (::before), with an gold run that
   brightens toward the next step (::after). Gap of space-12 either side of the icons. */
.flow__step:not(:last-child)::before, .flow__step:not(:last-child)::after {
  content: ""; position: absolute; top: 27.5px; height: 1px;
  left: calc(50% + 28px + var(--space-12));
  width: calc(100% + var(--grid-gutter) - 56px - 2 * var(--space-12)); }
.flow__step:not(:last-child)::before { background: var(--neutral-dark3); }   /* the track: same warm grey as the icon frames */
/* Slow loop: an gold pulse runs along each connector, step 1 → 2 → 3 in turn, then rests.
   The gradient is 3× the line's length; sliding it across moves the bright head left to right. */
.flow__step:not(:last-child)::after { z-index: 1; transform-origin: 0 50%;
  background: linear-gradient(to right, rgba(221, 167, 60, 0) 0%, rgba(221, 167, 60, 0) 36%, var(--brand) 50%, rgba(221, 167, 60, 0) 50.5%, rgba(221, 167, 60, 0) 100%);
  background-size: 300% 100%; background-repeat: no-repeat; background-position: 100% 0;
  animation: flow-run 7.5s cubic-bezier(.45, 0, .55, 1) infinite; }
.flow__step:nth-child(2)::after { animation-delay: 2.5s; }
.flow__step:nth-child(3)::after { animation-delay: 5s; }
@keyframes flow-run { 0% { background-position: 100% 0; } 33% { background-position: 0% 0; } 100% { background-position: 0% 0; } }
@keyframes flow-run-v { 0% { background-position: 0 100%; } 33% { background-position: 0 0%; } 100% { background-position: 0 0%; } }

/* Reveal: the runs draw in one after another, and each icon lights as its run arrives. */
.js-motion .flow__step::after { transform: scaleX(0); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.js-motion .reveal.is-in .flow__step::after { transform: none; }
.js-motion .reveal.is-in .flow__step:nth-child(1)::after { transition-delay: .3s; }
.js-motion .reveal.is-in .flow__step:nth-child(2)::after { transition-delay: .9s; }
.js-motion .reveal.is-in .flow__step:nth-child(3)::after { transition-delay: 1.5s; }
.js-motion .reveal.is-in .flow__step .flow__icon { animation: flow-arrive 1.2s cubic-bezier(.2,.8,.2,1) both; }
.js-motion .reveal.is-in .flow__step:nth-child(1) .flow__icon { animation-delay: .1s; }
.js-motion .reveal.is-in .flow__step:nth-child(2) .flow__icon { animation-delay: .9s; }
.js-motion .reveal.is-in .flow__step:nth-child(3) .flow__icon { animation-delay: 1.5s; }
.js-motion .reveal.is-in .flow__step:nth-child(4) .flow__icon { animation-delay: 2.1s; }
@keyframes flow-arrive { 0% { border-color: var(--neutral-dark3); } 25% { border-color: var(--brand); } 100% { border-color: var(--neutral-dark3); } }

/* ---------- Pricing: fee tiers (blob cards) ---------- */
.tiers { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); gap: var(--grid-gutter); }
.tier { position: relative; }

/* Rotating gradient edge + glow-brand halo. Only one card glows at a time:
   the hovered/focused card, else the featured one (js/blob-cards.js sets .is-lit). */
.tier__glow { position: absolute; inset: -1.5px; z-index: 0; overflow: hidden; opacity: 0; transition: opacity .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s cubic-bezier(.2,.8,.2,1); }
.tier__glow::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, var(--primary-light2), var(--primary-light4), var(--primary-normal), var(--primary-dark1), var(--primary-light2)); filter: blur(6px); animation: tier-spin 5s linear infinite; }
/* Hover/focus no longer lights a card: no rotating edge, no glow, the 1px line edge stays. */
.tier__glow { display: none; }
@keyframes tier-spin { to { transform: rotate(1turn); } }

.tier__card { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-none); background: var(--bg-raised); overflow: hidden; }


/* Header light: one continuous shape across all three cards. Each card's blob layer is as wide
   as the whole row and shifted by the card's offset (--tiers-w / --tier-x from js/blob-cards.js). */
.tier__head { position: relative; height: 232px; overflow: hidden; }
.tier__blobs { position: absolute; top: 0; height: 100%; left: calc(var(--tier-x, 0px) * -1); width: var(--tiers-w, 100%); opacity: .55; transition: opacity .32s cubic-bezier(.2,.8,.2,1); }
.tier.is-featured .tier__blobs { opacity: 1; }
.tier__blobs span { position: absolute; border-radius: var(--radius-full); filter: blur(44px); will-change: transform; }
.tier__blobs span:nth-child(1) { left: 2%;  top: -150px; width: 30%; height: 230px; background: var(--primary-light5); }
.tier__blobs span:nth-child(2) { left: 37%; top: -140px; width: 26%; height: 230px; background: var(--primary-light6); }
.tier__blobs span:nth-child(3) { left: 14%; top: -10px;  width: 60%; height: 96px;  background: var(--primary-normal); transform: rotate(-6deg); }
.tier__blobs span:nth-child(4) { left: 68%; top: -170px; width: 32%; height: 250px; background: var(--primary-light4); }
.tier__blobs span:nth-child(5) { left: 60%; top: -40px;  width: 40%; height: 90px;  background: var(--primary-dark1); }
.tier__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 0%, transparent 18%, var(--bg-raised) 72%); pointer-events: none; }
.tier__intro { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: var(--space-4); padding: 0 var(--space-32) var(--space-16); }
.tier__name { color: var(--ink); }
.tier__price { display: flex; align-items: baseline; gap: var(--space-8); margin-top: var(--space-4); }
.tier__rate { font-family: var(--font-display); font-size: 48px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier__per { color: var(--ink-muted); }
.tier__meta { color: var(--ink-muted); }

.tier__divider { display: flex; align-items: center; gap: var(--space-16); margin: var(--space-24) var(--space-32) 0; color: var(--ink-subtle); }
.tier__divider::before, .tier__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tier__list { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-24) var(--space-32) var(--space-32); color: var(--ink-muted); }
.tier__list li { display: flex; align-items: flex-start; gap: var(--space-12); }
.tier__check { width: 20px; height: 20px; flex: none; padding: 2px; border: 1px solid var(--line); background: var(--bg); fill: none; stroke: var(--ink-muted); stroke-width: 1.5; stroke-linecap: square; }
.tier.is-featured .tier__check { stroke: var(--brand-text); border-color: var(--brand-wash); background: var(--brand-wash); }
.tier__cta { margin-top: auto; padding: 0 var(--space-32) var(--space-32); }
.tier__cta .nv-btn { width: 100%; }
/* Middle card: a comet edge in place of the rotating glow. A 1px ring (masked to the border)
   painted with a conic sweep: faint from the middle of the top edge, brightening round the
   top-right corner and down the right side, to a sharp head two-thirds along the bottom. */
.tier.is-featured .tier__card, .tier.is-featured.is-lit .tier__card { border-color: var(--line); }
.tier.is-featured .tier__glow { display: none; }
.tier.is-featured::after {
  content: ""; position: absolute; inset: 0; z-index: 2; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--comet-angle, 0deg) at 50% 50%,
    rgba(221, 167, 60, 0) 0deg,
    rgba(165, 83, 29, .55) 36deg,
    var(--primary-normal) 110deg,
    var(--primary-light2) 160deg,
    var(--primary-light3) 170deg,
    rgba(221, 167, 60, 0) 170.5deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: comet-travel 4s linear infinite;
  animation-play-state: paused;
}
/* The comet laps the card at a steady pace while the pricing row is on screen
   (js/blob-cards.js toggles .is-live). Browsers without @property show it still. */
@property --comet-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tiers.is-live .tier.is-featured::after { animation-play-state: running; }
@keyframes comet-travel { to { --comet-angle: 360deg; } }
.pricing__foot { display: flex; align-items: center; gap: var(--space-32); flex-wrap: wrap; margin-top: var(--space-32); }

/* ---------- 8. FAQ: topic tabs + question grid ---------- */
/* Header row: title and help line on the left, topic tabs on the right; a hairline closes it.
   A faint gold glow sits behind the questions. */
#faq { position: relative; isolation: isolate; }
#faq::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 38% at 42% 62%, rgba(221, 167, 60, .07), rgba(221, 167, 60, 0) 70%); }
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-32); padding-bottom: var(--space-32); border-bottom: 1px solid var(--line); }
.faq-head .nv-sh__desc { max-width: none; }   /* the help line sits on one line beside the switch */
.faq-head .nv-sh + * { margin-top: 0; }
/* Topic switch: a two-way toggle. A raised track holds both topics at equal width; a thumb slides
   under the chosen one (js/landing.js sets data-active on the track). The thumb is secondary: a neutral
   raised fill with the outline button's border, so the gold stays for primary actions. */
.faq-tabs { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; padding: var(--space-4); border: 1px solid var(--line); background: var(--bg-raised); }
.faq-tabs::before { content: ""; position: absolute; top: var(--space-4); bottom: var(--space-4); left: var(--space-4); width: calc(50% - var(--space-4));
  box-sizing: border-box; border: 1px solid var(--line-strong); background: var(--bg-hover); transition: transform .34s cubic-bezier(.2,.8,.2,1); }   /* secondary: the outline style */
.faq-tabs[data-active="1"]::before { transform: translateX(100%); }
.faq-tabs__tab { position: relative; z-index: 1; height: 36px; padding: 0 var(--space-18); border: 0; background: transparent; color: var(--ink-muted); white-space: nowrap; cursor: pointer; transition: color .2s cubic-bezier(.2,.8,.2,1); }
.faq-tabs__tab:hover { color: var(--ink); }
.faq-tabs__tab[aria-selected="true"] { color: var(--ink); }
.faq-tabs__tab:focus-visible { outline-offset: 2px; }
.faq-panel { padding-top: var(--space-32); }
.faq-panel:focus-visible { outline-offset: 8px; }
.faq-grid { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); gap: var(--space-48) var(--grid-gutter); }
.faq-q { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); }
.faq-q__icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: var(--space-8); border: 1px solid var(--line); background: var(--bg-raised); }
.faq-q__icon svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: square; }
.faq-q__title { color: var(--ink); }
.faq-q__answer { color: var(--ink-muted); }
.js-motion .reveal.is-in .faq-panel:not([hidden]) .faq-q { animation: nv-rise .48s cubic-bezier(.2,.8,.2,1) both; }
.js-motion .reveal.is-in .faq-panel:not([hidden]) .faq-q:nth-child(2) { animation-delay: .08s; }
.js-motion .reveal.is-in .faq-panel:not([hidden]) .faq-q:nth-child(3) { animation-delay: .16s; }

/* ---------- 9. Create account ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-raised); }
/* ASCII coins: a looping field of trending-coin icons in hatched stroke characters (js/ascii-coins.js),
   cleared behind the form so the copy keeps its contrast. */
.ascii-coins { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 34% 62% at 50% 50%, transparent 40%, #000 100%);
  mask-image: radial-gradient(ellipse 34% 62% at 50% 50%, transparent 40%, #000 100%); }
/* Dot field (Main.dc.html logic): warm-grey dot grid with drifting gold bands, cleared behind the form. */
.dot-field { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 34% 62% at 50% 50%, transparent 40%, #000 100%);
  mask-image: radial-gradient(ellipse 34% 62% at 50% 50%, transparent 40%, #000 100%); }
.closing__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing .nv-capture { margin-top: var(--space-32); text-align: left; }
.closing .nv-capture__input { background: var(--bg); }
.closing__legal { margin-top: var(--space-24); color: var(--ink-subtle); }
.nv-capture__note.is-fail { color: var(--error-fg); }
.nv-capture__note.is-fail::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--error-normal); }
/* error text inside the raised band sits on an error strip (4.3:1 on bg-raised otherwise) */
.closing .nv-capture__note.is-error, .closing .nv-capture__note.is-fail { padding: var(--space-4) var(--space-8); background: var(--error-bg); }

/* ---------- 10. Footer ---------- */
/* Sticky reveal: the page is a raised layer; the footer is pinned under it (z -1) and is
   uncovered as the page scrolls off. js/footer-reveal.js adds .is-sticky only when the footer
   fits the viewport, and drives --reveal-fade (0→1 over the first half) and --reveal-scale (.9→1). */
.page { position: relative; z-index: 1; background: var(--bg); }
.footer { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--space-64); border-top: 1px solid var(--line); background: var(--bg); }
.footer.is-sticky { position: sticky; bottom: 0; z-index: 0; }   /* under the page (z 1), yet still reachable by the pointer */
.footer__inner > .wrap:first-child { transform: scale(var(--reveal-scale, 1)); transform-origin: 50% 50%; }
/* Full screen when fully scrolled: at least the window's height (set by js/footer-reveal.js; 0 elsewhere), with the
   links at the top and the wordmark, glow and bottom bar pushed to the foot. */
.footer { display: flex; flex-direction: column; min-height: var(--footer-min, 0px); }
.footer__inner { display: flex; flex: 1; flex-direction: column; }
.footer__inner > .wrap:first-child { padding-bottom: max(var(--space-64), 22vw); }   /* room at the foot for the glow and the bottom bar */

/* Footer composition from the Figma "Nuvora footer" frame (1901 × 690): the mark's three bars in 10% white
   behind the links, the wordmark in solid white at 65% of the width, and a gold glow arc laid over the
   letters' lower third so they fade white → gold → cream into the bottom edge. */
/* Background: the Figma "Nuvora logo frame footer" layout, at the frame's own proportions across the
   footer (x on a 1901 grid, heights as % of the footer). Each column fades from clear at --a to 10% white
   at --b; the mark's bars are gold (#D89B3D) at 15%. The mark keeps the frame's proportions at every size: its bars
   scale with the width (so they stay on the column grid), centred where the frame has the mark (55.9% down).
   Smaller screens zoom in on the middle of the layout (--k), so columns and mark keep their desktop look.
   The frame puts the mark 41 units right of centre; the grid shifts left by that so the mark sits in the middle
   (a 25th column fills the right edge). It fades in with the footer's reveal. */
.footer__skyline { --k: 1; --my: 55.87%; position: absolute; top: 0; bottom: 0; left: calc((1 - var(--k)) * 50%); width: calc(var(--k) * 100%); transform: translateX(calc(-41 / 1901 * 100%)); z-index: -3; pointer-events: none; opacity: var(--reveal-fade, 1); }
.footer__skyline span, .footer__skyline i { position: absolute; left: calc(var(--x) / 1901 * 100%); }
.footer__skyline span { top: 0; bottom: 0; width: calc(74 / 1901 * 100%); transform-origin: 50% 100%; will-change: transform;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) var(--a), rgba(255, 255, 255, calc(.1 + var(--hl, 0) * .08)) var(--b)); }
.footer__skyline i { top: calc(var(--my) + (var(--t) - 385.5) * var(--k) * 100vw / 1901); width: calc(var(--w) / 1901 * 100%); height: calc(var(--h) * var(--k) * 100vw / 1901); background: rgba(216, 155, 61, calc(.15 + var(--hl, 0) * .15)); will-change: transform; }   /* the mark: #D89B3D at 15% */
/* js/footer-skyline.js: the columns breathe in a slow wave and stretch up toward the pointer (brighter as they rise). */

/* Glow: the gold ribbon of light across the footer's foot, drawn in code at the screen's resolution
   (js/footer-ribbon.js): low in the middle, sweeping up to both edges, with the bottom bar sitting on it. */
.footer__ribbon { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: max(24vw, 180px); pointer-events: none; opacity: 0; transition: opacity .6s cubic-bezier(.2,.8,.2,1); }
.footer__ribbon.is-ready { opacity: var(--reveal-fade, 1); }
.chart__svg { overflow: hidden; }   /* phones zoom the viewBox in on the latest candles; keep the rest inside the card */

.footer__top { display: grid; grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); gap: var(--space-48) var(--grid-gutter); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-16); }
/* Both Nuvora marks in the footer go back to the hero, like the navbar logo. */
.footer__logo { display: inline-flex; align-self: flex-start; }
.footer__logo:focus-visible { outline-offset: 6px; }
.footer__tagline { max-width: 280px; color: var(--ink-muted); }
.footer__nav { grid-column: span 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-32) var(--grid-gutter); }
.footer__nav h2 { color: var(--ink-muted); margin-bottom: var(--space-16); }
.footer__nav ul { display: flex; flex-direction: column; gap: var(--space-12); }
.footer__nav a { color: var(--ink-muted); text-decoration: none; transition: color .16s cubic-bezier(.2,.8,.2,1); }
.footer__nav a:hover { color: var(--ink); }
.footer__legal { display: flex; flex-direction: column; gap: var(--space-12); margin-top: var(--space-64); padding-top: var(--space-24); border-top: 1px solid var(--line); color: var(--ink-muted); }
.footer__legal p { max-width: 880px; }
/* Bottom bar: sits on the gold glow at the footer's foot, in dark text (the glow is light there). */
.footer__bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: var(--space-24); display: flex; align-items: center; justify-content: space-between; gap: var(--space-24); margin: 0; color: var(--on-brand); opacity: var(--reveal-fade, 1); }
.footer__bottom p { margin: 0; }
.footer__bottom-links { display: flex; gap: var(--space-24); }
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Entering motion ----------
   Sections no longer fade in as blocks: their objects arrive one by one (js/enter.js tags them with
   data-enter and a stagger delay; the section's .is-in, once at 20% visible, plays them).
   Premium personality: one decelerating curve, a 22px rise, cards growing from 96.5%, headers first. */
:root { --ease-enter: cubic-bezier(.2,.8,.2,1); }
.js-motion [data-enter] { opacity: 0; transform: translate3d(0, 22px, 0);
  transition: opacity .6s var(--ease-enter) var(--enter-delay, 0s), transform .8s var(--ease-enter) var(--enter-delay, 0s); }
.js-motion [data-enter="scale"] { transform: translate3d(0, 18px, 0) scale(.965); }
.js-motion [data-enter="left"] { transform: translate3d(-24px, 0, 0); }
.js-motion [data-enter="row"] { transform: translate3d(0, 10px, 0); }
.js-motion [data-enter="fade"] { transform: none; }
.js-motion .is-in [data-enter], .js-motion [data-enter].is-in { opacity: 1; transform: none; }
/* The navbar settles in from above as the loader lifts (held under the loader like the hero). */
.js-motion .navbar > * { animation: nv-drop .7s var(--ease-enter) both; }
.js-motion .navbar > :nth-child(2) { animation-delay: .08s; }
.js-motion .navbar > :nth-child(3) { animation-delay: .16s; }
html.nv-hero-wait .navbar > * { animation-play-state: paused; }
@keyframes nv-drop { from { opacity: 0; transform: translate3d(0, -12px, 0); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navbar__links, .navbar__login, .navbar__cta { display: none; }
  .navbar { grid-template-columns: 1fr auto; }
  .navbar__menu { display: grid; }
  .hero__top { grid-template-columns: minmax(0, 1fr); }
  .hero .nv-hero__copy { grid-column: auto; }
  .trust { flex-direction: row; gap: var(--grid-gutter); }
  .trust__item { flex: 1; }
  .terminal { grid-template-columns: minmax(0, 1fr); }
  .preview { border-left: 0; border-top: 1px solid var(--line); }
  .split, .split--even { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-48); }
  .split__main, .split--even .split__aside { grid-column: auto; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { max-width: 560px; }
  .flow { padding-inline: var(--space-32); }
  .flow__step p { max-width: none; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__nav { grid-column: auto; }
  .col-spark { display: none; }
}

/* ---------- Tablet (768–1100px) ---------- */
@media (min-width: 768px) and (max-width: 1100px) {
  /* the main action stays in the bar beside the menu button */
  .navbar__cta { display: inline-flex; }
  /* cards use the full width as side-by-side cards instead of a narrow column stuck to the left */
  .ways, .tiers { max-width: none; }
  .way { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .way__body { margin-top: 0; padding: var(--space-32); }
  .tier__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .tier__head { grid-column: 1; grid-row: 1 / span 3; height: auto; min-height: 232px; }
  .tier__divider { grid-column: 2; grid-row: 1; }
  .tier__list { grid-column: 2; grid-row: 2; }
  .tier__cta { grid-column: 2; grid-row: 3; align-self: end; margin-top: 0; }
  /* "How it works": the four steps as a 2 × 2 grid (no connector from the end of row 1) */
  .flow__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__step:nth-child(2)::before, .flow__step:nth-child(2)::after { display: none; }
  .footer__skyline { --k: 1.5; }
}

@media (max-width: 767px) {
  .stats { padding-block: var(--space-48); }
  .stats__grid { gap: var(--space-16); }
  .stat { padding: var(--space-40) var(--space-16) var(--space-16); }
  .stat::before { top: var(--space-16); left: var(--space-16); }
  .stat__value { font-size: 36px; line-height: 44px; }
  .stat__unit { font-size: 16px; }
  .section { padding-block: var(--space-64); }
  .navbar { height: 60px; }
  .site-header.is-compact .navbar { height: 56px; padding-inline: var(--space-16) var(--space-8); transform: translateY(var(--space-8)); }
  .site-header.is-compact .navbar__panel { transform: translateY(var(--space-8)); }
  .hero { padding-top: var(--space-32); padding-bottom: var(--space-64); }
  .hero .nv-hero__actions { width: 100%; flex-direction: column; }
  .hero .nv-hero__actions .nv-btn { width: 100%; }
  .trust { flex-direction: column; gap: var(--space-16); }
  .hero-visual { margin-top: var(--space-56); }
  .chart, .preview, .settings { padding: var(--space-24) var(--space-16); }
  .chart__price { font-size: 20px; }
  .chart__svg text { font-size: 15px; }
  .way__body { padding: 0 var(--space-24) var(--space-24); }
  .way__visual { height: 256px; }
  .term { left: var(--space-24); top: var(--space-24); }
  .seg { width: 100%; }
  .seg__btn { flex: 1; padding: 0 var(--space-8); }
  .search { width: 100%; }
  .col-vol, .col-change { display: none; }
  /* phones: the 24h change moves under the price, so the Trade button keeps its room */
  .mkt__inline-change { display: flex; justify-content: flex-end; margin-top: var(--space-4); }
  .mkt__inline-change .nv-badge { height: 20px; padding: 0 var(--space-4); }
  .mkt td { height: 64px; padding: 0 var(--space-8); }
  .asset__tile { display: none; }
  /* phones: the steps become a vertical timeline, icon on the left */
  .flow { align-items: stretch; padding: var(--space-64) var(--space-24) var(--space-48); outline-offset: var(--space-8); }
  .flow .nv-sh { text-align: left; align-items: flex-start; margin: 0; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); margin-top: var(--space-48); }
  .flow__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--space-16); row-gap: var(--space-4); align-items: start; text-align: left; }
  .flow__icon { grid-row: span 3; margin: 0; }
  .flow__step:not(:last-child)::before, .flow__step:not(:last-child)::after {
    top: calc(56px + var(--space-8)); left: 27.5px; width: 1px;
    height: calc(100% + var(--space-32) - 56px - 2 * var(--space-8)); }
  .flow__step:not(:last-child)::after { transform-origin: 50% 0;
    background: linear-gradient(to bottom, rgba(221, 167, 60, 0) 0%, rgba(221, 167, 60, 0) 36%, var(--brand) 50%, rgba(221, 167, 60, 0) 50.5%, rgba(221, 167, 60, 0) 100%);
    background-size: 100% 300%; background-position: 0 100%; animation-name: flow-run-v; }
  .js-motion .flow__step::after { transform: scaleY(0); }
  .js-motion .reveal.is-in .flow__step::after { transform: none; }
  .flow__cta { width: 100%; margin-top: var(--space-48); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
  .faq-head { flex-direction: column; align-items: stretch; gap: var(--space-24); }
  .faq-tabs__tab { padding: 0 var(--space-8); }
  .tier__intro, .tier__list, .tier__cta { padding-inline: var(--space-24); }
  .tier__divider { margin-inline: var(--space-24); }
  .tier__rate { font-size: 40px; line-height: 52px; }
  .dot-field { -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, transparent 35%, #000 100%); }
  .ascii-coins { -webkit-mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 70% 40% at 50% 50%, transparent 35%, #000 100%); }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* bottom bar: copyright on one line, links on the next; the glow is a little larger so both sit on the gold */
  .footer__bottom { flex-wrap: wrap; row-gap: 2px; column-gap: var(--space-12); bottom: 14px; font-size: 11px; }
  .footer__bottom p { flex-basis: 100%; }
  /* background zoomed in on its middle columns; the mark sits in the space between the links and the glow */
  .footer__skyline { --k: 2.2; --my: 74%; }
  .footer__inner > .wrap:first-child { padding-bottom: 168px; }   /* clear of the ribbon's raised ends */
  .footer__bottom-links { gap: var(--space-12); }
}

/* The system's EmailCapture stacks below 480px, but flex: 1 in a column collapses the field's height. */
@media (max-width: 480px) {
  .nv-capture__input { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit--dashed, .sat, .tiles .tile--from, .tiles .tile--to { animation: none; }
  html { scroll-behavior: auto; }
  .site-header, .navbar { transition: none; }
  .tier__glow::before { animation: none; }
  .flow__step::after { transition: none; animation: none !important; background-position: 50% 50% !important; }
  .flow__icon { animation: none !important; }
  .trust { animation: none; }
  .seg__btn, .search__input, .faq-tabs__tab, .faq-tabs::before, .tier__blobs, .footer__nav a { transition: none; }
    .tier.is-featured::after { animation: none; }
}

/* ---------- Edits made in Claude Design ---------- */
/* Navbar CTA: solid light fill, no border. */
.navbar .navbar__cta, .navbar .navbar__cta:hover { border-style: none; color: var(--bg); }
.navbar .navbar__cta { background-color: var(--ink); }
.navbar .navbar__cta:hover { background-color: var(--neutral-light3); }
/* Key facts band: tighter, 32px top and bottom at every width. */
.stats, .stats.reveal { padding-block: var(--space-32); }

/* ---------- Gold palette: sheen and the candle band ---------- */
/* Hero highlight in the gold sheen: champagne highlight to bronze shadow (README, "Gold sheen"). */
.hero .nv-hero__hl { background: linear-gradient(180deg, var(--primary-light5) 0%, var(--primary-light2) 34%, var(--primary-normal) 66%, var(--primary-dark1) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* "Ways to trade": a rising band of faint candlesticks behind the section (js/candle-field.js),
   faded at the top and bottom edges so it melts into the neighbouring sections. */
#ways-to-trade { position: relative; isolation: isolate; overflow: hidden; }
.candle-field { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }

/* ---------- Applied from the Claude Design canvas ---------- */
/* Navbar "Create account": a solid light button (ink fill, page-dark label, no border). */
.navbar__cta--solid { border-style: none; background-color: var(--ink); color: var(--bg); }
.navbar__cta--solid:hover { background-color: var(--neutral-light4); color: var(--bg); }
/* Section descriptions: 16px medium in these sections. */
#markets .nv-sh__desc, #ways-to-trade .nv-sh__desc, #security .nv-sh__desc, #pricing .nv-sh__desc, #faq .nv-sh__desc {
  font-size: 16px; line-height: 1.5; font-weight: 500; letter-spacing: 0; }
/* FAQ: the header column spans the row; larger icon tiles. */
.faq-head .nv-sh { width: 100%; }
.faq-head .nv-sh__desc { width: 100%; }
.faq-tabs__tab { text-align: center; }
.faq-q__icon { width: 40px; height: 40px; }
.faq-q__icon svg { width: 24px; height: 24px; }
/* "How it works": a soft gold radial glow across the top of the panel, behind its content. */
.flow__halo { position: absolute; z-index: -1; left: 40px; top: -140px; width: calc(100% - 80px); height: 362px; pointer-events: none; opacity: .15;
  background: radial-gradient(#dda73c 1%, #1c1a18 69%); }

/* ---------- Phone: 24px margins and standard mobile sizes ----------
   Page and card padding 24px. Type on a mobile scale: hero 40/48, section titles 28/36, card titles 20/28,
   lead text 16/24, controls 14–16. Every tap target at least 44px tall (48 for primary actions and fields);
   fields use 16px text so iOS doesn't zoom in on focus. */
@media (max-width: 767px) {
  :root { --grid-margin-mobile: 24px; }
  .nv-hero__title, .hero .nv-hero__title { font-size: 40px; line-height: 48px; letter-spacing: -0.03em; }
  .h2 { font-size: 28px; line-height: 36px; }
  .h3 { font-size: 20px; line-height: 28px; }
  .body-lg, .nv-hero__desc, .nv-sh__desc { font-size: 16px; line-height: 24px; }
  .stat__value { font-size: 32px; line-height: 40px; }
  .tier__rate { font-size: 36px; line-height: 44px; }
  .chart__price, .preview__big dd { font-size: 20px; line-height: 28px; }

  /* tap targets */
  .nv-btn--lg { height: 52px; padding: 0 var(--space-24); font-size: 16px; line-height: 24px; }
  .nv-btn--md { height: 48px; }
  .nv-btn--rg, .nv-btn--sm { height: 44px; font-size: 14px; line-height: 20px; }
  .nv-btn--sm { padding: 0 var(--space-16); }
  .nv-btn--ghost { padding-left: 0; padding-right: 0; }
  .seg__btn { height: 44px; }
  .search__input { height: 48px; font-size: 16px; }
  .nv-capture__input { height: 48px; font-size: 16px; }
  .faq-tabs__tab { height: 44px; }
  .navbar__menu { width: 44px; height: 44px; }
  .navbar__panel-link { display: flex; align-items: center; min-height: 48px; padding: 0; }
  .footer__nav ul { gap: 0; }
  .footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__nav h2 { margin-bottom: var(--space-4); }
  .footer__bottom a { display: inline-flex; align-items: center; min-height: 32px; }
  .text-link { padding-block: 10px; }

  /* card padding */
  .chart, .preview, .settings { padding: var(--space-24); }
  .stat { padding: var(--space-48) var(--space-24) var(--space-24); }
  .stat::before { top: var(--space-24); left: var(--space-24); }
  .way__body { padding: 0 var(--space-24) var(--space-24); }
  .tier__intro, .tier__list, .tier__cta { padding-inline: var(--space-24); }
  .tier__divider { margin-inline: var(--space-24); }
  .faq-tabs { width: 100%; }
  .navbar__logo, .footer__logo { min-height: 44px; }
  .way__link { height: 44px; }
}


/* ---- Credit badge: fixed bottom-right pill linking to mahdigzh.com ---- */
.credit { position: fixed; right: 24px; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 12px; padding: 6px 20px 6px 6px; border-radius: 999px; background: #fff; color: #16191d; text-decoration: none; font-family: var(--font-body); box-shadow: 0 8px 28px rgba(0, 0, 0, .35); transition: transform .2s ease, box-shadow .2s ease; }
.credit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.credit:focus-visible { outline: 2px solid var(--brand, #dda73c); outline-offset: 3px; }
.credit__mark { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #16191d; }
.credit__text { display: flex; flex-direction: column; }
.credit__title { font-size: 15px; line-height: 20px; font-weight: 400; }
.credit__title b { font-weight: 600; }
.credit__sub { font-size: 13px; line-height: 18px; color: #5b5f66; }
.credit__arrow { margin-left: 8px; color: #2f6fe4; transition: transform .2s ease; }
.credit:hover .credit__arrow { transform: translate(2px, -2px); }
@media (max-width: 767px) {
  .credit { right: 16px; bottom: 16px; gap: 10px; padding: 4px 14px 4px 4px; }
  .credit__mark { width: 40px; height: 40px; }
  .credit__title { font-size: 14px; }
  .credit__sub { font-size: 12px; line-height: 16px; }
  .credit__arrow { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .credit, .credit__arrow { transition: none; } .credit:hover { transform: none; } }
