/* ============================================================
   VPNXE Design System — Nodes Page
   ============================================================ */

/* ---------- SVG Sprite ---------- */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Section Rhythm ---------- */
.sec {
  padding-top: 72px;
  padding-bottom: 72px;
}

/* ---------- Section Head ---------- */
.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-head p {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Heading Highlight ---------- */
h1 .hl,
h2 .hl,
h3 .hl {
  color: var(--accent);
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding-top: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-soft);
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(44px, 5vw, 64px);
}

.page-hero .hero-sub {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.page-hero .hero-sub strong {
  color: var(--text);
  font-weight: 800;
}

.page-hero .trust {
  margin-top: 18px;
}

/* ---------- Region Table ---------- */
.region-section {
  margin-bottom: 48px;
}

.region-section:last-child {
  margin-bottom: 0;
}

.region-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.region-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: var(--r-pill);
  flex: none;
}

.region-title .count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 2px 10px;
}

/* ---------- Line Type Cards ---------- */
.line-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.line-type-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px 24px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.line-type-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.line-type-card .type-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  background: var(--accent-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.line-type-card .type-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent-dark);
}

.line-type-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.line-type-card .type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-tint);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}

.line-type-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.line-type-card .cost-note {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

/* ---------- Selection Guide ---------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .15s, box-shadow .15s;
}

.guide-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.guide-card .guide-num {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--lift);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.guide-card .guide-body {
  flex: 1;
  min-width: 0;
}

.guide-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.guide-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.guide-card .guide-tip {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}

/* ---------- Region Wall ---------- */
.region-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}

.region-chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.region-chip svg {
  width: 24px;
  height: 16px;
  flex: none;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--panel2);
  border-top: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 64px;
}

.cta-band-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 8px;
}

.cta-band p {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
}

.cta-band p strong {
  color: var(--text);
  font-weight: 800;
}

.cta-band .btn-main {
  flex: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .line-type-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero .hero-sub {
    font-size: 15px;
  }

  .sec {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cta-band {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .cta-band-in {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn-main {
    width: 100%;
  }
}