@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:wght@600&display=swap");

:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #1d2433;
  --muted: #5d6473;
  --border: #e3e6ef;
  --accent: #1f6feb;
  --accent-soft: rgba(31, 111, 235, 0.08);
  --shadow: 0 14px 40px rgba(18, 41, 69, 0.08);
  --radius: 16px;
  --max-width: 80vw;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 12% 10%, rgba(31, 111, 235, 0.08), transparent 26%),
    radial-gradient(circle at 90% 16%, rgba(64, 201, 130, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
}

.cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn svg {
  height: 16px;
  width: 16px;
  flex-shrink: 0;
}

.btn .icon-img {
  height: 16px;
  width: 16px;
  flex-shrink: 0;
}

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

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(18, 41, 69, 0.12);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  margin-top: 12px;
  padding: 0 20px 18px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

h1 {
  font-family: "Playfair Display", "Manrope", serif;
  font-size: 34px;
  margin: 12px 0 6px;
  letter-spacing: -0.2px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat {
  background: #f9fafe;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.stat h4 {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--muted);
  text-transform: uppercase;
}

.stat p {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.hero-figure {
  margin: 0 auto 12px;
}

.hero-figure img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

.authors {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.cta-row {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.section {
  margin-top: 26px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.1px;
}

.section .sub {
  color: var(--muted);
  margin: 0 0 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.list {
  padding-left: 18px;
  margin: 10px 0;
  color: var(--text);
}

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

.media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f2f4f9;
  box-shadow: var(--shadow);
}

.media img {
  display: block;
  width: 100%;
  height: auto;
}

.media.tall img {
  height: 100%;
  object-fit: contain;
}

.code {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  border: 1px solid #111827;
  overflow-x: auto;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

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

th, td {
  padding: 12px 8px;
  text-align: left;
  font-size: 14px;
  vertical-align: middle;
}

th {
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  white-space: nowrap;
}

tr + tr td {
  border-top: 1px solid var(--border);
}

.table-wrap tr:nth-child(even) td {
  background: #f8f9fc;
}

.table-narrow th,
.table-narrow td {
  padding: 10px 6px;
}

.table-narrow th:first-child,
.table-narrow td:first-child {
  width: 240px;
}

.table-narrow th:nth-child(2),
.table-narrow td:nth-child(2) {
  width: 120px;
}

.table-wrap th:nth-child(n+3),
.table-wrap td:nth-child(n+3) {
  text-align: center;
}

.table-wrap th.sortable:hover {
  color: var(--accent);
}

.table-wrap th.sorted {
  color: var(--accent);
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}

.tag-prop {
  background: rgba(31, 111, 235, 0.12);
  border-color: rgba(31, 111, 235, 0.4);
}

.tag-open-omni {
  background: rgba(64, 201, 130, 0.12);
  border-color: rgba(64, 201, 130, 0.4);
}

.tag-open-av {
  background: rgba(255, 138, 61, 0.12);
  border-color: rgba(255, 138, 61, 0.4);
}

.tag-upper {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

pre {
  background: #f3f4f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  max-width: var(--max-width);
  margin: 30px auto 40px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-inner {
    padding: 24px;
  }
}
