:root {
  --home-hero-space: clamp(54px, 7vw, 98px);
  --home-copy-max: 710px;
  --home-visual-max: 500px;
  --home-client-width: 430px;
  --home-client-border: 2px;
  --home-art-stroke: 5px;
  --home-line-thin: 3px;
  --home-status-columns: 2;
  --home-panel-glow: 0 30px 70px -34px var(--color-shadow-accent);
  --home-client-depth: 16px 18px 0 var(--color-panel-alt), var(--shadow-device);
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-height));
  padding-top: var(--home-hero-space);
  padding-bottom: clamp(62px, 8vw, 110px);
  background:
    radial-gradient(circle at 83% 24%, var(--color-hill-far), transparent 34%),
    linear-gradient(180deg, var(--color-bg), var(--color-bg));
}

.home-hero::after {
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 62%;
  height: 58%;
  border-radius: var(--radius-pill);
  background: var(--color-hill-mid);
  opacity: 0.48;
  content: "";
  transform: rotate(-8deg);
}

.home-hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.9fr);
  align-items: center;
  gap: clamp(38px, 6vw, 84px);
}

.home-hero__copy {
  max-width: var(--home-copy-max);
}

.home-hero__copy h1 {
  max-width: 690px;
  margin-top: 19px;
}

.home-hero__actions {
  margin-top: 27px;
}

.home-hero__summary {
  max-width: 680px;
  margin-top: 23px;
  color: var(--color-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.78;
}

.home-hero__summary strong {
  color: var(--color-text);
  font-weight: 760;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-facts li {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  padding: 5px 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 680;
  box-shadow: var(--shadow-soft);
}

.hero-facts li::before {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  margin-right: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  content: "";
}

.home-access-capsule {
  max-width: 690px;
  margin-top: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: 13px 17px;
  box-shadow: var(--shadow-soft);
}

.home-platforms,
.home-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 17px;
}

.home-platforms {
  padding-bottom: 11px;
}

.home-flags {
  border-top: 1px solid var(--color-border);
  padding-top: 11px;
}

.home-platforms li,
.home-flags li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}

.home-platforms svg {
  width: 17px;
  height: 17px;
  color: var(--color-accent-dark);
}

.home-flags svg {
  width: 25px;
  height: 17px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--color-border);
}

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

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

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

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

.home-hero__visual {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.hero-orbit--back {
  width: 430px;
  height: 430px;
  border: 2px dashed var(--color-tint-lavender);
  opacity: 0.72;
  transform: rotate(16deg);
}

.hero-orbit--front {
  width: 330px;
  height: 470px;
  border: 18px solid var(--color-hill-mid);
  opacity: 0.58;
  transform: rotate(36deg);
}

.home-client {
  position: relative;
  z-index: 3;
  width: min(var(--home-client-width), 100%);
  overflow: hidden;
  border: var(--home-client-border) solid var(--color-panel);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--home-client-depth);
  transform: rotate(1.2deg);
}

.home-client__bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-alt);
  padding: 0 18px;
}

.home-client__bar strong {
  margin-left: 7px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.home-client__dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
}

.home-client__dot--error {
  background: var(--color-error);
}

.home-client__dot--warning {
  background: var(--color-warning);
}

.home-client__dot--success {
  background: var(--color-success);
}

.home-client__body {
  padding: 21px;
}

.home-client__heading,
.home-client__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-client__heading > div,
.home-client__footer > div {
  display: grid;
  gap: 2px;
}

.home-client__heading span,
.home-client__footer span {
  color: var(--color-muted);
  font-size: 11px;
}

.home-client__heading strong,
.home-client__footer strong {
  font-size: 13px;
}

.home-client__route {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  border-radius: var(--radius-md);
  background: var(--color-hill-far);
  padding: 14px;
}

.home-client__route-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 0 0 7px var(--color-hill-mid);
}

.home-client__route-mark::after {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  content: "";
}

.home-client__route strong {
  display: block;
  font-size: 13px;
}

.home-client__route p {
  margin-top: 1px;
  color: var(--color-muted);
  font-size: 11px;
}

.home-client__map {
  position: relative;
  height: 164px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px),
    var(--color-bg);
  background-size: 28px 28px;
}

.home-client__map svg {
  width: 100%;
  height: 144px;
}

.mock-route {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.mock-route--lavender {
  stroke: var(--color-tint-lavender);
}

.mock-route--teal {
  stroke: var(--color-tint-teal);
}

.mock-node--accent {
  fill: var(--color-accent);
}

.mock-node--teal {
  fill: var(--color-success);
}

.mock-node--orange {
  fill: var(--color-warning);
}

.mock-node--cream {
  fill: var(--color-tint-cream);
}

.map-label {
  position: absolute;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  padding: 3px 8px;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.map-label--source {
  left: 7px;
  bottom: 17px;
}

.map-label--hub {
  left: 43%;
  top: 65px;
}

.map-label--north {
  right: 4px;
  top: 25px;
}

.map-label--west {
  right: 2px;
  bottom: 22px;
}

.home-client__footer {
  margin-top: 17px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}

.home-client__switch {
  width: 44px;
  height: 25px;
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  padding: 3px;
}

.home-client__switch::after {
  width: 19px;
  height: 19px;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  content: "";
}

.home-client-shadow {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  width: 76%;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-shadow-dark);
  filter: blur(22px);
  opacity: 0.42;
}

.art-line,
.art-check,
.art-ring {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.art-line {
  stroke-width: var(--home-line-thin);
}

.art-line--dark {
  stroke: var(--color-accent-dark);
}

.art-line--light {
  stroke: var(--color-panel);
}

.art-panel {
  fill: var(--color-panel);
}

.art-panel-alt {
  fill: var(--color-panel-alt);
}

.art-accent {
  fill: var(--color-accent);
}

.art-shield {
  fill: var(--color-panel);
  stroke: var(--color-accent-dark);
  stroke-width: var(--home-line-thin);
}

.art-check {
  stroke: var(--color-accent-dark);
  stroke-width: var(--home-art-stroke);
}

.art-play {
  fill: var(--color-accent);
}

.art-ring {
  stroke: var(--color-accent-dark);
  stroke-width: var(--home-art-stroke);
}

.art-arrow {
  fill: var(--color-accent-dark);
}

.feature-note {
  margin-top: 42px;
}

.network-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 27px;
}

.network-guidance h3 {
  font-size: 21px;
}

.network-guidance p {
  margin-top: 10px;
  color: var(--color-muted);
}

.server-live-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1.35fr);
  gap: 28px;
  margin-top: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: var(--shadow-soft);
}

.server-live-copy h3 {
  font-size: 22px;
}

.server-live-copy p {
  margin-top: 10px;
  color: var(--color-muted);
}

.server-status {
  display: grid;
  grid-template-columns: repeat(var(--home-status-columns), minmax(0, 1fr));
  gap: 10px;
}

.srv-row {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  padding: 9px 11px;
}

.srv-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-hill-mid);
  animation: server-pulse 2.4s ease-in-out infinite;
}

.srv-flag {
  width: 24px;
  height: 16px;
  overflow: hidden;
  border-radius: 4px;
  object-fit: cover;
}

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

.srv-type {
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-panel-alt);
  padding: 3px 7px;
  color: var(--color-muted);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.srv-ms,
.srv-bw {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.srv-bw {
  color: var(--color-success);
}

@keyframes server-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.88);
  }

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

.section-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 28px;
  color: var(--color-accent);
  font-weight: 740;
}

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

.plan-context {
  min-height: 108px;
  margin-top: 15px;
  color: var(--color-muted);
  font-size: 14px;
}

.traffic-pack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 34px;
  margin-top: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-hill-far);
  padding: clamp(24px, 4vw, 40px);
}

.traffic-pack-panel h3 {
  margin-top: 12px;
  font-size: 24px;
}

.traffic-pack-panel p {
  margin-top: 10px;
  color: var(--color-muted);
}

.traffic-pack-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.traffic-pack-list li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.traffic-pack-list strong {
  font-family: var(--font-display);
  font-size: 19px;
}

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

.plan-rule {
  margin-top: 22px;
}

#blog-preview .article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
    gap: 30px;
  }

  .home-hero__visual {
    min-height: 470px;
  }

  .hero-orbit--back {
    width: 360px;
    height: 360px;
  }

  .hero-orbit--front {
    width: 280px;
    height: 390px;
  }

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

@media (max-width: 860px) {
  .home-hero__layout {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    max-width: none;
  }

  .home-hero__visual {
    min-height: 500px;
  }

  .home-client {
    width: min(var(--home-client-width), calc(100% - 30px));
  }

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

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

@media (max-width: 768px) {
  .home-hero {
    padding-top: 38px;
    padding-bottom: 72px;
  }

  .home-hero::after {
    right: -38%;
    bottom: -10%;
    width: 108%;
    height: 35%;
  }

  .home-hero__copy h1 {
    margin-top: 15px;
  }

  .home-hero__actions {
    margin-top: 20px;
  }

  .home-hero__summary {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-facts {
    margin-top: 14px;
  }

  .home-access-capsule {
    margin-top: 15px;
  }

  .home-platforms,
  .home-flags {
    gap: 9px 13px;
  }

  .home-hero__visual {
    min-height: 445px;
  }

  .home-client {
    transform: none;
  }

  .hero-orbit--back {
    width: 320px;
    height: 320px;
  }

  .hero-orbit--front {
    width: 245px;
    height: 345px;
  }

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

  #blog-preview .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-hero__copy .eyebrow {
    font-size: 12px;
  }

  .hero-facts li {
    font-size: 11px;
  }

  .home-access-capsule {
    padding: 11px 12px;
  }

  .home-platforms li,
  .home-flags li {
    font-size: 10px;
  }

  .home-hero__visual {
    min-height: 390px;
  }

  .home-client__body {
    padding: 15px;
  }

  .home-client__map {
    height: 142px;
  }

  .hero-orbit--back {
    width: 280px;
    height: 280px;
  }

  .hero-orbit--front {
    width: 220px;
    height: 310px;
    border-width: 13px;
  }

  .network-guidance {
    grid-template-columns: 1fr;
  }

  .server-live-panel {
    padding: 20px;
  }

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

  .srv-type {
    display: none;
  }

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

  .traffic-pack-list li {
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .home-platforms,
  .home-flags {
    justify-content: space-between;
  }

  .home-platforms li,
  .home-flags li {
    flex: 0 1 auto;
  }

  .home-platforms svg {
    width: 15px;
    height: 15px;
  }

  .home-flags svg {
    width: 23px;
    height: 15px;
  }

  .home-client__heading .badge {
    display: none;
  }

  .home-client__footer strong {
    font-size: 11px;
  }

  .map-label--hub {
    left: 39%;
  }
}

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