/* ==========================================================================
   Jupiter Almanac — Design System
   Pure CSS3. Dark mode, glassmorphism, Solana-inspired gradients.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #07080f;
  --bg-2: #0a0b16;
  --bg-3: #0e1020;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --surface-3: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #eaedf6;
  --muted: #9aa3b8;
  --faint: #646d83;

  --purple: #9945ff;
  --blue: #19b7ff;
  --cyan: #00d4ff;
  --green: #14f195;
  --gold: #f5c44e;
  --up: #25e2a4;
  --down: #ff5d73;

  /* Gradients */
  --grad: linear-gradient(120deg, #9945ff 0%, #19b7ff 50%, #14f195 100%);
  --grad-soft: linear-gradient(120deg, rgba(153, 69, 255, 0.16), rgba(25, 183, 255, 0.12), rgba(20, 241, 149, 0.14));
  --grad-2: linear-gradient(135deg, #b06bff, #2ad0ff);
  --glow-purple: 0 0 60px -12px rgba(153, 69, 255, 0.55);
  --glow-green: 0 0 60px -12px rgba(20, 241, 149, 0.45);

  /* Type */
  --font-display: "Clash Display", "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing / radius / shadow */
  --container: 1200px;
  --container-wide: 1340px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
  --header-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

/* Atmospheric background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% -5%, rgba(153, 69, 255, 0.22), transparent 60%),
    radial-gradient(50% 45% at 92% 0%, rgba(25, 183, 255, 0.18), transparent 55%),
    radial-gradient(55% 50% at 80% 100%, rgba(20, 241, 149, 0.12), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
svg { fill: none; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(20, 241, 149, 0.28); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 20px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--muted); }
strong { color: #fff; font-weight: 600; }
code, kbd, .mono { font-family: var(--font-mono); }

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

/* ---- Icons ---- */
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }
.icon-xs { width: 14px; height: 14px; flex: none; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-wide { max-width: var(--container-wide); }
section { position: relative; }
.section-pad { padding-block: clamp(3rem, 7vw, 6rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 100px;
  background: var(--surface); backdrop-filter: blur(8px);
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--green); color: #04130c; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}

/* ---- Glass / cards ---- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.96rem;
  padding: 12px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad); color: #05140d; border: none;
  box-shadow: 0 10px 30px -12px rgba(20, 241, 149, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(20, 241, 149, 0.7); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--green); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--green); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  transition: 0.2s var(--ease);
}
.chip:hover { color: #fff; border-color: var(--green); background: var(--surface-3); transform: translateY(-1px); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.badge.up { color: var(--up); border-color: rgba(37, 226, 164, 0.3); background: rgba(37, 226, 164, 0.08); }
.badge.down { color: var(--down); border-color: rgba(255, 93, 115, 0.3); background: rgba(255, 93, 115, 0.08); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 8, 15, 0.78); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; }
.brand-mark svg { width: 34px; height: 34px; }
.brand-text { font-size: 1.12rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.brand-text strong { color: #fff; font-weight: 700; }

.primary-nav { margin-left: 8px; }
.nav-list { display: flex; list-style: none; padding: 0; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px; border-radius: 10px;
  font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: 0.2s;
}
.nav-link .icon-xs { transition: transform 0.25s var(--ease); opacity: 0.6; }
.nav-item:hover .nav-link, .nav-item.is-active .nav-link { color: #fff; background: var(--surface-2); }
.nav-item:hover .nav-link .icon-xs { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 280px; padding: 10px; border-radius: var(--r);
  background: rgba(12, 14, 26, 0.92); backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: 0.25s var(--ease);
}
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; gap: 2px; }
.mega-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border-radius: 11px; color: var(--muted); font-size: 0.92rem; font-weight: 500;
  transition: 0.18s;
}
.mega-link .icon-xs { opacity: 0; transform: translateX(-6px); transition: 0.2s var(--ease); color: var(--green); }
.mega-link:hover { background: var(--surface-2); color: #fff; }
.mega-link:hover .icon-xs { opacity: 1; transform: translateX(0); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-size: 0.8rem; font-family: var(--font-mono); cursor: pointer; transition: 0.2s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--border-strong); color: #fff; }
.lang-btn .icon { width: 15px; height: 15px; flex-shrink: 0; }
.lang-current { font-size: 0.78rem; letter-spacing: .05em; font-weight: 600; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 6px; min-width: 230px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
}
.lang-switcher.open .lang-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-opt {
  display: flex; align-items: center; justify-content: center;
  padding: 7px 4px; border-radius: 9px; font-size: 0.76rem; font-family: var(--font-mono);
  color: var(--muted); text-align: center; transition: 0.15s; letter-spacing: .04em;
}
.lang-opt:hover { background: var(--surface-3); color: #fff; }
.lang-opt[aria-current="true"] { background: var(--accent); color: #000; font-weight: 700; }
.btn-search {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-family: var(--font-body); font-size: 0.88rem; cursor: pointer; transition: 0.2s;
}
.btn-search:hover { border-color: var(--border-strong); color: #fff; }
.btn-search .icon { width: 17px; height: 17px; }
.btn-search kbd {
  font-family: var(--font-mono); font-size: 0.72rem; padding: 2px 6px; border-radius: 6px;
  background: var(--surface-3); border: 1px solid var(--border); color: var(--faint);
}
.btn-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: 0.2s;
}
.btn-icon:hover { border-color: var(--border-strong); background: var(--surface-2); }
.nav-toggle { display: none; }

/* ---- Mobile drawer ---- */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 150;
  background: rgba(10, 11, 22, 0.98); backdrop-filter: blur(24px); border-left: 1px solid var(--border-strong);
  padding: 18px; transform: translateX(105%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.drawer-group summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 12px; border-radius: 12px; font-weight: 600; color: #fff; font-family: var(--font-display);
}
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group[open] summary { background: var(--surface-2); }
.drawer-group[open] summary .icon-xs { transform: rotate(180deg); }
.drawer-group summary .icon-xs { transition: 0.25s; opacity: 0.6; }
.drawer-sub { display: flex; flex-direction: column; padding: 4px 0 8px; }
.drawer-sub a { padding: 9px 14px; color: var(--muted); border-radius: 9px; font-size: 0.93rem; }
.drawer-sub a:hover { color: #fff; background: var(--surface); }

/* ---- Search overlay ---- */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(4, 5, 11, 0.72); backdrop-filter: blur(8px); padding-top: 12vh;
}
.search-overlay.open { display: block; animation: fade 0.2s var(--ease); }
.search-box { width: min(680px, 92vw); margin-inline: auto; }
.search-field {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r);
  background: rgba(14, 16, 30, 0.96); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
.search-field input { flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 1.1rem; font-family: var(--font-body); }
.search-results {
  margin-top: 10px; background: rgba(14, 16, 30, 0.96); border: 1px solid var(--border); border-radius: var(--r);
  max-height: 56vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.search-hint { padding: 20px; color: var(--faint); font-size: 0.92rem; }
.s-result { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); transition: 0.15s; }
.s-result:hover, .s-result.active { background: var(--surface-2); }
.s-result .s-kind { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; color: var(--green); border: 1px solid var(--border); padding: 3px 7px; border-radius: 6px; flex: none; }
.s-result .s-title { color: #fff; font-weight: 500; }
.s-result .s-desc { color: var(--faint); font-size: 0.82rem; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Hero ---- */
.hero { position: relative; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero h1 { margin: 18px 0; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 42ch; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta .m-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.hero-meta .m-lbl { font-size: 0.82rem; color: var(--faint); }

.hero-visual { position: relative; }
.orbit-card {
  position: relative; border-radius: var(--r-xl); padding: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(153,69,255,0.14), rgba(20,241,149,0.08));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg);
}
.orbit-card::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 320px; height: 320px;
  background: var(--grad); filter: blur(80px); opacity: 0.28; border-radius: 50%;
}
.oc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: relative; }
.oc-head .badge { background: rgba(20,241,149,0.1); color: var(--green); border-color: rgba(20,241,149,0.3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(20,241,149,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(20,241,149,0.5); } 70% { box-shadow: 0 0 0 8px rgba(20,241,149,0); } 100% { box-shadow: 0 0 0 0 rgba(20,241,149,0); } }
.mini-quote { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--r); background: rgba(8,9,18,0.6); border: 1px solid var(--border); margin-bottom: 10px; position: relative; }
.mini-quote:last-child { margin-bottom: 0; }
.mq-left { display: flex; align-items: center; gap: 11px; }
.mq-sym { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; color: #06120c; }
.mq-name { display: flex; flex-direction: column; line-height: 1.2; }
.mq-name b { color: #fff; font-size: 0.95rem; }
.mq-name span { color: var(--faint); font-size: 0.78rem; }
.mq-right { text-align: right; font-family: var(--font-mono); }
.mq-price { color: #fff; font-weight: 600; }
.mq-chg { font-size: 0.8rem; }
.mq-chg.up { color: var(--up); } .mq-chg.down { color: var(--down); }

/* ---- Stats / features ---- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile { padding: 22px; display: flex; flex-direction: column; gap: 4px; border-radius: var(--r); }
.stat-val { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: #fff; }
.stat-label { font-size: 0.86rem; color: var(--muted); }
.stat-sub { font-family: var(--font-mono); font-size: 0.78rem; color: var(--faint); }
.stat-sub.up { color: var(--up); } .stat-sub.down { color: var(--down); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 26px; border-radius: var(--r-lg); transition: 0.3s var(--ease); position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-card:hover .feature-icon { box-shadow: var(--glow-green); }
.feature-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--surface-2); border: 1px solid var(--border); color: var(--green); transition: 0.3s; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; }
.feature-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--green); font-weight: 600; font-size: 0.9rem; }
.feature-link .icon-xs { transition: transform 0.2s var(--ease); }
.feature-link:hover .icon-xs { transform: translateX(4px); }

/* ---- Section heads ---- */
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 14px 0 12px; }
.section-head p { font-size: 1.05rem; }

/* ---- Page hero (interior) ---- */
.page-hero { padding-block: clamp(2.4rem, 5vw, 3.6rem) 1rem; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { font-size: 1.15rem; max-width: 60ch; margin-top: 16px; }

/* ---- Breadcrumbs ---- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; padding: 14px 22px; font-size: 0.84rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs li[aria-current] { color: var(--text); }

/* ---- Article layout ---- */
.article-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 30px clamp(3rem, 6vw, 5rem); }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.article-body { min-width: 0; }

.toc { padding: 20px; border-radius: var(--r); }
.toc-title { display: flex; align-items: center; gap: 8px; font-size: 0.78rem !important; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-family: var(--font-mono); margin-bottom: 12px; }
.toc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-list li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 0.9rem; border-left: 2px solid transparent; transition: 0.18s; }
.toc-list li a:hover { color: #fff; background: var(--surface); }
.toc-list li a.active { color: var(--green); border-left-color: var(--green); background: var(--surface); }

/* ---- Prose ---- */
.prose { max-width: 75ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.4em; padding-top: 0.4em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.8em; color: #f3f5fb; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--muted); font-size: 1.04rem; }
.prose a:not(.btn):not(.chip) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20,241,149,0.35); transition: 0.2s; }
.prose a:not(.btn):not(.chip):hover { text-decoration-color: var(--green); }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.5em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.7em; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose ol { counter-reset: li; list-style: none; padding-left: 0; }
.prose ol > li { position: relative; padding-left: 2.2em; counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: 0.05em; width: 1.5em; height: 1.5em; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78em; font-weight: 700; color: var(--green); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.prose blockquote { border-left: 3px solid var(--green); padding: 6px 0 6px 20px; color: var(--text); font-size: 1.1rem; font-style: italic; }
.prose code:not(pre code) { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; color: var(--green); }
.lead-p { font-size: 1.2rem !important; color: var(--text) !important; line-height: 1.6; }

/* ---- Answer box / takeaways / callouts ---- */
.answer-box { border-radius: var(--r); border: 1px solid rgba(20,241,149,0.28); background: linear-gradient(135deg, rgba(20,241,149,0.08), rgba(25,183,255,0.05)); padding: 20px 22px; margin: 1.5em 0; }
.answer-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.answer-body { color: var(--text); font-size: 1.06rem; }
.answer-body p { color: var(--text); }
.answer-body p + p { margin-top: 0.7em; }

.takeaways { padding: 24px; border-radius: var(--r); margin: 1.5em 0; }
.takeaways h2 { display: flex; align-items: center; gap: 9px; font-size: 1.2rem !important; margin-bottom: 14px; color: var(--gold); }
.takeaways ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.takeaways li { display: flex; gap: 11px; align-items: flex-start; color: var(--text); }
.takeaways li .icon-xs { color: var(--green); margin-top: 5px; flex: none; }

.callout { display: flex; gap: 13px; padding: 16px 18px; border-radius: var(--r); margin: 1.4em 0; border: 1px solid var(--border); background: var(--surface); }
.callout .icon-sm { flex: none; margin-top: 2px; }
.callout > div { color: var(--muted); font-size: 0.97rem; }
.callout-info { border-color: rgba(25,183,255,0.3); } .callout-info .icon-sm { color: var(--blue); }
.callout-tip { border-color: rgba(20,241,149,0.3); } .callout-tip .icon-sm { color: var(--green); }
.callout-warn { border-color: rgba(245,196,78,0.35); } .callout-warn .icon-sm { color: var(--gold); }
.callout-risk { border-color: rgba(255,93,115,0.35); } .callout-risk .icon-sm { color: var(--down); }

/* ---- Byline ---- */
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-block: 1px solid var(--border); margin: 22px 0 30px; }
.byline-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--a), rgba(255,255,255,0.1)); border: 1px solid var(--border-strong); flex: none; }
.byline-meta { display: flex; flex-direction: column; }
.byline-name { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.verified { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #04130c; }
.verified .icon-xs { width: 11px; height: 11px; }
.byline-role { font-size: 0.84rem; color: var(--faint); }
.byline-dates { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: var(--faint); }
.byline-dates span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Summary / FAQ ---- */
.summary { padding: 26px; border-radius: var(--r-lg); margin: 2.5em 0; }
.summary h2 { display: flex; align-items: center; gap: 9px; font-size: 1.3rem !important; margin-bottom: 12px; }
.summary p { color: var(--muted); }
.summary p + p { margin-top: 0.8em; }

.faq { margin: 2.5em 0; }
.faq > h2 { margin-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: 0.2s; }
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon-sm { flex: none; color: var(--green); transition: transform 0.25s var(--ease); }
.faq-item[open] summary .icon-sm { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }
.faq-answer p { color: var(--muted); }
.faq-answer p + p { margin-top: 0.8em; }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; margin: 1.5em 0; }
.step { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.step-no { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #05140d; }
.step-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step-body p { font-size: 0.97rem; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--border); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 480px; }
caption { text-align: left; padding: 14px 18px; color: var(--faint); font-size: 0.84rem; font-family: var(--font-mono); }
thead th { text-align: left; padding: 14px 18px; background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--border); }
tbody td, tbody th { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--muted); text-align: left; font-weight: 400; }
tbody th { color: #fff; font-weight: 600; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
td.up, .num.up { color: var(--up); } td.down, .num.down { color: var(--down); }
.num { font-family: var(--font-mono); }

/* ---- Related / internal links ---- */
.related, .ilinks { margin: 2.5em 0; }
.related > h2 { margin-bottom: 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.rel-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r); transition: 0.25s var(--ease); }
.rel-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.rel-tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.rel-title { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 1.05rem; }
.rel-desc { font-size: 0.88rem; color: var(--faint); flex: 1; }
.rel-more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.ilinks-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- CTA band ---- */
.cta-band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 40px; border-radius: var(--r-xl); border: 1px solid var(--border-strong); position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 340px; height: 340px; background: var(--grad); filter: blur(90px); opacity: 0.22; border-radius: 50%; }
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }

/* ---- Card grids (listings) ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

.entry-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); transition: 0.28s var(--ease); height: 100%; }
.entry-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.entry-card .ec-tag { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); margin-bottom: 12px; display: inline-block; }
.entry-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.entry-card p { font-size: 0.94rem; flex: 1; }
.entry-card .ec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--faint); }
.entry-card .ec-more { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.entry-card .ec-more .icon-xs { transition: transform 0.2s var(--ease); }
.entry-card:hover .ec-more .icon-xs { transform: translateX(4px); }

/* ---- Token / market widgets ---- */
.token-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 8px; }
.token-logo { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #05140d; border: 1px solid var(--border-strong); flex: none; }
.token-title h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.token-symbol { font-family: var(--font-mono); color: var(--faint); font-size: 1rem; }
.price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin: 8px 0 4px; }
.price-now { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: #fff; }
.snapshot-note { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 8px 0; }
.metric { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.metric .m-k { font-size: 0.78rem; color: var(--faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.metric .m-v { font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin-top: 4px; }

.spark { width: 100%; height: 70px; display: block; }
.chart-card { padding: 22px; border-radius: var(--r-lg); }

.addr { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 7px 12px; border-radius: 9px; max-width: 100%; }
.addr code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr button { background: none; border: none; color: var(--green); cursor: pointer; display: grid; place-items: center; flex: none; }

.rating-stars { display: inline-flex; gap: 2px; color: var(--gold); }
.rating-stars .icon-sm { width: 16px; height: 16px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5em 0; }
.pc-card { padding: 20px; border-radius: var(--r); border: 1px solid var(--border); }
.pc-card h3 { font-size: 1.05rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pc-card.pros { border-color: rgba(37,226,164,0.25); } .pc-card.pros h3 { color: var(--up); }
.pc-card.cons { border-color: rgba(255,93,115,0.25); } .pc-card.cons h3 { color: var(--down); }
.pc-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pc-card li { display: flex; gap: 9px; font-size: 0.93rem; color: var(--muted); }
.pc-card li .icon-xs { margin-top: 5px; flex: none; }
.pc-card.pros li .icon-xs { color: var(--up); }
.pc-card.cons li .icon-xs { color: var(--down); }

/* ---- Author cards ---- */
.author-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--r-lg); }
.author-card .avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.author-card h3 { font-size: 1.2rem; }
.author-card .a-role { color: var(--green); font-size: 0.86rem; font-family: var(--font-mono); margin-bottom: 8px; }
.author-card p { font-size: 0.92rem; }
.expertise { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding-block: 50px 30px; background: linear-gradient(180deg, transparent, rgba(8,9,18,0.6)); }
.foot-top { display: grid; grid-template-columns: 1.4fr 3fr; gap: 50px; }
.foot-brand p { margin: 16px 0; font-size: 0.92rem; max-width: 34ch; }
.foot-social { display: flex; gap: 10px; }
.foot-social .soc { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: 0.2s; }
.foot-social .soc:hover { color: #fff; border-color: var(--green); transform: translateY(-2px); }
.foot-social .soc svg { width: 18px; height: 18px; }
.foot-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.foot-col h3 { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.foot-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--faint); font-size: 0.9rem; transition: 0.18s; }
.foot-col a:hover { color: var(--green); }
.foot-disclaimer { display: flex; gap: 12px; margin-top: 40px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); }
.foot-disclaimer .icon-sm { color: var(--blue); flex: none; margin-top: 2px; }
.foot-disclaimer p { font-size: 0.84rem; color: var(--faint); }
.foot-disclaimer a { color: var(--muted); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.foot-bottom p { font-size: 0.84rem; color: var(--faint); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-bottom a { font-size: 0.84rem; color: var(--faint); }
.foot-bottom a:hover { color: var(--green); }

/* ---- Animations ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Focus visibility ---- */
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .primary-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-aside { position: static; flex-direction: column; }
  .toc { order: -1; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr; }
  .btn-search span, .btn-search kbd { display: none; }
  .btn-search { padding: 9px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { padding: 26px 22px; }
  .author-card { flex-direction: column; }
  .hero-meta { gap: 16px; }
  .hero-meta .m-val { font-size: 1.25rem; }
}
