/* ==========================================================================
   BLACK TREE HOSTING - COMPONENTS (OPTICORE & DIGITALPRO THEME)
   Bento cards, hardware calculator, 13-region network, pricing matrix, and modal
   ========================================================================== */

.section {
  position: relative;
  padding: 8rem 0;
  z-index: 10;
  background-color: #04010a;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 4.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neon-pink);
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: #94a3b8;
  line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────
   ARCHITECTURAL METRICS STRIP (Neon Gradient Laser)
   ────────────────────────────────────────────────────────── */
.metrics-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #04010a;
  position: relative;
}

.metrics-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-gradient);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.5);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-cell {
  padding: 3.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color var(--transition-smooth);
}

.metric-cell:last-child {
  border-right: none;
}

.metric-cell:hover {
  background: rgba(255, 255, 255, 0.02);
}

.metric-label {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.metric-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.metric-desc {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 300;
  border-left: 2px solid var(--neon-purple);
  padding-left: 0.75rem;
}

.metric-subnote {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #64748b;
  margin-top: 0.25rem;
  display: block;
}

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-cell:nth-child(2) { border-right: none; }
}

@media (max-width: 600px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-cell { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ──────────────────────────────────────────────────────────
   INTERACTIVE HARDWARE SLIDER / CALCULATOR (Neon Theme)
   ────────────────────────────────────────────────────────── */
.calc-wrapper {
  background: rgba(16, 10, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 3.5rem;
  backdrop-filter: blur(24px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  position: relative;
  overflow: hidden;
}

.calc-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-gradient);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-tech);
  color: #ffffff;
  letter-spacing: 0.03em;
}

.slider-val-badge {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--neon-pink);
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #ec4899);
  border-radius: 9999px;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 0 25px rgba(217, 70, 239, 1);
}

.calc-summary-card {
  background: rgba(8, 4, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.calc-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.calc-price-amount {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
}

.calc-price-period {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #64748b;
}

.calc-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.calc-spec-item {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}

.calc-spec-item strong {
  color: #ffffff;
}

@media (max-width: 900px) {
  .calc-wrapper { grid-template-columns: 1fr; padding: 2rem; }
}

/* ──────────────────────────────────────────────────────────
   PRICING PLANS & TABS
   ────────────────────────────────────────────────────────── */
.pricing-tabs-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.plan-switch-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
}

.plan-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-tech);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.plan-tab-btn.active {
  background: var(--neon-pink);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.billing-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #94a3b8;
}

.discount-tag {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: var(--neon-pink);
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  position: relative;
  background: rgba(16, 10, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.75rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  transition: all var(--transition-smooth);
}

.pricing-card:hover {
  border-color: rgba(217, 70, 239, 0.5);
  background: rgba(24, 15, 42, 0.95);
  transform: translateY(-6px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(217, 70, 239, 0.2);
}

.pricing-card.featured {
  border-color: rgba(236, 72, 153, 0.5);
  background: radial-gradient(circle at top, rgba(236, 72, 153, 0.2) 0%, rgba(16, 10, 28, 0.95) 70%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(236, 72, 153, 0.25);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-pink);
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.plan-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 1.75rem;
  min-height: 2.4em;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 2rem;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-cadence {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
}

.plan-feature-item svg {
  color: var(--neon-pink);
  flex-shrink: 0;
}

@media (max-width: 1200px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────────────────
   GLOBAL NETWORK
   ────────────────────────────────────────────────────────── */
.network-card-wrap {
  background: rgba(16, 10, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  padding: 3rem;
  backdrop-filter: blur(24px);
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.region-node-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.region-node-card:hover, .region-node-card.active {
  border-color: var(--neon-pink);
  background: rgba(236, 72, 153, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.3);
}

.region-node-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-gradient);
}

.region-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.region-code {
  font-family: var(--font-tech);
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

.region-ping {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #22c55e;
}

.region-name {
  font-size: 0.75rem;
  color: #64748b;
}

/* ──────────────────────────────────────────────────────────
   DEPLOY SERVER MODAL
   ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 1, 10, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
  padding: 1.5rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #0d0618;
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 1.75rem;
  width: 100%;
  max-width: 680px;
  padding: 2.5rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.95), 0 0 50px rgba(217, 70, 239, 0.25);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  font-size: 1.25rem;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
