:root {
  --ink: #17211f;
  --muted: #65716d;
  --paper: #f3f1ea;
  --surface: #fbfaf6;
  --line: #d8d7cf;
  --line-strong: #a8aaa2;
  --acid: #d9ff58;
  --teal: #155f5b;
  --teal-soft: #dce9e5;
  --coral: #e66e4d;
  --violet: #7c67aa;
  --blue: #537eb7;
  --amber: #c18a31;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(23, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 33, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 31, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.page-shell {
  width: min(1480px, calc(100% - 40px));
  margin: 20px auto;
  overflow: hidden;
  background: rgba(251, 250, 246, 0.94);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--ink);
  border-radius: 50%;
}

.brand-mark::after {
  width: 8px;
  height: 8px;
  background: var(--acid);
  border-radius: 50%;
  content: "";
}

.brand-mark i {
  position: absolute;
  width: 30px;
  height: 1px;
  background: rgba(217, 255, 88, 0.72);
  transform-origin: center;
}

.brand-mark i:nth-child(1) { transform: rotate(0deg); }
.brand-mark i:nth-child(2) { transform: rotate(60deg); }
.brand-mark i:nth-child(3) { transform: rotate(120deg); }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.03em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(21, 95, 91, 0.12);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.45fr);
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(64px, 9vw, 130px) clamp(24px, 7vw, 108px) clamp(72px, 9vw, 126px);
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 255, 88, 0.72), transparent 23%),
    var(--surface);
}

.hero::after {
  position: absolute;
  right: 7vw;
  bottom: 0;
  left: 7vw;
  height: 1px;
  background: var(--line);
  content: "";
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(42px, 6.4vw, 94px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--teal);
  font-style: normal;
}

.hero-lead {
  max-width: 760px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.9;
}

.hero-method {
  align-self: end;
  padding: 24px;
  background: var(--ink);
  color: #f8f7f2;
  border-radius: var(--radius);
  transform: rotate(1deg);
}

.hero-method > span {
  display: block;
  padding-bottom: 14px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-method ol {
  display: grid;
  gap: 15px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.hero-method li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}

.hero-method b {
  color: var(--acid);
  font-family: Georgia, serif;
  font-size: 12px;
}

.preset-section,
.workbench,
.reading-guide {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 7vw, 108px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading h2,
.active-question h2,
.reading-guide h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.section-heading > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.preset-card {
  position: relative;
  min-height: 250px;
  padding: 28px 24px 24px;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.preset-card:last-child {
  border-right: 0;
}

.preset-card:hover,
.preset-card:focus-visible {
  z-index: 1;
  outline: 0;
  background: var(--teal-soft);
  transform: translateY(-5px);
}

.preset-card.is-active {
  color: #fff;
  background: var(--teal);
}

.preset-card .preset-index {
  display: block;
  margin-bottom: 58px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
}

.preset-card.is-active .preset-index {
  color: var(--acid);
}

.preset-card h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.preset-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.preset-card.is-active p {
  color: rgba(255, 255, 255, 0.75);
}

.preset-card .preset-arrow {
  position: absolute;
  top: 23px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.preset-card:hover .preset-arrow,
.preset-card:focus-visible .preset-arrow,
.preset-card.is-active .preset-arrow {
  opacity: 1;
  transform: rotate(45deg);
}

.workbench {
  color: #eef3ef;
  background: var(--ink);
}

.workbench .eyebrow {
  color: var(--acid);
}

.workbench-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.active-question {
  max-width: 920px;
}

.active-question h2 {
  color: #fff;
}

.share-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  color: #f7f9f7;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.27);
  border-radius: 999px;
  cursor: pointer;
}

.share-button:hover,
.share-button:focus-visible {
  color: var(--ink);
  background: var(--acid);
  border-color: var(--acid);
  outline: 0;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.control-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.control-title span {
  font-size: 13px;
  font-weight: 800;
}

.control-title small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.coverage-note {
  max-width: 760px;
  margin: -4px 0 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.6;
}

.company-picker,
.dimension-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-chip,
.dimension-tab {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.company-chip {
  font-size: 12px;
}

.company-chip:hover,
.company-chip:focus-visible,
.dimension-tab:hover,
.dimension-tab:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  outline: 0;
}

.company-chip.is-active {
  color: var(--ink);
  background: var(--acid);
}

.company-chip.is-disabled {
  opacity: 0.42;
}

.dimension-tab {
  font-size: 11px;
  font-weight: 700;
}

.dimension-tab.is-active {
  color: var(--ink);
  background: #f7f8f3;
}

.dimension-prompt {
  min-height: 48px;
  margin: 22px 0 16px;
  padding: 13px 17px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(217, 255, 88, 0.08);
  border-left: 3px solid var(--acid);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 14px;
  line-height: 1.6;
}

.matrix-frame {
  position: relative;
}

.matrix-scroll {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  scrollbar-color: rgba(217, 255, 88, 0.45) rgba(255, 255, 255, 0.08);
}

.matrix-scroll:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.comparison-matrix {
  --company-count: 3;
  display: grid;
  grid-template-columns: 164px repeat(var(--company-count), minmax(250px, 1fr));
  min-width: calc(164px + var(--company-count) * 250px);
  background: #f5f4ee;
  color: var(--ink);
}

.matrix-cell {
  min-height: 148px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.matrix-cell:nth-child(1) {
  border-top-left-radius: var(--radius);
}

.matrix-label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #e8e7e0;
  font-size: 13px;
  font-weight: 800;
}

.matrix-label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.matrix-corner {
  min-height: 202px;
  color: var(--muted);
  background: #e8e7e0;
}

.matrix-corner b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 400;
}

.company-head {
  position: relative;
  min-height: 202px;
  padding-top: 26px;
  background: #fff;
}

.company-head::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--company-color, var(--teal));
  content: "";
}

.company-head .company-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.company-tag,
.evidence-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.company-tag {
  color: var(--teal);
  background: var(--teal-soft);
}

.evidence-badge {
  color: var(--muted);
  background: #eeede7;
}

.company-head h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.company-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.company-profile-link {
  display: inline-flex;
  margin-top: 15px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.matrix-value {
  background: #fff;
  font-size: 13px;
  line-height: 1.72;
}

.matrix-value .role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.role-pill {
  padding: 5px 8px;
  color: var(--muted);
  background: #f0efe9;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
}

.matrix-value ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 17px;
}

.matrix-value.is-proof {
  background: #f8f8e9;
}

.matrix-value.is-constraint {
  background: #f8efeb;
}

.matrix-row-hidden {
  display: none;
}

.scroll-hint {
  display: none;
  margin: 11px 2px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.editorial-verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  margin-top: 28px;
  padding: 32px;
  color: var(--ink);
  background: var(--acid);
  border-radius: var(--radius);
}

.verdict-number {
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 0.8;
}

.editorial-verdict .eyebrow {
  color: var(--teal);
}

.verdict-main h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.verdict-main > p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.verdict-unknown {
  display: grid;
  gap: 18px;
  padding-left: 28px;
  border-left: 1px solid rgba(23, 33, 31, 0.28);
}

.verdict-unknown span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.verdict-unknown p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.reading-guide {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(60px, 8vw, 120px);
  background: var(--surface);
}

.guide-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.guide-grid article {
  display: grid;
  grid-template-columns: 46px minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.guide-grid span {
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 12px;
}

.guide-grid h3,
.guide-grid p {
  margin: 0;
}

.guide-grid h3 {
  font-size: 15px;
}

.guide-grid p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 24px clamp(24px, 7vw, 108px);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.error-state {
  padding: 80px 24px;
  text-align: center;
}

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

  .hero-method {
    max-width: 520px;
    transform: none;
  }

  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preset-card:nth-child(2) {
    border-right: 0;
  }

  .preset-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .controls,
  .reading-guide {
    grid-template-columns: 1fr;
  }

  .editorial-verdict {
    grid-template-columns: auto 1fr;
  }

  .verdict-unknown {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 0 0;
    border-top: 1px solid rgba(23, 33, 31, 0.28);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-header {
    min-height: 74px;
  }

  .header-note {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

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

  .hero-lead {
    margin-top: 28px;
  }

  .section-heading,
  .workbench-top {
    align-items: start;
    flex-direction: column;
  }

  .section-heading > p {
    display: none;
  }

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

  .preset-card {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preset-card:last-child {
    border-bottom: 0;
  }

  .preset-card .preset-index {
    margin-bottom: 35px;
  }

  .controls {
    padding: 18px;
  }

  .scroll-hint {
    display: block;
  }

  .comparison-matrix {
    grid-template-columns: 116px repeat(var(--company-count), minmax(230px, 1fr));
    min-width: calc(116px + var(--company-count) * 230px);
  }

  .matrix-cell {
    padding: 17px;
  }

  .editorial-verdict {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .verdict-number {
    display: none;
  }

  .verdict-unknown {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .guide-grid article {
    grid-template-columns: 34px 1fr;
  }

  .guide-grid p {
    grid-column: 2;
  }

  footer {
    flex-direction: column;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
