:root {
  --ink: #10202b;
  --muted: #5e7080;
  --bg: #f6f8fb;
  --panel: rgba(255, 255, 255, 0.92);
  --line: #d9e4ea;
  --teal: #08766e;
  --teal-dark: #055b58;
  --blue: #1f63c7;
  --navy: #0c2444;
  --amber: #b7791f;
  --soft-teal: #e9f5f3;
  --soft-blue: #edf4ff;
  --shadow: 0 18px 48px rgba(16, 32, 43, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos", "Inter", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  background: var(--bg);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(31, 99, 199, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 118, 110, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(217, 228, 234, 0.82);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--teal-dark);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #c2dfdc;
  border-radius: 8px;
  background: var(--soft-teal);
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.header-action,
.nav-toggle {
  min-height: 40px;
  border-radius: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.site-nav a:hover {
  background: #eef5f7;
}

.header-action,
.nav-toggle {
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal-dark);
}

.header-action {
  display: inline-flex;
  gap: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.nav-toggle {
  display: none;
  width: 42px;
  justify-content: center;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.98) 0%, rgba(246, 248, 251, 0.82) 38%, rgba(246, 248, 251, 0.52) 72%, rgba(246, 248, 251, 0.72) 100%),
    url("assets/research-flow-hero.png") center / cover no-repeat;
}

.hero__content,
.workflow-band,
.agents,
.platform-strip,
.roadmap,
.about,
.site-footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.hero__content {
  padding: 72px 0 86px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  color: var(--teal-dark);
  font-size: clamp(70px, 10vw, 132px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
}

h2 {
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.18;
}

h3 {
  color: var(--ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.22;
}

.hero__lead {
  max-width: 620px;
  margin-top: 22px;
  color: #334758;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.agent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-link,
.agent-link {
  min-height: 48px;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #fff;
  padding: 0 18px;
  box-shadow: 0 12px 28px rgba(8, 118, 110, 0.22);
}

.secondary-link {
  min-height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  padding: 0 16px;
}

.primary-link:hover,
.secondary-link:hover,
.agent-link:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.primary-link,
.secondary-link,
.agent-link,
.header-action,
.site-nav a {
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 140px));
  gap: 14px;
  max-width: 520px;
  margin-top: 34px;
}

.hero__stats div {
  display: grid;
  gap: 4px;
  min-height: 84px;
  align-content: center;
  border: 1px solid rgba(217, 228, 234, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.hero__stats strong {
  color: var(--teal-dark);
  font-size: 24px;
  line-height: 1;
}

.hero__stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.workflow-band,
.agents,
.platform-strip,
.roadmap,
.about {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.52fr);
  gap: 24px;
  align-items: end;
}

.section-heading--split > p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  list-style: none;
}

.flow-list li {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 22px;
}

.flow-list li + li {
  border-left: 1px solid var(--line);
}

.flow-list span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.flow-list strong {
  color: var(--navy);
  font-size: 18px;
}

.flow-list p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.65;
}

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

.agent-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: var(--shadow);
}

.agent-card--literature {
  border-color: #b9ded9;
}

.agent-card--paper {
  border-color: #c4d7f4;
}

.agent-card__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.agent-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(8, 118, 110, 0.18);
}

.agent-card--paper .agent-icon {
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(31, 99, 199, 0.18);
}

.agent-card h3 {
  margin-top: 8px;
}

.agent-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border-radius: 8px;
  background: var(--soft-teal);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 0 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a077;
}

.workflow-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.workflow-preview div {
  display: grid;
  gap: 8px;
  min-height: 104px;
  align-content: center;
  justify-items: center;
  padding: 14px 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.workflow-preview div + div {
  border-left: 1px solid var(--line);
}

.workflow-preview i {
  color: var(--teal);
}

.agent-card--paper .workflow-preview i {
  color: var(--blue);
}

.agent-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.agent-card__footer span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.agent-link--blue {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(31, 99, 199, 0.2);
}

.platform-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.platform-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 20px;
}

.platform-strip div + div {
  border-left: 1px solid var(--line);
}

.platform-strip i {
  grid-row: span 2;
  color: var(--amber);
}

.platform-strip strong {
  color: var(--navy);
  font-size: 15px;
}

.platform-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

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

.roadmap-grid article {
  display: grid;
  gap: 10px;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
}

.roadmap-grid i {
  color: var(--teal);
}

.roadmap-grid h3 {
  font-size: 19px;
}

.roadmap-grid p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

.roadmap-grid span {
  align-self: end;
  width: fit-content;
  border: 1px solid #d8e4ee;
  border-radius: 8px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 8px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  padding: 28px;
}

.about h2,
.about .eyebrow {
  color: #fff;
}

.about p {
  color: #dce8f0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.85;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 40px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav,
  .header-action {
    display: none;
  }

  .site-nav.is-open {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: grid;
    justify-content: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 56px 0 64px;
  }

  .hero__image {
    background:
      linear-gradient(180deg, rgba(246, 248, 251, 0.98) 0%, rgba(246, 248, 251, 0.9) 42%, rgba(246, 248, 251, 0.76) 100%),
      url("assets/research-flow-hero.png") center / cover no-repeat;
  }

  .section-heading--split,
  .agent-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .flow-list,
  .platform-strip,
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-list li:nth-child(3),
  .platform-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .flow-list li:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 24px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .site-nav.is-open {
    top: 64px;
    left: 16px;
    right: 16px;
  }

  .hero__content,
  .workflow-band,
  .agents,
  .platform-strip,
  .roadmap,
  .about,
  .site-footer {
    width: min(100% - 28px, 1240px);
  }

  h1 {
    font-size: 72px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__stats,
  .flow-list,
  .platform-strip,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

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

  .hero__actions,
  .agent-card__footer,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link,
  .agent-link {
    width: 100%;
  }

  .agent-card {
    padding: 18px;
  }

  .agent-card__top {
    grid-template-columns: 1fr;
  }

  .flow-list li + li,
  .platform-strip div + div,
  .workflow-preview div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .workflow-preview div:nth-child(2n) {
    border-left: 1px solid var(--line);
  }

  .workflow-preview div:nth-child(2) {
    border-top: 0;
  }
}
