/* ═══════════════════════════════════════════
   NQNC · Shared Styles
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a28;
  --border: #2a2a3e;
  --text: #e8e8f0;
  --text2: #9090a8;
  --accent: #6c5ce7;
  --accent2: #a29bfe;
  --green: #00c853;
  --cyan: #00bcd4;
  --orange: #ff9100;
  --pink: #e040a0;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Navigation (shared) ── */
nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,10,15,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .logo { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; text-decoration: none; color: var(--text); }
nav .logo span { color: var(--accent2); }
nav .nav-links { display: flex; gap: 32px; align-items: center; }
nav .nav-links a {
  color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s;
}
nav .nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 8px 20px;
  border-radius: 8px; font-weight: 600 !important;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: 0.85; color: #fff !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 10px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all .25s; cursor: pointer; border: none;
  font-family: inherit; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(108,92,231,0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { transform: translateY(-2px); }
.btn-success:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Inputs ── */
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .2s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select option { background: var(--bg3); }

/* ── Cards ── */
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 32px;
}
.card-hover { transition: all .25s; }
.card-hover:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(108,92,231,0.1); }

/* ── Sections ── */
section { padding: 100px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 13px; font-weight: 600; color: var(--accent2); text-transform: uppercase;
  letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 4vw, 44px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--text2); max-width: 640px; line-height: 1.7; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border); padding: 48px 40px; text-align: center;
}
footer p { font-size: 14px; color: var(--text2); }
footer a { color: var(--accent2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Code blocks ── */
code, .code-block {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.code-block {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-top: 24px; overflow-x: auto;
}
.code-block pre { font-family: inherit; font-size: 13px; color: var(--text2); line-height: 1.7; white-space: pre-wrap; }
.code-block .kw { color: var(--accent2); }
.code-block .str { color: var(--green); }
.code-block .cm { color: #666; }

/* ── Steps indicator ── */
.steps { display: flex; gap: 8px; margin-bottom: 40px; }
.step {
  flex: 1; padding: 12px 16px; border-radius: 10px; text-align: center;
  font-size: 13px; font-weight: 600; transition: all .3s;
  background: var(--bg3); color: var(--text2); border: 1px solid var(--border);
}
.step.active { background: rgba(108,92,231,0.15); border-color: var(--accent); color: var(--accent2); }
.step.done { background: rgba(0,200,83,0.12); border-color: var(--green); color: var(--green); }
.step .num { display: inline-block; width: 24px; height: 24px; line-height: 24px; border-radius: 50%; margin-right: 8px; font-size: 12px; background: rgba(255,255,255,0.1); }
.step.active .num { background: var(--accent); color: #fff; }
.step.done .num { background: var(--green); color: #fff; }

/* ── Error messages ── */
.error-msg { display: none; color: #ff5252; font-size: 14px; margin-top: 12px; padding: 12px; background: rgba(255,82,82,0.1); border-radius: var(--radius-sm); }
.error-msg.show { display: block; }

/* ── Back link ── */
.back-link { display: block; text-align: center; margin-top: 24px; color: var(--text2); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--accent2); }

/* ── Pricing grid ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-top: 48px;
}
.pricing-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; text-align: center; transition: all .25s; position: relative;
}
.pricing-card.featured {
  border-color: var(--accent); background: linear-gradient(180deg, rgba(108,92,231,0.08) 0%, var(--bg2) 100%);
}
.pricing-card.featured::before {
  content: 'POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 100px; letter-spacing: 1px;
}
.pricing-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.pricing-name { font-size: 14px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text2); }
.pricing-desc { font-size: 13px; color: var(--text2); margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li {
  list-style: none; font-size: 14px; padding: 8px 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px;
}
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── Responsive (shared) ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  nav .nav-links { display: none; }
  section { padding: 60px 20px; }
}
@media (max-width: 600px) {
  .step .label { display: none; }
}
