:root {
  --bg: #070b14;
  --panel: #0d1526;
  --card: rgba(13, 21, 38, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --accent: #06b6d4;
  --emerald: #10b981;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.10) 0%, transparent 45%);
}

a { color: inherit; text-decoration: none; }

header.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg { width: 18px; height: 18px; color: #fff; }

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--text); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  flex: 1;
}

.hero-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-box h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-box h1 span {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-box p {
  font-size: 1.15rem;
  color: var(--muted);
}

/* Configurator Box */
.configurator-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.config-group { margin-bottom: 2rem; }

.config-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.slider-val { color: var(--accent); font-family: var(--mono); font-weight: 700; }

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  cursor: pointer;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.loc-btn {
  padding: 0.75rem;
  background: #090e1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}

.loc-btn:hover, .loc-btn.active {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.12);
}

.ping-tag {
  font-size: 0.75rem;
  color: var(--emerald);
  font-family: var(--mono);
}

/* Deploy Summary Box */
.summary-panel {
  background: #090e1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-display {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.25rem;
}

.price-hourly {
  color: var(--dim);
  font-size: 0.88rem;
  font-family: var(--mono);
  margin-bottom: 1.5rem;
}

.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.4rem;
}

.btn-deploy {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s;
}

.btn-deploy:hover { transform: translateY(-1px); }

/* Deploy Terminal Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.terminal-box {
  background: #090d16;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  font-family: var(--mono);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

footer.site-footer {
  border-top: 1px solid var(--border);
  background: #04070d;
  padding: 3rem 1.5rem;
  font-size: 0.9rem;
  color: var(--dim);
}

.footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-wrap a { color: var(--muted); margin-left: 1.5rem; }
.footer-wrap a:hover { color: var(--text); }

@media (max-width: 850px) {
  .configurator-card { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
}
