:root {
  --bg: #f8fbff;
  --paper: #ffffff;
  --paper-soft: #f1f7ff;
  --ink: #142033;
  --muted: #5c6b80;
  --line: #dbe6f4;
  --blue: #2368d8;
  --cyan: #0aa6c2;
  --green: #11844a;
  --red: #c43636;
  --slate: #334155;
  --shadow: 0 18px 48px rgba(30, 64, 115, 0.12);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: var(--font-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
}

a {
  color: var(--blue);
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid rgba(219, 230, 244, 0.9);
  background: rgba(248, 251, 255, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 800;
  text-decoration: none;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.1rem;
  font-size: 0.94rem;
}

.top-nav a {
  color: var(--slate);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem;
  background:
    linear-gradient(135deg, rgba(35, 104, 216, 0.12), transparent 38%),
    linear-gradient(225deg, rgba(10, 166, 194, 0.12), transparent 35%),
    #f9fcff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6rem -9rem -6rem;
  height: 18rem;
  background: radial-gradient(ellipse at center, rgba(35, 104, 216, 0.12), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}

.venue {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.05rem;
  color: #0b1b34;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  color: #132238;
  font-family: var(--font-serif);
  font-weight: 760;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
}

h3 {
  margin-bottom: 0.45rem;
  color: #17243a;
  font-family: var(--font-serif);
  font-weight: 760;
  font-size: 1.02rem;
  line-height: 1.25;
}

.subtitle {
  max-width: 860px;
  margin: 0.25rem auto 1.05rem;
  color: #1e3a5f;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.3;
}

.hero-description {
  max-width: 750px;
  margin: 0 auto 1.25rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1.08rem;
}

.button-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.68rem 1.05rem;
  border: 1px solid #c9d8ee;
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(30, 64, 115, 0.08);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.pill-row {
  margin-top: 1.2rem;
}

.pill-row span {
  border: 1px solid #d3e1f4;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  background: rgba(255, 255, 255, 0.7);
  color: #37506d;
  font-size: 0.88rem;
}

.section {
  padding: 4.8rem 0;
}

.soft-bg {
  background: var(--paper-soft);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading p,
.abstract,
.card-grid p,
.workflow-node p,
.mockup-card figcaption,
.pipeline p,
.steps li {
  color: var(--muted);
}

.abstract {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  text-align: justify;
}

.workflow-figure,
.mockup-card,
.card-grid article,
pre {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.workflow-figure {
  margin: 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
}

.workflow-pdf {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 1px solid #d6e4f5;
  border-radius: 14px;
  background: white;
}

.workflow-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.workflow-node {
  position: relative;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid #d8e6f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.workflow-node:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 0.9rem;
  right: -0.68rem;
  color: var(--blue);
  font-weight: 900;
}

.workflow-node span,
.mockup-header span,
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.workflow-node span,
.icon {
  width: 2rem;
  height: 2rem;
}

.workflow-node strong {
  display: block;
  color: #15263d;
  line-height: 1.25;
}

.workflow-node p {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
}

figcaption {
  margin-top: 0.9rem;
  text-align: center;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.2rem;
}

.mockup-card {
  margin: 0;
  padding: 1.1rem;
}

.mockup-card:first-child {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.mockup-card:nth-child(2) {
  background: linear-gradient(180deg, #fbfeff, #f4fbf8);
}

.mockup-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mockup-header span {
  width: auto;
  padding: 0.28rem 0.62rem;
  margin: 0;
  font-size: 0.72rem;
}

.mockup-header strong {
  color: #17243a;
}

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

.response-card {
  min-height: 190px;
  padding: 1rem;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: #fbfdff;
}

.response-card span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--blue);
  font-weight: 800;
}

.judgment-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.judgment-row button {
  min-height: 2.45rem;
  border: 1px solid #bfd4ed;
  border-radius: 12px;
  background: #eef6ff;
  color: #1c4678;
  font: inherit;
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 0.8rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: #526579;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.tag.win {
  background: #e7f8ef;
  color: var(--green);
}

.tag.loss {
  background: #fff0f0;
  color: var(--red);
}

.tag.neutral {
  background: #eef2f7;
  color: #526579;
}

.math-model {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

.card-grid.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid article {
  min-height: 160px;
  padding: 1rem;
}

.features article:nth-child(3n + 1) {
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.features article:nth-child(3n + 2) {
  background: linear-gradient(180deg, #ffffff, #f8fbf6);
}

.features article:nth-child(3n) {
  background: linear-gradient(180deg, #ffffff, #f8f7ff);
}

.metrics article {
  border-top: 4px solid #c8ddf6;
  box-shadow: 0 10px 26px rgba(30, 64, 115, 0.08);
}

.metrics article:nth-child(2n) {
  border-top-color: #aee4ed;
}

.icon {
  margin-bottom: 0.6rem;
  background: #e9f8fb;
  color: var(--cyan);
}

.orbit-band {
  background:
    linear-gradient(135deg, rgba(35, 104, 216, 0.1), rgba(10, 166, 194, 0.08)),
    #f6fbff;
}

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

.pipeline article {
  position: relative;
  min-height: 10rem;
  padding: 1.1rem;
  border: 1px solid #d8e6f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: 0 14px 34px rgba(30, 64, 115, 0.1);
}

.pipeline article span {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pipeline article strong {
  display: block;
  margin-bottom: 0.45rem;
  color: #132238;
  line-height: 1.25;
}

.pipeline article p {
  margin: 0;
  font-size: 0.9rem;
}

.pipeline article:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 1.1rem;
  right: -0.66rem;
  color: var(--blue);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  counter-increment: steps;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(30, 64, 115, 0.07);
}

.steps li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-weight: 900;
}

pre {
  overflow-x: auto;
  padding: 1.1rem;
  color: #132238;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

code {
  font-family: var(--font-mono);
}

.authors-near-citation {
  margin-bottom: 2.2rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow: 0 12px 30px rgba(30, 64, 115, 0.08);
  text-align: center;
}

.authors-near-citation h2 {
  margin-bottom: 0.75rem;
}

.authors-near-citation p {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.author-names {
  color: var(--ink) !important;
  font-size: 1.12rem;
  font-weight: 800;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
}

.footer-inner span {
  color: var(--ink);
  font-weight: 800;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-inner a {
  text-decoration: none;
}

@media (max-width: 920px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.features,
  .card-grid.metrics,
  .steps,
  .workflow-summary,
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .response-grid,
  .judgment-row,
  .card-grid.features,
  .card-grid.metrics,
  .steps,
  .workflow-summary,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .workflow-pdf {
    min-height: 360px;
  }

  .abstract {
    text-align: left;
  }
}
