@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: 'Fira Code';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/fira-code-latin.woff2") format("woff2");
}

:root {
  --bg: #08111a;
  --bg-alt: #0d1825;
  --panel: rgba(13, 24, 37, 0.88);
  --border: rgba(71, 97, 128, 0.34);
  --border-strong: rgba(121, 149, 184, 0.42);
  --text: #d6e3f2;
  --text-dim: #92a4b9;
  --text-muted: #617489;
  --accent: #4bb3fd;
  --accent-strong: #8fd0ff;
  --highlight: #ff6a5c;
  --highlight-strong: #ff9e95;
  --highlight-soft: rgba(255, 106, 92, 0.14);
  --highlight-border: rgba(255, 106, 92, 0.3);
  --success: #26c281;
  --warning: #f4b740;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --font-ui: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Fira Code", "Cascadia Code", "Consolas", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 14.5px;
  background:
    radial-gradient(circle at top left, rgba(75, 179, 253, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(239, 83, 80, 0.14), transparent 28%),
    linear-gradient(180deg, #08111a 0%, #09131d 42%, #060d15 100%);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.page-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 108, 138, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 108, 138, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  -webkit-mask-image: radial-gradient(circle at center, black 36%, transparent 88%);
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 83, 80, 0.34);
  background: linear-gradient(180deg, rgba(239, 83, 80, 0.12), rgba(239, 83, 80, 0.04));
  color: var(--highlight);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: -0.03em;
  box-shadow: 0 0 24px rgba(239, 83, 80, 0.14);
}

.brand-copy strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  border-color: var(--highlight-border);
  background: rgba(255, 255, 255, 0.03);
}

.nav a.cta {
  color: #06111a;
  font-weight: 700;
  background: linear-gradient(135deg, var(--highlight), var(--highlight-strong));
  box-shadow: 0 10px 24px rgba(255, 106, 92, 0.24);
}

.nav a.cta:hover {
  color: #06111a;
  border-color: transparent;
  transform: translateY(-1px);
}

main.site-shell {
  padding-bottom: 64px;
}

.page-intro {
  padding: 24px 0 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 11px;
  border: 1px solid rgba(75, 179, 253, 0.24);
  background: rgba(75, 179, 253, 0.08);
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-hot {
  border-color: var(--highlight-border);
  background: var(--highlight-soft);
  color: var(--highlight-strong);
}

.page-intro h1,
.hero-copy h1 {
  margin: 16px 0 0;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.page-intro h1 {
  max-width: 16ch;
  font-size: clamp(1.82rem, 3.95vw, 3.04rem);
  line-height: 1;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(2.48rem, 5.6vw, 5.15rem);
  line-height: 0.94;
}

.page-intro p,
.hero-copy p,
.section-copy {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.68;
}

.accent-red {
  color: var(--highlight);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0 26px;
}

.hero-copy,
.hero-media,
.panel,
.card,
.resource-card,
.download-card,
.gallery-card,
.callout {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 106, 92, 0.06) 0%, rgba(255, 106, 92, 0) 32%),
    var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-media {
  border-radius: 28px;
}

.hero-copy {
  padding: 28px 30px;
}

.hero-copy p {
  margin-top: 20px;
  max-width: 70ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.89rem;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.btn-primary {
  color: #06111a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--highlight), var(--highlight-strong));
  box-shadow: 0 16px 32px rgba(255, 106, 92, 0.2);
}

.btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, var(--highlight-strong), #ffc1ba);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.hero-note,
.meta-line,
.chain,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  margin-top: 16px;
}

.hero-note span,
.meta-line span {
  border-radius: 999px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 106, 92, 0.18);
  background: rgba(255, 106, 92, 0.06);
  color: #cfb1ac;
  font-size: 0.74rem;
}

.hero-media {
  overflow: hidden;
  width: min(100%, 920px);
  justify-self: center;
  align-self: start;
}

.hero-media img,
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: top center;
}

.hero-media .media-copy,
.gallery-card .gallery-copy {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}

.hero-media .media-copy span {
  max-width: 56ch;
}

.media-copy strong,
.gallery-card strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.media-copy span,
.gallery-card p {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.91rem;
  line-height: 1.62;
}

.stats-row,
.card-grid,
.resource-grid,
.download-grid,
.gallery-grid,
.two-up {
  display: grid;
  gap: 18px;
}

.stats-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 6px 0 38px;
}

.panel {
  border-radius: 20px;
  padding: 18px 20px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 12px;
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section {
  padding: 16px 0 10px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.03rem, 1.45vw, 1.4rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-header p {
  margin: 10px 0 0;
  color: var(--text-dim);
  max-width: 64ch;
  font-size: 0.91rem;
  line-height: 1.64;
}

.section-header a {
  color: var(--highlight-strong);
  text-decoration: none;
  white-space: nowrap;
}

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

.resource-grid,
.download-grid,
.gallery-grid,
.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.resource-card,
.download-card,
.gallery-card,
.callout {
  border-radius: 22px;
}

.card,
.resource-card,
.download-card,
.callout {
  padding: 20px;
}

.card .eyebrow,
.resource-card .eyebrow,
.download-card .eyebrow {
  margin-bottom: 14px;
}

.card h3,
.resource-card h3,
.download-card h3 {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.38;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.card p,
.resource-card p,
.download-card p,
.callout p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.62;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.71rem;
  font-weight: 600;
}

.status-pill.available {
  color: #05130d;
  background: rgba(38, 194, 129, 0.92);
}

.status-pill.planned {
  color: #1b1302;
  background: rgba(244, 183, 64, 0.9);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--highlight-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}

.card-link:hover,
.section-header a:hover,
.footer a:hover {
  color: #ffd8d3;
}

.code-block {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(4, 10, 17, 0.86);
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  color: #cfe6ff;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.7;
}

.chain,
.tag-row {
  margin-top: 16px;
}

.chain span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.tag-row span.ot {
  border-color: rgba(38, 194, 129, 0.3);
  color: #9de0bf;
  background: rgba(38, 194, 129, 0.08);
}

.tag-row span.l2 {
  border-color: rgba(75, 179, 253, 0.28);
  color: var(--accent-strong);
  background: rgba(75, 179, 253, 0.08);
}

.callout {
  margin: 18px 0 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.callout h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.footer {
  border-top: 1px solid rgba(71, 97, 128, 0.2);
  padding: 28px 0 42px;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 12px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.page-breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--text);
}

.page-breadcrumb span.separator {
  color: rgba(146, 164, 185, 0.48);
}

.wiki-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 2px 0 28px;
}

.wiki-sidebar,
.wiki-page-head,
.wiki-article,
.wiki-summary-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 106, 92, 0.06) 0%, rgba(255, 106, 92, 0) 32%),
    var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.wiki-sidebar,
.wiki-page-head,
.wiki-article {
  border-radius: 26px;
}

.wiki-summary-card {
  border-radius: 22px;
}

.wiki-sidebar {
  position: sticky;
  top: 16px;
  padding: 18px;
}

.wiki-sidebar h2 {
  margin: 14px 0 0;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
}

.wiki-sidebar p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.62;
}

.wiki-nav {
  margin-top: 20px;
}

.wiki-nav-group + .wiki-nav-group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(71, 97, 128, 0.26);
}

.wiki-nav-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wiki-nav-links {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wiki-nav-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.4;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.wiki-nav-links a:hover,
.wiki-nav-links a.active {
  color: var(--text);
  border-color: var(--highlight-border);
  background: var(--highlight-soft);
}

.wiki-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.wiki-page-head,
.wiki-article {
  padding: 22px 24px;
}

.wiki-page-head h1 {
  margin: 16px 0 0;
  font-size: clamp(1.86rem, 3.85vw, 3.16rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.wiki-page-head p {
  margin: 16px 0 0;
  max-width: 72ch;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.68;
}

.wiki-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wiki-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.3;
}

.wiki-links a:hover {
  color: var(--text);
  border-color: var(--highlight-border);
  background: var(--highlight-soft);
}

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

.wiki-summary-card {
  padding: 16px 18px;
}

.wiki-summary-card strong {
  display: block;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.wiki-summary-card p {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.58;
}

.wiki-prose section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(71, 97, 128, 0.24);
}

.wiki-prose h2 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.04em;
}

.wiki-prose h3 {
  margin: 18px 0 0;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
}

.wiki-prose p,
.wiki-prose li {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.68;
}

.wiki-prose p,
.wiki-prose ul,
.wiki-prose ol,
.wiki-prose table,
.wiki-prose .code-block,
.wiki-prose .two-up,
.wiki-prose .card-grid,
.wiki-prose .resource-grid {
  margin-top: 16px;
}

.wiki-prose ul,
.wiki-prose ol {
  padding-left: 22px;
}

.wiki-prose li + li {
  margin-top: 10px;
}

.wiki-prose a {
  color: var(--highlight-strong);
  text-decoration: none;
}

.wiki-prose a:hover {
  color: #ffd8d3;
}

.wiki-prose code:not(pre code) {
  padding: 0.14em 0.36em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #e5f0fd;
  font-family: var(--font-mono);
  font-size: 0.84em;
}

.wiki-prose table {
  width: 100%;
  border-collapse: collapse;
}

.wiki-prose th,
.wiki-prose td {
  padding: 12px 12px 12px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(71, 97, 128, 0.24);
}

.wiki-prose th {
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wiki-prose td:first-child,
.wiki-prose th:first-child {
  width: 24%;
}

.wiki-note {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid var(--highlight-border);
  background: var(--highlight-soft);
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .hero,
  .stats-row,
  .card-grid,
  .resource-grid,
  .download-grid,
  .gallery-grid,
  .two-up,
  .wiki-summary-grid {
    grid-template-columns: 1fr;
  }

  .wiki-shell {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 26px, 1180px);
  }

  .topbar {
    padding-top: 16px;
  }

  .hero-copy,
  .hero-media,
  .panel,
  .card,
  .resource-card,
  .download-card,
  .callout,
  .wiki-sidebar,
  .wiki-page-head,
  .wiki-article,
  .wiki-summary-card {
    border-radius: 20px;
  }

  .hero-copy,
  .panel,
  .card,
  .resource-card,
  .download-card,
  .callout,
  .wiki-sidebar,
  .wiki-page-head,
  .wiki-article,
  .wiki-summary-card {
    padding: 18px;
  }

  .page-intro h1,
  .hero-copy h1 {
    max-width: none;
  }

  .page-intro h1 {
    font-size: clamp(1.72rem, 8.4vw, 2.38rem);
  }

  .hero-copy h1 {
    font-size: clamp(1.92rem, 10vw, 3rem);
    line-height: 0.96;
  }

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

  .page-breadcrumb {
    gap: 8px;
    font-size: 0.76rem;
  }

  .wiki-page-head h1 {
    font-size: clamp(1.76rem, 9vw, 2.7rem);
  }
}
