:root {
  --home-feature-nav: 280px;
  --home-band-min: 112px;
  --home-status-flag-width: 28px;
  --home-status-dot-size: 8px;
}

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

.home-fact-band {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.home-fact-grid {
  display: grid;
  min-height: var(--home-band-min);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.home-fact-grid > div {
  min-width: 0;
  border-right: 1px solid var(--border);
  padding: 20px 28px;
}

.home-fact-grid > div:first-child {
  padding-left: 0;
}

.home-fact-grid > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.home-fact-grid strong,
.home-fact-grid span {
  display: block;
}

.home-fact-grid strong {
  font-family: var(--font-mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.home-fact-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.feature-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: var(--home-feature-nav) minmax(0, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.feature-nav {
  display: grid;
  align-content: start;
  gap: 5px;
}

.feature-nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 13px;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.feature-nav-item::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: var(--radius-xs);
  background: transparent;
  content: "";
  transform: translateY(-50%);
}

.feature-nav-item:hover,
.feature-nav-item[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--text);
}

.feature-nav-item[aria-selected="true"]::before {
  background: var(--accent);
}

.feature-nav-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-nav-item span,
.feature-nav-item b,
.feature-nav-item small {
  display: block;
  min-width: 0;
}

.feature-nav-item b {
  color: inherit;
  font-size: 14px;
}

.feature-nav-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.feature-panels {
  min-width: 0;
}

.feature-panel {
  min-width: 0;
  height: 100%;
}

.feature-panel[hidden] {
  display: none;
}

.feature-panel-body {
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 34px 38px;
  background:
    linear-gradient(145deg, var(--accent-06), transparent 54%),
    var(--panel);
  box-shadow: var(--shadow-panel), inset 0 0 0 1px var(--white-90);
}

.feature-panel-body h3 {
  max-width: 720px;
  margin-top: 18px;
  font-size: clamp(26px, 3vw, 36px);
}

.feature-panel-body p {
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.feature-fact {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: .05em;
}

.feature-mobile-toggle {
  display: none;
}

.section-nodes {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--accent-04);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading-row h2 {
  margin-top: 16px;
}

.section-heading-row .lead {
  margin-bottom: 0;
}

.section-text-link {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.node-advice {
  margin-top: 20px;
}

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

#server-status {
  margin-top: 0;
  margin-bottom: 24px;
}

.server-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
}

.srv-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto var(--home-status-flag-width) minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 11px;
}

.srv-dot {
  width: var(--home-status-dot-size);
  height: var(--home-status-dot-size);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-14);
  animation: server-pulse 2.4s ease-in-out infinite;
}

.srv-flag {
  width: var(--home-status-flag-width);
  height: 19px;
  overflow: hidden;
  border-radius: var(--radius-xs);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--ink-10);
}

.srv-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-type {
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  background: var(--accent-08);
  color: var(--accent-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-ms,
.srv-bw {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@keyframes server-pulse {
  0%,
  100% {
    opacity: .6;
    transform: scale(.86);
  }

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

.client-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--panel-2);
}

.client-note h3 {
  margin-bottom: 6px;
  font-size: 19px;
}

.client-note p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.client-note a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.pricing-preview {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.plan-audience {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.traffic-pack-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  background:
    linear-gradient(135deg, var(--accent-10), transparent 72%),
    var(--panel-2);
}

.traffic-pack-note .mono {
  color: var(--accent-dark);
  font-size: 11px;
  letter-spacing: .08em;
}

.traffic-pack-note h3 {
  margin-top: 8px;
}

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

.selection-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.selection-intro {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  min-width: 0;
}

.selection-intro h2 {
  margin-top: 18px;
}

.selection-line {
  width: 100%;
  height: auto;
  margin-top: 28px;
  color: var(--accent);
  opacity: .55;
}

.selection-steps {
  display: grid;
  gap: 12px;
}

.selection-steps article {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 26px 24px 58px;
  background: var(--panel);
  box-shadow: 0 18px 42px -38px var(--accent-18);
}

.selection-steps article::before {
  position: absolute;
  top: 28px;
  left: 25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-10);
  content: "";
}

.selection-steps article:not(:last-child)::after {
  position: absolute;
  top: 42px;
  bottom: -28px;
  left: 29px;
  width: 1px;
  background: var(--border);
  content: "";
}

.selection-steps .mono {
  color: var(--accent-dark);
  font-size: 10px;
  letter-spacing: .1em;
}

.selection-steps h3 {
  margin-top: 7px;
  font-size: 20px;
}

.selection-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-section {
  border-top: 1px solid var(--border);
  background: var(--accent-04);
}

.faq-wrap {
  max-width: calc(var(--reading-width) + 240px);
}

.faq-wrap h2 {
  margin-top: 18px;
}

.faq-wrap .lead {
  margin-bottom: 30px;
}

.faq-more {
  margin-top: 18px;
}

.blog-preview {
  background: var(--panel);
}

.blog-preview .article-card h3 {
  text-wrap: pretty;
}

@media (max-width: 1100px) {
  .home-fact-grid > div {
    padding-inline: 20px;
  }

  .feature-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .server-status {
    grid-template-columns: 1fr;
  }

  .selection-layout {
    gap: 34px;
  }
}

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

  .home-fact-grid > div,
  .home-fact-grid > div:first-child,
  .home-fact-grid > div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px 12px;
  }

  .home-fact-grid > div:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .home-fact-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .feature-workspace {
    display: block;
  }

  .feature-nav {
    display: none;
  }

  .feature-panels {
    display: grid;
    gap: 10px;
  }

  .feature-panel,
  .feature-panel[hidden] {
    display: block;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
  }

  .feature-mobile-toggle {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    padding: 13px 48px 13px 18px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--text);
    font-weight: 700;
    text-align: left;
  }

  .feature-mobile-toggle::after {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--accent);
    content: "+";
    font-family: var(--font-mono);
    font-size: 22px;
    transform: translateY(-50%);
  }

  .feature-mobile-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .feature-panel-body {
    min-height: 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 24px 20px;
    box-shadow: none;
  }

  .feature-mobile-toggle[aria-expanded="false"] + .feature-panel-body {
    display: none;
  }

  .feature-panel-body h3 {
    font-size: 25px;
  }

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

  .client-note,
  .traffic-pack-note {
    grid-template-columns: 1fr;
  }

  .selection-layout {
    grid-template-columns: 1fr;
  }

  .selection-intro {
    position: static;
  }

  .selection-line {
    display: none;
  }
}

@media (max-width: 640px) {
  .home-fact-grid strong {
    font-size: 18px;
  }

  .home-fact-grid span {
    font-size: 11px;
  }

  .srv-row {
    grid-template-columns: auto var(--home-status-flag-width) minmax(0, 1fr) auto;
    gap: 7px;
    padding-inline: 10px;
  }

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

  .client-note,
  .traffic-pack-note {
    padding: 20px;
  }

  .selection-steps article {
    padding: 22px 20px 22px 48px;
  }

  .selection-steps article::before {
    left: 20px;
  }

  .selection-steps article:not(:last-child)::after {
    left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .srv-dot {
    animation: none;
  }
}