:root {
  --ink: #060706;
  --graphite: #11120f;
  --field: #f5f4ee;
  --muted: #a6aaa0;
  --line: rgba(245, 244, 238, 0.12);
  --acid: #ff6a3d;
  --mint: #78c8ff;
  --sky: #d8c7ff;
  --rose: #ff7b9c;
  --amber: #ffc857;
  --font: "Space Grotesk", "Neue Alte Grotesk", "Inter", system-ui, sans-serif;
  --rail: 1264px;
  --gutter: clamp(22px, 4.4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--field);
  font-family: var(--font);
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 22px 0;
  background: rgba(6, 7, 6, 0.76);
  backdrop-filter: blur(18px);
}

.topbar::before {
  position: fixed;
  inset: 0 0 auto;
  height: 93px;
  z-index: -1;
  content: "";
  background: rgba(6, 7, 6, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
}

.brand-mark {
  width: 19px;
  height: 19px;
  background: var(--acid);
  clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%);
  box-shadow: 0 0 24px rgba(255, 106, 61, 0.52);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 36px);
  color: rgba(245, 244, 238, 0.76);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a,
.article-card a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.article-card a:hover {
  color: var(--acid);
}

.nav-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--field);
  transition: color 180ms ease;
}

.nav-github:hover {
  color: var(--acid);
}

.nav-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta,
.primary-button {
  color: #120604;
  background: var(--acid);
  box-shadow: 0 16px 48px rgba(255, 106, 61, 0.2);
}

.secondary-button {
  color: var(--field);
  border: 1px solid rgba(245, 244, 238, 0.2);
  background: rgba(245, 244, 238, 0.06);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  min-height: 720px;
  margin: 0 auto;
  padding: clamp(78px, 8vw, 132px) 0 clamp(64px, 7vw, 112px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.eyebrow,
.mini-label,
.article-author {
  margin: 0;
  color: var(--acid);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 22px;
}

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

h1 {
  margin-bottom: 28px;
  max-width: 620px;
  font-size: clamp(54px, 6.1vw, 88px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.section-heading h2,
.network-copy h2 {
  color: var(--field);
}

.hero-lede {
  max-width: 580px;
  margin-bottom: 32px;
  color: rgba(245, 244, 238, 0.74);
  font-size: clamp(20px, 1.66vw, 24px);
  line-height: 1.36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.hero-visual {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 800px;
  min-height: 500px;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  display: none;
}

.hero-visual > img {
  position: relative;
  z-index: 1;
  width: min(800px, 108%);
  min-width: 0;
  height: auto;
  display: block;
  margin-left: auto;
  object-fit: contain;
  filter: saturate(1.2) contrast(1.05) brightness(0.88);
  mix-blend-mode: screen;
  opacity: 0.98;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 74% 56%, black 0%, black 35%, rgba(0, 0, 0, 0.55) 55%, transparent 82%);
  mask-image: radial-gradient(ellipse 90% 90% at 74% 56%, black 0%, black 35%, rgba(0, 0, 0, 0.55) 55%, transparent 82%);
}

.section-band,
.provisioning,
.articles {
  padding: clamp(82px, 7.4vw, 128px) 0;
}

.section-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 5, 0.64);
}

.section-heading {
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  max-width: var(--rail);
  margin: 0 auto 44px;
}

.section-heading.wide {
  max-width: var(--rail);
}

.section-heading h2,
.network-copy h2 {
  margin-bottom: 0;
  max-width: 1110px;
  font-size: clamp(44px, 4.65vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-heading.quiet h2 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(30px, 2.75vw, 42px);
  line-height: 1.08;
}

.section-description {
  max-width: 760px;
  margin: 0;
  color: rgba(245, 244, 238, 0.68);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
}

.entry-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(36px, 5.2vw, 78px);
  align-items: stretch;
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.entry-tabs {
  display: grid;
  gap: 12px;
  align-content: start;
}

.entry-tab {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 244, 238, 0.11);
  border-radius: 8px;
  color: rgba(245, 244, 238, 0.72);
  background: rgba(245, 244, 238, 0.035);
  font: 700 17px/1.16 var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.entry-tab span {
  color: var(--mint);
  font-size: 13px;
}

.entry-tab.active,
.entry-tab:hover {
  color: var(--field);
  border-color: rgba(255, 106, 61, 0.5);
  background: rgba(255, 106, 61, 0.1);
}

.code-panel {
  display: flex;
  flex-direction: column;
  height: 528px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 244, 238, 0.13);
  border-radius: 8px;
  background: #0a0c0a;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  color: rgba(245, 244, 238, 0.72);
  border-bottom: 1px solid rgba(245, 244, 238, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.toolbar-dots {
  display: inline-flex;
  gap: 7px;
}

.toolbar-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.toolbar-dots i:nth-child(2) {
  background: var(--amber);
}

.toolbar-dots i:nth-child(3) {
  background: var(--acid);
}

pre {
  flex: 1;
  margin: 0;
  min-height: 0;
  padding: 24px 28px;
  overflow: auto;
  color: #eef8ea;
  font: 500 14px/1.48 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.token-command {
  color: var(--acid);
}

.token-key {
  color: var(--sky);
}

.token-string {
  color: #ffd18a;
}

.token-comment {
  color: #7e8879;
}

.provisioning {
  background: rgba(120, 200, 255, 0.08);
}

.runtime-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto 18px;
}

.runtime-card,
.observability-card,
.connection-card,
.cache-card,
.article-card {
  border: 1px solid rgba(245, 244, 238, 0.12);
  border-radius: 8px;
  background: rgba(245, 244, 238, 0.045);
}

.runtime-card {
  min-height: 214px;
  padding: 24px;
}

.runtime-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 30px;
  border-radius: 8px;
  color: #071007;
  font-size: 16px;
  font-weight: 800;
}

.nano {
  background: var(--acid);
}

.vllm {
  background: var(--mint);
}

.sg {
  background: var(--rose);
}

.llama {
  background: #d8d3c7;
}

.runtime-card h3,
.observability-card h3,
.connection-card h3,
.cache-card h3,
.article-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.12;
}

.runtime-card p,
.observability-card p,
.connection-card p,
.cache-card p,
.network-copy p,
.article-card p {
  color: rgba(245, 244, 238, 0.68);
  line-height: 1.58;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.observability-card,
.connection-card,
.cache-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  min-height: 392px;
  padding: clamp(24px, 3vw, 42px);
}

.connection-card {
  grid-template-columns: minmax(180px, 0.86fr) minmax(280px, 1.14fr);
  gap: clamp(18px, 2.1vw, 28px);
  overflow: hidden;
}

.cache-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
}

.metric-visual {
  position: relative;
  min-height: 244px;
  padding: 18px 0 0;
}

.metric-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.metric-row span {
  height: 12px;
  border-radius: 999px;
  background: rgba(245, 244, 238, 0.12);
}

.metric-row i {
  display: block;
  width: var(--value);
  height: 12px;
  border-radius: 999px;
  background: var(--acid);
  animation: meter 2.8s ease-in-out infinite alternate;
}

.metric-visual svg,
.map-visual svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.metric-visual polyline {
  fill: none;
  stroke: var(--mint);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 10;
  animation: flow-line 9s linear infinite;
}

.metric-visual .chart-glow {
  stroke: rgba(120, 200, 255, 0.18);
  stroke-width: 18;
  filter: blur(8px);
}

.map-visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 280px;
  margin: calc(clamp(24px, 3vw, 42px) * -0.32) calc(clamp(24px, 3vw, 42px) * -0.62) calc(clamp(24px, 3vw, 42px) * -0.32) 0;
  overflow: hidden;
}

.map-visual::before {
  position: absolute;
  inset: 8% 0 8% 8%;
  content: "";
  background: rgba(245, 244, 238, 0.04);
  background-size: auto, 34px 34px, 34px 34px;
  opacity: 0.86;
}

.map-visual svg {
  position: relative;
  width: min(640px, 158%);
  max-width: none;
  min-height: 330px;
  transform: translateX(7%) scale(1.08);
}

.land {
  fill: rgba(245, 244, 238, 0.12);
  stroke: rgba(245, 244, 238, 0.16);
  stroke-width: 1.2;
}

.route {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-dasharray: 9 10;
  animation: flow-line 10s linear infinite;
  filter: drop-shadow(0 0 12px rgba(120, 200, 255, 0.38));
}

.route-soft {
  stroke: rgba(255, 200, 87, 0.54);
  animation-duration: 12s;
}

.node {
  fill: var(--acid);
  filter: drop-shadow(0 0 16px rgba(255, 106, 61, 0.64));
}

.node.ireland {
  fill: #ff355f;
  filter: drop-shadow(0 0 20px rgba(255, 53, 95, 0.9));
}

.node.remote {
  fill: var(--amber);
}

.cache-visual {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(245, 244, 238, 0.045);
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.cache-visual::before {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 280px;
  height: 70px;
  content: "";
  background: rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
}

.request-path {
  position: absolute;
  left: 8%;
  right: 54%;
  height: 1px;
  background: rgba(120, 200, 255, 0.72);
  opacity: 0;
}

.request-path.primary {
  top: 82px;
  animation: request-line-primary 10s ease-in-out infinite;
}

.request-path.secondary {
  top: 116px;
  animation: request-line-secondary 10s ease-in-out infinite;
}

.request-path span {
  position: absolute;
  top: -3px;
  left: 0;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 18px rgba(120, 200, 255, 0.82);
  animation: request-pulse-primary 10s ease-in-out infinite;
}

.request-path.secondary span {
  animation-name: request-pulse-secondary;
}

.node-shell {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: min(420px, 82%);
  min-height: 214px;
  padding: 18px;
  border: 1px solid rgba(120, 200, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 5, 0.86);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 238, 0.04), 0 24px 70px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  animation: node-activity 10s ease-in-out infinite;
}

.runtime-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 112px;
  margin-bottom: 14px;
  padding: 28px 12px 12px;
  border: 1px solid rgba(120, 200, 255, 0.1);
  border-radius: 8px;
  background: rgba(120, 200, 255, 0.015);
}

.runtime-label,
.drain-label,
.cache-layer span {
  position: absolute;
  top: 10px;
  left: 12px;
  color: rgba(245, 244, 238, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.runtime-label {
  animation: runtime-label-state 10s ease-in-out infinite;
}

.drain-label {
  color: #ffc857;
  opacity: 0;
  animation: drain-label-state 10s ease-in-out infinite;
}

.worker {
  position: relative;
  display: block;
  min-height: 54px;
  border: 1px solid rgba(120, 200, 255, 0.42);
  border-radius: 8px;
  background: rgba(9, 22, 24, 0.84);
  box-shadow: inset 0 0 0 1px rgba(245, 244, 238, 0.04), 0 0 24px rgba(120, 200, 255, 0.14);
  opacity: 0;
  transform: translateY(16px) scaleY(0.58);
  transform-origin: bottom;
}

.worker::before,
.worker::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.worker::before {
  left: 12px;
  right: 12px;
  top: 13px;
  height: 8px;
  background: rgba(245, 244, 238, 0.16);
}

.worker::after {
  left: 12px;
  right: 28px;
  bottom: 13px;
  height: 7px;
  background: rgba(120, 200, 255, 0.48);
  box-shadow: 0 0 14px rgba(120, 200, 255, 0.32);
}

.worker-one {
  animation: worker-one-lifecycle 10s ease-in-out infinite;
}

.worker-two {
  animation: worker-two-lifecycle 10s ease-in-out infinite;
}

.worker-three {
  animation: worker-three-lifecycle 10s ease-in-out infinite;
}

.cache-layer {
  position: relative;
  min-height: 68px;
  padding: 30px 12px 12px;
  border: 1px solid rgba(255, 106, 61, 0.34);
  border-radius: 8px;
  background: rgba(18, 10, 7, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 190, 0.05), 0 0 28px rgba(255, 106, 61, 0.12);
  animation: cache-stable 10s ease-in-out infinite;
}

.cache-layer span {
  color: rgba(255, 210, 174, 0.86);
}

.cache-cells {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cache-cells i {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 106, 61, 0.4);
  box-shadow: 0 0 16px rgba(255, 106, 61, 0.18);
}

.network {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.network-copy {
  position: relative;
  z-index: 2;
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  max-width: var(--rail);
  margin: 0 auto;
}

.network-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 32px;
  font-size: clamp(18px, 1.45vw, 22px);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 42px);
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.article-card {
  overflow: hidden;
  background: rgba(245, 244, 238, 0.06);
}

.article-image {
  min-height: 210px;
  border-bottom: 1px solid rgba(245, 244, 238, 0.12);
}

.image-one {
  background: #11140f;
}

.image-two {
  background: #11120f;
}

.image-three {
  background: #0d100c;
}

.article-body {
  padding: 26px;
}

.article-author {
  margin-bottom: 14px;
  color: var(--mint);
}

.article-card h3 {
  min-height: 84px;
}

.article-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--field);
  font-weight: 700;
}

.footer {
  width: min(var(--rail), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 64px 0 26px;
  border-top: 1px solid var(--line);
  color: rgba(245, 244, 238, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(120px, 1fr));
  gap: 36px;
}

.footer-intro p {
  max-width: 280px;
  margin: 18px 0 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: var(--field);
  font-size: 16px;
}

.footer-links a, .footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover, .footer-bottom a:hover {
  color: var(--field);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@keyframes meter {
  from {
    transform: scaleX(0.74);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes flow-line {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes request-line-primary {
  0%,
  9%,
  24%,
  72%,
  100% {
    opacity: 0;
  }
  12%,
  20%,
  82%,
  90% {
    opacity: 0.72;
  }
}

@keyframes request-line-secondary {
  0%,
  22%,
  56%,
  100% {
    opacity: 0;
  }
  36%,
  50% {
    opacity: 0.52;
  }
}

@keyframes request-pulse-primary {
  0%,
  9%,
  24%,
  72%,
  100% {
    left: 0;
    opacity: 0;
  }
  12% {
    left: 0;
    opacity: 1;
  }
  20%,
  90% {
    left: calc(100% - 7px);
    opacity: 0;
  }
  82% {
    left: 0;
    opacity: 1;
  }
}

@keyframes request-pulse-secondary {
  0%,
  22%,
  56%,
  100% {
    left: 0;
    opacity: 0;
  }
  36% {
    left: 0;
    opacity: 1;
  }
  50% {
    left: calc(100% - 7px);
    opacity: 0;
  }
}

@keyframes node-activity {
  0%,
  10%,
  78%,
  100% {
    border-color: rgba(120, 200, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(245, 244, 238, 0.04), 0 24px 70px rgba(0, 0, 0, 0.34);
  }
  22%,
  58%,
  88% {
    border-color: rgba(120, 200, 255, 0.42);
    box-shadow: inset 0 0 0 1px rgba(245, 244, 238, 0.06), 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 34px rgba(120, 200, 255, 0.12);
  }
}

@keyframes worker-one-lifecycle {
  0%,
  14%,
  80%,
  100% {
    border-color: rgba(120, 200, 255, 0.28);
    opacity: 0;
    transform: translateY(16px) scaleY(0.58);
  }
  20%,
  60% {
    border-color: rgba(120, 200, 255, 0.52);
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  70% {
    border-color: rgba(255, 200, 87, 0.72);
    opacity: 0.72;
    transform: translateY(6px) scaleY(0.86);
  }
  84%,
  94% {
    border-color: rgba(120, 200, 255, 0.52);
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes worker-two-lifecycle {
  0%,
  28%,
  78%,
  100% {
    border-color: rgba(120, 200, 255, 0.28);
    opacity: 0;
    transform: translateY(16px) scaleY(0.58);
  }
  34%,
  58% {
    border-color: rgba(120, 200, 255, 0.52);
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  68% {
    border-color: rgba(255, 200, 87, 0.72);
    opacity: 0.58;
    transform: translateY(8px) scaleY(0.76);
  }
}

@keyframes worker-three-lifecycle {
  0%,
  34%,
  74%,
  100% {
    border-color: rgba(120, 200, 255, 0.28);
    opacity: 0;
    transform: translateY(16px) scaleY(0.58);
  }
  40%,
  54% {
    border-color: rgba(120, 200, 255, 0.52);
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  64% {
    border-color: rgba(255, 200, 87, 0.72);
    opacity: 0.48;
    transform: translateY(10px) scaleY(0.68);
  }
}

@keyframes runtime-label-state {
  0%,
  14%,
  74%,
  100% {
    opacity: 0.28;
  }
  20%,
  60%,
  88% {
    opacity: 0.86;
  }
}

@keyframes drain-label-state {
  0%,
  58%,
  80%,
  100% {
    opacity: 0;
  }
  64%,
  72% {
    opacity: 1;
  }
}

@keyframes cache-stable {
  0%,
  100% {
    border-color: rgba(255, 106, 61, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 230, 190, 0.05), 0 0 28px rgba(255, 106, 61, 0.12);
  }
  20%,
  88% {
    border-color: rgba(255, 106, 61, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 230, 190, 0.06), 0 0 36px rgba(255, 106, 61, 0.18);
  }
}

@keyframes cluster-blink {
  0%,
  18%,
  42%,
  72%,
  100% {
    opacity: 0.24;
  }
  10%,
  36%,
  58%,
  84% {
    opacity: 0.76;
  }
}

@keyframes cluster-scan {
  0%,
  68%,
  100% {
    opacity: 0;
    transform: translateX(-34%);
  }
  16% {
    opacity: 0.42;
  }
  44% {
    opacity: 0.16;
    transform: translateX(22%);
  }
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 840px;
  }

  .hero-visual {
    margin: 28px 0 0;
    min-height: auto;
    max-width: 820px;
  }

  .hero-visual img {
    width: min(820px, 104vw);
    min-width: 0;
    margin-inline: auto;
  }

  .entry-grid,
  .ops-grid,
  .cache-card {
    grid-template-columns: 1fr;
  }

  .runtime-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-cta {
    min-height: 42px;
    padding-inline: 16px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-visual {
    display: none;
  }

  .runtime-strip,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .entry-tab {
    min-height: 64px;
    font-size: 15px;
  }

  .code-panel {
    height: 444px;
  }

  pre {
    padding: 16px;
    font-size: 12px;
    line-height: 1.42;
  }

  .observability-card,
  .connection-card,
  .cache-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .map-visual {
    min-height: 240px;
    margin: 0;
  }

  .map-visual::before {
    inset: 4%;
  }

  .map-visual svg {
    width: 118%;
    min-height: 250px;
    transform: none;
  }

  .cache-visual {
    min-height: 260px;
  }

  .network {
    min-height: 560px;
  }

  .article-card h3 {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
  }

  .brand {
    font-size: 20px;
  }

  .nav-links a {
    font-size: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before,
  .hero-visual::after,
  .request-path,
  .request-path span,
  .node-shell,
  .runtime-label,
  .drain-label,
  .worker,
  .cache-layer {
    animation: none;
  }

  .hero-visual::before {
    opacity: 0.42;
  }

  .worker-one {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }

  .runtime-label {
    opacity: 0.86;
  }

  .drain-label {
    opacity: 0;
  }
}
