:root {
  color-scheme: dark;
  --background: #0a0a0b;
  --surface: #131315;
  --surface-soft: #161618;
  --surface-raised: #1f1f21;
  --surface-high: #2a2a2c;
  --ink: #e9e8e9;
  --muted: #c6c9ab;
  --muted-dim: #8d9178;
  --line: #262629;
  --line-soft: #353437;
  --lime: #dfff00;
  --lime-dim: #b8d300;
  --blue: #aec6ff;
  --warning: #ffc94a;
  --danger: #ffb4ab;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(223, 255, 0, 0.07), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(174, 198, 255, 0.08), transparent 30rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--background);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(223, 255, 0, 0.5);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

a:hover {
  color: var(--lime);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

code,
pre,
kbd {
  font-family: "JetBrains Mono", "SF Mono", "Cascadia Code", monospace;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  background: #050506;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
}

code {
  padding: 0.08rem 0.26rem;
  color: var(--lime);
  background: rgba(223, 255, 0, 0.09);
  border: 1px solid rgba(223, 255, 0, 0.14);
  border-radius: 6px;
  font-size: 0.92em;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 14px clamp(18px, 4.5vw, 64px);
  background: rgba(19, 19, 21, 0.82);
  border-bottom: 1px solid rgba(69, 73, 50, 0.55);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Geist, Inter, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #0a0a0b;
  background: var(--lime);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

.site-nav {
  justify-content: center;
}

.nav-link {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--ink);
  border-bottom: 2px solid var(--lime);
}

.header-action,
.cta-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #0a0a0b;
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.header-action:hover,
.cta-form button:hover {
  color: #0a0a0b;
  background: var(--lime-dim);
}

main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 96px;
}

.command-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(720px, 100%);
  min-height: 56px;
  margin: 0 auto 42px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(10, 10, 11, 0.78);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.command-bar a {
  color: var(--muted);
  text-decoration: none;
}

.command-bar kbd {
  padding: 4px 8px;
  color: var(--muted);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8rem;
}

.breadcrumbs {
  margin: 0 0 26px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.breadcrumbs li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: var(--line-soft);
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  padding: clamp(28px, 6vw, 76px) 0 clamp(28px, 5vw, 54px);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Geist, Inter, sans-serif;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.25rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 650;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
  font-weight: 650;
}

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.32rem);
}

.disclaimer {
  max-width: 860px;
  margin: 24px 0 0;
  padding: 16px 18px;
  color: var(--muted);
  background: rgba(22, 22, 24, 0.72);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warning);
  border-radius: 10px;
  font-size: 0.96rem;
}

.meta-panel {
  overflow: hidden;
  background: rgba(22, 22, 24, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-kicker {
  padding: 18px 18px 0;
}

.meta-panel dl {
  margin: 0;
}

.meta-panel div {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.meta-panel div:last-child {
  border-bottom: 0;
}

.meta-panel dt {
  color: var(--muted-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.meta-panel dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 650;
}

.operator-console {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin: 10px 0 32px;
}

.terminal-window,
.operator-map img,
.content-section,
.cta-band {
  background: rgba(22, 22, 24, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.terminal-window {
  overflow: hidden;
}

.terminal-window pre code {
  white-space: pre-wrap;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--muted-dim);
  background: #09090a;
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.terminal-bar span:nth-child(1) {
  background: #ff665c;
}

.terminal-bar span:nth-child(2) {
  background: #ffc94a;
}

.terminal-bar span:nth-child(3) {
  background: #35d060;
}

.terminal-bar strong {
  margin-left: 12px;
  font-weight: 400;
}

.operator-map {
  margin: 0;
}

.operator-map img {
  display: block;
  width: 100%;
  height: auto;
}

.operator-map figcaption {
  margin-top: 10px;
  color: var(--muted-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

.content-section {
  margin: 22px 0;
  padding: clamp(24px, 4vw, 42px);
}

.content-section > p {
  max-width: 840px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.check-list,
.step-list {
  max-width: 900px;
  margin: 0;
  padding-left: 24px;
  color: var(--muted);
}

.check-list li,
.step-list li {
  margin: 11px 0;
}

.check-list li::marker,
.step-list li::marker {
  color: var(--lime);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  min-height: 176px;
  padding: 20px;
  background: rgba(10, 10, 11, 0.44);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  background: rgba(31, 31, 33, 0.7);
  border-color: rgba(223, 255, 0, 0.55);
}

.guide-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #09090a;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--lime);
  background: #0f0f10;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.sources-block p strong {
  color: var(--ink);
}

.qa-block {
  display: grid;
  gap: 16px;
}

.qa-item {
  padding: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qa-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.qa-item p {
  margin: 0;
}

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

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: clamp(24px, 4vw, 42px);
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

.cta-form {
  display: grid;
  gap: 10px;
}

.cta-form label {
  color: var(--muted);
  font-weight: 700;
}

.cta-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #09090a;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font: inherit;
}

.cta-form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(223, 255, 0, 0.12);
}

.cta-form button {
  gap: 8px;
  min-height: 48px;
}

.form-status {
  min-height: 24px;
  font-size: 0.92rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 34px clamp(18px, 4.5vw, 64px);
  background: #050506;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.site-footer p {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--muted-dim);
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
  }

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

  .header-action {
    width: fit-content;
  }

  .operator-console {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .page-intro,
  .cta-band,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    gap: 14px;
  }

  .site-nav {
    gap: 10px 16px;
  }

  main {
    width: min(100% - 28px, var(--max));
    padding-top: 22px;
  }

  .command-bar {
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 3.65rem);
  }

  .page-intro {
    padding-top: 20px;
  }

  .card-grid,
  .related-block .card-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }
}
