/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a1a;
  color: #e0e0f0;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: #6c8cff; color: #fff; border-color: #6c8cff; }
.btn-primary:hover { background: #5a7af0; border-color: #5a7af0; }
.btn-outline { background: transparent; color: #6c8cff; border-color: #6c8cff; }
.btn-outline:hover { background: rgba(108,140,255,0.1); }
.btn-lg { padding: 14px 36px; font-size: 17px; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,26,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108,140,255,0.1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: #fff; }
.logo span { color: #6c8cff; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: #a0a0c0; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,140,255,0.08) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #6c8cff;
  background: rgba(108,140,255,0.1);
  border: 1px solid rgba(108,140,255,0.2);
  margin-bottom: 24px;
}
.hero h1 { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #fff; }
.hero-sub { font-size: 19px; color: #a0a0c0; max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 20px; color: #6c8cff; }
.stat span { font-size: 13px; color: #808098; }

/* Sections */
.section { padding: 80px 0; }
.section-dark { background: #0f0f24; }
.section-title { font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 12px; color: #fff; }
.section-sub { font-size: 17px; color: #808098; text-align: center; margin-bottom: 48px; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #12122a;
  border: 1px solid rgba(108,140,255,0.08);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(108,140,255,0.25); transform: translateY(-2px); }
.feature-icon { font-size: 28px; margin-bottom: 16px; color: #6c8cff; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 14px; color: #909098; line-height: 1.7; }

/* Modes */
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mode-card {
  background: #0a0a1a;
  border: 1px solid rgba(108,140,255,0.1);
  border-radius: 12px;
  padding: 36px;
}
.mode-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.mode-badge.master { background: rgba(108,140,255,0.15); color: #6c8cff; }
.mode-badge.slave { background: rgba(76,175,80,0.15); color: #4caf50; }
.mode-card h3 { font-size: 22px; margin-bottom: 16px; color: #fff; }
.mode-card li {
  padding: 8px 0;
  font-size: 15px;
  color: #b0b0c0;
  padding-left: 24px;
  position: relative;
}
.mode-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #6c8cff;
  font-weight: 700;
}

/* Formats */
.formats-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.format-chip {
  padding: 10px 24px;
  border-radius: 8px;
  background: #12122a;
  border: 1px solid rgba(108,140,255,0.1);
  font-size: 14px;
  color: #c0c0d0;
  font-family: 'Consolas', 'Courier New', monospace;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.pricing-card {
  background: #0a0a1a;
  border: 2px solid rgba(108,140,255,0.2);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured { border-color: #6c8cff; }
.pricing-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #6c8cff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 12px;
}
.pricing-header {
  padding: 36px 28px 28px;
  text-align: center;
  background: rgba(108,140,255,0.05);
  border-bottom: 1px solid rgba(108,140,255,0.1);
}
.pricing-name { font-size: 14px; font-weight: 600; color: #6c8cff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 800; color: #fff; }
.pricing-term { font-size: 13px; color: #808098; margin-top: 4px; }
.pricing-features { padding: 20px 28px; flex: 1; }
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #b0b0c0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-left: 24px;
  position: relative;
}
.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: 700;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-card .btn { margin: 0 28px 24px; width: calc(100% - 56px); }
.pricing-footer-note { text-align: center; font-size: 14px; color: #808098; margin-top: 32px; }

/* Quantity control */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(108,140,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: rgba(108,140,255,0.1);
  border: none;
  color: #6c8cff;
  font-size: 18px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: rgba(108,140,255,0.2); }
.qty-control input {
  width: 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  background: #0a0a1a;
  border: none;
  border-left: 1px solid rgba(108,140,255,0.15);
  border-right: 1px solid rgba(108,140,255,0.15);
  color: #fff;
  padding: 8px 0;
  -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Download */
.download-note { margin-top: 16px; font-size: 13px; color: #808098; }

/* Footer */
.footer { padding: 60px 0 32px; border-top: 1px solid rgba(108,140,255,0.08); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 14px; color: #808098; margin-top: 12px; max-width: 300px; }
.footer-links h4 { font-size: 13px; font-weight: 600; color: #6c8cff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: #808098; padding: 4px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { font-size: 13px; color: #505068; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 24px; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #14142e;
  border: 1px solid rgba(108,140,255,0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(108,140,255,0.08);
}
.modal-header h2 { font-size: 18px; color: #fff; }
.modal-close {
  background: none; border: none; color: #808098; font-size: 24px; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.modal-close:hover { background: rgba(255,255,255,0.05); color: #fff; }
.modal-body { padding: 24px 28px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #a0a0c0; margin-bottom: 6px; }
.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: #0a0a1a;
  border: 1px solid rgba(108,140,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: #6c8cff; }
.form-group input::placeholder { color: #505068; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(108,140,255,0.06);
  border: 1px solid rgba(108,140,255,0.1);
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}
.order-summary strong { color: #6c8cff; font-size: 18px; }

/* Payment methods */
.payment-methods { display: flex; gap: 12px; margin-bottom: 20px; }
.payment-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(108,140,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #a0a0c0;
  transition: all 0.2s;
}
.payment-method.active { border-color: #6c8cff; color: #fff; background: rgba(108,140,255,0.06); }
.payment-method input { display: none; }

.test-badge {
  text-align: center;
  padding: 8px;
  margin: 16px 0;
  border-radius: 6px;
  background: rgba(255,193,7,0.1);
  border: 1px solid rgba(255,193,7,0.3);
  color: #ffc107;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Success / Error */
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(76,175,80,0.15);
  color: #4caf50;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.error-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(244,67,54,0.15);
  color: #f44336;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.license-display {
  margin: 24px 0;
  padding: 20px;
  background: #0a0a1a;
  border: 1px solid rgba(108,140,255,0.15);
  border-radius: 8px;
}
.license-display label { display: block; font-size: 12px; color: #808098; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.license-key {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #6c8cff;
  letter-spacing: 2px;
  margin-bottom: 12px;
  word-break: break-all;
}
.success-note { font-size: 13px; color: #808098; margin-bottom: 24px; line-height: 1.8; }

/* Spinner */
.spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(108,140,255,0.2);
  border-top-color: #6c8cff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Info / Legal Pages */
.page-content { padding: 100px 0 60px; }
.page-content h1 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.page-content .page-updated { font-size: 13px; color: #808098; margin-bottom: 36px; }
.page-content h2 { font-size: 20px; font-weight: 600; color: #fff; margin: 32px 0 12px; }
.page-content h3 { font-size: 17px; font-weight: 600; color: #c0c0d0; margin: 24px 0 8px; }
.page-content p, .page-content li { font-size: 15px; color: #a0a0b8; line-height: 1.8; margin-bottom: 12px; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 16px; }
.page-content li { margin-bottom: 6px; }
.page-content a { color: #6c8cff; }
.page-content a:hover { text-decoration: underline; }
.page-content .info-card {
  background: #12122a;
  border: 1px solid rgba(108,140,255,0.1);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}
.page-content .info-card h3 { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
