:root {
  --home-hero-width: 930px;
  --home-copy-width: 880px;
  --home-tablet-break: 860px;
  --home-status-min: 250px;
}

.home-hero {
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(48px, 7vw, 82px);
  border-bottom: 1px solid var(--color-border);
}

.hero-copy {
  max-width: calc(var(--home-hero-width) + (var(--gutter) * 2));
  text-align: center;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  max-width: var(--home-copy-width);
  margin-right: auto;
  margin-bottom: 26px;
  margin-left: auto;
}

.hero-title .kinetic-line + .kinetic-line {
  margin-left: .24em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-summary {
  max-width: 800px;
  margin: 0 auto 16px;
  color: var(--color-text-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.75;
}

.hero-summary strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0 auto 18px;
  padding: 0;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  list-style: none;
}

.hero-trust li {
  position: relative;
  padding-left: 14px;
}

.hero-trust li::before {
  position: absolute;
  top: .67em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  content: "";
}

.hero-platforms {
  margin-bottom: 14px;
}

.hero-platforms li {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.hero-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-flags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.hero-flags .flag-icon {
  width: 20px;
  height: 13px;
}

.flag-icon path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-device {
  max-width: calc(var(--hero-window-width) + (var(--gutter) * 2));
  margin-top: clamp(28px, 4vw, 42px);
}

.hero-console {
  width: 100%;
}

.hero-console .console-route {
  font-family: var(--font-mono);
}

.hero-console .console-tunnel {
  min-height: 214px;
}

.fact-band {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.fact-band-inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.fact-band-inner span {
  flex: 0 0 auto;
  padding: 0 22px;
  border-right: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

.fact-band-inner span:last-child {
  border-right: 0;
}

.fact-band-inner strong {
  color: var(--color-text);
  font-weight: 600;
}

.section-intro {
  max-width: 820px;
  margin-bottom: 34px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.85;
}

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

.feature-detail p:not(.eyebrow) {
  max-width: 810px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.feature-detail h3 {
  max-width: 760px;
}

.feature-sketch svg {
  max-width: 640px;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(36px, 7vw, 92px);
}

.method-copy {
  padding-left: clamp(24px, 4vw, 48px);
  border-left: 1px solid var(--color-border);
}

.method-copy p {
  color: var(--color-text-muted);
  line-height: 1.95;
}

.method-register {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 46px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-muted);
}

.method-register .mono {
  display: block;
  margin-bottom: 8px;
  color: var(--color-accent-strong);
  font-size: 11px;
  letter-spacing: .1em;
}

.method-register h3 {
  margin-bottom: 7px;
}

.method-register p {
  max-width: 690px;
  margin: 0;
  color: var(--color-text-muted);
}

.method-register .btn {
  flex: 0 0 auto;
}

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

.section-link {
  flex: 0 0 auto;
  margin-bottom: 20px;
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.route-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
}

.route-notes article {
  padding: 24px;
  border-right: 1px solid var(--color-border);
}

.route-notes article:last-child {
  border-right: 0;
}

.route-notes .mono {
  display: block;
  margin-bottom: 12px;
  color: var(--color-accent-strong);
  font-size: 11px;
  letter-spacing: .1em;
}

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

.route-notes p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.status-reference {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  gap: 28px;
  margin-top: 28px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-muted);
}

.status-reference-copy p:last-child {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

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

.server-status:empty {
  min-height: 90px;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius-sm);
}

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

.srv-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-success);
}

.srv-flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  object-fit: cover;
}

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

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

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

.platform-card {
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.platform-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.platform-card svg {
  flex-shrink: 0;
}

.platform-card p {
  line-height: 1.75;
}

.traffic-pack {
  margin-top: 24px;
}

.traffic-pack p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.plan-guidance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.plan-guidance article {
  padding: 28px 26px;
  border-right: 1px solid var(--color-border);
}

.plan-guidance article:last-child {
  border-right: 0;
}

.plan-guidance h3 {
  font-size: 19px;
}

.plan-guidance p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

.home-article-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-article-grid .article-card h3 {
  font-size: 19px;
}

.promo-block {
  min-height: 210px;
}

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

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

@media (max-width: 900px) {
  .hero-device {
    max-width: 680px;
  }

  .method-layout,
  .status-reference {
    grid-template-columns: 1fr;
  }

  .method-copy {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .route-notes,
  .plan-guidance {
    grid-template-columns: 1fr;
  }

  .route-notes article,
  .plan-guidance article {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .route-notes article:last-child,
  .plan-guidance article:last-child {
    border-bottom: 0;
  }
}

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

  .hero-title .kinetic-line {
    display: block;
  }

  .hero-title .kinetic-line + .kinetic-line {
    margin-top: 5px;
    margin-left: 0;
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-trust {
    gap: 7px 14px;
  }

  .hero-platforms {
    gap: 13px;
  }

  .hero-device {
    margin-top: 26px;
  }

  .hero-console .console-tunnel {
    min-height: 0;
  }

  .fact-band-inner {
    justify-content: flex-start;
  }

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

  .section-link {
    margin-bottom: 24px;
  }

  .method-register {
    align-items: flex-start;
    flex-direction: column;
  }

  .method-register .btn {
    width: 100%;
  }

  .home-article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    padding-inline: 14px;
  }

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

  .hero-platforms li {
    justify-content: center;
    padding: 7px 5px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    background: var(--color-panel);
  }

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

  .hero-flags li {
    min-width: 0;
    justify-content: center;
    padding-inline: 6px;
  }

  .hero-console .console-tunnel {
    padding: 14px 10px;
  }

  .tunnel-diagram {
    margin-top: 4px;
  }

  .fact-band-inner span {
    padding-inline: 16px;
  }

  .feature-detail {
    padding: 24px 20px;
  }

  .route-notes article,
  .plan-guidance article {
    padding: 22px 20px;
  }

  .status-reference {
    padding: 20px;
  }

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

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

  .srv-type {
    display: none;
  }

  .promo-block {
    min-height: 0;
  }
}

@media (max-width: 390px) {
  .hero-platforms,
  .hero-flags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-trust {
    align-items: flex-start;
    flex-direction: column;
    width: max-content;
    max-width: 100%;
    text-align: left;
  }

  .srv-bw {
    display: none;
  }

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