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

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #191919;
  --well: #121212;
  --border: #262626;
  --text: #f0f0f0;
  --muted: #b8b8b8;
  --dim: #7c7c7c;
  --accent: #f2a93b;
  --accent-muted: #c9a875;
  --accent-deep: #c4661f;
  --primary-ink: #1a1408;
  --sans: Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.03em; }

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(38, 38, 38, 0.7);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner,
.panel-inner {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img { width: 1.85rem; height: 1.85rem; }

.header-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--text); }
.header-nav a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { width: 1rem; height: 1rem; }

.btn-sm { height: 1.75rem; padding: 0 0.65rem; font-size: 0.8rem; }
.btn-lg { height: 3rem; padding: 0 1.4rem; font-size: 1rem; }

.btn-primary { background: var(--accent); color: var(--primary-ink); }
.btn-primary:hover { background: #f7bd62; }

.btn-outline {
  border-color: var(--border);
  background: rgba(38, 38, 38, 0.35);
  color: var(--text);
}
.btn-outline:hover { background: rgba(38, 38, 38, 0.7); }

.is-disabled,
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1rem 4rem;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(242, 169, 59, 0.16), transparent 65%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(48rem, 100%);
  margin: 0 auto;
}

.hero-logo { width: 4rem; height: 4rem; }

h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: -0.035em;
}

.lede {
  max-width: 34rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.section-label {
  margin: 2rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel-section .section-label { color: var(--accent-muted); margin-top: 0; }

.hero .btn-lg { margin-top: 1rem; }

.meta {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.note {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.playground { margin-top: 1.25rem; }
.playground p { margin: 0 0 0.5rem; color: var(--dim); font-size: 0.92rem; }

.panel-section { padding: 0 1rem 6rem; }

.panel-inner { width: min(40rem, calc(100% - 0px)); }

.platforms {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--panel);
}

.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.55rem;
  padding: 1rem 1.15rem;
}

.row + .row { border-top: 1px solid var(--border); }

.platform-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--well);
  color: var(--accent);
}

.platform-icon svg { width: 1.25rem; height: 1.25rem; }

.row-main { flex: 1; min-width: 0; }
.row-main h3 { margin: 0; font-size: 0.95rem; letter-spacing: -0.01em; }

.row-meta, .row-status {
  margin: 0.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.sha {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.sha code {
  min-width: 0;
  color: var(--muted);
  word-break: break-all;
}

.sha button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  border-radius: 0.35rem;
  font: inherit;
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  cursor: pointer;
}

.sha button:hover { background: rgba(242, 169, 59, 0.12); }

.row-badge { margin: 0.4rem 0 0; }

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.badge-ok { color: #d7e7c8; background: rgba(120, 160, 90, 0.18); }
.badge-warn { color: var(--accent); background: rgba(242, 169, 59, 0.12); }

.callout {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(242, 169, 59, 0.35);
  border-radius: 0.85rem;
  background: rgba(242, 169, 59, 0.06);
  text-align: left;
}

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

.callout p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.callout strong { color: var(--text); font-weight: 650; }

.steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.steps article {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--panel);
  padding: 0.9rem 1rem 1rem;
}

.steps h3 { margin: 0; font-size: 0.95rem; }
.steps ol { margin: 0.45rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.9rem; }
.steps li + li { margin-top: 0.25rem; }

.hint, .notes {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.notes a { color: var(--text); }

.faq { margin-top: 1rem; display: grid; gap: 0.5rem; }

.faq details {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--panel);
  padding: 0.75rem 0.9rem;
}

.faq summary { cursor: pointer; font-size: 0.92rem; }
.faq p { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.88rem; }

.panel-section h2.section-label + .faq,
.panel-section .callout + h2,
.panel-section .platforms + .callout { }

.panel-inner > h2.section-label { margin-top: 2.25rem; }
.panel-inner > h2.section-label:first-child { margin-top: 0; }

.site-footer {
  border-top: 1px solid rgba(38, 38, 38, 0.7);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-inner p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-inner img { width: 1.25rem; height: 1.25rem; }

.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .hero { padding-top: 5rem; }
}
