/* kruijsbeek.nl — base styles */

:root {
  --bg: #0a0a0b;
  --bg-soft: #0d0d0e;
  --bg-elev: #131315;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --fg: oklch(0.94 0.005 80);
  --fg-dim: oklch(0.72 0.008 80);
  --fg-faint: oklch(0.52 0.01 80);
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-deep: #d97706;
  --amber-glow: rgba(245, 158, 11, 0.18);
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: #0a0a0b;
}

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

/* ─── HERO ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: 0;
}

/* Left-side darkness gradient ensures text readability over the video */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 11, 0.97) 0%,
      rgba(10, 10, 11, 0.92) 35%,
      rgba(10, 10, 11, 0.55) 60%,
      rgba(10, 10, 11, 0.05) 100%
    );
  z-index: 1;
  pointer-events: none;
}

/* Subtle film grain over everything */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px clamp(24px, 5vw, 72px) 56px;
}

/* ─── TOP BAR ──────────────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-dim);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.06);
}

.brand-name {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-tld {
  color: var(--fg-faint);
}

.topnav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.topnav a {
  color: var(--fg-dim);
  transition: color 0.15s ease;
  position: relative;
}

.topnav a::before {
  content: '';
  display: inline-block;
  width: 6px;
  color: var(--fg-faint);
  margin-right: 4px;
}

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

.topnav a:hover::before {
  content: '~';
  color: var(--amber);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-faint);
}

.topbar-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow), 0 0 2px var(--amber);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

/* ─── HERO TEXT ─────────────────────────────────────────────────────── */

.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  padding-top: 40px;
}

.hero-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-faint);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-prompt .led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow), 0 0 3px var(--amber);
  animation: breathe 3.2s ease-in-out infinite;
}

.hero-prompt .host {
  color: var(--fg-dim);
}

.hero-prompt .host .at,
.hero-prompt .host .colon,
.hero-prompt .host .path,
.hero-prompt .host .dollar {
  color: var(--fg-faint);
}

.hero-prompt .host .user {
  color: var(--amber);
}

.hero-prompt .host .machine {
  color: var(--fg);
}

.hero-headline {
  font-family: var(--mono);
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-headline .typed {
  color: var(--fg);
}

.hero-headline .cursor {
  display: inline-block;
  width: 0.55ch;
  height: 0.95em;
  background: var(--amber);
  vertical-align: -0.08em;
  margin-left: 6px;
  animation: blink 1.05s steps(1) infinite;
  box-shadow: 0 0 12px var(--amber-glow);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-dim);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-sub .comment {
  color: var(--fg-faint);
}

.hero-sub .accent {
  color: var(--amber);
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 20, 22, 0.72);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  border-radius: 4px;
}

.btn:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(245, 158, 11, 0.05);
}

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #0a0a0b;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--amber-bright);
  border-color: var(--amber-bright);
  color: #0a0a0b;
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ─── HERO FOOTER STATUS BAR ───────────────────────────────────────── */

.hero-foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(10, 10, 11, 0.6));
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-foot-left, .hero-foot-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-foot .stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-foot .stat-label {
  color: var(--fg-faint);
}

.hero-foot .stat-value {
  color: var(--fg-dim);
}

.hero-foot .stat .dot-mini {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
}

/* ─── SECTIONS ─────────────────────────────────────────────────────── */

.section {
  padding: 120px clamp(24px, 5vw, 72px);
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.section-label .marker {
  color: var(--amber);
}

.section-label .line {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 80px;
}

.section-title {
  font-family: var(--mono);
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 24px;
  max-width: 780px;
}

.section-title .accent {
  color: var(--amber);
}

.section-intro {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: 620px;
  margin-bottom: 56px;
}

.section-intro .comment {
  color: var(--fg-faint);
}

/* ─── ABOUT ─────────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-block p {
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--fg-dim);
  margin-bottom: 18px;
}

.about-block p .hl {
  color: var(--fg);
}

.about-block p .accent {
  color: var(--amber);
}

.about-card {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 4px;
}

.about-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-card-head .traffic {
  display: flex;
  gap: 6px;
}

.about-card-head .traffic span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.about-card-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--fg-dim);
}

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

.about-card-row .k {
  color: var(--fg-faint);
}

.about-card-row .v {
  color: var(--fg);
}

.about-card-row .v.amber {
  color: var(--amber);
}

/* ─── STACK / SERVICES ─────────────────────────────────────────────── */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.stack-item {
  background: var(--bg);
  padding: 32px 28px;
  font-family: var(--mono);
  position: relative;
  transition: background 0.2s ease;
  cursor: default;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.stack-item:hover {
  background: var(--bg-elev);
}

.stack-item-num {
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stack-item-num .led-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
  opacity: 0.85;
}

.stack-item-title {
  font-size: 17px;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.stack-item-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-dim);
  flex: 1;
}

.stack-item-tags {
  display: flex;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.stack-item-tags span {
  font-size: 10.5px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--fg-faint);
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* ─── NOW RUNNING / LIVE STATUS ────────────────────────────────────── */

.now-card {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono);
}

.now-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.now-card-head .led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  animation: breathe 3.2s ease-in-out infinite;
}

.now-card-head .host {
  color: var(--fg);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

.now-card-head .uptime {
  margin-left: auto;
  color: var(--fg-dim);
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
}

.now-row {
  display: grid;
  grid-template-columns: 32px 1fr 110px 90px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--line);
}

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

.now-row:hover {
  background: rgba(245, 158, 11, 0.02);
}

.now-row .led-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
}

.now-row .led-mini.dim {
  background: var(--fg-faint);
  box-shadow: none;
  opacity: 0.4;
}

.now-row .name {
  color: var(--fg);
  font-weight: 500;
}

.now-row .desc {
  color: var(--fg-faint);
  font-size: 12.5px;
  margin-top: 2px;
}

.now-row .meta {
  font-size: 11.5px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.now-row .meta.amber {
  color: var(--amber);
}

/* ─── CONTACT ─────────────────────────────────────────────────────── */

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
}

.contact-pre {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-dim);
  white-space: pre-wrap;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 24px 28px;
  border-radius: 4px;
}

.contact-pre .key {
  color: var(--fg-faint);
}

.contact-pre .val {
  color: var(--fg);
}

.contact-pre .val.amber {
  color: var(--amber);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-cta-title {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.contact-cta-title .accent {
  color: var(--amber);
}

.contact-cta p {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 18px;
}

/* ─── FOOTER ───────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(24px, 5vw, 72px);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .footer-nav {
  display: flex;
  gap: 18px;
}

.footer .footer-nav a:hover {
  color: var(--amber);
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .topnav {
    display: none;
  }

  .hero-bg {
    object-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.72) 0%,
      rgba(10, 10, 11, 0.88) 60%,
      rgba(10, 10, 11, 0.95) 100%
    );
  }

  .hero-foot {
    font-size: 10px;
    padding: 12px 24px;
  }

  .hero-foot-right .stat:first-child {
    display: none;
  }

  .about-grid,
  .contact-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .now-row {
    grid-template-columns: 24px 1fr 70px;
  }

  .now-row .meta:not(.amber) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    display: none;
  }
  .hero-prompt .led,
  .topbar-status .dot,
  .now-card-head .led,
  .hero-headline .cursor {
    animation: none;
  }
}

/* ─── TERMINAL OVERLAY ─────────────────────────────────────────────── */

.term-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 5, 6, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.term-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.term-window {
  width: min(760px, 96vw);
  max-height: min(540px, 86vh);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-soft);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  font-family: var(--mono);
  font-size: 13px;
  transform: translateY(8px);
  transition: transform 0.18s ease;
}

.term-backdrop.open .term-window {
  transform: translateY(0);
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 6px 6px 0 0;
  flex-shrink: 0;
}

.term-titlebar .traffic {
  display: flex;
  gap: 6px;
}

.term-titlebar .traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
}

.term-titlebar .traffic span:first-child:hover {
  background: #ff5f57;
}

.term-title {
  flex: 1;
  text-align: center;
  color: var(--fg-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.term-hint {
  font-size: 10px;
  color: var(--fg-faint);
  opacity: 0.6;
}

.term-output {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.term-line {
  line-height: 1.65;
  color: var(--fg-dim);
  white-space: pre-wrap;
  word-break: break-all;
}

.term-line.cmd {
  color: var(--fg);
}

.term-line.cmd::before {
  content: '$ ';
  color: var(--amber);
}

.term-line.dim { color: var(--fg-faint); }
.term-line.amber { color: var(--amber); }
.term-line.err { color: #f87171; }

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.term-ps1 {
  color: var(--amber);
  margin-right: 6px;
  flex-shrink: 0;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  caret-color: var(--amber);
}

/* ─── LAYOUT VARIANTS (tweakable) ──────────────────────────────────── */

body[data-layout='center'] .hero::before {
  background: radial-gradient(
    ellipse at center,
    rgba(10, 10, 11, 0.4) 0%,
    rgba(10, 10, 11, 0.85) 70%,
    rgba(10, 10, 11, 0.97) 100%
  );
}

body[data-layout='center'] .hero-main {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

body[data-layout='center'] .hero-prompt,
body[data-layout='center'] .hero-sub {
  text-align: center;
  justify-content: center;
}

body[data-layout='center'] .hero-actions {
  justify-content: center;
}

body[data-density='compact'] .section {
  padding: 80px clamp(24px, 5vw, 72px);
}

body[data-density='compact'] .hero-content {
  padding-top: 24px;
}

body[data-grain='off']::after,
body[data-grain='off'] .hero::after {
  display: none;
}
