:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #07100e;
  color: #eff4ee;
  --ink: #eff4ee;
  --muted: #9eaaa5;
  --line: rgba(231, 239, 235, 0.13);
  --panel: rgba(16, 30, 27, 0.72);
  --mint: #72e0c4;
  --cream: #f1e6c8;
  --coral: #ff8c70;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 4%, rgba(41, 93, 78, 0.58), transparent 32rem),
    linear-gradient(180deg, #08120f 0%, #07100e 42%, #0b1512 100%);
}

button { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 14, 0.84);
  backdrop-filter: blur(18px);
}

.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; background: var(--mint); color: #07100e; border-radius: 50%; font-size: .75rem; }
.topbar-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: .78rem; }
.text-button { color: var(--mint); border: 0; background: none; cursor: pointer; }

.dashboard-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 120px;
}

#hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: 72px;
  padding: 72px 0 56px;
  border-bottom: 1px solid #29403b;
}

.eyebrow {
  color: #6ee7d8;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

h1 {
  max-width: 960px;
  margin: 18px 0;
  font-size: clamp(3.1rem, 6.6vw, 6.7rem);
  line-height: .95;
  letter-spacing: -.06em;
}

h1 em { color: var(--cream); font-family: "STSong", "Songti SC", serif; font-weight: 400; }
h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 3vw, 3.4rem); letter-spacing: -.045em; }
.hero-deck { color: var(--mint); font-weight: 700; letter-spacing: .06em; }
.hero-note { max-width: 660px; color: var(--muted); line-height: 1.8; }
.market-strip { display: grid; gap: 12px; }
.market-card { padding: 20px; border: 1px solid var(--line); background: rgba(10, 22, 19, .56); }
.market-value { display: block; margin: 7px 0 4px; color: var(--cream); font-size: 2rem; font-weight: 760; }
.microcopy { color: var(--muted); font-size: .76rem; line-height: 1.55; }

.theme-nav { position: sticky; top: 64px; z-index: 15; display: flex; gap: 8px; padding: 14px 0; background: rgba(7, 16, 14, .91); border-bottom: 1px solid var(--line); overflow-x: auto; }
.theme-tab { flex: 0 0 auto; padding: 9px 15px; color: var(--muted); border: 1px solid transparent; border-radius: 99px; background: transparent; cursor: pointer; }
.theme-tab:hover, .theme-tab.is-active { color: #07100e; background: var(--cream); }

main > section:not(#hero) {
  border-bottom: 1px solid var(--line);
}

.report-section, main > section:not(#hero) { padding: 72px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); line-height: 1.7; }
.company-selector { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.company-toggle { position: relative; min-height: 116px; padding: 18px; text-align: left; color: var(--muted); border: 1px solid var(--line); background: rgba(15, 28, 25, .48); cursor: pointer; transition: .2s ease; }
.company-toggle::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--company-color); opacity: .25; }
.company-toggle.is-selected { color: var(--ink); border-color: color-mix(in srgb, var(--company-color), transparent 55%); background: color-mix(in srgb, var(--company-color), transparent 91%); }
.company-toggle.is-selected::before { opacity: 1; }
.company-toggle strong { display: block; margin-bottom: 8px; font-size: 1.15rem; }
.company-toggle span { font-size: .76rem; line-height: 1.4; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.summary-card h3 { margin: 24px 0 12px; font-size: 1.22rem; line-height: 1.25; }
.summary-card p:last-child { color: var(--muted); font-size: .88rem; line-height: 1.7; }
.card-kicker { color: var(--mint); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }

.positioning-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.positioning-group { min-height: 270px; padding: 22px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(23, 43, 37, .82), rgba(10, 20, 17, .48)); }
.positioning-item { margin-top: 42px; }
.positioning-item strong { display: block; color: var(--company-color); font-size: 1.45rem; }
.positioning-item span { display: block; margin: 8px 0 22px; font-size: .86rem; font-weight: 700; }
.positioning-item p { color: var(--muted); font-size: .82rem; line-height: 1.7; }

.comparison-wrap { overflow: auto; border: 1px solid var(--line); }
.comparison-table { width: 100%; min-width: 1050px; border-collapse: collapse; table-layout: fixed; }
.comparison-table th, .comparison-table td { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table thead th { position: sticky; top: 0; z-index: 2; background: #10201b; color: var(--ink); }
.comparison-table thead th:first-child { width: 165px; }
.comparison-table thead th span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--company-color); }
.comparison-table tbody th { color: var(--cream); background: rgba(16, 30, 27, .72); }
.comparison-table tbody th small { display: block; margin-bottom: 6px; color: var(--muted); font-size: .65rem; font-weight: 400; letter-spacing: .12em; }
.comparison-table td { color: #c5cfca; font-size: .84rem; line-height: 1.65; }

.event-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; }
.filter-chip.is-active { color: #07100e; border-color: var(--mint); background: var(--mint); }
.timeline-list { position: relative; }
.timeline-list::before { content: ""; position: absolute; left: 104px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-event { position: relative; width: 100%; display: grid; grid-template-columns: 100px 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; color: inherit; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; }
.timeline-event::before { content: ""; position: absolute; left: 100px; top: 25px; width: 9px; height: 9px; border-radius: 50%; background: var(--company-color); box-shadow: 0 0 0 5px #0a1512; }
.timeline-event:hover .timeline-copy strong { color: var(--company-color); }
.timeline-date, .timeline-company { color: var(--muted); font-size: .75rem; }
.timeline-company { color: var(--company-color); font-weight: 700; }
.timeline-copy strong { display: block; margin-bottom: 5px; }
.timeline-copy small { display: block; max-width: 780px; color: var(--muted); line-height: 1.6; }

.path-stack { display: grid; gap: 12px; }
.company-path { border: 1px solid var(--line); background: rgba(14, 26, 23, .56); }
.company-path > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.company-path > header > div, .capital-card header { display: flex; align-items: center; gap: 10px; }
.company-path h3, .capital-card h3 { margin: 0; font-size: 1.08rem; }
.company-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--company-color); }
.path-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.path-node { position: relative; min-height: 220px; padding: 24px 20px; border-right: 1px solid var(--line); }
.path-node:last-child { border-right: 0; }
.path-node::after { content: ""; position: absolute; top: 48px; right: -5px; z-index: 1; width: 9px; height: 9px; transform: rotate(45deg); border-top: 1px solid var(--company-color); border-right: 1px solid var(--company-color); }
.path-node:last-child::after { display: none; }
.path-index { display: block; margin-bottom: 36px; color: var(--company-color); font-size: .68rem; letter-spacing: .08em; }
.path-node strong { display: block; min-height: 42px; line-height: 1.35; }
.path-node p { color: var(--muted); font-size: .8rem; line-height: 1.65; }

.scale-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scale-card { min-height: 295px; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.scale-card::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 22px; background: var(--company-color); }
.scale-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.scale-value { display: block; margin: 18px 0 5px; color: var(--cream); font-size: clamp(1.85rem, 3vw, 3rem); line-height: 1; letter-spacing: -.05em; }
.scale-card h3 { min-height: 42px; margin: 10px 0 16px; font-size: .92rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-row span { padding: 5px 8px; color: var(--company-color); border: 1px solid color-mix(in srgb, var(--company-color), transparent 65%); font-size: .65rem; }
.scale-card p { margin-top: 18px; color: var(--muted); font-size: .75rem; line-height: 1.55; }

.capital-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.capital-card { min-height: 440px; padding: 22px; border-top: 3px solid var(--company-color); background: #e9e1cf; color: #18211d; }
.capital-card header { align-items: center; }
.capital-card header .text-button { margin-left: auto; color: #416359; font-size: .72rem; }
.founder-block { min-height: 218px; padding: 28px 0 18px; border-bottom: 1px solid rgba(20, 34, 29, .16); }
.founder-block > div + div { margin-top: 18px; }
.founder-block strong, .founder-block span { display: block; }
.founder-block strong { font-family: "STSong", "Songti SC", serif; font-size: 1.6rem; font-weight: 500; }
.founder-block span { margin: 6px 0; color: #53615b; font-size: .7rem; line-height: 1.4; }
.founder-block p { color: #46514c; font-size: .75rem; line-height: 1.55; }
.round-list { padding-top: 14px; }
.round-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 10px 0; font-size: .7rem; }
.round-row > span { color: #64706b; }
.round-row strong, .round-row small { display: block; }
.round-row small { margin-top: 3px; color: #59655f; }

#insai-lens { display: grid; grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 60px; background: linear-gradient(120deg, rgba(32, 73, 62, .23), transparent); }
.insai-intro { position: sticky; top: 150px; align-self: start; }
.insai-intro > p:last-child { max-width: 420px; color: var(--muted); line-height: 1.8; }
.insai-grid { display: grid; gap: 10px; }
.insai-card { padding: 24px; border: 1px solid var(--line); background: rgba(14, 27, 23, .7); }
.insai-card header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.insai-card h3 { margin: 0; color: var(--company-color); font-size: 1.35rem; }
.insai-card header span { color: var(--coral); font-size: .68rem; }
.insai-card > p { color: #c5cfca; line-height: 1.7; }
.insai-card h4 { margin: 22px 0 8px; color: var(--muted); font-size: .7rem; letter-spacing: .1em; }
.insai-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.insai-card li { padding: 7px 10px; border: 1px solid var(--line); font-size: .72rem; }
.insai-card .watchouts li { color: #e9b9ac; }


.drawer-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
#detail-drawer { position: fixed; inset: 0 0 0 auto; z-index: 30; width: min(620px, 94vw); overflow-y: auto; background: #f1ead9; color: #16201c; box-shadow: -24px 0 80px rgba(0, 0, 0, .35); }
.drawer-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 28px 32px; border-bottom: 4px solid var(--company-color); background: rgba(241, 234, 217, .94); backdrop-filter: blur(12px); }
.drawer-header h2 { font-size: 2.2rem; }
.drawer-header .card-kicker { color: #597068; }
.drawer-close { width: 40px; height: 40px; color: #16201c; border: 1px solid rgba(22, 32, 28, .2); border-radius: 50%; background: transparent; font-size: 1.5rem; cursor: pointer; }
.drawer-body { padding: 10px 32px 60px; }
.drawer-body section { padding: 28px 0; border-bottom: 1px solid rgba(22, 32, 28, .15); }
.drawer-body section h3 { margin: 0 0 18px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.drawer-body dl { margin: 0; }
.drawer-body dl > div { display: grid; grid-template-columns: 105px 1fr; gap: 16px; padding: 10px 0; }
.drawer-body dt { color: #657169; font-size: .72rem; }
.drawer-body dd { margin: 0; line-height: 1.5; }
.drawer-record + .drawer-record { margin-top: 20px; }
.drawer-record strong, .drawer-record span { display: block; }
.drawer-record span { margin: 5px 0; color: #59655f; font-size: .78rem; }
.drawer-record p, .drawer-body section > p { color: #4d5a54; line-height: 1.7; }
.drawer-body .caveat { padding: 13px; background: #e2d9c7; font-size: .78rem; }
.drawer-body a { color: #246653; font-weight: 700; }
.drawer-open { overflow: hidden; }
.empty-note { color: var(--muted); }

.error-state { margin: 80px auto; max-width: 720px; padding: 32px; border: 1px solid rgba(255, 140, 112, .5); color: #ffd2c7; }

@media (max-width: 720px) {
  .topbar { padding-inline: 14px; }
  .topbar-meta > span:first-child { display: none; }
  .dashboard-shell {
    width: min(100% - 28px, 1440px);
    padding-top: 32px;
  }
  #hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-top: 52px; }
  .company-selector { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .positioning-grid, .scale-grid, .capital-grid { grid-template-columns: 1fr; }
  .positioning-group { min-height: auto; }
  .positioning-item { margin-top: 24px; }
  .path-rail { grid-template-columns: 1fr; }
  .path-node { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .path-node::after { display: none; }
  .path-index { margin-bottom: 16px; }
  .timeline-list::before, .timeline-event::before { display: none; }
  .timeline-event { grid-template-columns: 82px 72px minmax(0, 1fr); gap: 8px; }
  .capital-card { min-height: auto; }
  .founder-block { min-height: auto; }
  #insai-lens { grid-template-columns: 1fr; gap: 28px; }
  .insai-intro { position: static; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .company-selector, .positioning-grid, .capital-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid, .scale-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
