/* =========================================================
   Uniswap Protocol Guide — styles.css
   Premium dark theme · Uniswap magenta · distinctive type
   ========================================================= */

:root {
  /* palette */
  --bg: #0b0710;
  --bg-2: #100a16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.055);
  --surface-solid: #15101d;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f6f2fb;
  --muted: #b3a7c4;
  --muted-2: #8b7fa2;

  --pink: #f50db4;        /* brand */
  --pink-2: #fc72ff;      /* light brand */
  --pink-3: #ff007a;      /* legacy */
  --pink-ink: #ffffff;

  --grad-pink: linear-gradient(105deg, #fc72ff 0%, #f50db4 55%, #ff007a 100%);
  --grad-text: linear-gradient(100deg, #ffb3ec 0%, #fc72ff 35%, #f50db4 100%);

  /* type */
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;

  /* shape */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-pink: 0 18px 50px -18px rgba(245, 13, 180, 0.55);

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }

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

/* ---------- background aurora ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-aurora::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 100% -5%, rgba(245, 13, 180, 0.18), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(252, 114, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 520px; height: 520px; right: -120px; top: -160px; background: #f50db4; opacity: 0.32; }
.orb-2 { width: 420px; height: 420px; left: -140px; top: 38%; background: #fc72ff; opacity: 0.18; }
.orb-3 { width: 480px; height: 480px; left: 35%; bottom: -240px; background: #7a0aa0; opacity: 0.16; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 75%);
}
/* subtle grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
p { color: var(--muted); }
.lead { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--pink-2);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-pink); }

.grad {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-block;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--pink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap; will-change: transform;
}
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-pink); color: #fff; box-shadow: var(--shadow-pink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px rgba(245,13,180,0.7); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--pink); }
.btn-light { background: #fff; color: #170a18; font-weight: 800; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 7, 16, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { filter: drop-shadow(0 4px 14px rgba(245,13,180,0.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small { font-size: 0.68rem; color: var(--muted-2); letter-spacing: 0.02em; }

.primary-nav { display: flex; gap: 4px; margin-left: 14px; }
.primary-nav a {
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.primary-nav a:hover { color: var(--text); background: var(--surface); }
.primary-nav a[aria-current="true"] { color: var(--pink-2); background: rgba(245,13,180,0.1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* language switch */
.lang-switch { position: relative; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--muted); font-weight: 700; font-size: 0.82rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--pink); background: var(--surface); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 200;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px; min-width: 200px; max-height: 320px; overflow: auto;
  display: none; opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.lang-switch.open .lang-menu { display: block; opacity: 1; transform: translateY(0) scale(1); }
.lang-menu li { border-radius: 10px; }
.lang-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button[aria-selected="true"] { color: var(--pink-2); background: rgba(245,13,180,0.1); }
.lang-menu button small { color: var(--muted-2); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; border-radius: 10px; border: 1px solid var(--border-strong); }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(30px, 4vw, 54px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.5rem); margin: 18px 0 18px; }
.hero-title span { display: block; }
.hero-desc { font-size: 1.12rem; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats span { font-size: 0.8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }

/* hero wallets card */
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
  position: relative;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(252,114,255,0.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card-head { padding: 4px 6px 14px; }
.card-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }

.wallet-row {
  display: flex; align-items: center; gap: 13px; padding: 13px; border-radius: var(--r);
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.wallet-row:hover { background: var(--surface); border-color: var(--border-strong); transform: translateX(3px); }
.wallet-meta { display: flex; flex-direction: column; flex: 1; }
.wallet-meta strong { font-size: 0.98rem; font-weight: 700; }
.wallet-meta small { font-size: 0.8rem; color: var(--muted-2); }
.wallet-arrow { color: var(--muted-2); transition: transform 0.2s, color 0.2s; }
.wallet-row:hover .wallet-arrow { color: var(--pink-2); transform: translateX(4px); }

/* wallet brand icon tiles */
.wallet-icon {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 6px 16px -8px rgba(0,0,0,0.6);
}
.wallet-icon img { width: 22px; height: auto; }
.wallet-icon[data-brand="uniswap"]    { background: radial-gradient(120% 120% at 30% 20%, #2a1030, #160a18); }
.wallet-icon[data-brand="metamask"]   { background: linear-gradient(150deg, #f6a04b, #e2761b); }
.wallet-icon[data-brand="coinbase"]   { background: linear-gradient(150deg, #1b6dff, #0040d6); }
.wallet-icon[data-brand="walletconnect"]{ background: linear-gradient(150deg, #5ca8ff, #2b7bf3); }
.wallet-icon[data-brand="rainbow"]    { background: linear-gradient(135deg, #ff5c5c, #ffb15c 30%, #5cff8f 55%, #5cc8ff 75%, #b95cff); }
.wallet-icon[data-brand="phantom"]    { background: linear-gradient(150deg, #b9acff, #8a7bf0); }
.wallet-icon[data-brand="ledger"]     { background: linear-gradient(150deg, #2a2f3a, #0c0e14); }
.wallet-icon[data-brand="trust"]      { background: linear-gradient(150deg, #4a8fe0, #2b6fd6); }

/* ---------- breadcrumb ---------- */
.breadcrumb { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.breadcrumb ol { display: flex; gap: 10px; align-items: center; padding: 13px 0; font-size: 0.86rem; color: var(--muted-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--muted-2); }
.breadcrumb a:hover { color: var(--pink-2); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); padding: clamp(40px, 6vw, 72px) 22px; align-items: start; }
.content { min-width: 0; }
.block { padding-block: clamp(26px, 4vw, 44px); border-top: 1px solid var(--border); }
.block:first-child { border-top: none; padding-top: 0; }
.block h2 { margin: 12px 0 14px; }

/* callout */
.callout {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: var(--grad-pink); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-pink); position: relative; overflow: hidden;
}
.callout::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
}
.callout h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.callout p { color: rgba(255,255,255,0.9); max-width: 48ch; }
.callout .btn { position: relative; z-index: 1; }

/* generic tiles */
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s, box-shadow 0.28s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--shadow); }

/* wallet grid */
.wallet-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.wallet-grid .tile { display: flex; align-items: center; gap: 14px; padding: 16px; }
.wallet-grid strong { display: block; font-weight: 700; font-size: 0.98rem; }
.wallet-grid small { color: var(--muted-2); font-size: 0.82rem; }

/* network grid */
.net-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.net {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px; display: flex; flex-direction: column; gap: 2px; position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.net:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.net strong { font-size: 0.96rem; font-weight: 700; }
.net small { font-size: 0.72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.net-dot { width: 11px; height: 11px; border-radius: 50%; margin-bottom: 8px; box-shadow: 0 0 0 4px rgba(255,255,255,0.04); }
.net-more { align-items: center; justify-content: center; text-align: center; border-style: dashed; }
.net-more strong { color: var(--pink-2); }

.net[data-net="eth"] .net-dot, .net-dot[data-net="eth"] { background: #627eea; }
.net[data-net="unichain"] .net-dot { background: #f50db4; }
.net[data-net="arbitrum"] .net-dot { background: #28a0f0; }
.net[data-net="optimism"] .net-dot { background: #ff0420; }
.net[data-net="base"] .net-dot { background: #0052ff; }
.net[data-net="polygon"] .net-dot { background: #8247e5; }
.net[data-net="bnb"] .net-dot { background: #f0b90b; }
.net[data-net="avalanche"] .net-dot { background: #e84142; }
.net[data-net="blast"] .net-dot { background: #fcfc03; }
.net[data-net="celo"] .net-dot { background: #fcff52; }
.net[data-net="zksync"] .net-dot { background: #8c8dfc; }
.net[data-net="zora"] .net-dot { background: #c9c9d6; }
.net[data-net="world"] .net-dot { background: #e6e6ee; }

/* steps */
.steps { display: grid; gap: 14px; margin-top: 26px; counter-reset: step; }
.step { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; transition: border-color 0.25s, background 0.25s; }
.step:hover { border-color: var(--border-strong); background: var(--surface-2); }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--grad-pink);
  box-shadow: var(--shadow-pink);
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 0.96rem; }

/* accordion */
.accordion { display: grid; gap: 12px; margin-top: 26px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color 0.25s, background 0.25s; }
.acc-item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.acc-item summary {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-title { flex: 1; }
.chev { color: var(--muted-2); font-size: 1.2rem; transition: transform 0.3s var(--ease); }
.acc-item[open] .chev { transform: rotate(180deg); color: var(--pink-2); }
.acc-body { padding: 0 20px 20px; }
.acc-body p { margin-bottom: 10px; }
.acc-body ol, .acc-body ul { display: grid; gap: 8px; padding-left: 4px; }
.acc-body li { color: var(--muted); font-size: 0.94rem; padding-left: 26px; position: relative; }
.acc-body ol { counter-reset: s; }
.acc-body ol li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: rgba(245,13,180,0.16); color: var(--pink-2); font-size: 0.7rem; font-weight: 800; display: grid; place-items: center; }
.acc-body ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }

.badge { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-rose { background: rgba(245,13,180,0.14); color: #ff8fe0; border-color: rgba(245,13,180,0.3); }
.badge-violet { background: rgba(138,123,240,0.14); color: #bcb2ff; border-color: rgba(138,123,240,0.3); }
.badge-teal { background: rgba(40,160,160,0.14); color: #7fe6e6; border-color: rgba(40,160,160,0.3); }
.badge-amber { background: rgba(240,185,11,0.14); color: #ffd76a; border-color: rgba(240,185,11,0.3); }

/* security + faq grids */
.sec-grid, .faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.sec h3, .faq h3 { margin-bottom: 8px; }
.sec p, .faq p { font-size: 0.94rem; }
.sec-ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px;
  border-radius: 13px; color: var(--pink-2);
  background: rgba(245, 13, 180, 0.1); border: 1px solid rgba(245, 13, 180, 0.22);
}
.sec-ic svg { width: 24px; height: 24px; }
.reminder-title { display: flex; align-items: center; gap: 9px; }
.shield-ic { width: 18px; height: 18px; flex: none; color: var(--pink-2); }
.chev svg { width: 18px; height: 18px; display: block; }
.faq h3 { font-size: 1.02rem; }

.block#about p { max-width: 75ch; margin-bottom: 14px; }

/* ---------- live UNI market data ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 7px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.stat-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-3px); }
.stat-hero {
  position: relative; background: linear-gradient(160deg, rgba(245,13,180,0.12), rgba(255,255,255,0.03));
  border-color: rgba(245,13,180,0.25);
}
.stat-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); display: inline-flex; align-items: center; gap: 8px; }
.stat-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-hero .stat-value { font-size: 2.1rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-change { font-size: 0.92rem; font-weight: 800; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.stat-change.up { color: #36d399; }
.stat-change.up::before { content: "\25B2 "; font-size: 0.7em; }
.stat-change.down { color: #ff5d7d; }
.stat-change.down::before { content: "\25BC "; font-size: 0.7em; }

.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #36d399; box-shadow: 0 0 0 0 rgba(54,211,153,0.6); animation: livePulse 2.2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(54,211,153,0.55); } 70% { box-shadow: 0 0 0 8px rgba(54,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(54,211,153,0); } }

/* loading shimmer on placeholder values */
.stat-grid.is-loading .stat-value, .stat-grid.is-loading .stat-change { color: transparent; position: relative; border-radius: 8px; }
.stat-grid.is-loading .stat-value::after, .stat-grid.is-loading .stat-change::after {
  content: ""; position: absolute; inset: 2px 30% 2px 0; border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.stat-meta { margin-top: 16px; font-size: 0.85rem; color: var(--muted-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-meta a { color: var(--pink-2); }
.stat-meta a:hover { text-decoration: underline; }
.stat-dot { opacity: 0.5; }

/* live price on the UNI sidebar card */
.token-price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.token-price [data-stat="price"] { font-family: var(--font-display); font-size: 1.55rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.token-change { font-weight: 800; font-size: 0.86rem; color: #fff; opacity: 0.92; background: rgba(255,255,255,0.18); padding: 2px 8px; border-radius: 999px; }

@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat-hero { grid-column: 1 / -1; } }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.side-title { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 14px; }
.side-links { display: grid; gap: 2px; }
.side-links a { display: block; padding: 9px 11px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 0.92rem; transition: background 0.18s, color 0.18s, padding 0.18s; }
.side-links a:hover { background: var(--surface-2); color: var(--text); padding-left: 16px; }

.token-card { background: var(--grad-pink); border: none; box-shadow: var(--shadow-pink); position: relative; overflow: hidden; }
.token-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%); }
.token-card .card-eyebrow { color: rgba(255,255,255,0.85); }
.token-symbol { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; margin: 8px 0 4px; }
.token-card p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 16px; }
.token-card .btn-light { position: relative; z-index: 1; }

.reminder { background: rgba(245,13,180,0.06); border-color: rgba(245,13,180,0.22); }
.reminder p { font-size: 0.88rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; background: rgba(255,255,255,0.015); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 56px 22px 36px; }
.footer-brand p { font-size: 0.9rem; margin: 16px 0 18px; max-width: 38ch; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: var(--muted); font-weight: 600; font-size: 0.92rem; transition: color 0.18s, transform 0.18s; }
.footer-col a:hover { color: var(--pink-2); transform: translateX(3px); }
.footer-lang .lang-menu { left: 0; right: auto; transform-origin: top left; bottom: calc(100% + 10px); top: auto; }
.footer-lang .lang-toggle { font-size: 0.84rem; }

/* footer language links — crawlable internal hreflang links for SEO */
.footer-langs { padding: 24px 22px 10px; border-top: 1px solid var(--border); }
.footer-langs h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.lang-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 0; }
.lang-links a {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-size: 0.86rem; font-weight: 600;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.lang-links a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.lang-links a.is-active {
  color: #fff; border-color: transparent;
  background: var(--grad-pink); box-shadow: var(--shadow-pink); cursor: default;
}
.lang-links a.is-active:hover { transform: none; }

/* ---------- standalone resource pages (/fees/, /glossary/, 404) ---------- */
.page-hero { padding-top: 40px; }
.crumbline { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted-2); margin-bottom: 18px; }
.crumbline a { color: var(--muted); font-weight: 600; }
.crumbline a:hover { color: var(--pink-2); }
.crumbline span[aria-hidden] { opacity: 0.5; }

.glossary { display: grid; gap: 0; }
.glossary dt {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text);
  padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border);
}
.glossary dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.glossary dd { color: var(--muted); margin: 6px 0 0; max-width: 75ch; }

.error-wrap { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 22px; }
.error-code {
  display: block; font-family: var(--font-display); font-weight: 800; line-height: 0.9;
  font-size: clamp(5.5rem, 20vw, 12rem); letter-spacing: -0.04em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-wrap h1 { margin: 8px 0 10px; }
.error-wrap .lead { max-width: 50ch; margin-inline: auto; }
.error-langs { margin-top: 44px; }
.error-langs .eyebrow { display: block; margin-bottom: 16px; }
.lang-links.inline { display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.lang-links.inline a {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  font-size: 0.86rem; font-weight: 600; transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.lang-links.inline a:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 20px 22px 34px; border-top: 1px solid var(--border); font-size: 0.84rem; color: var(--muted-2); }
.net-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.net-pill .net-dot { margin: 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .tile, .net, .wallet-row { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .sidebar .reminder { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: 2; }
  .net-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* mobile nav drawer */
  .primary-nav.is-open {
    display: flex; flex-direction: column; position: fixed; inset: 72px 0 auto; z-index: 99;
    background: rgba(11,7,16,0.97); backdrop-filter: blur(20px); padding: 16px 22px 24px;
    border-bottom: 1px solid var(--border); gap: 4px; margin: 0;
    animation: drawer 0.3s var(--ease);
  }
  .primary-nav.is-open a { padding: 14px 14px; font-size: 1.05rem; border-radius: 12px; }
  @keyframes drawer { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 560px) {
  .wallet-grid, .sec-grid, .faq-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .callout { padding: 22px; }
  .hero-stats { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}
