:root {
  --home-section-copy: 680px;
  --home-route-grid: 720px;
  --home-pattern-size: 64px;
  --home-status-dot: 8px;
  --home-topology-glow: .18;
  --home-grain-opacity: .12;
}

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

.flag-edge {
  fill: none;
  stroke: var(--overlay-edge);
  stroke-width: 1;
}

.grain-fill {
  fill: var(--color-text);
  opacity: var(--home-grain-opacity);
}

.hero-device {
  display: contents;
}

.hero-cta-row {
  justify-content: center;
  margin-bottom: 20px;
}

.hero-copy .hero-lede {
  margin-bottom: 18px;
}

.route-type-iepl {
  background: var(--tint-mint);
  color: var(--color-success);
}

.route-type-relay {
  background: var(--tint-lilac);
  color: var(--color-lilac);
}

.route-type-direct {
  background: var(--tint-sky);
  color: var(--color-sky);
}

.topology-glow {
  opacity: var(--home-topology-glow);
}

.topology-pulse {
  fill: var(--color-accent);
  transform-origin: center;
  animation: home-path-pulse 2.6s ease-in-out infinite;
}

@keyframes home-path-pulse {
  0%,
  100% {
    opacity: .2;
    transform: translateY(28px);
  }

  50% {
    opacity: 1;
    transform: translateY(-28px);
  }
}

.section-heading {
  max-width: var(--home-section-copy);
  margin-bottom: 34px;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  align-items: end;
  gap: clamp(28px, 6vw, 88px);
}

.split-heading > p {
  max-width: 620px;
  justify-self: end;
}

.route-preview-section {
  position: relative;
  padding-top: calc(var(--section-space) + 40px);
  background: var(--color-bg);
}

.status-panel {
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--overlay-edge);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: inset 0 1px 0 var(--overlay-top), var(--shadow-card);
}

.status-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.status-panel-head h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.status-panel-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

#server-status {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  overflow: hidden;
}

#server-status:empty {
  display: none;
}

.server-status {
  min-width: 0;
}

.server-status .srv-grid,
.server-status > div {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.server-status .srv-row {
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: var(--home-status-dot) 26px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--overlay-line);
  border-radius: var(--radius-sm);
  background: var(--color-panel-raised);
}

.server-status .srv-dot {
  width: var(--home-status-dot);
  height: var(--home-status-dot);
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--tint-mint);
  animation: home-status-breathe 2.4s ease-in-out infinite;
}

.server-status .srv-flag {
  width: 24px;
  height: 18px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.server-status .srv-name {
  min-width: 0;
  overflow: hidden;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-status .srv-type {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  background: var(--tint-sky);
  color: var(--color-sky);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-status .srv-ms,
.server-status .srv-bw {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@keyframes home-status-breathe {
  0%,
  100% {
    opacity: .55;
    transform: scale(.88);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.route-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.route-guide {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--overlay-edge);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: inset 0 1px 0 var(--overlay-top);
}

.route-guide > .mono {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 8px;
  border: 1px solid var(--accent-35);
  border-radius: var(--radius-xs);
  background: var(--accent-12);
  color: var(--color-accent);
  font-size: 11px;
}

.route-guide h3 {
  font-size: 19px;
}

.route-guide p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.section-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--overlay-line);
}

.section-link-row p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-muted);
}

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--color-accent);
  font-weight: 750;
  white-space: nowrap;
}

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

.feature-workbench {
  position: relative;
  isolation: isolate;
}

.feature-workbench .wrap {
  position: relative;
  z-index: 2;
}

.feature-sketch {
  position: absolute;
  width: var(--home-pattern-size);
  height: var(--home-pattern-size);
  color: var(--color-text);
  opacity: .04;
  pointer-events: none;
}

.sketch-flag {
  top: 12%;
  left: 4%;
  transform: rotate(-8deg);
}

.sketch-shield {
  right: 5%;
  top: 18%;
  transform: rotate(7deg);
}

.sketch-server {
  bottom: 12%;
  left: 7%;
  transform: rotate(4deg);
}

.sketch-bolt {
  right: 9%;
  bottom: 9%;
  transform: rotate(-6deg);
}

.feature-card .icon-plate {
  margin-bottom: 22px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  margin-bottom: 0;
}

.pricing-preview {
  background:
    radial-gradient(circle at 7% 18%, var(--accent-06), var(--color-transparent) 28%),
    var(--color-bg);
}

.plan-icon {
  margin-bottom: 22px;
}

.plan-summary {
  min-height: 132px;
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.traffic-pack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--accent-35);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
  box-shadow: inset 0 1px 0 var(--overlay-top), var(--shadow-card);
}

.traffic-pack-panel h3 {
  margin-bottom: 10px;
}

.traffic-pack-panel p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
}

.pack-list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pack-list li {
  display: grid;
  min-width: 112px;
  gap: 4px;
  padding: 15px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  text-align: center;
}

.pack-list strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 22px;
}

.pack-list span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pricing-notes article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--overlay-edge);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.pricing-notes h3 {
  font-size: 19px;
}

.pricing-notes p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.blog-preview .article-card h3 {
  font-size: 20px;
}

.blog-followup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--overlay-edge);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
  box-shadow: inset 0 1px 0 var(--overlay-top);
}

.blog-followup h3 {
  margin-bottom: 8px;
}

.blog-followup p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--color-muted);
}

.blog-followup .btn-row {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .server-status .srv-row {
    grid-template-columns: var(--home-status-dot) 26px minmax(0, 1fr) auto auto;
  }

  .server-status .srv-bw {
    display: none;
  }

  .traffic-pack-panel {
    grid-template-columns: 1fr;
  }

  .pack-list {
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {
  .route-preview-section {
    padding-top: calc(var(--section-space) + 28px);
  }

  .split-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

  .split-heading > p {
    justify-self: start;
  }

  .route-guides,
  .pricing-notes {
    grid-template-columns: 1fr;
  }

  .plan-summary {
    min-height: 0;
  }

  .blog-followup {
    grid-template-columns: 1fr;
  }

  .blog-followup .btn-row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .server-status .srv-grid,
  .server-status > div {
    grid-template-columns: 1fr;
  }

  .status-panel-head {
    flex-direction: column;
    gap: 12px;
  }

  .section-link-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .pack-list {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pack-list li {
    min-width: 0;
    padding-inline: 10px;
  }

  .feature-sketch {
    display: none;
  }
}

@media (max-width: 640px) {
  .route-preview-section {
    padding-top: calc(var(--section-space) + 18px);
  }

  .server-status .srv-row {
    grid-template-columns: var(--home-status-dot) 24px minmax(0, 1fr) auto;
  }

  .server-status .srv-type,
  .server-status .srv-bw {
    display: none;
  }

  .server-status .srv-name {
    white-space: normal;
  }

  .route-guide,
  .pricing-notes article {
    padding: 20px;
  }

  .traffic-pack-panel {
    gap: 24px;
  }

  .pack-list {
    grid-template-columns: 1fr;
  }

  .section-link-row .text-link {
    white-space: normal;
  }

  .blog-followup .btn-row {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-followup .btn,
  .blog-followup .text-link {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topology-pulse,
  .server-status .srv-dot {
    animation: none;
  }
}