/* ═══════════════════════════════════════════════════════════════
   MERCURY — Website Styles
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: #1e1e2e;
  --border-glow: #7c4dff;
  --accent: #bc6ef0;
  --accent-bright: #d49bff;
  --accent-dim: #8b47c6;
  --text: #e0e0ea;
  --text-dim: #8888a0;
  --text-bright: #f5f5ff;
  --success: #4caf50;
  --danger: #f44336;
  --gradient-start: #bc6ef0;
  --gradient-end: #6e5eff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  border-radius: 8px;
  filter: drop-shadow(0 0 12px rgba(188, 110, 240, 0.4));
}

.nav-logo span {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--accent-bright); }

.nav-cta {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(188, 110, 240, 0.4);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(188, 110, 240, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(188, 110, 240, 0.1);
  border: 1px solid rgba(188, 110, 240, 0.2);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-bright);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(188, 110, 240, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  padding: 14px 36px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-dim);
}

/* ── Section Base ── */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(188, 110, 240, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Scripts Section ── */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.script-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.script-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.script-header {
  padding: 24px 28px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.script-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.script-meta h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
}

.script-meta .tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(188, 110, 240, 0.12);
  color: var(--accent-bright);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.script-body {
  padding: 0 28px 24px;
}

.script-body p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.6;
}

.script-features {
  list-style: none;
  margin-bottom: 20px;
}

.script-features li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.script-features li::before {
  content: '✦';
  color: var(--accent);
  font-size: 10px;
}

.code-block {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--accent-bright);
  overflow-x: auto;
  position: relative;
}

.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.code-block .copy-btn:hover {
  color: var(--accent-bright);
  border-color: var(--accent-dim);
}

/* ── Pricing ── */
.pricing-card {
  background: var(--bg-card);
  border: 2px solid var(--accent-dim);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.pricing-popular {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-card .price {
  font-size: 56px;
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card .price-label {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-list {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list li .check {
  color: var(--success);
  font-weight: 700;
}

.btn-buy {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(188, 110, 240, 0.4);
}

.btn-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Key Validation Section ── */
.key-check {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  margin: 40px auto 0;
}

.key-check h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.key-input-group {
  display: flex;
  gap: 8px;
}

.key-input-group input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: border-color 0.2s;
}

.key-input-group input:focus {
  border-color: var(--accent);
}

.key-input-group button {
  background: var(--accent-dim);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.key-input-group button:hover {
  background: var(--accent);
}

.key-result {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}

.key-result.success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: var(--success);
}

.key-result.error {
  display: block;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: var(--danger);
}

/* ── Footer ── */
.footer {
  padding: 60px 40px 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img { height: 28px; }
.footer-logo span {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-bright);
}

.footer p {
  color: var(--text-dim);
  font-size: 13px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: 36px; }
  .pricing-card { padding: 32px 24px; }
  .key-input-group { flex-direction: column; }
}
