:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --soft: #f6f7f4;
  --paper: #ffffff;
  --line: #d9ded8;
  --deep: #0b1220;
  --deep-2: #111f2d;
  --teal: #155e75;
  --teal-bright: #2dd4bf;
  --blue: #1d4ed8;
  --bronze: #ad8b55;
  --red: #d64242;
  --green: #16a34a;
  --shadow: 0 20px 70px rgba(15, 23, 42, 0.18);
  font-family:
    "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB",
    "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  letter-spacing: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(241, 231, 210, 0.95);
  outline-offset: 3px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #f5efe3, #ad8b55);
  border-radius: 6px;
  color: #101827;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
  line-height: 1.2;
}

.brand strong {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.brand em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #fff;
}

.menu-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.menu-button span {
  background: currentColor;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 160ms ease, opacity 160ms ease;
  width: 18px;
}

.menu-button span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-button span:nth-child(3) {
  transform: translateY(6px);
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  color: #fff;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  padding: 124px clamp(20px, 6vw, 84px) 54px;
  place-items: center start;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media {
  background-image: url("/assets/hero-research-desk.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

@supports (background-image: image-set(url("/assets/hero-research-desk-1600.webp") type("image/webp"))) {
  .hero-media {
    background-image: image-set(
      url("/assets/hero-research-desk-1600.webp") type("image/webp"),
      url("/assets/hero-research-desk.png") type("image/png")
    );
  }
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 13, 23, 0.92) 0%, rgba(8, 13, 23, 0.74) 38%, rgba(8, 13, 23, 0.28) 76%),
    linear-gradient(0deg, rgba(8, 13, 23, 0.54), transparent 42%);
}

.hero-content {
  max-width: 980px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.card-label {
  color: var(--bronze);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(46px, 6.6vw, 82px);
  font-weight: 700;
  line-height: 1.02;
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  margin: 28px 0 0;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button.primary {
  background: #f1e7d2;
  color: #101827;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero-metrics {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 46px 0 0;
  max-width: 680px;
  padding-top: 22px;
}

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

.hero-metrics dt {
  font-family: "Inter", "Roboto Mono", monospace;
  font-size: clamp(25px, 4vw, 42px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.hero-metrics dd {
  color: rgba(255, 255, 255, 0.64);
  margin: 8px 0 0;
}

.ticker-band {
  align-items: center;
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ticker-band span {
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  padding: 20px 12px;
  text-align: center;
}

.section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 84px);
}

section[id] {
  scroll-margin-top: 88px;
}

.intro {
  background: var(--paper);
}

.intro-grid,
.section-heading,
.data-section,
.contact-section {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

h2 {
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.38;
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.85;
}

.intro-grid p,
.section-heading p,
.data-copy p,
.contact-copy p {
  font-size: 17px;
  margin: 22px 0 0;
}

.notice-panel {
  align-self: end;
  background: #f3f6f4;
  border-left: 4px solid var(--bronze);
  padding: 26px;
}

.notice-panel strong {
  color: var(--deep);
}

.notice-panel p {
  margin: 10px 0 0;
}

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

.observation-card,
.framework-list article,
.process-steps li,
.review-main,
.quote-panel,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.observation-card {
  padding: 28px;
}

.observation-card p:last-child {
  margin-bottom: 0;
}

.framework {
  background: #f7f8f6;
}

.framework-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
}

.framework-list article {
  border-radius: 0;
  min-height: 260px;
  padding: 30px;
}

.framework-list span,
.process-steps span {
  color: var(--teal);
  display: block;
  font-family: "Inter", "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 42px;
}

.data-section {
  align-items: center;
  background: var(--deep-2);
  color: #fff;
  padding: clamp(76px, 10vw, 130px) clamp(20px, 6vw, 84px);
}

.data-section p {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard {
  background: #08111f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 430px;
  padding: clamp(20px, 4vw, 34px);
}

.dash-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dash-top span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.dash-top strong {
  color: #fff;
  font-size: 22px;
}

.chart-row {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(8, minmax(12px, 1fr));
  height: 150px;
}

.bar {
  border-radius: 4px 4px 0 0;
  min-height: 30px;
}

.bar.up {
  background: linear-gradient(180deg, #ef6a65, #8e1f2d);
}

.bar.down {
  background: linear-gradient(180deg, #4ade80, #166534);
}

.heatmap {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

.heatmap span {
  background: rgba(45, 212, 191, 0.2);
  border-radius: 4px;
  height: 42px;
}

.heatmap .hot {
  background: rgba(214, 66, 66, 0.72);
}

.heatmap .cool {
  background: rgba(22, 163, 74, 0.62);
}

.dash-notes {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}

.dash-notes p {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin: 0;
  padding: 14px;
}

.process {
  background: var(--paper);
}

.process-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 58px 0 0;
  padding: 0;
}

.process-steps li {
  min-height: 250px;
  padding: 28px;
}

.reviews {
  background: #f7f8f6;
}

.review-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  margin-top: 58px;
}

.review-main,
.quote-panel {
  padding: clamp(28px, 4vw, 42px);
}

.review-main h3 {
  font-size: clamp(26px, 4vw, 40px);
}

.review-meta {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
  padding-top: 20px;
}

.quote-panel {
  align-items: end;
  background: var(--deep);
  color: #fff;
  display: flex;
}

.quote-panel p {
  color: rgba(255, 255, 255, 0.82);
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.55;
  margin: 0;
}

.contact-section {
  background: var(--deep-2);
  color: #fff;
  padding: clamp(76px, 10vw, 130px) clamp(20px, 6vw, 84px);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  padding: clamp(22px, 4vw, 34px);
}

.contact-form label {
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form option {
  color: var(--ink);
}

.contact-form ::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.form-note {
  font-size: 13px;
  margin: 4px 0 20px;
}

.site-footer {
  background: #070d17;
  color: #fff;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.5fr) minmax(0, 1.2fr);
  padding: 44px clamp(20px, 6vw, 84px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.58);
  margin: 10px 0 0;
}

.footer-links {
  display: grid;
  gap: 4px;
}

.footer-links a {
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  min-height: 44px;
}

.risk {
  font-size: 13px;
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-flex;
    position: relative;
  }

  .site-nav {
    align-items: stretch;
    background: rgba(11, 18, 32, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    gap: 0;
    left: 0;
    padding: 10px 20px 22px;
    position: absolute;
    right: 0;
    top: 76px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
  }

  .hero {
    min-height: 86svh;
    padding-top: 112px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 13, 23, 0.94), rgba(8, 13, 23, 0.62)),
      linear-gradient(0deg, rgba(8, 13, 23, 0.68), transparent 45%);
  }

  .intro-grid,
  .section-heading,
  .data-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .observation-grid,
  .framework-list {
    grid-template-columns: 1fr 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand strong {
    font-size: 14px;
    white-space: normal;
  }

  .brand em {
    display: none;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 84svh;
    padding: 104px 18px 42px;
  }

  .hero-media {
    background-position: 61% center;
  }

  @supports (background-image: image-set(url("/assets/hero-research-desk-mobile.webp") type("image/webp"))) {
    .hero-media {
      background-image: image-set(
        url("/assets/hero-research-desk-mobile.webp") type("image/webp"),
        url("/assets/hero-research-desk.png") type("image/png")
      );
    }
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-metrics {
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
    padding-top: 18px;
  }

  .hero-metrics dt {
    font-size: 25px;
  }

  .hero-metrics dd {
    font-size: 12px;
    line-height: 1.45;
  }

  .ticker-band {
    grid-template-columns: 1fr 1fr;
  }

  .ticker-band span:last-child {
    grid-column: 1 / -1;
  }

  .section,
  .data-section,
  .contact-section {
    padding-bottom: 58px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 58px;
  }

  section[id] {
    scroll-margin-top: 76px;
  }

  .section-kicker,
  .card-label {
    margin-bottom: 14px;
  }

  h2 {
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 1.22;
  }

  h3 {
    font-size: 19px;
  }

  p {
    line-height: 1.76;
  }

  .intro-grid p,
  .section-heading p,
  .data-copy p,
  .contact-copy p {
    font-size: 16px;
  }

  .observation-grid,
  .framework-list,
  .process-steps,
  .dash-notes {
    grid-template-columns: 1fr;
  }

  .observation-grid,
  .framework-list,
  .process-steps,
  .review-layout {
    gap: 12px;
    margin-top: 34px;
  }

  .observation-card,
  .framework-list article,
  .process-steps li,
  .review-main,
  .quote-panel {
    padding: 22px;
  }

  .framework-list span,
  .process-steps span {
    margin-bottom: 24px;
  }

  .framework-list article {
    min-height: auto;
  }

  .dashboard {
    min-height: auto;
  }

  .chart-row {
    gap: 8px;
    height: 118px;
  }

  .heatmap span {
    height: 34px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }

  .site-footer {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .mobile-action-bar {
    align-items: center;
    background: rgba(7, 13, 23, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    bottom: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    left: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 30;
  }

  .mobile-action-bar a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
  }

  .mobile-action-bar .mobile-action-primary {
    background: #f1e7d2;
    border-color: #f1e7d2;
    color: #101827;
  }
}
