/* ClipVault — Dark Cinematic Theme */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #181824;
  --border: #1e1e2e;
  --border-light: #2a2a3d;
  --text: #f0f0ff;
  --text-muted: #8888a8;
  --text-subtle: #55557a;
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --success: #10B981;
  --warn: #F59E0B;
  --error: #EF4444;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* PAGE WRAPPER */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* Clip Grid (hero visual) */
.hero-visual { display: flex; justify-content: center; }

.clip-grid {
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-template-rows: repeat(2, 60px);
  gap: 8px;
}

.clip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.clip-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.clip-card-1 { grid-column: 1; grid-row: 1; }
.clip-card-2 { grid-column: 2; grid-row: 1; }
.clip-card-3 { grid-column: 3; grid-row: 1; }
.clip-card-4 { grid-column: 1; grid-row: 2; }
.clip-card-5 { grid-column: 2 / 4; grid-row: 2; }

.clip-thumb {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
  position: relative;
}

.clip-card-1 .clip-thumb { background: linear-gradient(135deg, #2d1f5e 0%, #0f0a1e 100%); }
.clip-card-2 .clip-thumb { background: linear-gradient(135deg, #1a2e4a 0%, #0a1018 100%); }
.clip-card-3 .clip-thumb { background: linear-gradient(135deg, #2e3a1a 0%, #0f1208 100%); }
.clip-card-4 .clip-thumb { background: linear-gradient(135deg, #4a1a2e 0%, #18080f 100%); }
.clip-card-5 .clip-thumb { background: linear-gradient(135deg, #1a3a2e 0%, #080f0d 100%); }

.clip-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  font-size: 9px;
  color: var(--text-subtle);
  font-family: 'Courier New', monospace;
}

.clip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-subtle);
  flex-shrink: 0;
}
.clip-dot.active { background: var(--success); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 24px var(--accent-glow); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); }

.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 13px 24px;
  font-size: 16px;
}
.btn-checkout:hover:not(:disabled) { background: var(--accent-hover); }
.btn-checkout:disabled { opacity: 0.7; cursor: not-allowed; }

/* BUTTON SPINNER */
.btn-spinner { display: inline-flex; }

/* SECTIONS */
.features, .checkout-section, .pricing, .faq, .footer {
  padding: 60px 24px;
}

.features-inner, .checkout-inner, .pricing-inner, .faq-inner, .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.02em;
}

/* FEATURES */
.features { border-top: 1px solid var(--border); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #a78bfa;
}

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

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

/* CHECKOUT */
.checkout-section {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.03) 100%);
}

.checkout-inner {
  display: flex;
  justify-content: center;
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 440px;
}

.checkout-header { text-align: center; margin-bottom: 28px; }

.plan-badge {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.plan-price { margin-bottom: 8px; }

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-period { font-size: 1.1rem; color: var(--text-muted); font-weight: 400; }

.plan-desc { color: var(--text-muted); font-size: 14px; }

/* FORMS */
.checkout-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input::placeholder { color: var(--text-subtle); }

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-footer { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-subtle);
  font-size: 12px;
}

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-warn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* PRICING */
.pricing { border-top: 1px solid var(--border); }

.pricing-card {
  display: flex;
  justify-content: center;
}

.pricing-plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.pricing-plan-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.pricing-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

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

.pricing-note {
  text-align: center;
  color: var(--text-subtle);
  font-size: 13px;
  margin-top: 20px;
}

/* FAQ */
.faq { border-top: 1px solid var(--border); }

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item { display: flex; flex-direction: column; gap: 8px; }

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* FOOTER */
.footer { border-top: 1px solid var(--border); margin-top: auto; }

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

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

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

/* SUCCESS PAGE */
.success-page { align-items: stretch; }

.success-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  border: 1.5px solid var(--accent);
}

.success-icon.error { border-color: var(--error); background: rgba(239, 68, 68, 0.1); }
.success-icon.processing { border-color: var(--warn); background: rgba(245, 158, 11, 0.1); }

.success-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.success-sub {
  color: var(--text-muted);
  max-width: 440px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.success-email {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.success-email strong { color: var(--text); }

.success-tx {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 20px;
}

.success-tx code {
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.success-plan {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.plan-chip {
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
}

.plan-amount { color: var(--text-muted); font-size: 14px; }

.success-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.success-note {
  color: var(--text-subtle);
  font-size: 13px;
}

.success-note a { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 40px;
    text-align: center;
  }

  .hero-cta { justify-content: center; }
  .hero-sub { max-width: 100%; }
  .hero-visual { display: none; }

  .features-grid { grid-template-columns: 1fr; }

  .checkout-card { padding: 24px; }
  .pricing-plan { padding: 28px 24px; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .nav-links { display: none; }
  .success-actions { flex-direction: column; }
}