@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Syne:wght@700;800&family=Syncopate:wght@400;700&display=swap");

:root {
  color-scheme: dark;
  --background: #050508;
  --surface: #0c0c10;
  --card: #1a1a22;
  --elevated: #14141a;
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-strong: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 61, 61, 0.3);
  --accent-primary: #ff3d3d;
  --accent-secondary: #ff6b4a;
  --accent-glow: rgba(255, 61, 61, 0.4);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --content-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(255, 61, 61, 0.08), transparent 30%),
    var(--background);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 61, 61, 0.2) 30%,
    rgba(255, 107, 74, 0.15) 70%,
    transparent
  );
}

.header-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(255, 61, 61, 0.3));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0.375rem;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255, 61, 61, 0.4);
}

.content-shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 7.5rem 1.5rem 4rem;
}

.hero {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Syne", sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

p {
  margin: 0.8rem 0;
  color: var(--muted);
}

.lead {
  color: #d8dce4;
  max-width: 68ch;
}

main a {
  color: #ff8b72;
}

main a:hover {
  color: #ffad9b;
  text-decoration: underline;
}

.panel,
.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(12, 12, 16, 0.94));
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.25rem;
}

.card {
  padding: 1.1rem 1.2rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

ul,
ol {
  margin: 0.8rem 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
  color: #d8dce4;
}

code,
pre {
  font-family: "IBM Plex Mono", monospace;
}

code {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.375rem;
  padding: 0.08rem 0.35rem;
  color: #f4f5f7;
}

pre {
  margin: 0.8rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(5, 5, 8, 0.9);
  padding: 1rem;
  overflow-x: auto;
  color: #d7dae0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.8rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

th,
td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  padding: 0.65rem;
  font-size: 0.9rem;
}

th {
  background: rgba(255, 255, 255, 0.04);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
}

.callout {
  border-left: 4px solid var(--accent-primary);
  background: rgba(255, 61, 61, 0.08);
  padding: 0.8rem 0.9rem;
  border-radius: 0.5rem;
  margin: 0.9rem 0;
}

.cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  color: var(--text);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.cta:hover {
  border-color: var(--accent-primary);
  background: rgba(255, 61, 61, 0.06);
  text-decoration: none;
}

.cta.primary {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(255, 61, 61, 0.16), rgba(255, 107, 74, 0.13));
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 0.75rem;
  margin-top: 2.5rem;
}

.footer-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
}

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

  .nav-links {
    justify-content: flex-start;
  }

  .content-shell {
    padding-top: 8.4rem;
  }
}

@media (max-width: 640px) {
  .content-shell {
    padding: 8rem 1rem 3rem;
  }

  .panel,
  .card {
    padding: 1rem;
  }

  table {
    min-width: 28rem;
  }
}
