:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f3f1eb;
  --ink: #171717;
  --muted: #66625a;
  --faint: #918a80;
  --line: #ded9cf;
  --line-strong: #c9c2b6;
  --red: #b4332f;
  --red-soft: #f7e7e4;
  --green: #1f8c58;
  --green-soft: #e4f4eb;
  --amber: #a36a1d;
  --shadow: 0 18px 60px rgba(48, 42, 32, 0.08);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(251, 250, 247, 0.96)),
    var(--bg);
  color: var(--ink);
  font-family:
    "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

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

.text-link {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.text-link:hover {
  color: var(--green);
}

button {
  font: inherit;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .site-header,
body.is-locked main,
body.is-locked .site-footer {
  display: none;
}

.gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 15%, rgba(180, 51, 47, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 250, 247, 0.98)),
    var(--bg);
}

body:not(.is-locked) .gate {
  display: none;
}

.gate-card {
  display: grid;
  width: min(520px, 100%);
  gap: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.gate-card h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.gate-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.gate-card label {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.gate-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.gate-input-row input,
.gate-input-row button {
  min-height: 46px;
  border-radius: var(--radius);
  font: inherit;
}

.gate-input-row input {
  width: 100%;
  border: 1px solid var(--line-strong);
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
}

.gate-input-row button {
  border: 1px solid var(--ink);
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.gate-error {
  min-height: 22px;
  color: var(--red) !important;
  font-size: 14px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--red);
  font-weight: 800;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 56px;
  align-items: end;
  min-height: min(760px, calc(100vh - 74px));
  padding-top: 42px;
}

.boundary,
.section-number,
.ui-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.boundary {
  margin: 0 0 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 26px;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 850;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 820;
  line-height: 1.12;
}

h3 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 720px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
}

.context-note {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-line {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-line:last-child {
  border-bottom: 0;
}

.panel-line span,
.production-list span,
.metrics-row span,
.market-item span {
  color: var(--faint);
  font-size: 13px;
}

.panel-line strong,
.production-list strong {
  font-size: 19px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 60px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.section-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.production-list {
  display: grid;
  gap: 14px;
}

.production-list div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.production-list p {
  margin: 9px 0 0;
  color: var(--muted);
}

.thesis {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}

.thesis-copy {
  color: var(--ink);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.72;
}

.thesis-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.workbench-section {
  border-top: 1px solid var(--line);
}

.demo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 44px;
  margin-bottom: 36px;
}

.workbench-section .demo-heading h2 {
  font-size: clamp(31px, 3.2vw, 42px);
}

.demo-heading p:last-child {
  align-self: end;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 17px;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1.58fr);
  gap: 28px;
  align-items: stretch;
}

.proposal-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 241, 235, 0.72)),
    var(--surface);
}

.proposal-panel h3 {
  font-size: 31px;
  line-height: 1.16;
}

.proposal-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.proposal-points {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.proposal-points div {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.proposal-points strong {
  font-size: 15px;
}

.proposal-points span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.mac-frame {
  overflow: hidden;
  border: 1px solid #bfb8ab;
  border-radius: 14px;
  background: #201f1d;
  box-shadow:
    0 34px 80px rgba(41, 35, 25, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mac-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.mac-topbar span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-topbar span:nth-child(1) {
  background: #ff5f57;
}

.mac-topbar span:nth-child(2) {
  background: #ffbd2e;
}

.mac-topbar span:nth-child(3) {
  background: #28c840;
}

.mac-topbar strong {
  margin-left: 8px;
  font-weight: 700;
}

.mac-screen {
  padding: 10px;
  background: #0f0f0e;
}

.mac-screen .workbench {
  overflow: hidden;
  border-color: var(--line);
  box-shadow: none;
}

.mac-screen .workbench-layout {
  grid-template-columns: minmax(180px, 0.9fr) minmax(270px, 1.25fr) minmax(170px, 0.78fr);
  min-height: 500px;
}

.mac-screen .priority-panel,
.mac-screen .stock-card,
.mac-screen .market-layer {
  min-width: 0;
  padding: 20px;
}

.mac-screen .stock-card h3 {
  font-size: 24px;
}

.mac-screen .stock-view {
  font-size: 15px;
}

.workbench {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workbench-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.watchlist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ticker-chip,
.ghost-button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.ticker-chip {
  padding: 0 15px;
}

.ticker-chip:hover,
.ticker-chip.is-active {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.ghost-button {
  padding: 0 16px;
}

.ghost-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.workbench-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.45fr 0.85fr;
  min-height: 520px;
}

.priority-panel,
.stock-card,
.market-layer {
  padding: 24px;
}

.priority-panel,
.stock-card {
  border-right: 1px solid var(--line);
}

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

.panel-header strong {
  font-size: 14px;
}

.priority-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.priority-list li:last-child {
  border-bottom: 0;
}

.priority-list b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--red);
  font-size: 13px;
}

.priority-list strong {
  display: block;
  margin-bottom: 4px;
}

.priority-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.stock-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.risk-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.risk-pill.low {
  background: var(--green-soft);
  color: var(--green);
}

.risk-pill.watch {
  background: #f6eddd;
  color: var(--amber);
}

.stock-view {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 17px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.metrics-row div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.metrics-row strong {
  font-size: 24px;
}

.content-match ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 24px;
  padding: 0;
  list-style: none;
}

.content-match li {
  padding: 13px 14px;
  border-left: 3px solid var(--red);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
}

.pro-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.market-layer {
  display: grid;
  align-content: start;
  gap: 14px;
  background: linear-gradient(180deg, #fff, var(--bg));
}

.market-item {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.market-item:last-child {
  border-bottom: 0;
}

.mechanism,
.fit {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}

.fit {
  display: block;
}

.fit > div:first-child {
  max-width: 1040px;
  margin-bottom: 32px;
}

.fit h2 {
  max-width: 1080px;
  margin-bottom: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
}

.mechanism-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mechanism-steps div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mechanism-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.mechanism-steps p,
.fit-copy,
.fit-copy p,
.fit-copy li {
  color: var(--muted);
}

.fit-copy {
  max-width: 1040px;
  font-size: 18px;
  line-height: 1.75;
}

.fit-copy > p {
  max-width: 920px;
  margin-bottom: 18px;
}

.fit-copy > p:nth-of-type(3) {
  color: var(--ink);
  font-size: 19px;
}

.fit-copy ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 20px;
}

.fit-assets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fit-assets div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.fit-assets strong {
  color: var(--ink);
  font-size: 16px;
}

.fit-assets span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card a {
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.contact-card a:hover {
  color: var(--green);
}

.closing-note {
  max-width: 920px;
  margin-top: 22px;
  margin-bottom: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: rgba(180, 51, 47, 0.06);
  color: var(--ink) !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .insight-grid,
  .thesis,
  .demo-heading,
  .demo-stage,
  .mechanism,
  .fit {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .mac-screen .workbench-layout {
    grid-template-columns: 1fr;
  }

  .proposal-panel {
    min-height: auto;
  }

  .priority-panel,
  .stock-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .fit h2 {
    font-size: clamp(32px, 6vw, 46px);
  }

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

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .gate {
    padding: 18px;
  }

  .gate-card {
    padding: 24px;
  }

  .gate-input-row {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: min(100% - 28px, var(--max));
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 58px 0;
  }

  h1 {
    font-size: 38px;
    line-height: 1.12;
    word-break: break-all;
  }

  h2 {
    font-size: 31px;
  }

  .fit h2 {
    font-size: 32px;
    line-height: 1.16;
  }

  .workbench-top,
  .stock-card-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .fit-assets {
    grid-template-columns: 1fr;
  }
}
