* {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-deep: #000;
  --panel: rgba(255,255,255,0.065);
  --panel-strong: rgba(15,23,42,0.78);
  --panel-light: rgba(248,250,252,0.96);
  --text: #f8fafc;
  --muted: rgba(248,250,252,0.72);
  --soft: rgba(248,250,252,0.52);
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(125,211,252,0.36);
  --cyan: #67e8f9;
  --blue: #818cf8;
  --violet: #c4b5fd;
  --green: #86efac;
  --orange: #fdba74;
  --red: #fca5a5;
  --dark-text: #111827;
}

html {
  min-height: 100%;
  background: #000;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(99,102,241,0.20), transparent 30rem),
    radial-gradient(circle at 12% 18%, rgba(103,232,249,0.11), transparent 25rem),
    radial-gradient(circle at 86% 8%, rgba(196,181,253,0.12), transparent 26rem),
    linear-gradient(180deg, #090d1a 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(125,211,252,0.45) 0 1px, transparent 1.4px);
  background-position: 0 0, 36px 52px;
  background-size: 120px 120px, 170px 170px;
}

body::after {
  content: "OLIVERHELLEVIK.COM";
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: -1;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.024);
  font-size: clamp(4rem, 11vw, 11rem);
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}

a {
  color: inherit;
}

code {
  padding: 0.12rem 0.34rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #dbeafe;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94em;
}

.site-header,
main {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 38px;
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 56px;
}

.brand-mark {
  color: rgba(248,250,252,0.52);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.back-link,
.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.back-link:hover,
.back-link:focus-visible,
.nav-chip:hover,
.nav-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: #fff;
  background: rgba(125,211,252,0.10);
  outline: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.summary-grid,
.topic-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-grid article,
.topic-grid a,
.detail-card,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.24);
}

.summary-grid article,
.topic-grid a,
.detail-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.038));
  backdrop-filter: blur(22px);
}

.summary-grid article {
  padding: 22px;
}

.summary-grid span {
  color: var(--orange);
  font-weight: 900;
}

.summary-grid p,
.section-heading p,
.detail-card p,
.note-box p,
.detail-page li {
  color: var(--muted);
  line-height: 1.68;
}

.map-section,
.flow-section,
.topic-grid,
.detail-content {
  margin-top: 54px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 18px;
}

.map-shell {
  overflow-x: auto;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow: 0 28px 95px rgba(0,0,0,0.36);
  backdrop-filter: blur(22px);
}

.architecture-map {
  position: relative;
  min-width: 980px;
  color: #0f172a;
}

.architecture-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hotspot {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.hotspot span {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15,23,42,0.88);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hotspot:hover,
.hotspot:focus-visible {
  border-color: #111827;
  background: rgba(96,165,250,0.12);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.22);
  outline: none;
}

.hotspot:hover span,
.hotspot:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.users { left: 0.4%; top: 5.8%; width: 7.5%; height: 34.5%; }
.dns { left: 10.4%; top: 11.8%; width: 22.5%; height: 15%; }
.edge { left: 11.1%; top: 28.6%; width: 20.5%; height: 24.8%; }
.tunnel { left: 34.6%; top: 11.4%; width: 15.6%; height: 43.6%; }
.cluster { left: 51%; top: 5.6%; width: 37.3%; height: 68.5%; }
.route { left: 27.3%; top: 60.3%; width: 17.4%; height: 8.6%; }
.traffic { left: 7%; top: 74.4%; width: 75.8%; height: 11.7%; }
.ports { left: 0.8%; top: 86.9%; width: 19.2%; height: 12.3%; }
.failure { left: 20.8%; top: 86.9%; width: 25.8%; height: 12.3%; }
.ha { left: 47.3%; top: 86.9%; width: 22.8%; height: 12.3%; }
.summary { left: 70.9%; top: 86.9%; width: 18.2%; height: 12.3%; }

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  counter-increment: flow;
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  color: var(--muted);
  line-height: 1.65;
}

.flow-list li::before {
  content: counter(flow);
  position: absolute;
  left: 17px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #06111d;
  font-weight: 900;
}

.flow-list strong {
  color: #fff;
}

.topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 56px;
}

.topic-grid a {
  min-height: 132px;
  padding: 18px;
  text-decoration: none;
  color: var(--muted);
  line-height: 1.5;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.topic-grid a:hover,
.topic-grid a:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(96,165,250,0.12);
  outline: none;
}

.topic-grid span {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 800;
}

.detail-page .site-header {
  padding-bottom: 12px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  padding-bottom: 58px;
}

.detail-card,
.note-box {
  padding: 22px;
}

.detail-card + .detail-card,
.note-box + .note-box {
  margin-top: 14px;
}

.detail-card ul,
.note-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.detail-card li + li,
.note-box li + li {
  margin-top: 8px;
}

.note-box {
  background: var(--panel-light);
  color: var(--dark-text);
}

.note-box p,
.note-box li {
  color: #334155;
}

.note-box code {
  background: #e2e8f0;
  color: #0f172a;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-flow span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  font-size: 0.92rem;
}

@media (max-width: 950px) {
  .summary-grid,
  .topic-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .architecture-map {
    min-width: 860px;
  }
}

@media (max-width: 640px) {
  .site-header,
  main {
    width: min(100% - 24px, 1220px);
  }

  .top-row {
    margin-bottom: 38px;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.7rem);
  }

  .lead {
    font-size: 1rem;
  }

  .architecture-map {
    min-width: 760px;
  }
}
