:root {
  --header-h: 72px;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --surface: rgba(15, 23, 42, 0.58);
  --surface-strong: rgba(15, 23, 42, 0.78);
  --border: rgba(148, 163, 184, 0.28);
  --accent: #38bdf8;
  --accent-strong: #f97316;
  --bg: radial-gradient(circle at top, #111827 0%, #030716 56%) fixed, #01030a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Lato, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-h);
  min-height: 100vh;
  line-height: 1.55;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 58vw;
  height: 58vw;
  max-width: 860px;
  max-height: 860px;
  filter: blur(64px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -14%;
  left: -12%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.34), transparent);
}

body::after {
  bottom: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent);
}

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

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.desktop-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.desktop-links a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  transition: color 120ms ease, background 120ms ease;
}

.desktop-links a:hover,
.desktop-links a.active {
  color: var(--text);
  background: rgba(148, 163, 184, 0.18);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.4);
  color: var(--text);
  font-size: 1.2rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding-bottom: 0.85rem;
}

.mobile-menu a {
  color: var(--text);
  border-radius: 0.65rem;
  padding: 0.68rem 0.8rem;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(148, 163, 184, 0.18);
}

.mobile-menu.open {
  display: flex;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.35rem;
  box-shadow: 0 28px 62px rgba(2, 6, 23, 0.44);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  line-height: 1.15;
}

.hero p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  max-width: 92ch;
}

.quick-links {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.quick-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.82rem;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
}

main {
  padding-bottom: 3rem;
}

.section {
  margin-top: 1.2rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.25rem;
  box-shadow: 0 24px 56px rgba(2, 6, 23, 0.36);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.82rem);
}

.section > p {
  margin: 0.58rem 0 0;
  color: var(--muted);
}

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

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

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

.card {
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.95rem;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.card p {
  margin: 0.52rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  margin: 0.58rem 0 0;
  padding-left: 1rem;
  color: var(--text);
}

.card li {
  margin-bottom: 0.2rem;
  font-size: 0.93rem;
}

.card pre,
section pre {
  margin: 0.75rem 0 0;
}

pre {
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 0.8rem;
  background: rgba(2, 8, 24, 0.9);
  padding: 0.82rem;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.08);
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #c7e8ff;
  font-size: 0.83rem;
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 0.35rem;
  padding: 0.06rem 0.3rem;
  font-size: 0.86em;
}

.shot {
  border-radius: 0.82rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.32);
  overflow: hidden;
  background: #020617;
}

.shot img {
  width: 100%;
  height: auto;
}

.caption {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.steps {
  counter-reset: step;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  margin-bottom: 0.45rem;
  padding-left: 1.85rem;
  position: relative;
  color: #dbe6f5;
  font-size: 0.93rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 1.35rem;
  height: 1.35rem;
  position: absolute;
  left: 0;
  top: 0.05rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #0b1220;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.callout {
  margin-top: 0.85rem;
  border-left: 3px solid var(--accent-strong);
  background: rgba(249, 115, 22, 0.08);
  padding: 0.72rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
}

.table-wrap {
  margin-top: 0.9rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  background: rgba(15, 23, 42, 0.45);
}

th,
td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.9rem;
}

th {
  color: #bae6fd;
  font-weight: 700;
}

footer {
  padding: 2rem 0 2.7rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bae6fd;
}

.mt-4 {
  margin-top: 1rem;
}

.inline-link {
  display: inline-flex;
  margin-top: 0.7rem;
  color: #7dd3fc;
  font-size: 0.88rem;
}

kbd {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom-width: 2px;
  border-radius: 0.42rem;
  padding: 0.08rem 0.4rem;
  background: rgba(15, 23, 42, 0.65);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.83em;
}

@media (max-width: 1200px) {
  .desktop-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

@media (max-width: 980px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 0.85rem;
  }

  body {
    padding-top: 66px;
  }

  :root {
    --header-h: 66px;
  }
}
