:root {
  --navy-950: #061521;
  --navy-900: #0a2133;
  --navy-800: #11364b;
  --navy-700: #184b61;
  --teal-700: #08786f;
  --teal-600: #0b8f84;
  --teal-500: #20a69a;
  --teal-100: #d9f2ee;
  --teal-50: #edf9f7;
  --blue-100: #e7f0f7;
  --ink: #102633;
  --ink-soft: #526976;
  --muted: #71858e;
  --line: #dce5e8;
  --line-strong: #c6d4d9;
  --paper: #f5f8f8;
  --surface: #ffffff;
  --surface-soft: #f9fbfb;
  --success: #13866e;
  --warning: #b87421;
  --danger: #c95454;
  --shadow-sm: 0 8px 28px rgba(8, 38, 52, 0.07);
  --shadow-md: 0 24px 70px rgba(8, 38, 52, 0.13);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --content-width: 1220px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(32, 166, 154, 0.08), transparent 25rem),
    var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  transform: translateY(-160%);
  padding: 0.65rem 0.9rem;
  border-radius: 7px;
  background: var(--navy-950);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.section-shell {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(198, 212, 217, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(1280px, calc(100% - 3rem));
  min-height: 72px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  color: var(--navy-950);
  font-size: 0.93rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 1.7rem;
}

.header-nav a {
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-nav a:hover {
  color: var(--teal-700);
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9cabaf;
  box-shadow: 0 0 0 4px rgba(156, 171, 175, 0.14);
}

.service-state.is-online .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(19, 134, 110, 0.14);
}

.service-state.is-offline .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 84, 84, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 0.88fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  min-height: 690px;
  padding-block: 6rem 5.6rem;
}

.hero-kicker,
.eyebrow,
.panel-overline {
  color: var(--teal-700);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.kicker-mark {
  width: 24px;
  height: 1px;
  background: var(--teal-600);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 670px;
  margin-bottom: 1.5rem;
  color: var(--navy-950);
  font-size: clamp(3.1rem, 5.3vw, 5.2rem);
  font-weight: 610;
  line-height: 1.02;
  letter-spacing: -0.065em;
}

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

.hero-description {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.75rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:focus-visible,
textarea:focus-visible,
input:focus-visible,
select:focus-visible,
.sample-question:focus-visible,
.source-link:focus-visible,
.choice-card:focus-within {
  outline: 3px solid rgba(11, 143, 132, 0.2);
  outline-offset: 3px;
}

.button-primary {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 120, 111, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: #056b64;
  box-shadow: 0 14px 28px rgba(8, 120, 111, 0.23);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
  color: var(--navy-900);
}

.button-dark {
  background: var(--navy-900);
  color: #fff;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 620px;
  margin: 3rem 0 0;
}

.hero-facts div {
  padding-right: 1.2rem;
  border-right: 1px solid var(--line);
}

.hero-facts div + div {
  padding-left: 1.2rem;
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: var(--navy-950);
  font-size: 1.42rem;
  font-weight: 720;
  letter-spacing: -0.04em;
}

.hero-facts dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.hero-product {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy-950);
  background-size: 26px 26px;
  box-shadow: var(--shadow-md);
  color: #fff;
}

.hero-product::before {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: rgba(32, 166, 154, 0.16);
  filter: blur(18px);
  content: "";
}

.product-topbar,
.product-question,
.product-flow,
.product-answer {
  position: relative;
  z-index: 1;
}

.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.2rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-label {
  color: #a8c2cc;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #b9d9d4;
  font-size: 0.64rem;
}

.secure-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43c7a5;
  box-shadow: 0 0 12px rgba(67, 199, 165, 0.8);
}

.product-question {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.product-question-label {
  color: #86abae;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-question p {
  margin: 0.45rem 0 0;
  color: #f4f9f9;
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-flow {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.product-flow article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-left: 2px solid rgba(32, 166, 154, 0.72);
  background: rgba(255, 255, 255, 0.035);
}

.flow-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(125, 194, 185, 0.3);
  border-radius: 7px;
  color: #7fc7bd;
  font-size: 0.63rem;
  font-weight: 800;
}

.product-flow small,
.product-flow strong {
  display: block;
}

.product-flow small {
  margin-bottom: 0.22rem;
  color: #6f9ca1;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.product-flow strong {
  color: #e8f1f2;
  font-size: 0.77rem;
  font-weight: 650;
}

.flow-state {
  color: #9bb2b7;
  font-size: 0.62rem;
}

.flow-state.is-verified {
  color: #5bd2b2;
}

.product-answer {
  margin-top: 1rem;
  padding: 1.1rem;
  border-radius: 12px;
  background: #fff;
}

.answer-line {
  height: 7px;
  margin-bottom: 0.65rem;
  border-radius: 2px;
  background: #dbe5e7;
}

.answer-line.long {
  width: 96%;
}

.answer-line.medium {
  width: 82%;
}

.answer-line.short {
  width: 58%;
}

.citation-preview {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.citation-preview span {
  padding: 0.28rem 0.42rem;
  border-radius: 5px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.62rem;
  font-weight: 800;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  min-height: 112px;
  padding: 1.55rem 1.5rem;
  border-right: 1px solid var(--line);
}

.trust-grid > div:first-child {
  padding-left: 0;
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--navy-900);
  font-size: 0.8rem;
}

.trust-grid span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.workspace-section,
.evidence-section,
.pipeline-section {
  padding-block: 6rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2.1rem;
}

.eyebrow,
.panel-overline {
  margin: 0 0 0.75rem;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  font-weight: 610;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 490px;
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.75;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

.query-panel,
.answer-panel,
.sources-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.query-panel,
.answer-panel {
  min-height: 660px;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
}

.answer-panel {
  display: flex;
  flex-direction: column;
  border-color: #cbdde0;
  background:
    radial-gradient(circle at 90% 0, rgba(32, 166, 154, 0.09), transparent 19rem),
    var(--surface);
}

.panel-header,
.sources-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header {
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.panel-header h3,
.sources-header h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.panel-step {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-700);
  font-size: 0.66rem;
  font-weight: 800;
}

.answer-model {
  max-width: 230px;
  padding: 0.42rem 0.62rem;
  border-radius: 6px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: right;
}

.control-group {
  min-width: 0;
  margin: 1.35rem 0 0;
  padding: 0;
  border: 0;
}

.control-group legend,
.question-field > label,
.select-control > span {
  margin-bottom: 0.65rem;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 780;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.65rem;
  min-height: 82px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.choice-card:hover {
  border-color: #afc9cc;
}

.choice-card:has(input:checked) {
  border-color: var(--teal-600);
  background: var(--teal-50);
  box-shadow: inset 0 0 0 1px rgba(11, 143, 132, 0.14);
}

.choice-card.is-unavailable {
  cursor: not-allowed;
  opacity: 0.5;
}

.choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-indicator {
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  border: 1.5px solid #94aab1;
  border-radius: 50%;
  background: #fff;
}

.choice-card input:checked + .choice-indicator {
  border: 5px solid var(--teal-600);
}

.choice-copy {
  display: grid;
  align-content: start;
}

.choice-copy strong {
  color: var(--navy-950);
  font-size: 0.8rem;
}

.choice-copy small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.choice-meta,
.provider-state {
  grid-column: 2;
  width: max-content;
  margin-top: 0.25rem;
  padding: 0.22rem 0.38rem;
  border-radius: 5px;
  background: #eef3f4;
  color: #607781;
  font-size: 0.57rem;
  font-weight: 750;
}

.provider-state.is-ready {
  background: #dff4eb;
  color: #14745e;
}

.provider-state.is-unavailable {
  background: #f7e8e8;
  color: #a54c4c;
}

.question-field {
  margin-top: 1.35rem;
}

.question-field > label {
  display: block;
}

textarea {
  width: 100%;
  min-height: 124px;
  resize: vertical;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px 12px 0 0;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.72;
}

textarea::placeholder,
input::placeholder {
  color: #91a1a7;
}

.question-field-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.61rem;
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sample-row > span {
  margin-right: 0.15rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.sample-question {
  padding: 0.35rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy-700);
  font-size: 0.61rem;
  font-weight: 700;
}

.sample-question:hover {
  border-color: #a9c8c6;
  background: var(--teal-50);
}

.query-footer {
  display: grid;
  grid-template-columns: minmax(150px, 0.68fr) minmax(210px, 1fr);
  gap: 0.7rem;
  align-items: end;
  margin-top: 1.15rem;
}

.query-actions {
  display: flex;
  gap: 0.55rem;
}

.cancel-button {
  flex: 0 0 auto;
  border-color: #d8aaaa;
  background: #fff;
  color: var(--danger);
}

.request-progress {
  margin-top: 0.75rem;
  padding: 0.8rem;
  border: 1px solid #d5e7e5;
  border-radius: 9px;
  background: #f3faf8;
}

.request-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--teal-700);
  font-size: 0.65rem;
}

.request-progress-track {
  height: 5px;
  margin-top: 0.6rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dcebea;
}

.request-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-700), var(--teal-500));
  transition: width 500ms ease;
}

.request-progress p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.45;
}

.select-control {
  display: grid;
}

select {
  min-height: 46px;
  padding: 0.65rem 2.2rem 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.74rem;
}

.ask-button {
  width: 100%;
}

.mode-note {
  margin: 0.9rem 0 0;
  padding-left: 0.7rem;
  border-left: 2px solid var(--teal-500);
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.55;
}

.form-message {
  min-height: 1.15rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-loading {
  color: var(--teal-700);
}

.answer-empty {
  display: grid;
  flex: 1;
  place-items: center;
  align-content: center;
  padding: 2rem;
  text-align: center;
}

.empty-visual {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 1.2rem;
}

.empty-visual span {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(11, 143, 132, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.empty-visual span:nth-child(1) {
  width: 44px;
  height: 44px;
  background: var(--teal-50);
}

.empty-visual span:nth-child(2) {
  width: 74px;
  height: 74px;
}

.empty-visual span:nth-child(3) {
  width: 104px;
  height: 104px;
  border-style: dashed;
}

.answer-empty h4 {
  margin-bottom: 0.6rem;
  color: var(--navy-950);
  font-size: 1.02rem;
}

.answer-empty p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.75;
}

.answer-result {
  padding-top: 1.35rem;
}

.answer-question {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.answer-meta span {
  padding: 0.34rem 0.5rem;
  border: 1px solid #d7e5e5;
  border-radius: 6px;
  background: #f4f9f8;
  color: #37666a;
  font-size: 0.59rem;
  font-weight: 750;
}

.answer-text {
  color: #213944;
  font-size: 0.9rem;
  line-height: 1.95;
  white-space: pre-wrap;
}

.citation-link {
  display: inline;
  margin: 0;
  padding: 0 0.12rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--teal-700);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.citation-link:hover,
.citation-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid rgba(11, 143, 132, 0.22);
  background: var(--teal-50);
}

.disclaimer {
  margin: 1.25rem 0 0;
  padding: 0.75rem 0.85rem;
  border-left: 2px solid #91aaa9;
  background: #f4f7f7;
  color: #667b82;
  font-size: 0.64rem;
  line-height: 1.55;
}

.agentic-details {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.agentic-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  color: var(--navy-800);
  font-size: 0.69rem;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

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

.agentic-details[open] summary span:last-child {
  transform: rotate(45deg);
}

.agentic-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0 0.9rem 0.9rem;
}

.agentic-timeline {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.65rem;
}

.agentic-round {
  padding: 0.8rem 0.85rem 0.85rem 1rem;
  border-left: 3px solid var(--teal-500);
  border-radius: 0 8px 8px 0;
  background: #fff;
}

.agentic-round-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.agentic-round-head strong,
.agentic-round-head span,
.agentic-round p {
  font-size: 0.61rem;
}

.agentic-round-head span,
.agentic-round p {
  color: var(--muted);
}

.agentic-round p {
  margin: 0.4rem 0 0;
}

.agentic-query-list,
.source-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.55rem;
}

.agentic-query-list span,
.source-tags span {
  padding: 0.24rem 0.38rem;
  border-radius: 5px;
  background: #eaf4f2;
  color: #326f6c;
  font-size: 0.54rem;
  line-height: 1.35;
}

.agentic-missing {
  color: #9a6a2b !important;
}

.agentic-detail-item {
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agentic-detail-item strong,
.agentic-detail-item span {
  display: block;
}

.agentic-detail-item strong {
  color: var(--navy-900);
  font-size: 0.62rem;
}

.agentic-detail-item span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.answer-actions {
  margin-top: 1rem;
}

.run-detail-link {
  color: var(--teal-700);
  font-size: 0.69rem;
  font-weight: 760;
  text-decoration: none;
}

.sources-panel {
  margin-top: 1rem;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
}

.sources-header {
  align-items: end;
  margin-bottom: 1rem;
}

.sources-header > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.source-item {
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  scroll-margin-top: 120px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.source-item.is-highlighted {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(11, 143, 132, 0.13), var(--shadow-sm);
  transform: translateY(-2px);
}

.source-topline,
.source-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.citation-label {
  color: var(--teal-700);
  font-size: 0.63rem;
  font-weight: 800;
}

.similarity-label,
.source-meta {
  color: var(--muted);
  font-size: 0.58rem;
}

.source-item h4 {
  margin: 0.75rem 0 0.55rem;
  color: var(--navy-950);
  font-size: 0.82rem;
  line-height: 1.45;
}

.source-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.8rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.source-excerpt-text {
  border-radius: 0.2rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color 180ms ease, background-color 180ms ease,
    box-shadow 180ms ease;
}

.source-item.is-highlighted .source-excerpt-text {
  color: var(--navy-950);
  background: rgba(255, 222, 112, 0.7);
  box-shadow: 0.18em 0 0 rgba(255, 222, 112, 0.7),
    -0.18em 0 0 rgba(255, 222, 112, 0.7);
}

.source-tags {
  margin-top: 0.7rem;
}

.source-link {
  margin-top: auto;
  color: var(--teal-700);
  font-size: 0.65rem;
  font-weight: 760;
  text-decoration: none;
}

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

.search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  max-width: 880px;
  padding: 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.search-bar input {
  min-width: 0;
  padding: 0.7rem 0.9rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.8rem;
}

.evidence-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 1000px;
  margin-top: 0.8rem;
}

.evidence-filters label {
  display: grid;
  gap: 0.35rem;
}

.evidence-filters label > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 750;
}

.evidence-filters select,
.evidence-filters input {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.66rem;
}

.evidence-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.evidence-placeholder {
  grid-column: 1 / -1;
  min-height: 160px;
  padding: 2.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.evidence-placeholder span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--teal-700);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.evidence-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.evidence-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.evidence-score,
.evidence-pmcid {
  color: var(--teal-700);
  font-size: 0.61rem;
  font-weight: 800;
}

.evidence-card h3 {
  margin: 0.75rem 0 0.4rem;
  color: var(--navy-950);
  font-size: 0.86rem;
  line-height: 1.45;
}

.evidence-section-name {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.63rem;
}

.evidence-content {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.69rem;
  line-height: 1.7;
}

.pipeline-section {
  background: var(--navy-950);
  color: #fff;
}

.pipeline-section .eyebrow {
  color: #67c9bc;
}

.pipeline-section .section-heading h2 {
  color: #fff;
}

.pipeline-section .section-heading > p {
  color: #9db2ba;
}

.pipeline-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 2.7rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  list-style: none;
}

.pipeline-list li {
  min-height: 210px;
  padding: 1.5rem 1.2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.pipeline-list li:first-child {
  padding-left: 0;
}

.pipeline-list li:last-child {
  border-right: 0;
}

.pipeline-index {
  display: block;
  margin-bottom: 2.3rem;
  color: #5ac1b4;
  font-size: 0.62rem;
  font-weight: 800;
}

.pipeline-list strong {
  color: #f3f7f8;
  font-size: 0.85rem;
}

.pipeline-list p {
  margin: 0.65rem 0 0;
  color: #93aab2;
  font-size: 0.68rem;
  line-height: 1.65;
}

.governance-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.governance-band > div {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.governance-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(103, 201, 188, 0.35);
  border-radius: 8px;
  color: #67c9bc;
}

.governance-band strong,
.governance-band p {
  display: block;
}

.governance-band strong {
  color: #eef7f7;
  font-size: 0.73rem;
}

.governance-band p {
  margin: 0.2rem 0 0;
  color: #8fa7af;
  font-size: 0.64rem;
}

.governance-band a {
  color: #7fd2c7;
  font-size: 0.67rem;
  font-weight: 750;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 118px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: var(--navy-950);
  font-size: 0.78rem;
}

.footer-brand span,
.footer-inner > p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.61rem;
}

@media (max-width: 1050px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4.5rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-product {
    min-height: 460px;
  }

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

  .query-panel,
  .answer-panel {
    min-height: auto;
  }

  .answer-panel {
    min-height: 520px;
  }

  .source-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .trust-grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .pipeline-list {
    grid-template-columns: repeat(2, 1fr);
    border: 0;
  }

  .pipeline-list li,
  .pipeline-list li:first-child {
    min-height: 170px;
    padding: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 720px) {
  .section-shell,
  .header-inner {
    width: min(100% - 1.5rem, var(--content-width));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-copy small {
    display: none;
  }

  .service-state {
    max-width: 150px;
    font-size: 0.58rem;
    line-height: 1.35;
  }

  .hero {
    gap: 2.8rem;
    padding-block: 3.5rem;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 0;
  }

  .hero-facts div:nth-child(2) {
    border-right: 0;
  }

  .hero-facts div:nth-child(3) {
    padding-left: 0;
  }

  .hero-product {
    min-height: 450px;
    padding: 0.9rem;
    border-radius: 18px;
  }

  .product-flow article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .flow-state {
    display: none;
  }

  .trust-grid,
  .choice-grid,
  .query-footer,
  .source-list,
  .evidence-results,
  .pipeline-list,
  .agentic-detail-grid {
    grid-template-columns: 1fr;
  }

  .evidence-filters {
    grid-template-columns: 1fr 1fr;
  }

  .query-actions {
    flex-direction: column;
  }

  .trust-grid > div,
  .trust-grid > div:first-child {
    min-height: auto;
    padding: 1.1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid > div:last-child {
    border-bottom: 0;
  }

  .workspace-section,
  .evidence-section,
  .pipeline-section {
    padding-block: 4.2rem;
  }

  .section-heading {
    display: grid;
    gap: 1.1rem;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .query-panel,
  .answer-panel,
  .sources-panel {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .answer-panel {
    min-height: 460px;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .pipeline-list {
    gap: 0.6rem;
  }

  .pipeline-list li,
  .pipeline-list li:first-child {
    min-height: 0;
    padding: 1.1rem;
  }

  .pipeline-index {
    margin-bottom: 1.1rem;
  }

  .governance-band,
  .footer-inner {
    display: grid;
  }

  .footer-inner {
    padding-block: 1.8rem;
  }
}

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

