/* =============================================
   Launchfolio Store — Shared Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --bg-surface: #0e0e16;
  --accent: #c8ff00;
  --accent-dim: #a3cc00;
  --accent-glow: rgba(200, 255, 0, 0.15);
  --text-primary: #f0f0f5;
  --text-secondary: #8a8a9a;
  --text-muted: #5a5a6a;
  --border: #1e1e2e;
  --border-light: #2a2a3a;
  --success: #00d68f;
  --danger: #ff4d6a;
  --warning: #fbbf24;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

/* =============================================
   Navigation
   ============================================= */

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

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand span {
  color: var(--accent);
}

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

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

.nav-links a:hover {
  color: var(--text-primary);
}

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

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: #0a0a0f;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

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

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
}

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

/* =============================================
   Container
   ============================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Page Header
   ============================================= */

.page-header {
  padding: 120px 0 32px;
  text-align: center;
}

.page-header .tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.25);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.page-header h1 .highlight {
  color: var(--accent);
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================================
   Trust Strip (Store page)
   ============================================= */

.trust-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 8px;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-strip-icon {
  font-size: 16px;
}

/* =============================================
   Filter Pills
   ============================================= */

.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px 0 48px;
}

.filter-pill {
  padding: 8px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
}

/* =============================================
   Product Grid
   ============================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  background: var(--bg-card-hover);
  color: inherit;
}

.product-card:first-child { border-radius: 16px 0 0 0; }
.product-card:nth-child(3) { border-radius: 0 16px 0 0; }
.product-card:nth-child(4) { border-radius: 0 0 0 16px; }
.product-card:last-child { border-radius: 0 0 16px 0; }

/* Handle 2-column on mobile */
.product-card:nth-child(2) { border-radius: 0; }
.product-card:nth-child(5) { border-radius: 0; }

.product-icon {
  width: 56px;
  height: 56px;
  background: rgba(200, 255, 0, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.product-card .category-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.product-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-card .description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-small {
  font-size: 18px;
}

.view-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   Social Proof Banner (Store page)
   ============================================= */

.social-proof-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 48px 0;
  margin-bottom: 32px;
  background: var(--bg-card);
  border-radius: 16px;
}

.social-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.social-proof-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.social-proof-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
}

.social-proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =============================================
   Product Detail
   ============================================= */

.product-detail {
  padding: 100px 0 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-visual {
  background: var(--bg-card);
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  position: relative;
  overflow: hidden;
}

.product-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(200, 255, 0, 0.06) 0%, transparent 50%);
}

.product-info .breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-info .breadcrumb a {
  color: var(--text-secondary);
}

.product-info .breadcrumb a:hover {
  color: var(--accent);
}

.product-info .category-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.product-info h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

/* Product Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.rating-stars {
  color: var(--warning);
  font-size: 16px;
  letter-spacing: 1px;
}

.rating-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-count {
  font-size: 13px;
  color: var(--text-muted);
}

.product-info .price-display {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Urgency Badge */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 77, 106, 0.08);
  border: 1px solid rgba(255, 77, 106, 0.2);
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #ff6b85;
  margin-bottom: 24px;
}

.urgency-icon {
  font-size: 15px;
}

.product-info .description-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  white-space: pre-line;
}

.features-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

.features-list li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

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

.features-list .check {
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.buy-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.buy-section .guarantee {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================
   Product Trust Badges
   ============================================= */

.product-trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.product-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.ptb-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.ptb-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   Social Proof Mini (Product page)
   ============================================= */

.social-proof-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(200, 255, 0, 0.04);
  border: 1px solid rgba(200, 255, 0, 0.12);
  border-radius: 12px;
}

.spm-avatars {
  display: flex;
}

.spm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(200, 255, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
  margin-right: -8px;
  border: 2px solid var(--bg-dark);
}

.spm-avatar:last-child {
  margin-right: 0;
}

.spm-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 4px;
}

/* =============================================
   Success Page
   ============================================= */

.success-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.success-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  max-width: 520px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.success-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 214, 143, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  position: relative;
}

.success-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.success-card .product-name {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
}

.success-card .message {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  position: relative;
}

.success-card .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

/* =============================================
   Footer
   ============================================= */

.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

/* =============================================
   Loading States
   ============================================= */

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

.loading-card {
  background: var(--bg-card);
  padding: 36px 32px;
  min-height: 280px;
}

/* =============================================
   Empty State
   ============================================= */

.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card:first-child { border-radius: 16px 0 0 0; }
  .product-card:nth-child(2) { border-radius: 0 16px 0 0; }
  .product-card:nth-child(3) { border-radius: 0; }
  .product-card:nth-child(4) { border-radius: 0; }
  .product-card:nth-child(5) { border-radius: 0 0 0 16px; }
  .product-card:last-child { border-radius: 0 0 16px 0; }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-visual {
    max-height: 400px;
    aspect-ratio: 16/9;
  }

  .product-trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .product-card { border-radius: 0 !important; }
  .product-card:first-child { border-radius: 16px 16px 0 0 !important; }
  .product-card:last-child { border-radius: 0 0 16px 16px !important; }

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

  .nav-links { gap: 16px; }

  .page-header { padding: 100px 0 32px; }

  .success-card { padding: 48px 24px; }

  .product-visual { font-size: 80px; }

  .trust-strip { gap: 16px; }
  .trust-strip-item { font-size: 12px; }

  .social-proof-banner {
    gap: 16px;
    padding: 32px 16px;
  }

  .social-proof-number { font-size: 24px; }
  .social-proof-divider { display: none; }

  .product-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .nav { padding: 12px 16px; }
  .nav-brand { font-size: 18px; }
  .container { padding: 0 16px; }

  .trust-strip {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
