/* Modern refresh layer: loaded after style.css, overrides tokens and key homepage blocks. */
:root {
  --ink: #eef2f7;
  --muted: #8b98ab;
  --paper: #070b12;
  --surface: rgba(16, 23, 34, 0.72);
  --surface-solid: #101722;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --accent: #f5c542;
  --accent-ink: #1a1405;
  --accent-soft: rgba(245, 197, 66, 0.12);
  --blue: #5cc8ff;
  --neon-cyan: #5cc8ff;
  --neon-amber: #f5c542;
  --gold: #f5c542;
  --lemon: #f5c542;
  --green: #34d399;
  --green-dark: #10b981;
  --neon-green: #34d399;
  --red: #fb7185;
  --neon-red: #fb7185;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html {
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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;
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Header ---- */
.site-header {
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.nav-wrap {
  min-height: 64px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text strong {
  font-size: 1.02rem;
}

.brand-text small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.nav-links {
  flex-wrap: nowrap;
  gap: 2px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(148, 163, 184, 0.1);
}

.nav-links a.nav-cta {
  margin-left: 8px;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
}

.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus-visible {
  color: var(--accent-ink);
  background: #ffd75e;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none;
}

.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle[aria-expanded="true"] {
  border-color: rgba(245, 197, 66, 0.55);
  background: var(--accent-soft);
}

.nav-close-icon {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-menu-icon {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-close-icon {
  display: block;
}

/* ---- Buttons ---- */
.button {
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(245, 197, 66, 0.55);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ffd75e;
  filter: none;
  box-shadow: 0 14px 34px -10px rgba(245, 197, 66, 0.7);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
}

.button.ghost {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Hero ---- */
.hero {
  min-height: auto;
  align-items: center;
  background-image: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  opacity: 0.38;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 15% 20%, rgba(245, 197, 66, 0.12), transparent 60%),
    linear-gradient(90deg, rgba(7, 11, 18, 0.96) 0%, rgba(7, 11, 18, 0.82) 45%, rgba(7, 11, 18, 0.55) 100%),
    linear-gradient(180deg, transparent 60%, var(--paper) 100%);
}

.hero-inner.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.hero-pill:hover,
.hero-pill:focus-visible {
  border-color: rgba(245, 197, 66, 0.5);
  background: var(--accent-soft);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(1.8); opacity: 0; }
}

.hero .eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.hero h1 .h1-line {
  display: block;
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero-copy {
  max-width: 560px;
  margin-top: 22px;
  color: #b7c2d1;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 32px;
  gap: 10px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  min-width: 0;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-stats small {
  margin-left: 4px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-feature {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(22, 30, 44, 0.86), rgba(12, 17, 26, 0.9));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 197, 66, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-feature::before {
  content: "";
  position: absolute;
  inset: 0 24px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 66, 0.6), transparent);
}

.hero-feature-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hero-feature-top .kicker {
  margin: 0;
}

.hero-feature-top time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.hero-feature h2 {
  margin: 14px 0 10px;
  font-size: 1.4rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.hero-feature h2 a {
  text-decoration: none;
}

.hero-feature h2 a:hover,
.hero-feature h2 a:focus-visible {
  color: var(--accent);
}

.hero-feature > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-feature-levels {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-feature-levels li {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.hero-feature-levels strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.hero-feature-levels span:nth-of-type(1) {
  color: var(--green);
}

.hero-feature-levels span:nth-of-type(2) {
  color: var(--red);
}

.hero-feature-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-feature-foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* ---- Market strip ---- */
.market-strip {
  background: transparent;
  border-color: var(--line);
}

.market-strip-inner {
  background: transparent;
  gap: 12px;
  padding: 16px 0;
}

.market-chip {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.market-chip span {
  font-size: 0.78rem;
  font-weight: 600;
}

.market-chip.weather-chip strong,
.market-chip.fx-chip strong,
.market-chip.trade-chip strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

.market-strip-inner:has(.trade-chip) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trade-chip strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.trade-chip strong b {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.trade-chip em {
  font-variant-numeric: tabular-nums;
}

.trade-chip em[data-trend="up"] { color: var(--green); }
.trade-chip em[data-trend="down"] { color: var(--red); }

.status-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--muted);
}

#market-status[data-state="open"] .status-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
#market-status[data-state="pre"] .status-dot,
#market-status[data-state="after"] .status-dot { background: var(--accent); }
#market-status[data-state="closed"] .status-dot { background: var(--red); }

@media (max-width: 860px) {
  .market-strip-inner:has(.trade-chip) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Brand line ---- */
.brand-line {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.brand-line strong { color: var(--ink); font-weight: 600; }

/* ---- Tag filter ---- */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
}

.tag-filter-label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tag-chip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink);
  font-size: 0.84rem;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.tag-chip:hover,
.tag-chip:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---- Track record ---- */
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.record-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.record-badge {
  border-radius: 999px;
  padding: 3px 10px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
}

.record-topic {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.record-step {
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
}

.record-step.verified { border-left-color: var(--green); }

.record-label {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.record-step.verified .record-label { color: var(--green); }

.record-label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.record-step p {
  margin: 0;
  color: #c3ccd9;
  font-size: 0.9rem;
  line-height: 1.7;
}

.record-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.record-note a { color: var(--accent); }

@media (max-width: 960px) {
  .record-grid { grid-template-columns: 1fr; }
}

/* ---- Sections ---- */
.section,
.section.alt {
  background: transparent;
}

.section-head h2,
.sync-copy h2,
.crypto-copy h2,
.data-divider h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.section-head p,
.sync-copy p {
  color: var(--muted);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-head-row h2,
.section-head-row p {
  margin-bottom: 0;
}

.section-head-row p {
  margin-top: 8px;
}

.article-search {
  display: flex;
  gap: 8px;
  width: min(420px, 100%);
}

.article-search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.article-search input::placeholder {
  color: var(--muted);
}

.article-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.data-divider {
  padding: clamp(64px, 9vw, 104px) 0 0;
  border-top: 1px solid var(--line);
}

.data-divider .section-inner {
  max-width: 1180px;
}

.data-divider h2 {
  margin: 0;
}

.data-divider p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

/* ---- Article cards ---- */
.article-grid {
  gap: 16px;
}

/* Homepage shows the featured card plus 6 (two full rows); the full list lives on archive.html. */
#articles .article-grid > .article-card:nth-child(n + 8) {
  display: none;
}

.articles-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.article-card::before {
  display: none;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(245, 197, 66, 0.4);
  background: rgba(22, 30, 44, 0.85);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8);
}

.article-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.article-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.article-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible {
  color: var(--accent);
  text-shadow: none;
}

.article-card h3 a:focus-visible {
  outline: none;
}

.article-card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-topline span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.tag-row {
  margin-top: auto;
  gap: 6px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #a9b5c6;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 10px;
  box-shadow: none;
}

.article-meta {
  display: flex;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

/* Featured latest article spans the full first row. */
#articles .article-card:first-child {
  grid-column: 1 / -1;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(245, 197, 66, 0.12), transparent 60%),
    var(--surface);
  border-color: rgba(245, 197, 66, 0.28);
}

#articles .article-card:first-child h3 {
  max-width: 28ch;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

#articles .article-card:first-child p {
  max-width: 70ch;
  font-size: 1rem;
  -webkit-line-clamp: 4;
}

/* ---- Subscribe ---- */
.sync-layout {
  align-items: stretch;
}

.value-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.value-list strong {
  flex-shrink: 0;
  min-width: 5.5em;
  color: var(--accent);
  font-size: 0.95rem;
}

.value-list span {
  color: #b7c2d1;
  font-size: 0.92rem;
}

.sync-highlight,
.newsletter,
.panel,
.stock-board,
.risk-radar,
.calendar-board,
.flow-board,
.crypto-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sync-highlight::before,
.newsletter::before {
  display: none;
}

.sync-highlight:hover,
.newsletter:hover {
  transform: none;
}

.newsletter input,
.newsletter textarea {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-sans);
}

.newsletter input:focus,
.newsletter textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.wechat-qr-block img {
  border-radius: 12px;
  background: #fff;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.9);
}

.footer-links {
  flex-wrap: wrap;
}

.footer-local {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-local-label {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.local-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.local-item strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
}

.local-item em {
  font-style: normal;
  font-size: 0.74rem;
}

.footer-disclaimer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translateX(-50%);
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--ink);
  font-size: 0.9rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7);
}

.toast[hidden] {
  display: none;
}

/* Subdue the cyberpunk decorations so content leads. */
#bg-fx {
  opacity: 0.35;
}

.orb {
  opacity: 0.35;
}

.hero-scan {
  display: none;
}

/* ---- Responsive ---- */
@media (max-width: 1040px) {
  .nav-links a:not(.nav-cta):nth-child(n + 4) {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-inner.hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .nav-wrap {
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle:not([hidden]) {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 2px 0 0;
    overflow: visible;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }

  .brand-text small {
    display: none;
  }

  .nav-wrap .nav-links a:not(.nav-cta) {
    display: inline-flex;
  }

  .nav-links a.nav-cta {
    margin-left: 0;
    padding: 8px 14px;
  }

  html.nav-enhanced .nav-wrap {
    flex-wrap: nowrap;
  }

  html.nav-enhanced .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(10, 16, 25, 0.98);
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  html.nav-enhanced .nav-links.is-open {
    display: flex;
  }

  html.nav-enhanced .nav-links a {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 11px 14px;
    border-radius: 10px;
  }

  html.nav-enhanced .nav-links a.nav-cta {
    justify-content: center;
    margin-top: 4px;
  }

  .hero-inner.hero-grid {
    padding: 44px 0 52px;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-stats {
    gap: 12px 28px;
  }

  .hero-stats dd {
    font-size: 1.45rem;
  }

  .hero-feature {
    padding: 20px;
  }

  .hero-feature-levels li {
    grid-template-columns: 56px 1fr;
  }

  .hero-feature-levels span:nth-of-type(2) {
    grid-column: 2;
  }

  .article-search {
    width: 100%;
  }

  .value-list li {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot::after {
    animation: none;
  }

  .article-card:hover,
  .article-card:focus-within {
    transform: none;
  }
}
