:root {
  --black: #040805;
  --panel: #0a110c;
  --rule: #1d2a20;
  --green: #3df26b;
  --accent: #54ff70;
  --title: #eaffec;
  --subtitle: #7dff92;
  --text: #c9dccb;
  --line-number: #4f6d55;
  --content-width: 1000px;
  --nav-h: 52px;
  --scanlines: repeating-linear-gradient(transparent 0 2px, rgb(255 255 255 / .025) 2px 3px);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
section[id], footer[id] { scroll-margin-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, sans-serif;
}

a { color: inherit; }

.mono { font-family: "Courier Prime", "Courier New", monospace; }

.blink { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }

/* Navigation bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: rgb(4 8 5 / .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
  font-family: "Courier Prime", "Courier New", monospace;
}
.nav .home {
  color: var(--line-number);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}
.nav .home b { color: var(--accent); }
.nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a.item {
  display: block;
  padding: 6px 10px;
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}
.nav a.item::before { content: "cd "; color: var(--line-number); }
.nav a.item:hover,
.nav a.item.active {
  color: var(--accent);
  background: rgb(84 255 112 / .08);
  text-shadow: 0 0 .4em rgb(84 255 112 / .5);
}

@media (max-width: 560px) {
  .nav { justify-content: center; }
  .nav .home { display: none; }
  .nav a.item::before { content: ""; }
}

/* Hero banner */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 32vw, 460px);
  padding: 32px 16px;
  background: var(--scanlines), var(--black);
  font-family: "Courier Prime", "Courier New", monospace;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--title);
  text-shadow: 0 0 .25em rgb(84 255 112 / .55);
}
.hero .prompt,
.hero .cursor { color: var(--accent); }
.hero p {
  margin: .6em 0 0;
  font-size: clamp(1rem, 2.4vw, 1.75rem);
  letter-spacing: .05em;
  color: var(--subtitle);
}

/* Content */
.panel {
  background: var(--scanlines), var(--panel);
  border-bottom: 1px solid var(--rule);
  padding: 56px 16px;
}
.panel:first-child { border-top: 1px solid var(--rule); }
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
}
.panel h2 {
  margin: 0 0 1.5rem;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 28px;
  line-height: 1.3;
  color: var(--title);
  text-shadow: 0 0 .3em rgb(84 255 112 / .35);
}
.panel h2 .prompt { color: var(--accent); }
.panel p { margin: 0 0 1rem; }

/* Green rule with line numbers */
.lines {
  --gutter: 48px;
  --number-offset: 22px;
  max-width: 760px;
  margin-left: var(--gutter);
  padding-left: 20px;
  border-left: 2px solid rgb(84 255 112 / .5);
}
.lines p { position: relative; }
.lines p:last-child { margin-bottom: 0; }
.lines p:first-child { font-size: 18px; color: var(--title); }
.lines .n,
.yaml .ln::before {
  position: absolute;
  left: calc(-1 * (var(--gutter) + var(--number-offset)));
  width: calc(var(--gutter) - 12px);
  text-align: right;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 13px;
  color: var(--line-number);
}
.lines .n { top: .25em; line-height: 1.6; }

/* stack.yaml */
.yaml {
  counter-reset: ln;
  font: 16px/1.75 "Courier Prime", "Courier New", monospace;
  color: var(--title);
}
.yaml .ln { display: block; position: relative; }
.yaml .ln::before { counter-increment: ln; content: counter(ln, decimal-leading-zero); }
.yaml .key { color: var(--subtitle); }
.yaml .item { padding-left: 4ch; text-indent: -2ch; }
.yaml .item::before { text-indent: 0; }
.yaml .dash { color: var(--line-number); }

@media (max-width: 700px) {
  .lines { --gutter: 32px; --number-offset: 16px; padding-left: 14px; }
}

/* Divider: "TankheSoft" in ASCII binary */
.divider {
  position: relative;
  height: 168px;
  background: var(--black) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='900'%20height='168'%3E%3Cg%20font-family='Courier%20New%2Cmonospace'%20font-size='14'%20fill='%2354ff70'%3E%3Ctext%20x='0'%20y='18'%20textLength='890'%20lengthAdjust='spacing'%20fill-opacity='0.22'%3E01010100%2001100001%2001101110%2001101011%2001101000%2001100101%2001010011%2001101111%2001100110%2001110100%3C/text%3E%3Ctext%20x='0'%20y='42'%20textLength='890'%20lengthAdjust='spacing'%20fill-opacity='0.12'%3E01101011%2001101000%2001100101%2001010011%2001101111%2001100110%2001110100%2001010100%2001100001%2001101110%3C/text%3E%3Ctext%20x='0'%20y='66'%20textLength='890'%20lengthAdjust='spacing'%20fill-opacity='0.3'%3E01010011%2001101111%2001100110%2001110100%2001010100%2001100001%2001101110%2001101011%2001101000%2001100101%3C/text%3E%3Ctext%20x='0'%20y='90'%20textLength='890'%20lengthAdjust='spacing'%20fill-opacity='0.16'%3E01100001%2001101110%2001101011%2001101000%2001100101%2001010011%2001101111%2001100110%2001110100%2001010100%3C/text%3E%3Ctext%20x='0'%20y='114'%20textLength='890'%20lengthAdjust='spacing'%20fill-opacity='0.24'%3E01100110%2001110100%2001010100%2001100001%2001101110%2001101011%2001101000%2001100101%2001010011%2001101111%3C/text%3E%3Ctext%20x='0'%20y='138'%20textLength='890'%20lengthAdjust='spacing'%20fill-opacity='0.14'%3E01101000%2001100101%2001010011%2001101111%2001100110%2001110100%2001010100%2001100001%2001101110%2001101011%3C/text%3E%3Ctext%20x='0'%20y='162'%20textLength='890'%20lengthAdjust='spacing'%20fill-opacity='0.2'%3E01101111%2001100110%2001110100%2001010100%2001100001%2001101110%2001101011%2001101000%2001100101%2001010011%3C/text%3E%3C/g%3E%3C/svg%3E") left top / 900px 168px repeat-x;
}
.divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--black), transparent 20%, transparent 80%, var(--black));
}

/* Contact footer */
.contact {
  background: var(--black);
  color: #fff;
  padding: 48px 16px;
}
.contact-title {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 28px;
  line-height: 1.3;
  color: var(--title);
  text-shadow: 0 0 .3em rgb(84 255 112 / .35);
}
.contact-title .prompt { color: var(--accent); }
.contact ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--content-width);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  font-weight: 700;
}
.contact .icon {
  display: block;
  height: 64px;
  margin: 0 auto 12px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgb(84 255 112 / .6));
}
.contact svg.icon { width: 64px; }
.contact .kvk {
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 44px;
  font-weight: 700;
  line-height: 64px;
}
.contact a { text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { color: var(--green); }

@media (max-width: 700px) {
  .contact ul { grid-template-columns: 1fr; }
}
