/* =============================================
   WeSellTrends — Main Stylesheet
   Conversion-focused digital products store
   ============================================= */

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #fafaf9;
  --surface:    #ffffff;
  --border:     #e5e5e0;
  --text:       #1a1a18;
  --muted:      #6b6b65;
  --accent:     #ff4d00;
  --accent-d:   #cc3d00;
  --accent-bg:  #fff0e8;
  --success:    #16a34a;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --radius:     12px;
  --radius-sm:  8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

/* ── Typography ─────────────────────────────── */
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Navbar ────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { font-size: .875rem; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: #fff !important;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600;
}
.nav-cta:hover { background: #333; }

/* ── Hero ──────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(165deg, #fff 0%, var(--accent-bg) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 99px;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px; background: var(--success);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: -.04em;
  max-width: 680px; margin: 0 auto 20px;
  line-height: 1.1;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub {
  font-size: 1.125rem; color: var(--muted);
  max-width: 520px; margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: none; transition: all .18s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: #bbb; background: #fafaf9; }
.hero-trust {
  margin-top: 32px; font-size: .8rem; color: var(--muted);
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.hero-trust span { display: flex; align-items: center; gap: 5px; }

/* ── Category Pills ─────────────────────────── */
.categories-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.categories-bar .container { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.cat-pill {
  flex-shrink: 0; padding: 7px 16px; border-radius: 99px;
  font-size: .85rem; font-weight: 600;
  background: var(--bg); border: 1.5px solid var(--border);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.cat-pill:hover, .cat-pill.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-bg);
}

/* ── Products Section ───────────────────────── */
.products-section { background: var(--bg); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 12px;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }

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

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d0d0c8;
}
.product-thumb {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; display: block;
  background: linear-gradient(135deg, #f0f0ec 0%, #e8e8e2 100%);
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent);
  margin-bottom: 6px;
}
.product-name {
  font-size: 1.05rem; font-weight: 700; line-height: 1.3;
  margin-bottom: 6px;
}
.product-desc {
  font-size: .85rem; color: var(--muted); line-height: 1.5;
  flex: 1; margin-bottom: 16px;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.product-price {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
}
.product-price .original {
  font-size: .875rem; color: #bbb; text-decoration: line-through;
  font-weight: 500; margin-left: 6px;
}
.btn-buy {
  background: var(--accent); color: #fff;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 700;
  transition: background .15s; border: none; cursor: pointer;
}
.btn-buy:hover { background: var(--accent-d); }

/* ── Social Proof / Stats ───────────────────── */
.social-proof { background: var(--surface); }
.proof-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}
.proof-stat .number {
  font-size: 2.5rem; font-weight: 800; letter-spacing: -.04em;
  color: var(--text); display: block;
}
.proof-stat .label {
  font-size: .9rem; color: var(--muted); margin-top: 4px;
}

.testimonials { padding: 80px 0; background: var(--bg); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
}
.testimonial-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.testimonial-card .stars {
  color: #f59e0b; font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: .9rem; line-height: 1.65; color: var(--text);
  margin-bottom: 16px; font-style: italic;
}
.testimonial-card .author {
  font-size: .8rem; font-weight: 600; color: var(--muted);
}
.testimonial-card .product-ref {
  font-size: .75rem; color: var(--accent); margin-top: 2px;
}

/* ── CTA Banner ────────────────────────────── */
.cta-banner {
  background: #1a1a18; color: #fff;
  padding: 80px 0; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 14px;
}
.cta-banner p { color: #999; margin-bottom: 32px; font-size: 1.05rem; }
.cta-banner .btn {
  background: var(--accent); color: #fff;
  font-size: 1.05rem; padding: 15px 36px;
}
.cta-banner .btn:hover { background: var(--accent-d); }

/* ── Footer ────────────────────────────────── */
.footer {
  background: #111; color: #666;
  padding: 40px 0 32px;
  font-size: .85rem;
}
.footer .container { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.footer-brand { font-weight: 700; color: #fff; font-size: 1rem; }
.footer-brand span { color: var(--accent); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #666; transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ── Stripe Placeholder Notice ─────────────── */
.stripe-config-notice {
  position: fixed; bottom: 24px; right: 24px;
  background: #1a1a18; color: #fff;
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .8rem; max-width: 280px;
  box-shadow: var(--shadow-md); z-index: 999;
  display: none;
}
.stripe-config-notice strong { color: var(--accent); display: block; margin-bottom: 4px; }

/* ── Animations ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .45s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer .container { flex-direction: column; align-items: flex-start; }
}