:root {
  --bg: #05070b;
  --panel: rgba(14, 18, 26, .92);
  --panel-soft: rgba(255, 255, 255, .035);
  --gold: #f4c34f;
  --gold-soft: #ffdf82;
  --blue: #22a7ff;
  --text: #f7f5ef;
  --muted: #abb3c0;
  --line: rgba(244, 195, 79, .20);
  --danger: #ff8686;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 560px at 7% -8%, rgba(244,195,79,.13), transparent 62%),
    radial-gradient(760px 520px at 100% 25%, rgba(34,167,255,.10), transparent 64%),
    linear-gradient(180deg, #05070b, #0a0f18 48%, #05070b);
  background-attachment: fixed;
}

a { color: #75cbff; }
a:hover { color: #b8e5ff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 15px max(5%, calc((100% - 1180px) / 2));
  border-bottom: 1px solid rgba(244,195,79,.18);
  background: rgba(5,7,11,.88);
  box-shadow: 0 12px 38px rgba(0,0,0,.22);
  backdrop-filter: blur(15px);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .045em;
}
.brand span { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 9px; }
.header-actions a {
  color: #ecebe7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
}
.header-actions a:hover { border-color: rgba(244,195,79,.45); background: rgba(244,195,79,.08); }
.header-actions .primary { color: #171006; border-color: transparent; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 28px auto 70px; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 6vw, 66px);
  border: 1px solid rgba(244,195,79,.32);
  border-radius: 28px;
  background: url('../images/baronfm-cpdgd-hero.webp') center/cover no-repeat;
  box-shadow: 0 30px 85px rgba(0,0,0,.48);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.72) 60%, rgba(0,0,0,.36)), linear-gradient(0deg, rgba(0,0,0,.6), transparent 60%);
}
.eyebrow {
  align-self: flex-start;
  margin-bottom: 17px;
  padding: 8px 12px;
  color: var(--gold-soft);
  border: 1px solid rgba(244,195,79,.44);
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 { max-width: 800px; margin: 0 0 14px; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 4px 24px #000; }
.hero h1 span { color: var(--gold-soft); }
.hero p { max-width: 760px; margin: 0; color: #e0e3e9; font-size: clamp(16px, 2vw, 19px); line-height: 1.7; text-shadow: 0 2px 12px #000; }

.content-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.toc, .article, .notice, .feature-card {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--panel), rgba(9,13,20,.96));
  box-shadow: 0 22px 58px rgba(0,0,0,.28);
}
.toc { position: sticky; top: 100px; padding: 20px; }
.toc strong { display: block; margin-bottom: 12px; color: var(--gold-soft); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.toc a { display: block; padding: 9px 0; color: #cbd1da; text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--gold-soft); }

.article { padding: clamp(24px, 5vw, 52px); }
.article section { scroll-margin-top: 105px; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid rgba(255,255,255,.07); }
.article section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.article h2 { margin: 0 0 14px; color: var(--gold-soft); font-size: clamp(1.35rem, 3vw, 1.85rem); }
.article h3 { margin: 24px 0 10px; color: #fff; font-size: 1.08rem; }
.article p, .article li { color: var(--muted); line-height: 1.75; }
.article p { margin: 0 0 13px; }
.article ul, .article ol { margin: 10px 0 0; padding-left: 22px; }
.article li + li { margin-top: 8px; }
.article strong { color: #f8f8f6; }
.article code { color: #8bd5ff; word-break: break-all; }
.meta { margin: 18px 0 0; color: #8e97a5; font-size: 13px; }

.notice { margin-top: 24px; padding: 20px 22px; border-color: rgba(244,195,79,.26); background: linear-gradient(135deg, rgba(244,195,79,.095), rgba(34,167,255,.055)); color: #d9dde4; line-height: 1.65; }
.notice strong { color: var(--gold-soft); }
.notice.risk { border-color: rgba(255,134,134,.26); background: rgba(127,29,29,.14); }
.notice.risk strong { color: #ffb3b3; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.feature-card { padding: 26px; }
.feature-card h2 { margin: 0 0 10px; color: var(--gold-soft); font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.site-footer { padding: 30px 20px 38px; text-align: center; border-top: 1px solid rgba(255,255,255,.055); background: rgba(3,5,8,.42); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 13px; }
.footer-links a { color: #bbc2cc; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--gold-soft); }
.site-footer p { margin: 0; color: #747d89; font-size: 13px; }

@media (max-width: 820px) {
  .site-header { min-height: 68px; padding: 12px 16px; }
  .brand { font-size: 19px; }
  .header-actions a:not(.primary) { display: none; }
  .header-actions a { padding: 9px 11px; font-size: 12px; }
  .page-shell { width: calc(100% - 24px); margin-top: 16px; }
  .hero { min-height: 390px; padding: 32px 22px; background-position: center; }
  .hero::before { background: rgba(0,0,0,.74); }
  .content-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
  .article { padding: 24px 20px; }
}
