:root {
  color-scheme: dark;
  --bg: #09111a;
  --panel: #101b26;
  --panel-2: #0d1721;
  --line: rgba(255, 255, 255, 0.12);
  --text: #ecf6f0;
  --muted: #9db0aa;
  --green: #64d69a;
  --gold: #e9c46a;
  --danger: #ff7b72;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

button, input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 17, 26, 0.95) 0%, rgba(9, 17, 26, 0.76) 42%, rgba(9, 17, 26, 0.18) 100%);
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand, .nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
}

.nav-actions a {
  color: var(--muted);
  font-size: 14px;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 122px 0 108px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 580px;
  font-size: clamp(54px, 9vw, 112px);
}

h2 {
  font-size: 24px;
}

.hero-copy {
  max-width: 520px;
  margin: 24px 0 34px;
  color: #c9d8d2;
  font-size: 20px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
}

.hero-stats div, .metric, .result-strip div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
}

.hero-stats div {
  padding: 16px;
}

strong {
  display: block;
  font-size: 22px;
}

span {
  color: var(--muted);
  font-size: 13px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: -86px auto 80px;
  position: relative;
  z-index: 1;
}

.workspace, .section-grid {
  display: grid;
  gap: 16px;
}

.workspace {
  grid-template-columns: 0.88fr 1.4fr;
  align-items: stretch;
}

.section-grid {
  grid-template-columns: 1.35fr 0.9fr;
  margin-top: 16px;
}

.panel {
  background: linear-gradient(180deg, rgba(16, 27, 38, 0.96), rgba(10, 19, 29, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status-dot {
  border: 1px solid rgba(100, 214, 154, 0.35);
  padding: 6px 9px;
  color: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 86px;
  padding: 14px;
}

.timeline {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.timeline li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--bg);
  background: var(--green);
  font-weight: 800;
}

.timeline p {
  margin: 2px 0 0;
  color: #d6e3df;
}

.icon-button, .primary-button, .ghost-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  min-height: 38px;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  font-size: 20px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--green);
  color: #06120d;
  border-color: transparent;
  font-weight: 800;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #dce8e4;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

label {
  color: var(--muted);
  font-size: 13px;
}

input {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: #07111b;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

input:focus {
  border-color: var(--green);
}

.result-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.result-strip div {
  min-height: 90px;
  padding: 16px;
}

.result-strip strong.negative,
.metric strong.negative,
.hero-stats strong.negative {
  color: var(--danger);
}

.result-strip strong.positive,
.metric strong.positive,
.hero-stats strong.positive {
  color: var(--green);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th, td {
  padding: 14px 10px;
  text-align: left;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td button {
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  min-height: 30px;
}

.notes-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #dce8e4;
}

.check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--green);
}

.fineprint {
  margin: auto 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.reports-panel {
  margin-top: 16px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  padding: 18px;
}

.report-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.report-card p {
  margin: 0;
  color: #cbdad5;
  line-height: 1.7;
}

.report-tag {
  margin-bottom: 10px !important;
  color: var(--gold) !important;
  font-size: 13px;
  font-weight: 800;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.report-page {
  background:
    linear-gradient(180deg, rgba(9, 17, 26, 0.24), var(--bg) 420px),
    radial-gradient(circle at 78% 8%, rgba(100, 214, 154, 0.18), transparent 300px),
    var(--bg);
}

.report-hero {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(9,17,26,0.96), rgba(9,17,26,0.72)),
    url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=2200&q=80") center / cover;
}

.report-hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 96px;
}

.report-hero h1 {
  max-width: 820px;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.08;
}

.report-hero .hero-copy {
  max-width: 760px;
}

.report-main {
  margin-top: -72px;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.report-meta div {
  min-height: 110px;
  padding: 18px;
  background: rgba(255,255,255,0.04);
}

.report-meta strong {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.35;
}

.pdf-panel {
  margin-top: 16px;
}

.pdf-panel iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: 1px solid var(--line);
  background: #fff;
}

.article-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 16px;
  padding: 28px;
}

.article-toc {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.article-toc a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 0;
}

.article-toc a:hover {
  color: var(--green);
}

.article-body {
  max-width: 880px;
}

.article-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.article-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-section h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.article-section h3 {
  margin: 26px 0 10px;
  font-size: 19px;
  color: #f4fbf7;
}

.article-section p,
.article-section li {
  color: #cfddd8;
  font-size: 16px;
  line-height: 1.9;
}

.article-section p {
  margin: 0 0 14px;
}

.article-section ul,
.article-section ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.insight-grid,
.checklist-grid,
.scenario-list {
  display: grid;
  gap: 12px;
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 22px;
}

.insight-grid div,
.checklist-grid div,
.scenario-list div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  padding: 16px;
}

.insight-grid strong,
.checklist-grid strong,
.scenario-list strong {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.checklist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0;
}

.checklist-grid span {
  display: block;
  margin-top: 8px;
  line-height: 1.7;
}

.scenario-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.scenario-list p {
  margin-top: 12px;
  font-size: 15px;
}

.sources-section li {
  font-size: 14px;
  color: var(--muted);
}

.article-note {
  color: var(--gold) !important;
  font-size: 14px !important;
}

@media (max-width: 860px) {
  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(9, 17, 26, 0.9), rgba(9, 17, 26, 0.76));
  }

  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-actions {
    gap: 10px;
  }

  .hero-content {
    padding-top: 88px;
  }

  .hero-stats, .workspace, .section-grid, .form-grid, .result-strip, .report-grid, .report-meta, .article-panel, .insight-grid, .checklist-grid, .scenario-list {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }

  main {
    margin-top: -56px;
  }
}

@media (max-width: 520px) {
  .topbar {
    flex-direction: column;
  }

  .hero-copy {
    font-size: 17px;
  }

  .panel {
    padding: 18px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .pdf-panel iframe {
    height: 560px;
  }
}
