.device {
  position: relative;
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
  overflow-x: clip;
  max-width: 100%;
}

.rig {
  position: relative;
  width: 348px;
  max-width: 100%;
}

.curtain {
  position: absolute;
  z-index: 0;
  inset: -36px -70px;
  background: repeating-linear-gradient(90deg, var(--color-curtain) 0 1px, transparent 1px 9px);
  mask-image: radial-gradient(ellipse 52% 60% at 50% 50%, var(--color-mask) 28%, transparent 100%);
  pointer-events: none;
  animation: curtain-breathe 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 52% 60% at 50% 50%, var(--color-mask) 28%, transparent 100%);
}

.stack {
  position: relative;
  z-index: 2;
  display: flex;
  width: 300px;
  flex-direction: column;
  gap: 12px;
  margin-left: 48px;
}

.pcard {
  --card-shift: 0px;
  --card-opacity: 1;
}

.pcard:nth-child(1) {
  --card-opacity: .6;
}

.pcard:nth-child(2) {
  --card-shift: -24px;
}

.pcard:nth-child(3) {
  --card-shift: -48px;
}

.pcard:nth-child(4) {
  --card-shift: -24px;
}

.pcard:nth-child(5) {
  --card-opacity: .6;
}

.pcard-ic,
.pcard-name,
.status,
.tg {
  flex-shrink: 0;
}

.tg-fill,
.tg-knob {
  display: none;
}

.fl-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.fl-txt span {
  color: var(--color-text);
  font-size: 13px;
}

.copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.h1-a,
.h1-b {
  display: block;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
}

.btn-main {
  min-height: 52px;
  padding-inline: 30px;
}

.link-arrow {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.lede {
  max-width: 32em;
  margin-bottom: 22px;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.trust,
.plat {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust svg {
  color: var(--color-accent);
}

.plat {
  display: flex;
  align-self: stretch;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.plat li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.plat-label {
  margin-right: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.flag-wall {
  margin-top: 44px;
}

.wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.wall-label {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.wall-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.wall-more:hover {
  color: var(--color-accent);
}

.wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.cell {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 550;
  transition:
    color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) ease;
}

.cell:hover {
  transform: translateY(-2px);
  border-color: var(--color-edge-strong);
  color: var(--color-text);
}

.flag-box {
  position: relative;
  width: 28px;
  height: 20px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-flag-edge);
  border-radius: 5px;
}

.flag-box svg {
  width: 28px;
  height: 20px;
}

.flag-red-fill {
  fill: var(--color-flag-red);
}

.flag-blue-fill {
  fill: var(--color-flag-blue);
}

.flag-white-fill {
  fill: var(--color-flag-white);
}

.linux-belly {
  fill: var(--color-text-muted);
}

.linux-eye {
  fill: var(--color-bg);
}

.fact-strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.fact-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact-strip-grid > div {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 14px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

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

.fact-strip strong {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.fact-strip span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading .eyebrow {
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 17px;
}

.section-heading-split {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading-split > div {
  max-width: 760px;
}

.section-heading-split h2 {
  margin-bottom: 0;
}

.import-window-title {
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 11px;
}

.import-action {
  min-height: 36px;
  padding: 7px 16px;
  font-size: 13px;
}

.import-result {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid var(--color-accent-edge);
  border-radius: var(--radius-md);
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
}

.route-section,
.pricing-preview,
.blog-preview {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.route-intro,
.pricing-intro {
  max-width: 900px;
  margin-bottom: 32px;
  font-size: 16px;
}

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

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

.server-status:empty + .table-scroll {
  margin-top: 0;
}

.srv-row {
  display: grid;
  min-width: 0;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.srv-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-accent-glow);
  animation: server-pulse 2.4s ease-in-out infinite;
}

.srv-flag {
  display: grid;
  width: 26px;
  height: 20px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-flag-edge);
  border-radius: 5px;
  background: var(--color-panel);
}

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

.srv-type {
  max-width: 100%;
  padding: 2px 7px;
  overflow: hidden;
  border: 1px solid var(--color-accent-edge);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-ms,
.srv-bw {
  color: var(--color-text-muted);
  white-space: nowrap;
}

@keyframes server-pulse {
  50% {
    opacity: .55;
    transform: scale(.82);
  }
}

.traffic-pack-note {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 26px 28px;
}

.traffic-pack-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.traffic-pack-note p {
  margin-bottom: 0;
}

.faq-wrap {
  max-width: 980px;
}

@media (max-width: 1100px) {
  .device {
    order: 2;
    min-height: 470px;
  }

  .copy {
    order: 1;
  }

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

@media (max-width: 768px) {
  .device {
    display: flex;
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .rig {
    width: 100%;
  }

  .curtain {
    inset: -16px -24px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, var(--color-mask) 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, var(--color-mask) 20%, transparent 100%);
  }

  .stack {
    width: 100%;
    margin-left: 0;
  }

  .pcard:nth-child(n) {
    --card-shift: 0px;
  }

  .rig-tag {
    margin-left: 0;
  }

  .fl {
    position: static;
    align-self: flex-start;
    margin-top: 12px;
  }

  .wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .fact-strip-grid > div:nth-child(2) {
    border-right: 0;
  }

  .fact-strip-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

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

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

@media (max-width: 640px) {
  .cta-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .lede {
    font-size: 16px;
  }

  .plat {
    gap: 8px 12px;
  }

  .cell {
    gap: 7px;
    font-size: 12px;
  }

  .fact-strip-grid > div {
    min-height: 78px;
    padding: 12px 8px;
  }

  .srv-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .srv-type {
    display: none;
  }

  .srv-bw {
    grid-column: 3 / -1;
    text-align: right;
  }

  .traffic-pack-note {
    padding: 22px;
  }
}

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