:root {
  color-scheme: dark;
  --bg: #0f1218;
  --panel: #151a22;
  --panel-strong: #1c2430;
  --text: #eef3f8;
  --muted: #b8c1cf;
  --line: #354056;
  --teal: #45d0c1;
  --amber: #f0b84f;
  --red: #f06a6a;
  --violet: #b7a1d8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover,
a:focus {
  color: #84efe5;
}

.hero {
  min-height: 88vh;
  background-image: url("/assets/liblua-mcp-runtime.png");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.78);
  z-index: -1;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.navlinks a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.navlinks a:hover,
.navlinks a:focus {
  color: var(--text);
}

.hero-copy {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto 9vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0 0 16px;
}

.lede {
  max-width: 680px;
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.35;
}

.sublede {
  max-width: 760px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(20, 26, 35, 0.86);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--teal);
  color: #071313;
  border-color: var(--teal);
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.band {
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.intro,
.status {
  background: #111821;
}

.split,
.links {
  background: #0f1218;
}

.safety {
  background: #141820;
}

.proofs {
  background: #10151c;
}

.content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.content.narrow {
  width: min(840px, calc(100% - 40px));
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.84fr);
  gap: 48px;
  align-items: start;
}

.facts {
  border-left: 4px solid var(--teal);
  padding-left: 24px;
}

.facts p {
  margin-bottom: 14px;
}

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

.mode,
.proof {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.mode h3 {
  color: var(--teal);
}

.mode.hazard {
  border-color: rgba(240, 106, 106, 0.76);
}

.mode.hazard h3 {
  color: var(--red);
}

.proof h3 {
  color: var(--amber);
}

.proof a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
}

.link-list {
  margin: 0;
  padding-left: 20px;
}

.link-list li {
  margin: 0 0 12px;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 86vh;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy {
    margin-bottom: 48px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 28px;
  }

  .lede {
    font-size: 21px;
  }

  .two,
  .mode-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 52px 0;
  }
}

@media (max-width: 430px) {
  .topbar,
  .hero-copy,
  .content,
  .content.narrow,
  footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 36px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
