/* ============================================================
   博奥看台 · /assets/site.css
   共享外壳：reset / tokens / 中文排版 / header / footer / 通用组件
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 128px) + 16px);
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video, canvas { display: block; max-width: 100%; }
table { border-collapse: collapse; }
main { display: block; }

:focus-visible { outline: 2px solid var(--sunrise-500); outline-offset: 3px; }
::selection { background: var(--sunrise-500); color: var(--ink-900); }
#main-content:focus { outline: none; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink-900: #0A1526;
  --ink-800: #0F2036;
  --ink-700: #16293F;
  --slate-500: #5A6A7D;
  --mist-300: #A9B7C6;
  --paper-050: #F5F7FA;
  --ink-025: #E9EFF6;
  --sunrise-500: #FF7A45;
  --sunrise-200: #FFC6A8;
  --teal-500: #2FBFA0;
  --teal-700: #14806E;
  --amber-400: #E8B45C;

  --line: rgba(90, 106, 125, .34);
  --line-soft: rgba(90, 106, 125, .18);
  --line-strong: rgba(90, 106, 125, .55);

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2rem, 4.2vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .8125rem;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 128px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-card: 0 2px 0 rgba(10, 21, 38, .5);
  --shadow-lift: 0 10px 28px rgba(6, 14, 26, .45);
}

/* ---------- 3. Base / 中文排版 ---------- */
body {
  min-height: 100vh;
  background: var(--ink-900);
  color: var(--ink-025);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 700; }

.display-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
}

.num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.text-muted { color: var(--mist-300); }
.text-dim { color: var(--slate-500); }

.prose { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.prose h3 { margin-top: 1.7em; margin-bottom: .5em; }
.prose ul { list-style: none; margin-top: 1em; }
.prose li { position: relative; padding-left: 18px; margin-bottom: .5em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 8px;
  height: 1px;
  background: var(--sunrise-500);
}

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: var(--gutter);
  z-index: 200;
  display: inline-block;
  padding: 10px 20px;
  background: var(--sunrise-500);
  color: var(--ink-900);
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.btn--accent {
  background: var(--sunrise-500);
  color: #0A1526;
  box-shadow: var(--shadow-card);
}
.btn--accent:hover {
  background: var(--sunrise-200);
  transform: translateY(-2px);
}
.btn--accent:active { transform: translateY(0); box-shadow: inset 0 2px 6px rgba(10, 21, 38, .35); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-025);
}
.btn--ghost:hover {
  border-color: var(--sunrise-500);
  color: var(--sunrise-200);
  transform: translateY(-2px);
}

.btn--line {
  background: transparent;
  color: var(--sunrise-500);
  border-color: transparent;
  border-bottom-color: rgba(255, 122, 69, .5);
  border-radius: 0;
  padding: 0 2px;
  min-height: 30px;
}
.btn--line:hover { color: var(--sunrise-200); border-bottom-color: var(--sunrise-200); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(10, 21, 38, .985), rgba(10, 21, 38, .94));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .24s var(--ease);
}
.site-header[data-compact] { box-shadow: 0 8px 24px rgba(4, 10, 20, .55); }

/* 状态轨道 */
.header-rail {
  max-height: 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg,
      rgba(255, 122, 69, .10) 0%,
      rgba(47, 191, 160, .07) 42%,
      rgba(10, 21, 38, 0) 76%);
  transition: max-height .24s var(--ease), opacity .2s var(--ease), border-color .2s var(--ease);
}
.site-header[data-compact] .header-rail {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.header-rail__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding-block: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist-300);
  white-space: nowrap;
}
.rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(47, 191, 160, .42);
  border-radius: var(--radius);
  color: var(--teal-500);
  font-size: 10px;
  letter-spacing: .18em;
}
.rail-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(47, 191, 160, .16);
  animation: railPulse 2.6s var(--ease) infinite;
}
@keyframes railPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.rail-text { color: var(--mist-300); }
.rail-text--mono { color: var(--slate-500); letter-spacing: .22em; }
.rail-spacer { flex: 1 1 auto; }
.rail-link {
  color: var(--sunrise-200);
  border-bottom: 1px solid rgba(255, 122, 69, .38);
  padding-bottom: 1px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.rail-link:hover { color: var(--sunrise-500); border-bottom-color: var(--sunrise-500); }

/* 刊头 */
.header-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding-block: 14px;
  transition: padding .24s var(--ease);
}
.site-header[data-compact] .header-masthead { padding-block: 7px; }

.masthead-meta {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid rgba(255, 122, 69, .6);
  line-height: 1.45;
  transition: opacity .2s var(--ease);
}
.masthead-meta__en {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.masthead-meta__cn {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist-300);
}
.site-header[data-compact] .masthead-meta { opacity: 0; }

.masthead-brand {
  display: grid;
  justify-items: center;
  gap: 3px;
  line-height: 1;
  text-align: center;
}
.masthead-brand__mark {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .52em;
  text-indent: .52em;
  color: var(--sunrise-500);
}
.masthead-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-indent: .1em;
  color: var(--ink-025);
  transition: color .18s var(--ease), font-size .24s var(--ease);
}
.masthead-brand__sub {
  font-size: 11px;
  letter-spacing: .26em;
  text-indent: .26em;
  color: var(--slate-500);
  transition: opacity .2s var(--ease);
}
.masthead-brand:hover .masthead-brand__name { color: var(--sunrise-200); }
.site-header[data-compact] .masthead-brand__name { font-size: 1.15rem; }
.site-header[data-compact] .masthead-brand__sub { opacity: 0; }

/* 价格窄卡 */
.header-pricing {
  justify-self: end;
  width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 41, 63, .92), rgba(15, 32, 54, .94));
  box-shadow: var(--shadow-card);
}
.pricing-card__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 2px;
}
.pricing-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 2px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-025);
  transition: color .18s var(--ease);
}
.pricing-card__row:first-of-type { border-top: 0; }
.pricing-card__row:hover { color: var(--sunrise-200); }
.pricing-card__k { line-height: 1.4; }
.pricing-card__v {
  font-family: var(--font-mono);
  color: var(--slate-500);
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.pricing-card__row:hover .pricing-card__v {
  color: var(--sunrise-500);
  transform: translateX(3px);
}

/* 导航行 */
.header-navrow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding-inline: var(--gutter);
  border-top: 1px solid var(--line-soft);
}

.nav-toggle {
  grid-column: 1;
  justify-self: start;
  display: none;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-025);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--sunrise-500); color: var(--sunrise-200); }
.nav-toggle__bars { display: inline-grid; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__text { line-height: 1; }

.site-nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: stretch;
}
.site-nav__list { display: flex; align-items: stretch; gap: 2px; }
.site-nav__item { display: flex; }
.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  font-size: var(--fs-sm);
  color: var(--mist-300);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--sunrise-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s var(--ease);
}
.site-nav__link:hover { color: var(--ink-025); background: rgba(90, 106, 125, .12); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  color: var(--paper-050);
  background: rgba(90, 106, 125, .18);
}
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__aside { display: none; }

.header-cta { grid-column: 3; justify-self: end; }

/* 进度条 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background: transparent;
}
.header-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal-500), var(--sunrise-500));
  transition: width .12s linear;
}

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 88px);
  background: var(--ink-800);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sunrise-500) 0%, var(--teal-500) 46%, rgba(10, 21, 38, 0) 92%);
  z-index: 1;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(90, 106, 125, .07) 1px, transparent 1px);
  background-size: 100% 56px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
}

.footer-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 64px);
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3vw, 40px);
}

.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand__mark {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--teal-500);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.1;
  color: var(--paper-050);
}
.footer-brand__line {
  font-size: var(--fs-sm);
  letter-spacing: .14em;
  color: var(--sunrise-200);
}
.footer-brand__note {
  max-width: 34ch;
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--mist-300);
}
.footer-brand__cta { justify-self: start; margin-top: 6px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col { display: grid; gap: 12px; align-content: start; }
.footer-col__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--slate-500);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col__list { display: grid; gap: 8px; }
.footer-link {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--mist-300);
  transition: color .18s var(--ease);
}
.footer-link:hover { color: var(--sunrise-200); }

.footer-contact {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 3vw, 32px);
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding-block: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.footer-contact__item { display: grid; gap: 4px; }
.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.footer-contact__value {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-025);
  word-break: break-word;
}

.footer-base {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
  padding-block: 20px 28px;
  font-size: var(--fs-xs);
  color: var(--slate-500);
}
.footer-base__legal { letter-spacing: .04em; }
.footer-base__copy { font-family: var(--font-mono); letter-spacing: .04em; }
.footer-base__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-base__links .footer-link { font-size: var(--fs-xs); }

/* ---------- 8. Layout primitives ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--maxw));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - var(--gutter) * 2, 940px);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px);
}
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--ink { background: var(--ink-800); }
.section--paper { background: var(--paper-050); color: #1B2B3E; }
.section--paper .text-muted { color: #4A5A6D; }
.section--paper .text-dim { color: #66768A; }
.section--paper .eyebrow { color: #4A5A6D; }
.section--paper h1,
.section--paper h2,
.section--paper h3 { color: #0F2036; }

.section__head {
  display: grid;
  gap: 10px;
  max-width: 64ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.slant-top { position: relative; }
.slant-top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--sunrise-500), var(--teal-500) 44%, rgba(10, 21, 38, 0) 88%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}
.rail-sticky {
  position: sticky;
  top: calc(var(--header-h, 128px) + 16px);
}

.grid { display: grid; gap: clamp(12px, 1.6vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 9. Common components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mist-300);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--sunrise-500);
  flex: 0 0 24px;
}

.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 41, 63, .92), rgba(15, 32, 54, .96));
  box-shadow: var(--shadow-card);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover {
  border-color: rgba(255, 122, 69, .55);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.card--flat { box-shadow: none; }
.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.stat { display: grid; gap: 4px; }
.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--paper-050);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.stat--up .stat__value { color: var(--teal-500); }
.stat--hot .stat__value { color: var(--sunrise-500); }
.stat--warn .stat__value { color: var(--amber-400); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  line-height: 1.4;
}
.tag--teal { color: var(--teal-500); }
.tag--amber { color: var(--amber-400); }
.tag--sunrise { color: var(--sunrise-500); }
.tag--slate { color: var(--mist-300); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: var(--mist-300);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}
.chip:hover { border-color: var(--sunrise-500); color: var(--ink-025); }
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--sunrise-500);
  border-color: var(--sunrise-500);
  color: var(--ink-900);
  font-weight: 600;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-900));
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(90, 106, 125, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 106, 125, .16) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .55;
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--accent { border-color: rgba(255, 122, 69, .5); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-wrap table { width: 100%; min-width: 560px; }
.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.table-wrap thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td.num { color: var(--ink-025); }

.disclosure {
  border-top: 1px solid var(--line);
}
.disclosure:last-child { border-bottom: 1px solid var(--line); }
.disclosure__heading { margin: 0; font-size: inherit; font-weight: inherit; }
.disclosure__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 4px;
  text-align: left;
  color: var(--ink-025);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.disclosure__trigger:hover { background: rgba(90, 106, 125, .10); color: var(--sunrise-200); }
.disclosure__index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--slate-500);
  flex: 0 0 auto;
}
.disclosure__label {
  flex: 1 1 auto;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.5;
}
.disclosure__sign {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}
.disclosure__sign::before,
.disclosure__sign::after {
  content: "";
  position: absolute;
  background: var(--sunrise-500);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.disclosure__sign::before { left: 0; right: 0; top: 6px; height: 2px; }
.disclosure__sign::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.disclosure[data-open] .disclosure__sign::after { transform: scaleY(0); opacity: 0; }
.disclosure[data-open] .disclosure__trigger { color: var(--sunrise-200); }
.disclosure__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .24s var(--ease);
}
.disclosure__inner {
  overflow: hidden;
  min-height: 0;
}
.disclosure[data-open] .disclosure__panel { grid-template-rows: 1fr; }
.disclosure__body {
  padding: 0 4px 20px 40px;
  color: var(--mist-300);
  font-size: var(--fs-sm);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.breadcrumb a { transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--sunrise-500); }
.breadcrumb__sep { opacity: .55; }

.index-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--mist-300);
  border-left: 2px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.index-link:hover { color: var(--ink-025); background: rgba(90, 106, 125, .12); }
.index-link[aria-current] {
  color: var(--sunrise-200);
  border-left-color: var(--sunrise-500);
  background: rgba(255, 122, 69, .08);
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--mist-300);
  background: var(--ink-800);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease),
              visibility .2s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--sunrise-500); color: var(--sunrise-200); }

.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.has-js [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1180px) {
  .header-pricing { width: 200px; }
  .site-nav__link { padding: 0 11px; }
}

@media (max-width: 1024px) {
  .header-masthead { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .header-pricing { display: none; }
  .masthead-meta { justify-self: start; }

  .header-navrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 8px;
  }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - var(--header-h, 128px));
    overflow-y: auto;
    background: var(--ink-800);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 36px rgba(4, 10, 20, .55);
  }
  .site-nav[data-open] { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__item { display: block; }
  .site-nav__link {
    height: auto;
    padding: 14px 20px;
    font-size: var(--fs-body);
    border-bottom: 1px solid var(--line-soft);
  }
  .site-nav__link::after {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top center;
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after { transform: scaleY(1); }

  .site-nav__aside {
    display: block;
    padding: 14px 20px 20px;
    background: rgba(10, 21, 38, .55);
    border-top: 1px solid var(--line-soft);
  }
  .site-nav__aside .pricing-card__row { font-size: var(--fs-sm); padding: 8px 0; }

  .split { grid-template-columns: 1fr; }
  .rail-sticky { position: static; top: auto; }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-rail__inner .rail-text { display: none; }
  .rail-spacer { flex: 1 1 auto; }
  .masthead-meta { display: none; }
  .header-masthead { grid-template-columns: 1fr; }
  .masthead-brand { justify-items: center; }
  .site-header[data-compact] .masthead-meta { display: none; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .header-cta { padding: 0 12px; font-size: var(--fs-xs); }
  .nav-toggle { padding: 0 10px; }
  .disclosure__body { padding-left: 4px; }
}

@media (max-width: 420px) {
  .nav-toggle__text { display: none; }
  .footer-contact { grid-template-columns: 1fr; }
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rail-dot { animation: none; opacity: 1; }
  .has-js [data-reveal] { opacity: 1; transform: none; }
  .btn:hover,
  .card:hover,
  .to-top { transform: none; }
}
