@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --surface: #151823;
  --surface-2: #0f1117;
  --border: #22263a;
  --text: #e6e6ea;
  --muted: #b7b7c9;
  --cyan: #6ae3ff;
  --mint: #2af598;
  --purple: #9f8bff;
  --grad: linear-gradient(90deg, #6ae3ff, #9f8bff);
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--mint); text-decoration: underline; }
main p a, main li a, main caption a, .site-footer p a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
img { max-width: 100%; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.2; }
h2 { font-size: 28px; font-weight: 700; margin: 0 0 20px; color: var(--cyan); }
h3 { font-size: 20px; margin: 0 0 10px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
code { font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 0.1em 0.35em; }
pre code { background: none; border: 0; padding: 0; }

.container { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 2px solid var(--mint);
  border-radius: 8px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  flex-wrap: wrap;
}
.logo-group { display: flex; align-items: center; gap: 8px; }
.logo-group a { display: inline-flex; align-items: center; min-height: 24px; }
.logo-group img { height: 21px; width: auto; display: block; }
.logo-divider { width: 1px; height: 24px; background: var(--text); opacity: 0.5; }
.wordmark { color: var(--text); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.wordmark:hover { color: var(--mint); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--mint); text-decoration: none; }

.hero {
  padding: 140px 20px 70px;
  text-align: center;
  background: radial-gradient(1200px 600px at 50% -200px, #162033 0%, #0b0c10 55%);
}
.hero-logo { width: min(300px, 70vw); height: auto; margin-bottom: 18px; }
.kicker {
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  max-width: 900px;
  margin: 8px auto 16px;
  color: var(--cyan);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .title {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.hero-summary { max-width: 800px; margin: 0 auto 10px; color: var(--muted); font-size: 1.1rem; }
.authors { max-width: 900px; margin: 0 auto 26px; color: var(--muted); font-size: 0.95rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(21, 24, 35, 0.95), rgba(14, 15, 20, 0.95));
  color: var(--text);
}
.btn:hover { color: var(--mint); border-color: var(--mint); text-decoration: none; }
.btn.primary {
  background: linear-gradient(135deg, #6ae3ff, #9f8bff);
  color: #0b0c10;
  border: 0;
  box-shadow: 0 10px 28px rgba(159, 139, 255, 0.35);
}
.btn.primary:hover { color: #0b0c10; filter: brightness(1.05); text-decoration: none; }

.safety-note {
  max-width: 1060px;
  margin: 28px auto 0;
  padding: 16px 20px;
  background: #2a2113;
  border: 1px solid #5c4a22;
  border-left: 4px solid #f2cf8b;
  border-radius: 8px;
  color: #f2cf8b;
  font-size: 0.95rem;
}
.safety-note p { margin: 0; }

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px;
  scroll-margin-top: 90px;
}
.lead { max-width: 850px; font-size: 1.05rem; }
.small { color: var(--muted); font-size: 0.9rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 16px;
  padding: 0;
}
.stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { margin: 0 0 4px; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--cyan); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.step { color: var(--mint); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }

.ships-card { max-width: 900px; }
.ships-list { margin: 0; padding-left: 1.25rem; }
.ships-list li { margin-bottom: 0.8rem; }
.ships-list li:last-child { margin-bottom: 0; }
.ships-list li::marker { color: var(--mint); }

pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  color: #d4d4e0;
  margin: 16px 0;
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; color: #d4d4e0; }
caption { text-align: left; color: var(--muted); padding-bottom: 12px; font-size: 0.9rem; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
thead th, tbody th { background: #1a1d29; color: #9fb1ff; font-weight: 600; }
tbody tr:nth-child(even) { background: var(--surface-2); }

.artifact { display: block; color: var(--text); }
.artifact:hover { border-color: var(--mint); text-decoration: none; }
.artifact h3 { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--cyan); }
.artifact p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.citation-card { max-width: 1000px; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.site-footer .container { max-width: 1100px; }
.site-footer p { margin: 0.35rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--mint); }

.error-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 180px 20px 90px;
  text-align: center;
}
.error-page .title { font-size: clamp(36px, 6vw, 56px); }
.error-page p { color: var(--muted); }

@media (max-width: 960px) {
  .nav { position: relative; }
  .nav-links { width: 100%; justify-content: center; gap: 8px 14px; padding-bottom: 2px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 36px; }
  .nav-links a:last-child { position: absolute; top: 12px; right: 20px; min-height: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 150px; }
}
@media (max-width: 520px) {
  .logo-group a.logo-ailab, .logo-group a.wordmark, .logo-divider-first, .logo-divider-wordmark { display: none; }
  .hero { padding: 150px 16px 56px; }
  .section { padding: 40px 16px; }
  .nav { padding: 10px 16px; }
  .nav-links { gap: 6px 8px; }
  .nav-links a { font-size: 0.86rem; }
  .nav-links a:last-child { top: 10px; right: 16px; font-size: 0.9rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats div { padding: 14px; }
  .stats dd { font-size: 1.65rem; }
  th, td { padding: 7px 8px; font-size: 13px; }
  pre { padding: 14px; font-size: 13px; }
  .container { width: calc(100% - 32px); }
  .error-page { padding-top: 150px; }
}
@media (max-width: 359px) {
  .nav-links a { font-size: 0.79rem; }
}
@media (max-width: 340px) {
  .hero { padding-top: 180px; }
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}