/* ============================================================
   ISP Cloud VPS — Nube.sh Inspired Modern Dark SaaS Design
   ============================================================ */

:root {
  --bg: #070B14;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 34, 61, 0.8);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #1677FF;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --blue: #1677FF;
  --cyan: #28C5E8;
  --green: #10B981;
  --amber: #F59E0B;
  --grad-cyan: linear-gradient(135deg, #1677FF 0%, #28C5E8 100%);
  --grad-text: linear-gradient(135deg, #FFFFFF 20%, #94A3B8 100%);
  --shadow-glow: 0 0 32px rgba(22, 119, 255, 0.18);
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(22, 119, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(40, 197, 232, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #6ee7b7; }

.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* Navigation */
.header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--grad-cyan);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 0 16px rgba(22, 119, 255, 0.4);
}
.brand-text strong { display: block; font-size: 16px; color: #fff; line-height: 1.1; }
.brand-text span { font-size: 11px; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-menu a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn {
  padding: 6px 12px; font-size: 12px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text-muted); transition: all 0.2s;
}
.lang-btn:hover { border-color: var(--cyan); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-cyan); color: #fff;
  box-shadow: 0 4px 18px rgba(22, 119, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(22, 119, 255, 0.5); color: #fff;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05); color: #fff;
  border-color: var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; position: relative; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 600; border-radius: 999px;
  background: rgba(22, 119, 255, 0.12); border: 1px solid rgba(22, 119, 255, 0.3);
  color: var(--cyan); margin-bottom: 24px;
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.hero h1 {
  font-size: clamp(34px, 4.8vw, 56px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 18px; color: #fff;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #1677FF 0%, #28C5E8 50%, #6EE7B7 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  max-width: 680px; margin: 0 auto 36px; font-size: 17px;
  color: var(--text-muted); line-height: 1.6;
}

/* Region Selector Tabs */
.region-bar {
  display: inline-flex; flex-wrap: wrap; gap: 8px; padding: 6px;
  background: rgba(15, 23, 42, 0.8); border: 1px solid var(--border);
  border-radius: 14px; margin-bottom: 32px;
}
.region-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
}
.region-btn.active {
  background: rgba(22, 119, 255, 0.18); border-color: rgba(22, 119, 255, 0.4);
  color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.region-btn .flag { font-size: 16px; }
.region-btn .ping { font-size: 11px; color: var(--green); font-family: var(--mono); }

/* Billing Cycle Toggle */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 40px; font-size: 14px; color: var(--text-muted);
}
.toggle-switch {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
}
.toggle-opt {
  padding: 6px 14px; font-size: 12.5px; font-weight: 600; border-radius: 999px;
  cursor: pointer; transition: all 0.2s; color: var(--text-muted);
}
.toggle-opt.active { background: var(--blue); color: #fff; }

/* Plan Cards Grid */
.plans-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 64px; text-align: left;
}
.plan-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; position: relative;
  transition: all 0.25s ease; backdrop-filter: blur(12px);
}
.plan-card:hover {
  border-color: rgba(40, 197, 232, 0.35); transform: translateY(-4px);
  background: var(--bg-card-hover); box-shadow: var(--shadow-glow);
}
.plan-card.popular {
  border-color: rgba(22, 119, 255, 0.5);
  background: linear-gradient(180deg, rgba(22, 119, 255, 0.12) 0%, rgba(15, 23, 42, 0.75) 100%);
}
.badge-popular {
  position: absolute; top: -10px; right: 20px;
  padding: 4px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: var(--grad-cyan); color: #fff; border-radius: 999px;
  letter-spacing: 0.05em;
}

.plan-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.plan-name { font-size: 20px; font-weight: 700; color: #fff; }
.plan-price { font-size: 28px; font-weight: 800; color: #fff; line-height: 1; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.plan-rate { font-size: 11.5px; color: var(--cyan); font-family: var(--mono); margin-bottom: 20px; }

.plan-specs { list-style: none; margin-bottom: 24px; border-top: 1px solid var(--border); padding-top: 18px; }
.plan-specs li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13.5px; color: var(--text-muted);
}
.plan-specs li strong { color: #fff; font-family: var(--mono); }
.plan-specs li .dot { color: var(--cyan); margin-right: 6px; }

/* Interactive Calculator */
.calc-section {
  background: rgba(15, 23, 42, 0.7); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px; margin-bottom: 88px;
  backdrop-filter: blur(14px);
}
.calc-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 48px; align-items: center; }
.calc-sliders { display: flex; flex-direction: column; gap: 28px; text-align: left; }
.slider-group label {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  font-size: 13.5px; font-weight: 600; color: #fff;
}
.slider-group label span { color: var(--cyan); font-family: var(--mono); }
.slider-input {
  width: 100%; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.1);
  outline: none; -webkit-appearance: none; cursor: pointer;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan); cursor: pointer;
}

.calc-summary {
  background: rgba(7, 11, 20, 0.6); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; text-align: center;
}
.calc-summary h3 { font-size: 16px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.calc-price-big { font-size: 44px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.calc-price-big small { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.calc-price-sub { font-size: 12.5px; color: var(--cyan); font-family: var(--mono); margin-bottom: 24px; }

/* Features Pillars */
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.section-title p { font-size: 16px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 88px; }
.pillar-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: left;
  transition: all 0.25s ease;
}
.pillar-card:hover { border-color: rgba(22, 119, 255, 0.4); transform: translateY(-3px); }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(22, 119, 255, 0.12); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 18px;
}
.pillar-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.pillar-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* Deploy Modal / Drawer */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #0D1424; border: 1px solid var(--border);
  border-radius: 20px; max-width: 540px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8); overflow: hidden;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; color: #fff; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-body { padding: 28px; text-align: left; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: #fff; font-size: 14px; font-family: var(--font); outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(40,197,232,0.15);
}
.form-status { display: none; margin-top: 14px; padding: 12px; border-radius: 8px; font-size: 13.5px; }
.form-status.ok { display: block; background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0; font-size: 13.5px; color: var(--text-dim); text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}
