/* LonServices — Professional dark theme */
:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141a;
  --bg-card: #161922;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #f0f2f5;
  --text-muted: #8b92a5;
  --accent: #6c8cff;
  --accent-hover: #8ba4ff;
  --accent-soft: rgba(108, 140, 255, 0.12);
  --success: #3dd68c;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 140, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(108, 140, 255, 0.45);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Features */
.features {
  padding: 0 0 80px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA */
.cta-section {
  padding: 0 0 100px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  flex-wrap: wrap;
}

.cta-box h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page header */
.page-header {
  padding: 60px 0 40px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-sub {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Products */
.products-section {
  padding: 0 0 100px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card-soon {
  opacity: 0.7;
}

.product-banner {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
}

.product-banner.cs2 {
  background: linear-gradient(135deg, #0d1f17 0%, #1a3a2a 40%, #0f2a1e 100%);
  background-image:
    linear-gradient(135deg, rgba(13, 31, 23, 0.95), rgba(26, 58, 42, 0.9)),
    radial-gradient(circle at 20% 80%, rgba(61, 214, 140, 0.15), transparent 50%);
}

.product-banner.soon {
  background: linear-gradient(135deg, #14161c 0%, #1c1f28 100%);
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--success);
  color: #0a0b0f;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-tag.muted {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.product-body {
  padding: 24px;
}

.product-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-body > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.product-meta {
  list-style: none;
  margin-bottom: 24px;
}

.product-meta li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.product-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Product detail */
.product-detail {
  padding: 40px 0 100px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--text);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.detail-info h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.detail-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.detail-list {
  list-style: none;
}

.detail-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* Pricing panel */
.pricing-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 88px;
}

.pricing-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.price-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.price-option {
  cursor: pointer;
}

.price-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s, background 0.2s;
}

.price-option input:checked + .price-card {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.price-option:hover .price-card {
  border-color: var(--border-hover);
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.price-duration {
  font-weight: 600;
  font-size: 0.95rem;
}

.price-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 999px;
}

.price-badge.popular {
  background: var(--accent);
  color: #fff;
}

.price-amount {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.checkout-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.checkout-note strong {
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Overlay + modal (Stripe sandbox UI) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.stripe-box {
  min-height: 40px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.payment-message {
  font-size: 0.85rem;
  color: #f87171;
  margin-bottom: 12px;
}

.success-panel {
  text-align: center;
  padding: 8px 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(61, 214, 140, 0.15);
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.success-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.success-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.license-key {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: ui-monospace, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--success);
  margin-bottom: 12px;
  word-break: break-all;
}

.success-hint {
  font-size: 0.8rem !important;
  margin-bottom: 20px !important;
}

/* Responsive */
@media (max-width: 800px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .pricing-panel {
    position: static;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .hero {
    padding: 70px 0 60px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 56px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .modal {
    padding: 24px;
  }
}

/* Success / post-purchase page */
.success-page {
  padding: 60px 0 100px;
}

.success-wrap {
  max-width: 560px;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
}

.success-icon-lg {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: rgba(61, 214, 140, 0.15);
  color: var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
}

.success-card h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.success-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.setup-steps {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  counter-reset: step;
}

.setup-steps li {
  position: relative;
  padding: 16px 16px 16px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--bg-elevated);
}

.setup-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.setup-steps li strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text);
}

.setup-steps li span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.download-btn {
  margin-bottom: 16px;
}

.success-foot {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.back-home {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.back-home:hover {
  color: var(--text);
}

@media (max-width: 800px) {
  .success-card {
    padding: 28px 20px;
  }

  .success-card h1 {
    font-size: 1.05rem;
  }
}
