/* ==========================================================================
   XAUUSD Global — Design System
   One stylesheet, no frameworks. Mobile-first.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #08090b;
  --bg-2: #0d0f12;
  --surface: #12151a;
  --surface-2: #171b21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text: #f3f1ea;
  --text-2: #b4b2ab;
  --text-3: #8a8983;

  /* Brand */
  --gold: #f2c14e;
  --gold-2: #ffd978;
  --gold-3: #b8862b;
  --gold-glow: rgba(242, 193, 78, 0.18);
  --gold-grad: linear-gradient(135deg, #ffe08a 0%, #f2c14e 42%, #c9922f 100%);
  --cyan: #45d6c4;
  --red: #ef6a5b;
  --green: #3ccf91;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1200px;
  --wrap-text: 760px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 68px;
  --shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.7);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration-color: rgba(255, 217, 120, 0.35); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
strong { color: #fff; font-weight: 600; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #111; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(var(--wrap-text) + 2 * var(--gutter)); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1; }
.brand__name span { color: var(--gold); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-open { display: none; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: rgba(10, 11, 14, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  display: none;
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 12px 6px; color: var(--text-2); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid var(--line);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-2); }
.site-nav .nav-cta { margin-top: 16px; border-bottom: 0; }

@media (min-width: 1020px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; padding: 0; overflow: visible; max-height: none; }
  .site-nav > ul { display: flex; align-items: center; gap: 2px; }
  .site-nav a { border: 0; padding: 8px 11px; font-size: 0.93rem; border-radius: 8px; }
  .site-nav a:hover { background: rgba(255, 255, 255, 0.04); }
  .site-nav a[aria-current="page"] { color: var(--gold-2); background: rgba(242, 193, 78, 0.07); }
  .site-nav .nav-cta { margin: 0 0 0 10px; }
  .site-nav .nav-cta a { padding: 8px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: 0;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--gold { background: var(--gold-grad); color: #17130a; box-shadow: 0 10px 30px -10px rgba(242, 193, 78, 0.55); }
.btn--gold:hover { color: #17130a; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(242, 193, 78, 0.7); }
.btn--ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { color: #fff; border-color: rgba(242, 193, 78, 0.5); background: rgba(242, 193, 78, 0.06); }
.btn--sm { min-height: 38px; padding: 7px 16px; font-size: 0.9rem; }
.site-nav .btn--sm { min-height: 38px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(69, 214, 196, 0.18); }
.status-pill .dot--gold { background: var(--gold); box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.18); }

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; pointer-events: none;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.16) 0%, transparent 62%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 600px; margin-bottom: 30px; }
.hero__status { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__visual { position: relative; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr 1fr; gap: 56px; } }

.chart-card {
  position: relative; border-radius: 20px; padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(23, 27, 33, 0.9), rgba(13, 15, 18, 0.92));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 0 1px rgba(242, 193, 78, 0.06) inset;
}
.chart-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.82rem; color: var(--text-3); }
.chart-card__sym { font-family: var(--font-mono); color: var(--text); font-weight: 600; letter-spacing: 0.04em; }
.chart-card__note { font-size: 0.75rem; color: var(--text-3); margin: 8px 2px 0; }
.chart-card .tf { display: inline-flex; gap: 4px; font-family: var(--font-mono); font-size: 0.72rem; }
.chart-card .tf span { padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); }
.chart-card .tf span.on { color: var(--gold); border-color: rgba(242, 193, 78, 0.4); }

.particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: 20px; }
.particles i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-2);
  opacity: 0; box-shadow: 0 0 8px 2px rgba(242, 193, 78, 0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .particles i { animation: rise 9s linear infinite; }
  .particles i:nth-child(2) { left: 22%; animation-delay: 1.5s; animation-duration: 11s; }
  .particles i:nth-child(3) { left: 48%; animation-delay: 3s; }
  .particles i:nth-child(4) { left: 70%; animation-delay: 4.5s; animation-duration: 12s; }
  .particles i:nth-child(5) { left: 88%; animation-delay: 6s; }
  .particles i:nth-child(1) { left: 8%; }
}
@keyframes rise {
  0% { transform: translateY(380px); opacity: 0; }
  15% { opacity: 0.8; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-20px); opacity: 0; }
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  transition: border-color .25s ease, transform .25s ease, background-color .25s ease;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.97rem; margin-bottom: 0.8em; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { border-color: rgba(242, 193, 78, 0.38); transform: translateY(-2px); }
.card--link h3 a { color: var(--text); text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card--link:hover h3 a { color: var(--gold-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(242, 193, 78, 0.08); border: 1px solid rgba(242, 193, 78, 0.22); color: var(--gold);
}
.card__icon svg { width: 22px; height: 22px; }
.card__meta { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--text-3); }
.card__num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 10px; }

.tag {
  display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-2); background: rgba(242, 193, 78, 0.08); border: 1px solid rgba(242, 193, 78, 0.2);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start;
}
.tag--cyan { color: var(--cyan); background: rgba(69, 214, 196, 0.07); border-color: rgba(69, 214, 196, 0.22); }

/* Feature split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--rev > :first-child { order: 2; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text-2); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(242, 193, 78, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c14e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  border: 1px solid rgba(242, 193, 78, 0.3);
}
.checklist li strong { color: var(--text); }

/* Compare panel */
.compare { display: grid; gap: 14px; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__col { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.compare__col h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); }
.compare__col--bad h3 { color: var(--text-3); }
.compare__col--good { border-color: rgba(242, 193, 78, 0.35); background: linear-gradient(180deg, rgba(242, 193, 78, 0.07), rgba(242, 193, 78, 0.01)); }
.compare__col--good h3 { color: var(--gold); }
.compare__col ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 0.95rem; display: grid; gap: 8px; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 18px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 24px; border-left: 2px solid rgba(242, 193, 78, 0.35); background: linear-gradient(90deg, rgba(242, 193, 78, 0.05), transparent); border-radius: 0 var(--radius) var(--radius) 0; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); color: var(--gold); font-size: 0.85rem; display: block; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.95rem; margin: 0; }

/* ---------- Tiers ---------- */
.price-hero { text-align: center; }
.price-big { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-big small { font-size: 0.32em; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.tiers { display: grid; gap: 18px; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { position: relative; border-radius: 18px; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tier-c, var(--gold)); }
.tier__lvl { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tier-c); }
.tier h3 { font-size: 1.6rem; margin: 8px 0 6px; }
.tier__who { color: var(--text-3); font-size: 0.9rem; min-height: 3em; }
.tier ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.tier li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 0.94rem; }
.tier li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--tier-c); transform: rotate(45deg); }
.tier--starter { --tier-c: #9fb3c8; }
.tier--advanced { --tier-c: var(--cyan); }
.tier--pro { --tier-c: var(--gold); }
.tier--degen { --tier-c: #e8794f; background: linear-gradient(180deg, rgba(232, 121, 79, 0.06), var(--surface) 40%); }

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--radius); padding: 18px 20px;
  background: rgba(242, 193, 78, 0.06); border: 1px solid rgba(242, 193, 78, 0.28);
  color: var(--text-2); font-size: 0.96rem;
}
.notice svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--text); }
.notice--risk { background: rgba(239, 106, 91, 0.06); border-color: rgba(239, 106, 91, 0.3); }
.notice--risk svg { color: var(--red); }
.notice--info { background: rgba(69, 214, 196, 0.05); border-color: rgba(69, 214, 196, 0.25); }
.notice--info svg { color: var(--cyan); }

.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.status-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.status-list .badge { font-family: var(--font-mono); font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.06em; text-transform: uppercase; flex-shrink: 0; }
.badge--live { color: var(--green); background: rgba(60, 207, 145, 0.1); }
.badge--soon { color: var(--gold); background: rgba(242, 193, 78, 0.1); }
.badge--no { color: var(--text-3); background: rgba(255, 255, 255, 0.05); }

/* ---------- Price page ---------- */
.price-panel { display: grid; gap: 18px; }
@media (min-width: 980px) { .price-panel { grid-template-columns: 1fr 340px; } }
.tv-box {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface);
  overflow: hidden;
}
.tv-box--chart { height: 520px; }
.tv-box--info { min-height: 210px; padding: 6px; }
.tv-box--mini { height: 230px; }
.tv-box .tradingview-widget-container { height: 100%; }
.tv-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--text-3); font-size: 0.92rem;
}
.tv-placeholder strong { display: block; color: var(--text-2); margin-bottom: 4px; }
.tv-loaded .tv-placeholder { display: none; }
.data-credit { font-size: 0.8rem; color: var(--text-3); margin-top: 10px; }

.sessions { display: grid; gap: 10px; }
.session {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.session__name { font-weight: 600; font-family: var(--font-display); }
.session__hours { grid-column: 1 / -1; font-size: 0.84rem; color: var(--text-3); font-family: var(--font-mono); }
.session__state { font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 6px; color: var(--text-3); background: rgba(255, 255, 255, 0.05); }
.session.is-open { border-color: rgba(60, 207, 145, 0.35); }
.session.is-open .session__state { color: var(--green); background: rgba(60, 207, 145, 0.1); }
.session-note { font-size: 0.82rem; color: var(--text-3); margin-top: 10px; }

/* ---------- Article ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; width: 700px; height: 700px; right: -260px; top: -420px; pointer-events: none;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.12) 0%, transparent 60%);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 10px 0 16px; max-width: 900px; }
.page-head .lede { font-size: 1.12rem; color: var(--text-2); max-width: 760px; margin: 0; }

.breadcrumbs { font-size: 0.85rem; color: var(--text-3); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--text-3); opacity: 0.6; }
.breadcrumbs a { color: var(--text-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-2); }

.byline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 0.86rem; color: var(--text-3); }
.byline b { color: var(--text-2); font-weight: 500; }

.article-layout { display: grid; gap: 40px; padding: 44px 0 72px; }
@media (min-width: 1060px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; } .article-layout .toc { order: 2; } }

.toc { align-self: start; }
@media (min-width: 1060px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-display); font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--gold); }
.toc details[open] summary::after { content: "–"; }
.toc ol { margin: 0; padding: 0 18px 16px 34px; font-size: 0.9rem; display: grid; gap: 7px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--gold-2); }

.prose { max-width: var(--wrap-text); font-size: 1.04rem; min-width: 0; }
.prose h2 { margin-top: 2.2em; padding-top: 0.4em; font-size: clamp(1.5rem, 2.8vw, 1.95rem); }
.prose h3 { margin-top: 1.7em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #d6d4cd; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--gold-2); font-family: var(--font-display); font-weight: 600; background: rgba(255, 255, 255, 0.025); white-space: nowrap; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.figure { margin: 2em 0; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.figure figcaption { font-size: 0.86rem; color: var(--text-3); margin-top: 12px; line-height: 1.5; }
.figure figcaption b { color: var(--text-2); font-weight: 600; }

.callout { margin: 1.6em 0; padding: 18px 20px; border-radius: 12px; background: rgba(69, 214, 196, 0.05); border: 1px solid rgba(69, 214, 196, 0.22); }
.callout p:last-child { margin-bottom: 0; }
.callout--hypo { background: rgba(242, 193, 78, 0.05); border-color: rgba(242, 193, 78, 0.28); }
.callout--hypo::before, .callout--warn::before, .callout--note::before {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px;
}
.callout--hypo::before { content: "Hypothetical example — illustrative only"; color: var(--gold); }
.callout--warn { background: rgba(239, 106, 91, 0.05); border-color: rgba(239, 106, 91, 0.28); }
.callout--warn::before { content: "Risk note"; color: var(--red); }
.callout--note::before { content: "Key idea"; color: var(--cyan); }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-list summary {
  cursor: pointer; padding: 18px 52px 18px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  list-style: none; position: relative; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 15px; font-size: 1.3rem; color: var(--gold); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details > div { padding: 0 20px 18px; color: var(--text-2); }
.faq-list details > div p:last-child { margin-bottom: 0; }

.related { margin-top: 3em; }
.related h2 { font-size: 1.4rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related li a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 500;
}
.related li a::after { content: "→"; color: var(--gold); }
.related li a:hover { border-color: rgba(242, 193, 78, 0.38); color: var(--gold-2); }

.cta-band {
  position: relative; overflow: hidden; border-radius: 22px; padding: clamp(32px, 5vw, 56px);
  background: radial-gradient(ellipse at 100% 0%, rgba(242, 193, 78, 0.18), transparent 55%), linear-gradient(180deg, #15181d, #0e1013);
  border: 1px solid rgba(242, 193, 78, 0.25);
}
.cta-band h2 { max-width: 720px; }
.cta-band p { color: var(--text-2); max-width: 640px; }
.prose .cta-band { margin: 3em 0 0; }
.prose .cta-band h2 { margin-top: 0; padding-top: 0; }

/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.filters input[type="search"] {
  flex: 1 1 260px; min-height: 46px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font: inherit;
}
.filters input[type="search"]::placeholder { color: var(--text-3); }
.chip {
  min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2); font: inherit; font-size: 0.88rem; cursor: pointer;
}
.chip[aria-pressed="true"] { background: rgba(242, 193, 78, 0.12); border-color: rgba(242, 193, 78, 0.45); color: var(--gold-2); }
.chip:hover { color: var(--text); }
.post-card.is-hidden, .post-card.is-paged { display: none; }
.load-more-wrap { text-align: center; margin-top: 32px; }
.empty-state { color: var(--text-3); text-align: center; padding: 30px; }

.feature-post { display: grid; gap: 28px; padding: 32px; border-radius: 20px; border: 1px solid rgba(242, 193, 78, 0.25); background: linear-gradient(135deg, rgba(242, 193, 78, 0.07), rgba(255, 255, 255, 0.01)); margin-bottom: 40px; position: relative; }
@media (min-width: 900px) { .feature-post { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.feature-post h2 a { color: var(--text); text-decoration: none; }
.feature-post h2 a:hover { color: var(--gold-2); }
.feature-post p { color: var(--text-2); }

/* News */
.news-cats { display: grid; gap: 14px; }
@media (min-width: 700px) { .news-cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .news-cats { grid-template-columns: repeat(3, 1fr); } }
.news-card time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.news-card .src { font-size: 0.82rem; color: var(--text-3); }
.news-feed[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #060708; padding: 56px 0 28px; font-size: 0.92rem; color: var(--text-3); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.site-footer h2 { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-2); margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--text-3); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-risk { margin-top: 44px; padding: 20px; border-radius: 12px; border: 1px solid rgba(239, 106, 91, 0.22); background: rgba(239, 106, 91, 0.04); font-size: 0.86rem; line-height: 1.6; }
.footer-risk strong { color: var(--text-2); }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.82rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted { color: var(--text-3); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mb-0 { margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--text-2); }
.kicker-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 193, 78, 0.5), transparent); border: 0; margin: 0; }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee__inner { display: flex; gap: 48px; padding: 16px 0; width: max-content; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.marquee__inner span::before { content: "◆"; color: var(--gold); margin-right: 14px; font-size: 0.7em; }
@media (prefers-reduced-motion: no-preference) { .marquee__inner { animation: slide 48s linear infinite; } }
@keyframes slide { to { transform: translateX(-50%); } }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal.pre { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.pre.in { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .cta-band, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; font-size: 0.85rem; line-height: 1.6; margin: 1.4em 0; }
.prose pre code { background: none; padding: 0; color: var(--text-2); }
.site-nav .nav-cta a.btn--gold, .site-nav .nav-cta a.btn--gold:hover { color: #17130a; background: var(--gold-grad); }
.tier .status-list li { padding: 12px 14px; color: var(--text-2); }
.tier .status-list li::before { display: none; }

.tv-box--calendar { height: 640px; }
@media (max-width: 640px) { .tv-box--calendar { height: 560px; } }
.news-card h3 { font-size: 1.05rem; line-height: 1.35; }
