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

:root {
  --bg:       #0a0a0f;
  --surface:  #13131c;
  --border:   #1e1e2e;
  --purple:   #7c6af7;
  --purple2:  #6b5ae6;
  --text:     #e0deff;
  --muted:    #888;
  --radius:   12px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/* ── NAV ────────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.nav-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-btn:hover { background: var(--purple2); }

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,106,247,0.12);
  border: 1px solid rgba(124,106,247,0.3);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.gradient {
  background: linear-gradient(135deg, #7c6af7, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 64px;
}
.hero-btn:hover { background: var(--purple2); transform: translateY(-1px); }

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 64px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* ── APP PREVIEW ────────────────────────────────────────────────────────────── */
.hero-img { display: flex; justify-content: center; }

.app-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.preview-bar {
  background: #0f0f18;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.preview-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2a2a38;
}
.preview-title {
  margin-left: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.preview-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.preview-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  max-width: 85%;
  text-align: left;
}
.preview-msg.user  { background: rgba(124,106,247,0.15); color: #c0b8ff; align-self: flex-end; }
.preview-msg.agent { background: #1a1a28; color: var(--text); align-self: flex-start; }

/* ── FEATURES ───────────────────────────────────────────────────────────────── */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(124,106,247,0.4); }

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

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p { font-size: 14px; color: var(--muted); }

/* ── PRICING ────────────────────────────────────────────────────────────────── */
.pricing {
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.pricing-sub { color: var(--muted); margin-top: -32px; margin-bottom: 40px; }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  position: relative;
}

.pricing-badge {
  display: inline-block;
  background: rgba(124,106,247,0.15);
  border: 1px solid rgba(124,106,247,0.3);
  color: var(--purple);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-price { margin-bottom: 28px; }
.pricing-amount { font-size: 52px; font-weight: 800; letter-spacing: -2px; }
.pricing-once { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li { font-size: 15px; color: #c0b8ff; }

.pricing-btn {
  width: 100%;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-bottom: 14px;
}
.pricing-btn:hover:not(:disabled) { background: var(--purple2); }
.pricing-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pricing-note { font-size: 13px; color: var(--muted); }

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

/* ── SUCCESS PAGE ───────────────────────────────────────────────────────────── */
.success-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.success-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  width: 64px; height: 64px;
  background: rgba(60,180,100,0.15);
  border: 1px solid rgba(60,180,100,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #5cd68a;
}

.error-icon {
  width: 64px; height: 64px;
  background: rgba(220,60,60,0.12);
  border: 1px solid rgba(220,60,60,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #f47575;
}

.success-card h1 { font-size: 26px; font-weight: 700; }
.success-card h2 { font-size: 22px; font-weight: 700; }
.success-sub { font-size: 14px; color: var(--muted); }

.license-box {
  width: 100%;
  background: #0f0f18;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin: 8px 0;
}
.license-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.license-key-display { font-family: monospace; font-size: 22px; letter-spacing: 3px; color: var(--text); margin-bottom: 14px; }

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--purple); }

.success-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
}

.step-num {
  width: 28px; height: 28px;
  background: rgba(124,106,247,0.15);
  border: 1px solid rgba(124,106,247,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  flex-shrink: 0;
}

.download-btn {
  display: block;
  width: 100%;
  background: var(--purple);
  color: #fff;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}
.download-btn:hover { background: var(--purple2); }

.back-btn {
  color: var(--purple);
  text-decoration: none;
  font-size: 14px;
}

/* ── SPINNER ────────────────────────────────────────────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a28;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
