:root {
  --bg: #10161b;
  --panel: #161e24;
  --panel-2: #1c262e;
  --line: #2a343c;

  --text-main: #e7eaec;
  --text-muted: #8a99a3;

  --green: #6fe3a8;
  --green-dim: #3f8f6d;

  --copper: #d98a3d;
  --copper-dim: #8a5b2a;

  --danger: #e0674f;

  --radius: 3px;

  --mono:
    'IBM Plex Mono',
    ui-monospace,
    SFMono-Regular,
    monospace;

  --sans:
    'IBM Plex Sans',
    system-ui,
    -apple-system,
    sans-serif;
}


/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      1100px 600px at 15% -10%,
      rgba(111, 227, 168, 0.06),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(217, 138, 61, 0.05),
      transparent 55%
    ),
    var(--bg);

  color: var(--text-main);

  font-family: var(--sans);

  line-height: 1.55;

  -webkit-font-smoothing: antialiased;
}


::selection {
  background: var(--green-dim);
  color: #04120c;
}


a {
  color: var(--green);
}


.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ---------- TOP BAR ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(16, 22, 27, 0.86);

  backdrop-filter: blur(6px);

  border-bottom: 1px solid var(--line);
}


.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 24px;

  max-width: 980px;

  margin: 0 auto;
}


.brand {
  font-family: var(--mono);

  font-size: 13px;

  letter-spacing: 0.02em;

  color: var(--green);

  display: flex;
  align-items: center;

  gap: 8px;
}


.brand .dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--green);

  box-shadow: 0 0 8px var(--green);

  animation: blink 2.4s ease-in-out infinite;
}


@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }

}


.topnav {
  display: flex;

  gap: 22px;

  font-family: var(--mono);

  font-size: 12px;
}


.topnav a {
  color: var(--text-muted);

  text-decoration: none;
}


.topnav a:hover {
  color: var(--green);
}


@media (max-width: 640px) {

  .topnav {
    display: none;
  }

}


/* ---------- HERO ---------- */

.hero {
  padding: 72px 0 56px;
}


/* ---------- TERMINAL ---------- */

.terminal {
  background: #0b1013;

  border: 1px solid var(--line);

  border-radius: var(--radius);

  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(111, 227, 168, 0.02);

  overflow: hidden;
}


.terminal-head {
  display: flex;

  align-items: center;

  gap: 8px;

  padding: 10px 14px;

  border-bottom: 1px solid var(--line);

  background:
    linear-gradient(
      180deg,
      #131a1f,
      #0f151a
    );
}


.terminal-head span {
  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #2a343c;
}


.terminal-head .title {
  margin-left: 8px;

  font-family: var(--mono);

  font-size: 11px;

  color: var(--text-muted);
}


.terminal-body {
  padding: 22px 22px 26px;

  font-family: var(--mono);

  font-size: 13px;

  color: var(--green);

  min-height: 190px;
}


.terminal-body .muted {
  color: var(--text-muted);
}


.terminal-body .amber {
  color: var(--copper);
}


.caret {
  display: inline-block;

  width: 8px;
  height: 15px;

  background: var(--green);

  margin-left: 2px;

  vertical-align: -2px;

  animation:
    caret 1s steps(1) infinite;
}


@keyframes caret {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }

}


/* ---------- HERO TEXT ---------- */

.hero-headline {
  margin: 34px 0 10px;

  font-family: var(--mono);

  font-size: 12px;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  color: var(--copper);
}


h1 {
  font-family: var(--sans);

  font-weight: 600;

  font-size: clamp(30px, 5vw, 46px);

  line-height: 1.12;

  margin: 0 0 18px;

  letter-spacing: -0.01em;
}


h1 .accent {
  color: var(--green);
}


.lede {
  color: var(--text-muted);

  font-size: 17px;

  max-width: 60ch;

  margin: 0;
}


/* ---------- SPECS ---------- */

.specs {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 1px;

  background: var(--line);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  margin-top: 40px;

  overflow: hidden;
}


.spec {
  background: var(--panel);

  padding: 16px 18px;
}


.spec .k {
  font-family: var(--mono);

  font-size: 10px;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: var(--text-muted);
}


.spec .v {
  font-family: var(--mono);

  font-size: 15px;

  color: var(--text-main);

  margin-top: 6px;
}


@media (max-width: 700px) {

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

}


/* ---------- SECTIONS ---------- */

section {
  padding: 76px 0;

  border-top: 1px solid var(--line);
}


.section-label {
  font-family: var(--mono);

  font-size: 11px;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  color: var(--green);

  margin-bottom: 10px;
}


h2 {
  font-size: clamp(22px, 3vw, 30px);

  margin: 0 0 12px;

  font-weight: 600;

  letter-spacing: -0.01em;
}


.section-intro {
  color: var(--text-muted);

  max-width: 64ch;

  margin: 0 0 44px;
}


/* ---------- BUILD STEPS ---------- */

.step {
  display: grid;

  grid-template-columns: 80px 1fr;

  gap: 28px;

  padding: 34px 0;

  border-top: 1px solid var(--line);
}


.step:first-of-type {
  border-top: none;

  padding-top: 0;
}


.step-num {
  font-family: var(--mono);

  font-size: 13px;

  color: var(--copper);

  padding-top: 4px;
}


.step-num .line {
  display: block;

  width: 1px;

  height: 100%;

  background: var(--line);

  margin: 10px auto 0;
}


.step-body h3 {
  margin: 0 0 8px;

  font-size: 19px;

  font-weight: 600;
}


.step-body p {
  color: var(--text-muted);

  margin: 0 0 16px;

  max-width: 62ch;
}


.step-body .figure {
  margin-top: 18px;
}


.step-body img {
  width: 100%;

  max-width: 520px;

  display: block;

  border-radius: var(--radius);

  border: 1px solid var(--line);
}


.caption {
  font-family: var(--mono);

  font-size: 11px;

  color: var(--text-muted);

  margin-top: 8px;

  letter-spacing: 0.01em;
}


.tag {
  display: inline-block;

  font-family: var(--mono);

  font-size: 10.5px;

  padding: 3px 8px;

  border: 1px solid var(--green-dim);

  color: var(--green);

  border-radius: 2px;

  letter-spacing: 0.04em;

  margin-right: 6px;

  margin-bottom: 6px;
}


@media (max-width: 620px) {

  .step {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .step-num .line {
    display: none;
  }

}


/* ---------- GALLERY ---------- */

.gallery {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 14px;
}


.gallery figure {
  margin: 0;

  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  overflow: hidden;
}


.gallery img {
  width: 100%;

  display: block;
}


.gallery figcaption {
  padding: 10px 12px;

  font-family: var(--mono);

  font-size: 11px;

  color: var(--text-muted);

  border-top: 1px solid var(--line);
}


@media (max-width: 620px) {

  .gallery {
    grid-template-columns: 1fr;
  }

}


/* ---------- STATUS READOUT ---------- */

.readout {
  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  padding: 20px 22px;

  font-family: var(--mono);

  font-size: 12.5px;
}


.readout .row {
  display: flex;

  justify-content: space-between;

  padding: 6px 0;

  border-bottom: 1px dashed var(--line);
}


.readout .row:last-child {
  border-bottom: none;
}


.readout .k {
  color: var(--text-muted);
}


.readout .v {
  color: var(--green);
}


.readout .v.amber {
  color: var(--copper);
}


/* ---------- LESSONS ---------- */

.lessons {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}


.lesson {
  background: var(--panel);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  padding: 18px 20px;
}


.lesson .head {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-bottom: 6px;
}


.lesson .ico {
  font-family: var(--mono);

  font-size: 11px;

  color: var(--danger);

  border: 1px solid var(--danger);

  border-radius: 2px;

  padding: 1px 6px;
}


.lesson h4 {
  margin: 0;

  font-size: 15px;
}


.lesson p {
  margin: 8px 0 0;

  color: var(--text-muted);

  font-size: 14px;
}


@media (max-width: 620px) {

  .lessons {
    grid-template-columns: 1fr;
  }

}


/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid var(--line);

  padding: 36px 0 60px;

  font-family: var(--mono);

  font-size: 12px;

  color: var(--text-muted);

  display: flex;

  justify-content: space-between;

  flex-wrap: wrap;

  gap: 10px;
}


.footer-inner {
  display: flex;

  justify-content: space-between;

  width: 100%;

  flex-wrap: wrap;

  gap: 10px;
}


/* ---------- SCROLL ANIMATION ---------- */

.fade-in {
  opacity: 0;

  transform: translateY(14px);

  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}


.fade-in.visible {
  opacity: 1;

  transform: none;
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

  .fade-in {
    opacity: 1;

    transform: none;

    transition: none;
  }

  .caret,
  .brand .dot {
    animation: none;
  }

}