/* ==========================================================================
   NZVPN Design System · nodes.css
   Page-specific styles for servers.html
   ========================================================================== */

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--bg) 100%) top/100% 480px no-repeat,
    var(--bg);
}

.page-hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-hero .hero-badge {
  margin-bottom: 18px;
}

.page-hero h1 {
  margin-top: 0;
  font-size: clamp(40px, 5vw, 56px);
}

.page-hero .lead {
  margin-top: 14px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.badge-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Section Head ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  margin-top: 0;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- Feature Stack (Prisma style) ---------- */
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row:nth-child(even) .feature-text {
  order: 2;
}

.feature-row:nth-child(even) .feature-visual {
  order: 1;
}

.feature-text .eyebrow {
  margin-bottom: 10px;
  display: block;
}

.feature-text h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0;
}

.feature-text p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.feature-visual svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

/* ---------- Solid Line (IEPL illustration) ---------- */
.rl-solid {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- Note ---------- */
.note {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
}

.section-note {
  margin-top: 48px;
}

/* ---------- Stability Section ---------- */
.stability-content {
  max-width: 820px;
  margin: 0 auto;
}

.stability-content p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.stability-content .callout {
  margin-top: 24px;
}

/* ---------- Use Cases ---------- */
.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.use-case {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  padding: 20px;
  min-width: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.use-case:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.use-case .line-chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--tint2);
  color: var(--accent-dark);
}

.use-case h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 0;
}

.use-case p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Region Grid ---------- */
.region-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Promo Block override ---------- */
.promo-block {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-row:nth-child(even) .feature-text,
  .feature-row:nth-child(even) .feature-visual {
    order: initial;
  }

  .feature-row .feature-visual {
    order: -1;
  }

  .feature-visual {
    min-height: 200px;
  }

  .page-hero-inner {
    padding: 40px var(--gutter) 36px;
  }
}

@media (max-width: 640px) {
  .feature-stack {
    gap: 48px;
  }

  .use-cases {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    font-size: clamp(30px, 8vw, 38px);
  }
}