/* ============================================================
   TRXWEG — private digital-asset yield
   Layout: bento dashboard · market mosaic · gauge ticket
   Palette: royal purple · magenta · crimson on near-black plum
   ============================================================ */

:root {
  --bg: #0a0610;
  --bg-2: #0d0815;
  --panel: #130b1d;
  --panel-2: #1a1027;
  --text: #f4eefb;
  --muted: #a99cb9;
  --muted-2: #726580;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --violet: #8b5cf6;
  --violet-deep: #6d28d9;
  --magenta: #d946ef;
  --crimson: #ff2d6f;
  --crimson-deep: #c81e5a;
  --up: #2fe6a8;
  --down: #ff5c86;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255, 45, 111, 0.32); color: #fff; }

.shell {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

/* ---------- Ambient ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 80% -12%, rgba(139, 92, 246, 0.20), transparent 62%),
    radial-gradient(760px 540px at 0% 106%, rgba(255, 45, 111, 0.12), transparent 62%),
    radial-gradient(620px 620px at 104% 58%, rgba(217, 70, 239, 0.07), transparent 62%);
}
main, header, footer, .tape { position: relative; z-index: 1; }

/* ---------- Top nav ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 6, 16, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.topbar.is-scrolled { border-color: var(--line); background: rgba(10, 6, 16, 0.92); }
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: #0a0610;
  background: linear-gradient(140deg, #a78bfa 0%, #d946ef 48%, #ff2d6f 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px -12px rgba(255, 45, 111, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.brand__name {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
}
.topbar__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.topbar__nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.topbar__nav a:hover { color: var(--text); }
.topbar__actions { display: flex; gap: 10px; }
.topbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 40px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 9px;
}
.topbar__toggle span {
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Tape ---------- */
.tape {
  overflow: hidden;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tape__track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.tape:hover .tape__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tape__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.tape__item b { color: var(--text); font-weight: 600; }
.tape__item .price { color: var(--text); }
.tape__item .chg { font-size: 0.7rem; }
.tape__item .coin { width: 22px; height: 22px; font-size: 0.6rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--crimson {
  color: #fff;
  background: linear-gradient(120deg, var(--crimson), var(--crimson-deep));
  box-shadow: 0 14px 34px -14px rgba(255, 45, 111, 0.8);
}
.btn--crimson:hover { box-shadow: 0 20px 44px -14px rgba(255, 45, 111, 1); }
.btn--line {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.02);
}
.btn--line:hover { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.08); }
.btn--lg { padding: 15px 28px; font-size: 0.94rem; }
.btn--block { width: 100%; }

/* ---------- Kicker ---------- */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker span {
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--crimson), var(--violet));
}

/* ---------- Coins ---------- */
.coin {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 600;
  color: #0a0610;
  flex: none;
  background: #cbd5e1;
  overflow: hidden;
}
.coin img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.coin__glyph { position: relative; z-index: 0; }
.coin--btc  { background: linear-gradient(140deg, #f7931a, #ffbe5c); color: #241300; }
.coin--eth  { background: linear-gradient(140deg, #8a9cff, #627eea); color: #080b1f; }
.coin--usdt { background: linear-gradient(140deg, #26a17b, #5fe0b6); color: #032018; }
.coin--bnb  { background: linear-gradient(140deg, #f3ba2f, #f8d574); color: #2a1e00; }
.coin--sol  { background: linear-gradient(140deg, #a06bff, #14f195); color: #07130f; }
.coin--xrp  { background: linear-gradient(140deg, #4b5b73, #9fb2cc); color: #060a10; }
.coin--ada  { background: linear-gradient(140deg, #3f5bff, #7b8dff); color: #eaf1ff; }
.coin--doge { background: linear-gradient(140deg, #c2a633, #ecd97a); color: #2a2200; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 7vw, 88px) 0 40px; }
.hero__intro { max-width: 960px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(105deg, var(--violet) 0%, var(--magenta) 45%, var(--crimson) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero__lead { color: var(--muted); font-size: 1.02rem; max-width: 52ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(158px, auto);
  gap: 16px;
  margin-top: 52px;
  grid-template-areas:
    "dash dash payout networks"
    "dash dash yield secure"
    "stats stats stats stats";
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(139, 92, 246, 0.10), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: border-color 0.28s ease, transform 0.28s ease;
}
.tile:hover { border-color: rgba(139, 92, 246, 0.4); }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--crimson);
  text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(255, 45, 111, 0.55);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 111, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(255, 45, 111, 0); }
}

.tile--dash { grid-area: dash; padding: 24px; }
.dash__balance { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 14px 0 4px; }
.dash__balance b {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.pos { color: var(--crimson); font-family: var(--mono); font-size: 0.76rem; }
.chg { font-family: var(--mono); font-size: 0.76rem; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.dash__chart { flex: 1; min-height: 108px; margin: 8px 0 12px; }
.dash__chart svg { width: 100%; height: 100%; }
.dash-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 2.4s ease forwards 0.4s;
}
.dash-fill { opacity: 0; animation: fadeIn 1.1s ease forwards 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.dash__minis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dash__minis > div { display: flex; flex-direction: column; gap: 2px; }
.dash__minis > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.dash__minis span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.dash__minis b {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
}
.dash__minis em { font-style: normal; font-size: 0.62rem; }

.tile--payout { grid-area: payout; justify-content: flex-start; }
.payout__time {
  display: block;
  margin: 14px 0 6px;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tile--payout p { font-size: 0.76rem; color: var(--muted); }
.payout__bar {
  height: 4px;
  margin-top: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.payout__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--crimson));
  transition: width 0.6s linear;
}

.tile--networks { grid-area: networks; }
.networks__num {
  display: block;
  margin: 10px 0 auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--text);
}
.coin-cluster { display: flex; margin-top: 14px; }
.coin-cluster .coin {
  width: 30px; height: 30px;
  font-size: 0.66rem;
  margin-left: -8px;
  border: 2px solid var(--panel);
}
.coin-cluster .coin:first-child { margin-left: 0; }

.tile--yield {
  grid-area: yield;
  border-color: rgba(255, 45, 111, 0.32);
  background:
    radial-gradient(300px 220px at 100% 0%, rgba(255, 45, 111, 0.3), transparent 70%),
    linear-gradient(150deg, rgba(139, 92, 246, 0.22), rgba(255, 45, 111, 0.14));
}
.tile--yield .tile__label { color: #f2b8cb; }
.yield__num {
  display: block;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.3rem, 3.8vw, 3.1rem);
  line-height: 1;
  color: #fff;
}
.yield__num span { font-size: 0.5em; margin-left: 2px; }
.tile--yield p { font-size: 0.76rem; color: rgba(255, 255, 255, 0.72); margin-top: 4px; }
.tile__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: #fff;
}
.tile__link span { transition: transform 0.2s ease; }
.tile__link:hover span { transform: translateX(3px); }

.tile--secure {
  grid-area: secure;
  justify-content: space-between;
  background:
    radial-gradient(300px 220px at 0% 100%, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
}
.secure__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.tile--secure b {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tile--secure p { font-size: 0.74rem; color: var(--muted); }

.tile--stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(139, 92, 246, 0.12), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}
.tile--stats > div { display: flex; flex-direction: column; gap: 5px; }
.tile--stats > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.tile--stats b {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tile--stats span { font-size: 0.74rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 108px) 0;
  border-top: 1px solid var(--line);
}
.section--tint {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.045), rgba(255, 45, 111, 0.015) 60%, transparent);
}
.sec-head { margin-bottom: 46px; }
.sec-head__row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: end;
  margin-top: 22px;
}
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.sec-head__row > p { color: var(--muted); font-size: 0.98rem; max-width: 46ch; }

/* ---------- Market mosaic ---------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.market {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.market::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px 140px at 85% 0%, rgba(139, 92, 246, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.market:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}
.market:hover::after { opacity: 1; }
.market--xl { grid-column: span 2; grid-row: span 2; padding: 26px; }
.market--wide { grid-column: span 2; }

.market__head { display: flex; align-items: center; gap: 12px; }
.market__head .coin { width: 42px; height: 42px; font-size: 1rem; }
.market--xl .market__head .coin { width: 52px; height: 52px; font-size: 1.2rem; }
.market__name b { display: block; font-size: 0.95rem; font-weight: 600; }
.market__name small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted-2); }
.market__tag {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 111, 0.3);
  background: rgba(255, 45, 111, 0.1);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff7aa2;
}
.market__rate {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--crimson);
}
.market--xl .market__rate { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.market__rate small { font-size: 0.68rem; color: var(--muted-2); font-weight: 400; }
.market__live { display: flex; align-items: baseline; gap: 10px; }
.market__live b { font-family: var(--mono); font-size: 0.92rem; font-weight: 500; color: var(--text); }
.market__live .chg { font-size: 0.68rem; }
.market__spark { color: var(--violet); }
.market__spark svg { width: 100%; height: 38px; }
.market--xl .market__spark svg { height: 96px; }
.market--wide .market__spark svg { height: 46px; }
.market__desc { color: var(--muted); font-size: 0.85rem; max-width: 46ch; }
.market__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.market__meta b { color: var(--muted); font-weight: 500; }
.market__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  align-self: flex-start;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.market__btn span { transition: transform 0.2s ease; }
.market__btn:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--violet-deep), var(--crimson-deep));
}
.market__btn:hover span { transform: translateX(3px); }
.market--xl .market__btn { align-self: flex-start; }
.mosaic__note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.calc__copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 22px 0 20px;
}
.calc__lead { color: var(--muted); font-size: 0.98rem; max-width: 46ch; }
.calc__points { list-style: none; padding: 0; margin: 30px 0 0; }
.calc__points li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.calc__points li i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--crimson);
}

.calc__panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(255, 45, 111, 0.1), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.gauge { position: relative; width: 100%; max-width: 220px; aspect-ratio: 1; justify-self: center; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track,
.gauge__value { fill: none; stroke-width: 9; }
.gauge__track { stroke: rgba(255, 255, 255, 0.08); }
.gauge__value {
  stroke: var(--crimson);
  stroke-linecap: round;
  stroke-dasharray: 552.92;
  stroke-dashoffset: 552.92;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(255, 45, 111, 0.45));
}
.gauge__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.gauge__center span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.gauge__center b {
  font-family: var(--mono);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.gauge__center em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.64rem;
  color: var(--crimson);
}

.field { margin-bottom: 16px; }
.field > label,
.field__row label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__row { display: flex; align-items: baseline; justify-content: space-between; }
.field__row output { font-family: var(--mono); font-size: 0.78rem; color: var(--violet); }

select, .amount {
  width: 100%;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(6, 3, 11, 0.7);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
select {
  padding: 11px 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393a0b4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select:focus, .amount:focus-within {
  outline: none;
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}
.amount { display: flex; align-items: center; padding: 0 14px; }
.amount span { color: var(--muted); font-weight: 500; }
.amount input {
  flex: 1;
  width: 100%;
  padding: 11px 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.98rem;
  font-weight: 500;
}
.amount input:focus { outline: none; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--crimson);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255, 45, 111, 0.18);
}
input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--crimson);
  cursor: pointer;
}

.calc__results { display: flex; gap: 10px; margin-bottom: 16px; }
.calc__results > div {
  flex: 1;
  padding: 11px 13px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: rgba(4, 2, 8, 0.35);
}
.calc__results span { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.calc__results b { font-family: var(--mono); font-size: 0.96rem; font-weight: 500; color: var(--text); }
.calc__results b.pos { color: var(--violet); }
.calc__note {
  margin-top: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

/* ---------- Process ---------- */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.flow::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 22px;
  right: 22px;
  border-top: 1px dashed var(--line-2);
}
.flow__step { position: relative; padding-top: 0; }
.flow__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--crimson);
}
.flow__step h3 { font-family: var(--serif); font-size: 1.5rem; margin: 26px 0 8px; letter-spacing: -0.01em; }
.flow__step p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }

/* ---------- Security ---------- */
.security {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.security__copy h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 20px;
}
.security__lead { color: var(--muted); font-size: 0.98rem; max-width: 46ch; }
.security__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.security__badges span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9bcd9;
}

.vault {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.vault__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.vault__ring--1 { inset: 5%; border-color: rgba(139, 92, 246, 0.25); }
.vault__ring--2 {
  inset: 20%;
  border-style: dashed;
  border-color: rgba(255, 45, 111, 0.32);
  animation: spin 46s linear infinite;
}
.vault__ring--3 { inset: 34%; border-color: rgba(139, 92, 246, 0.35); }
@keyframes spin { to { transform: rotate(360deg); } }
.vault__core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 94px; height: 94px;
  border-radius: 24px;
  color: var(--crimson);
  background: linear-gradient(160deg, rgba(255, 45, 111, 0.16), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(255, 45, 111, 0.4);
  box-shadow: 0 0 60px -10px rgba(255, 45, 111, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.vault__orbit {
  position: absolute;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.vault__orbit--a { top: 2%; left: 50%; transform: translateX(-50%); }
.vault__orbit--b { top: 48%; right: 0; transform: translateY(-50%); }
.vault__orbit--c { bottom: 4%; left: 50%; transform: translateX(-50%); }
.vault__orbit--d { top: 48%; left: 0; transform: translateY(-50%); }

.security__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.security__item i {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--crimson);
}
.security__item h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.security__item p { color: var(--muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.faq__head { position: sticky; top: 100px; }
.faq__head h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 22px 0 16px;
}
.faq__lead { color: var(--muted); font-size: 0.95rem; }
.faq__head .btn { margin-top: 24px; }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--violet); }
.faq__item[open] summary { color: var(--crimson); }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq__icon::before { width: 13px; height: 1.5px; }
.faq__icon::after { width: 1.5px; height: 13px; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__item p {
  padding: 0 2px 22px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 62ch;
}

/* ---------- Closing ---------- */
.closing { padding: clamp(64px, 9vw, 108px) 0; border-top: 1px solid var(--line); }
.closing__inner {
  position: relative;
  padding: clamp(48px, 7vw, 76px) clamp(28px, 5vw, 64px);
  border-radius: 22px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background:
    radial-gradient(620px 260px at 85% 0%, rgba(255, 45, 111, 0.16), transparent 70%),
    radial-gradient(560px 300px at 10% 100%, rgba(139, 92, 246, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.closing__inner h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
}
.closing__inner > p:not(.kicker) { color: var(--muted); font-size: 1rem; max-width: 52ch; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Footer ---------- */
.footer {
  padding: 56px 0 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand p { color: var(--muted-2); font-size: 0.84rem; margin-top: 16px; max-width: 34ch; }
.footer__col h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.footer__col a:hover { color: var(--crimson); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "dash dash"
      "dash dash"
      "payout networks"
      "yield secure"
      "stats stats";
  }
  .calc, .security { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .security__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .topbar { position: relative; top: auto; }
  .topbar__nav, .topbar__actions { display: none; }
  .topbar__toggle { display: flex; margin-left: auto; }
  .topbar.is-open .topbar__nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 10px 24px 20px;
    background: rgba(10, 6, 16, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }
  .topbar.is-open .topbar__nav a { padding: 12px 0; font-size: 1rem; }
  .topbar.is-open .topbar__toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .topbar.is-open .topbar__toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .market--xl { grid-column: span 2; grid-row: span 2; }
  .market--wide { grid-column: span 2; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .sec-head__row { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .calc__panel { grid-template-columns: 1fr; }
  .gauge { max-width: 190px; }
  .security { grid-template-columns: 1fr; }
  .vault { max-width: 340px; }
  .security__grid { grid-template-columns: 1fr; gap: 0; }
  .security__item { padding: 20px 0; border-top: 1px solid var(--line); }
  .security__item i { margin-bottom: 8px; }
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas:
      "dash"
      "payout"
      "networks"
      "yield"
      "secure"
      "stats";
  }
  .tile--dash { min-height: 360px; }
  .tile--stats { grid-template-columns: 1fr; }
  .tile--stats > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 14px; }
  .hero__row { align-items: flex-start; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .mosaic { grid-template-columns: 1fr; }
  .market--xl, .market--wide { grid-column: auto; grid-row: auto; }
  .closing__actions { flex-direction: column; align-items: stretch; }
  .closing__actions .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }
  .vault__orbit { font-size: 0.5rem; padding: 4px 8px; }
}

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