﻿:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-muted: #eef2f7;
  --ink: #10182a;
  --ink-soft: #4c5972;
  --ink-inverse: #f9fbff;
  --primary: #123b66;
  --primary-strong: #0c2a4a;
  --accent: #b17a19;
  --accent-blue: #2a6ea2;
  --honey: #d79a2b;
  --honey-soft: #fff2d6;
  --leaf: #637947;
  --line: #d2dbe8;
  --success: #1b7f58;
  --warning: #b77618;
  --danger: #b24040;
  --shadow: 0 18px 38px rgba(16, 24, 42, 0.1);
  --shadow-hover: 0 24px 52px rgba(16, 24, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 154, 43, 0.18), transparent 34rem),
    radial-gradient(circle at 94% 10%, rgba(42, 110, 162, 0.12), transparent 30rem),
    linear-gradient(180deg, #f8f6ef 0%, #f2f4f8 300px, #f2f4f8 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(10px);
  background: rgba(246, 248, 251, 0.95);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: clamp(118px, 11vw, 158px);
  height: auto;
  max-height: 68px;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
}

.nav-links > a,
.nav-links > details {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-links > details:hover,
.nav-links .active {
  color: var(--ink);
}

.nav-links details {
  position: relative;
}

.nav-links summary {
  list-style: none;
  cursor: pointer;
}

.nav-links summary::-webkit-details-marker {
  display: none;
}

.dropdown {
  position: absolute;
  top: 128%;
  left: -10px;
  min-width: 300px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.dropdown a {
  display: block;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 0.9rem;
}

.dropdown a:hover {
  background: var(--surface-muted);
}

.mobile-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle .bar {
  display: block;
  width: 23px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(18, 59, 102, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

.hero {
  padding: 58px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  font-family: "IBM Plex Serif", Georgia, serif;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-family: "IBM Plex Serif", Georgia, serif;
}

h3 {
  font-size: 1.2rem;
}

.lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 64ch;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 8%, rgba(215, 154, 43, 0.32), transparent 10rem),
    linear-gradient(145deg, #0f2f53 0%, #193e67 100%);
  color: var(--ink-inverse);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel p,
.hero-panel li {
  color: #e3edf8;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.metric strong {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.28rem;
}

.section {
  padding: 58px 0;
}

.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ebf0f7;
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--honey));
  transition: width 0.24s ease;
}

.card:hover,
.band:hover,
.metric:hover {
  border-color: rgba(42, 110, 162, 0.55);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card:hover::before {
  width: 100%;
}

.card p,
.card li {
  color: var(--ink-soft);
}

.card .meta {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.tag {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
}

.list-clean li {
  margin-bottom: 8px;
}

.page-hero {
  padding: 48px 0 22px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.founder-grid {
  display: grid;
  gap: 22px;
}

.founder-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.founder-card-alt {
  grid-template-columns: 1.22fr 0.78fr;
}

.founder-card-alt .founder-portrait {
  order: 2;
}

.founder-card-alt .founder-copy {
  order: 1;
}

.founder-portrait {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(215, 154, 43, 0.42), transparent 11rem),
    linear-gradient(145deg, #102f53 0%, #173e65 100%);
}

.founder-portrait::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px 999px 20px 20px;
}

.founder-portrait img {
  position: relative;
  z-index: 1;
  width: min(82%, 360px);
  max-height: 430px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
}

.founder-card-alt .founder-portrait img {
  width: min(92%, 430px);
}

.founder-copy {
  padding: clamp(24px, 4vw, 44px);
}

.founder-copy p,
.founder-copy li {
  color: var(--ink-soft);
}

.founder-role {
  margin-top: -4px;
  color: var(--primary);
  font-weight: 800;
}

.insight-river {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(242, 244, 248, 0.96), rgba(242, 244, 248, 0.38) 12%, rgba(242, 244, 248, 0.38) 88%, rgba(242, 244, 248, 0.96)),
    #eef2f7;
  padding: 12px 0;
}

.insight-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: riverFlow 34s linear infinite;
}

.insight-river:hover .insight-track {
  animation-play-state: paused;
}

.flow-card {
  width: min(360px, 82vw);
  min-height: 156px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(16, 24, 42, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.flow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 154, 43, 0.72);
  box-shadow: var(--shadow-hover);
}

.flow-card span {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-card strong {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.22;
}

.flow-card small {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

@keyframes riverFlow {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 20%, rgba(215, 154, 43, 0.26), transparent 12rem),
    linear-gradient(130deg, #112f52 0%, #19466f 100%);
  color: #f4f8ff;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.cta p {
  color: #dae7f7;
}

.small {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: #f6f8fb;
  color: var(--ink-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.insights-controls {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 10px;
  margin-bottom: 14px;
}

.insight-search,
.insight-filter {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font: inherit;
}

.insight-card h3 {
  margin-bottom: 8px;
}

.insight-card .meta {
  font-size: 0.82rem;
}

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

.input-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tool-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  padding: 8px 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tool-tabs button.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eaf2fb;
}

.tool-tabs button:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

.tool-panel {
  display: none;
}

.tool-panel.active {
  display: block;
}

.tool-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lab-note {
  border-left: 4px solid var(--honey);
  border-radius: 8px;
  background: var(--honey-soft);
  color: #53390d;
  padding: 12px 14px;
  margin: 14px 0;
}

.method-grid {
  display: grid;
  gap: 14px;
}

.mini-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 16px;
}

.result-box {
  margin-top: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fafcff;
}

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

.result-summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.result-summary strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.lab-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 8px 0 12px;
}

.lab-table th,
.lab-table td {
  border: 1px solid var(--line);
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.lab-table th {
  background: #eef2f7;
  color: var(--ink);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-list > div {
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

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

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 9px;
}

.check-item input {
  width: 16px;
  margin-top: 4px;
}

.progress {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--primary), var(--honey));
}

.risk-board {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 14px;
}

.risk-canvas-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

#riskCanvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: crosshair;
}

.risk-list {
  margin: 10px 0 0;
  padding: 0 0 0 14px;
  max-height: 300px;
  overflow: auto;
}

.risk-list li {
  margin-bottom: 7px;
}

.article-wrap {
  width: min(920px, 92vw);
  margin: 0 auto;
}

.article-hero {
  padding: 44px 0 12px;
}

.article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.article-body {
  padding: 26px 0 56px;
}

.article-body h2 {
  margin-top: 24px;
}

.article-body p,
.article-body li {
  color: #20314e;
}

.article-body ul,
.article-body ol {
  padding-left: 20px;
}

.fade {
  animation: fadeUp 0.55s ease forwards;
  opacity: 0;
  transform: translateY(14px);
}

.fade:nth-child(2) { animation-delay: 0.08s; }
.fade:nth-child(3) { animation-delay: 0.14s; }
.fade:nth-child(4) { animation-delay: 0.2s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .split,
  .risk-board,
  .founder-card,
  .founder-card-alt {
    grid-template-columns: 1fr;
  }

  .founder-card-alt .founder-portrait,
  .founder-card-alt .founder-copy {
    order: initial;
  }

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

  .input-grid,
  .input-grid.cols-3,
  .checklist,
  .insights-controls,
  .result-summary,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 780px) {
  .mobile-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(246, 248, 251, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-height: calc(100vh - 84px);
    overflow: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .dropdown {
    position: static;
    min-width: auto;
    box-shadow: none;
    border: none;
    padding: 4px 0 0 8px;
  }

  .nav-shell .btn {
    display: none;
  }

  .grid-3,
  .grid-2,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .founder-portrait {
    min-height: 360px;
  }

  .founder-portrait img,
  .founder-card-alt .founder-portrait img {
    max-height: 350px;
  }

  h1 {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
}
