/* kalinkaplayer.com — one stylesheet for every page.
   Tokens and type match the Kalinka app. Sections are in page order:
   base · header · hero · feature grid · quote · search demo · sub-page
   heading · pieces · network diagram · spec lists · install steps ·
   call to action · footer · breakpoints. */

:root {
  --background: #080808;
  --surfaceBase: #0E0E0E;
  --surfaceRaised: #151513;
  --surfaceInput: #171715;
  --surfaceElevated: #1C1C1A;
  --surfaceOverlay: #222220;
  --borderSubtle: rgba(255, 255, 255, 0.07);
  --borderDefault: #323235;
  --textPrimary: #FAF5F0;
  --textSecondary: #A3A3A3;
  --textMuted: #858585;
  --frost: #EEEEEE;
  --accent: #C2394B;
  --accentTint: #D8556A;
  --accentBright: #F59299;
  --accentSubtle: rgba(194, 57, 75, 0.08);
  --accentBorder: rgba(194, 57, 75, 0.40);
  --gold: #CDC9BE;
  --statusOnline: #3D8A58;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --display: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--textPrimary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2 { font-family: var(--display); }
h2, h3, h4 { color: var(--textPrimary); }
p { color: var(--textSecondary); }
a { color: var(--accentTint); text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: .92em; color: var(--textPrimary); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.wrap--narrow { max-width: 860px; }

main section { padding: 96px 0; border-bottom: 1px solid var(--borderSubtle); }
main section.alt { background: #0d0d0c; }
main section:last-child { border-bottom: 0; }

/* ---------- Version banner ---------- */
.launch-banner {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(90deg, transparent, rgba(61, 138, 88, 0.14), rgba(111, 207, 143, 0.24), rgba(61, 138, 88, 0.14), transparent);
  border-bottom: 1px solid rgba(76, 175, 110, 0.45);
  transition: background .25s;
}

.launch-banner:hover {
  background: linear-gradient(90deg, transparent, rgba(61, 138, 88, 0.22), rgba(111, 207, 143, 0.34), rgba(61, 138, 88, 0.22), transparent);
}

.launch-banner .cb-text {
  background: linear-gradient(90deg, #4caf6e, #8fdcab 45%, #c9f2d8 50%, #8fdcab 55%, #4caf6e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #6fcf8f;
}

.launch-banner strong {
  font-weight: 600;
  -webkit-text-fill-color: #d9f7e4;
  color: #d9f7e4;
}

.launch-banner .cb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf6e;
  box-shadow: 0 0 8px 1px rgba(76, 175, 110, 0.7);
  animation: cb-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes cb-pulse {
  0% { box-shadow: 0 0 8px 1px rgba(76, 175, 110, 0.7), 0 0 0 0 rgba(76, 175, 110, 0.55); }
  70% { box-shadow: 0 0 8px 1px rgba(76, 175, 110, 0.7), 0 0 0 7px rgba(76, 175, 110, 0); }
  100% { box-shadow: 0 0 8px 1px rgba(76, 175, 110, 0.7), 0 0 0 0 rgba(76, 175, 110, 0); }
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--borderSubtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }

.navlinks { display: flex; gap: 34px; align-items: center; }

.navlinks a {
  color: var(--textSecondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color .2s;
}

.navlinks a:hover,
.navlinks a[aria-current] { color: var(--textPrimary); }

.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 10px 20px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--accentBorder);
  background: var(--accentSubtle);
  color: var(--accentTint);
  transition: all .2s;
}

.btn:hover { background: var(--accent); color: var(--frost); border-color: var(--accent); }

.btn-ghost { background: transparent; border-color: var(--borderDefault); color: var(--textPrimary); }
.btn-ghost:hover { background: var(--surfaceOverlay); border-color: var(--textMuted); color: var(--textPrimary); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  color: var(--textSecondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover { color: var(--textPrimary); }

/* ---------- Labels shared by every section ---------- */
.editorial-label {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.1px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--textMuted);
}

.editorial-label.accent { color: var(--accentTint); }

.section-heading {
  display: grid;
  grid-template-columns: 240px minmax(0, 660px);
  gap: 78px;
  align-items: start;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.08;
}

.section-heading p { margin-top: 16px; font-size: 16px; line-height: 1.7; }

/* ---------- Hero (home) ---------- */
.editorial-hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.editorial-hero::after {
  content: '';
  position: absolute;
  top: -180px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 57, 75, 0.16), transparent 62%);
  pointer-events: none;
}

.editorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: 64px;
  align-items: center;
}

.editorial-hero h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 500;
  letter-spacing: -1.1px;
  line-height: 1.01;
}

.editorial-hero h1 span { color: var(--accentTint); }

.hero-copy { max-width: 560px; margin-bottom: 32px; font-size: 18px; line-height: 1.65; }

.editorial-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.editorial-actions .btn { padding: 13px 21px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--borderSubtle);
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  padding-right: 18px;
  border-right: 1px solid var(--borderSubtle);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--textMuted);
}

.hero-facts span:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.hero-facts i { width: 5px; height: 5px; border-radius: 50%; background: var(--accentTint); }

.product-figure { position: relative; margin: 0; }

.product-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--borderDefault);
  border-radius: 9px;
  background: #050505;
  box-shadow: 0 28px 80px -40px rgba(0, 0, 0, .95);
}

.product-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--textMuted);
}

/* ---------- Feature grid ---------- */
main section.feature-highlights { padding: 72px 0; background: var(--surfaceBase); }

.feature-highlights h2 {
  margin-bottom: 30px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.15;
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  list-style: none;
}

.highlight-list li { padding-top: 18px; border-top: 1px solid var(--borderDefault); }
.highlight-list li.new { border-top-color: var(--accentTint); }
.highlight-list h3 { margin-bottom: 9px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.highlight-list p { font-size: 14px; line-height: 1.65; }
.highlight-list p a { color: var(--textSecondary); }
.highlight-list p a:hover { color: var(--textPrimary); }

.more-link { margin-top: 34px; font-size: 15px; }

/* ---------- Quote ---------- */
.project-note-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 78px;
  align-items: start;
}

.project-note h2 { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .2px; line-height: 1.5; }

.project-note blockquote {
  max-width: 790px;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.35;
  color: var(--textPrimary);
}

.project-note blockquote em { color: var(--accentTint); font-weight: 400; }
.project-note .note-tail { max-width: 710px; margin-top: 20px; font-size: 15px; line-height: 1.7; }

/* ---------- Search demo (home) ---------- */
.search-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center;
}

.search-proof h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.08;
}

.search-proof-copy > p { max-width: 580px; font-size: 16px; line-height: 1.75; }
.search-proof-copy > p + p { margin-top: 24px; }

.search-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 12px 18px;
  border-color: var(--accentTint);
  color: var(--accentBright);
  font-size: 15px;
  line-height: 1.5;
}

.search-images { display: grid; gap: 26px; min-width: 0; }
.search-image { margin: 0; min-width: 0; }

.search-crop {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--borderDefault);
  border-radius: 8px;
  background: #050505;
}

/* Frame the relevant areas of the original, unmodified screenshots. */
.search-crop--request { aspect-ratio: 864 / 318; --crop-offset: -5.168%; }
.search-crop--results { aspect-ratio: 864 / 590; --crop-offset: -39.621%; }

.search-crop img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(var(--crop-offset));
}

.search-crop:focus-visible { outline: 2px solid var(--accentTint); outline-offset: 5px; }

.search-image figcaption {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--textSecondary);
}

.search-image figcaption span { margin-right: 10px; color: var(--accentTint); }
.search-image-hint { font-size: 12px; line-height: 1.5; }

/* ---------- Sub-page title block ---------- */
.page-head { padding: 72px 0 56px; border-bottom: 1px solid var(--borderSubtle); }

.page-head h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.page-head p { max-width: 640px; font-size: 17px; line-height: 1.7; }
.page-head p + p { margin-top: 14px; }

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .6px;
}

.page-nav a { color: var(--textSecondary); text-decoration: none; }
.page-nav a:hover { color: var(--textPrimary); }

/* ---------- Pieces (the parts of Kalinka) ---------- */
.pieces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.piece {
  padding: 26px 26px 28px;
  border: 1px solid var(--borderSubtle);
  border-radius: 12px;
  background: var(--surfaceRaised);
}

.piece-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--accentBorder);
  border-radius: 10px;
  background: var(--accentSubtle);
  color: var(--accentTint);
}

.piece-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.piece small {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accentTint);
}

.piece h3 { margin-bottom: 10px; font-size: 20px; font-weight: 500; line-height: 1.3; }
.piece p { font-size: 15px; line-height: 1.7; }

/* ---------- Topics: label + text rows (details page) ---------- */
.topic-list { border-top: 1px solid var(--borderDefault); }

.topic {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: 34px 0;
  border-bottom: 1px solid var(--borderSubtle);
}

.topic h3 { font-size: 22px; font-weight: 500; line-height: 1.25; }
.topic h3 small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 1.2px; text-transform: uppercase; color: var(--textMuted); }
.topic p { max-width: 680px; font-size: 15px; line-height: 1.75; }
.topic p + p { margin-top: 14px; }
.topic strong { color: var(--textPrimary); font-weight: 500; }

/* ---------- Network diagram ---------- */
.setup-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: end;
}

.setup-intro h2 {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.08;
}

.setup-intro > p { max-width: 640px; font-size: 16px; line-height: 1.75; }

.setup-diagram { margin: 42px 0 0; }

.network-map { position: relative; height: 650px; border-radius: 12px; background: var(--surfaceBase); }
.network-boundary { position: absolute; inset: 178px 0 0; border: 1px dashed var(--borderDefault); border-radius: 12px; }

.network-boundary span {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 0 10px;
  background: var(--surfaceBase);
  color: var(--textMuted);
  font-family: var(--mono);
  font-size: 11px;
}

.network-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.network-wires--mobile { display: none; }
.network-wire { fill: none; stroke: var(--textSecondary); stroke-width: 1.5; stroke-linejoin: round; marker-end: url(#network-arrow); }
.network-wire--control { stroke: var(--accentTint); marker-end: url(#network-control-arrow); }
.network-wire--optional { stroke-dasharray: 6 5; }

.network-node {
  position: absolute;
  width: 26%;
  padding: 18px 20px;
  border: 1px solid var(--borderDefault);
  border-radius: 8px;
  background: var(--surfaceRaised);
}

.network-node small {
  display: block;
  margin-bottom: 9px;
  color: var(--textMuted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
}

.network-node h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 16px; font-weight: 500; line-height: 1.3; }
.network-node h3 svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.network-node p { font-size: 13px; line-height: 1.5; }

.network-stream { top: 24px; left: 37%; height: 108px; }
.network-nas { top: 258px; left: 3%; height: 120px; }
.network-kalinka { top: 220px; left: 37%; height: 200px; border-color: var(--accentTint); background: #1a1012; }
.network-kalinka small { color: var(--accentBright); }
.network-services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.network-services span { padding: 4px 7px; border: 1px solid var(--accentBorder); border-radius: 4px; color: var(--textPrimary); font-size: 11px; }
.network-amp { top: 258px; left: 71%; height: 120px; }
.network-controller { top: 488px; left: 3%; height: 132px; }
.network-renderer { top: 488px; left: 71%; height: 132px; border-style: dashed; }
.network-renderer small { color: var(--gold); text-transform: none; }

.network-link-label { position: absolute; color: var(--textSecondary); font-family: var(--mono); font-size: 10px; line-height: 1.5; text-align: center; }
.network-link-stream { top: 149px; left: 51.5%; }
.network-link-files { top: 294px; left: 29%; width: 8%; }
.network-link-audio { top: 294px; left: 63%; width: 8%; }
.network-link-control { top: 432px; left: 18%; color: var(--accentBright); }
.network-link-optional { top: 432px; left: 60%; }

.setup-diagram figcaption { max-width: 790px; margin-top: 18px; color: var(--textSecondary); font-size: 13px; line-height: 1.7; }

/* ---------- Spec lists (requirements, limits) ---------- */
.spec-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 70px; }

.support-column h3 {
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--textMuted);
}

.support-column ul { list-style: none; }

.support-column li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--borderSubtle);
  color: var(--textPrimary);
  font-size: 14px;
}

.support-column li span { color: var(--textMuted); text-align: right; }
.support-column .note { margin-top: 18px; font-size: 13px; line-height: 1.7; color: var(--textMuted); }

/* Limits page: one group per heading, rows explain themselves */
.limit-group { margin-bottom: 56px; }
.limit-group:last-child { margin-bottom: 0; }
.limit-group h2 { margin-bottom: 8px; font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -.6px; line-height: 1.15; }
.limit-group > p { max-width: 680px; margin-bottom: 22px; font-size: 15px; line-height: 1.7; }
.limit-group dl { border-top: 1px solid var(--borderDefault); }
.limit-group .row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 16px 0; border-bottom: 1px solid var(--borderSubtle); }
.limit-group dt { font-size: 15px; font-weight: 500; color: var(--textPrimary); }
.limit-group dd { font-size: 14.5px; line-height: 1.7; color: var(--textSecondary); }
.limit-group dd code { font-size: 12.5px; }

/* ---------- Install steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 760px; }

.step {
  display: flex;
  flex-direction: column;
  background: var(--surfaceRaised);
  border: 1px solid var(--borderSubtle);
  border-radius: 16px;
  padding: 30px 28px;
  min-width: 0; /* the install command scrolls inside .cmd-box instead of widening the grid */
}

.step h3 { font-family: var(--display); font-size: 23px; font-weight: 600; color: var(--frost); margin-bottom: 10px; }
.step > p { font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.step > p:last-child { margin-bottom: 0; }
.step > p strong { color: var(--textPrimary); font-weight: 500; }
.step-actions { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }

.dl-group-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--textMuted);
  margin-bottom: 10px;
}

.dl-row { display: flex; gap: 10px; flex-wrap: wrap; }

.os-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surfaceInput);
  border: 1px solid var(--borderDefault);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--textPrimary);
  text-decoration: none;
  transition: all .2s;
}

.os-btn:hover { border-color: var(--textMuted); background: var(--surfaceOverlay); }
.os-btn svg { color: var(--textMuted); flex-shrink: 0; }
.os-btn:hover svg { color: var(--gold); }
.os-btn .os-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.os-btn .os-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px; color: var(--textMuted); margin-top: 3px; }
.os-btn.unavailable { cursor: default; pointer-events: none; }
.os-btn.unavailable svg, .os-btn.unavailable .os-text { opacity: 0.38; }

.na-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--textMuted);
  border: 1px solid var(--borderDefault);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.cmd-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surfaceInput);
  border: 1px solid var(--borderDefault);
  border-radius: 8px;
  padding: 12px 14px;
}

.cmd-box code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--textPrimary);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

.cmd-box code::before { content: "$ "; color: var(--accentTint); user-select: none; }

.cmd-copy {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--textMuted);
  background: var(--surfaceOverlay);
  border: 1px solid var(--borderDefault);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}

.cmd-copy:hover { color: var(--textPrimary); border-color: var(--textMuted); }
.cmd-copy.copied { color: var(--statusOnline); border-color: var(--statusOnline); }

.step-docs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--borderSubtle); }

.step-docs a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--accentTint);
  border: 1px solid var(--accentBorder);
  background: var(--accentSubtle);
  border-radius: 8px;
  padding: 11px 18px;
  text-decoration: none;
  transition: all .2s;
}

.step-docs a:hover { background: var(--accent); border-color: var(--accent); color: var(--frost); }
.step-docs a svg { flex-shrink: 0; }
.step-docs a .arr { margin-left: 2px; }

.step .support-column { margin-top: 4px; }
.steps--wide { max-width: none; }
.install-title { margin-bottom: 28px; font-size: clamp(30px, 4vw, 42px); font-weight: 500; letter-spacing: -1px; line-height: 1.15; }
.choice .step-actions { margin-top: 0; }
.choice > p strong { color: var(--textPrimary); font-weight: 500; }
.choice > p code { font-size: 12.5px; }
.piece--core { grid-column: 1 / -1; border-color: var(--accentBorder); }
.piece--core p { max-width: 720px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.choice-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--accentBorder);
  border-radius: 8px;
  background: var(--accentSubtle);
  color: var(--accentTint);
  font-family: var(--mono);
  font-size: 14px;
}
.ways { display: grid; gap: 10px; }
.way { padding: 14px 16px; border: 1px solid var(--borderSubtle); border-radius: 10px; background: var(--surfaceInput); }
.way h4 { margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.way p { font-size: 13.5px; line-height: 1.6; }
.way strong { color: var(--textPrimary); font-weight: 500; }
.cta-tail code { font-size: 11.5px; }
.cta-tail strong { color: var(--textPrimary); font-weight: 500; }

/* ---------- Call to action ---------- */
main section.cta { background: #0d0d0c; }
.cta h2 { margin-bottom: 16px; font-size: clamp(34px, 4.5vw, 50px); font-weight: 500; letter-spacing: -1.4px; line-height: 1.08; }
.cta > .wrap > p { max-width: 620px; margin-bottom: 28px; font-size: 16px; line-height: 1.75; }

.cta-tail {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--textMuted);
  margin-top: 30px;
}

.cta-tail a { color: var(--textSecondary); text-decoration: underline; text-underline-offset: 3px; }
.cta-tail a:hover { color: var(--textPrimary); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--borderSubtle); padding: 48px 0; background: var(--surfaceBase); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.foot-brand img { height: 30px; width: auto; display: block; margin-bottom: 8px; }
.foot-tag { font-size: 13px; color: var(--textMuted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot-links a { color: var(--textSecondary); font-size: 13px; text-decoration: none; transition: color .2s; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--textPrimary); }

.foot-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--textMuted);
  width: 100%;
  padding-top: 28px;
  border-top: 1px solid var(--borderSubtle);
  margin-top: 8px;
  line-height: 2;
}

.foot-copy a { color: var(--textSecondary); text-decoration: underline; text-underline-offset: 3px; }
.foot-copy a:hover { color: var(--textPrimary); }

/* ---------- Breakpoints ---------- */
@media (max-width: 980px) {
  .editorial-hero-grid, .search-proof-grid, .setup-intro { grid-template-columns: 1fr; gap: 48px; }
  .editorial-hero-grid { gap: 54px; }
  .product-figure { max-width: 760px; }
  .project-note-grid, .section-heading { grid-template-columns: 170px minmax(0, 1fr); gap: 46px; }
  .topic { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limit-group .row { grid-template-columns: 200px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .network-map { height: 1104px; }
  .network-wires--desktop { display: none; }
  .network-wires--mobile { display: block; }
  .network-boundary span { left: 14px; font-size: 10px; }
  .network-node { left: 9%; width: 82%; }
  .network-stream { top: 24px; }
  .network-nas { top: 220px; height: 112px; }
  .network-controller { top: 368px; height: 112px; }
  .network-kalinka { top: 546px; height: 180px; }
  .network-amp { top: 790px; height: 112px; }
  .network-renderer { top: 952px; height: 120px; }
  .network-link-stream { top: 142px; left: 9%; }
  .network-link-files { top: 410px; left: 0; width: 9%; writing-mode: vertical-rl; }
  .network-link-audio { top: 748px; left: 52%; width: auto; }
  .network-link-control { top: 505px; left: 52%; }
  .network-link-optional { top: 925px; left: 52%; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  main section { padding: 64px 0; }
  .navlinks { gap: 22px; }
  .navlinks .nl { display: none; }
  .editorial-hero { padding: 56px 0 64px; }
  .editorial-hero h1 { font-size: clamp(40px, 13vw, 58px); letter-spacing: -.8px; }
  .hero-copy { font-size: 16.5px; }
  .product-figure figcaption { flex-direction: column; gap: 3px; }
  .project-note-grid, .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .section-heading { margin-bottom: 36px; }
  .project-note blockquote { margin-top: 12px; font-size: 26px; }
  .search-proof-grid { gap: 42px; }
  .search-images { max-width: 720px; }
  .highlight-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .pieces, .spec-columns, .steps, .choice-grid { grid-template-columns: 1fr; }
  .topic { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .limit-group .row { grid-template-columns: 1fr; gap: 4px; }
  .page-head { padding: 52px 0 40px; }
  .foot { align-items: flex-start; }
}

@media (max-width: 520px) {
  .launch-banner { padding: 6px 12px; font-size: 10.5px; }
  .nav { height: 62px; }
  .editorial-actions { align-items: flex-start; }
  .hero-facts { gap: 9px 0; }
  .hero-facts span { width: 100%; margin: 0; padding: 0; border: 0; }
  main section.feature-highlights { padding: 44px 0; }
  .highlight-list { grid-template-columns: 1fr; gap: 20px; }
  .support-column li { align-items: flex-start; flex-direction: column; gap: 4px; }
  .support-column li span { text-align: left; }
  .step { padding: 24px 20px; }
  .cmd-box { align-items: flex-start; flex-direction: column; }
  .cmd-copy { align-self: flex-end; }
}
