/*
Theme Name: StitchVault Landing
Theme URI: https://stitchvault.co
Description: Simple one-page marketing theme for StitchVault
Author: Impact Merch
Version: 1.0
License: Private
*/

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ========== LAYOUT ========== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: #f8f9fc; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6c63ff;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: #555;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary { background: #6c63ff; color: #fff; }
.btn-primary:hover { background: #5a52e0; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(108,99,255,0.4); }
.btn-outline { background: transparent; color: #6c63ff; border: 2px solid #6c63ff; }
.btn-outline:hover { background: #6c63ff; color: #fff; }
.btn-white { background: #fff; color: #6c63ff; }
.btn-white:hover { background: #f0eeff; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ========== NAV ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { font-size: 1.35rem; font-weight: 800; }
.nav-logo span { color: #6c63ff; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #555; transition: color 0.2s; }
.nav-links a:hover { color: #6c63ff; }
.nav-cta .btn { padding: 10px 24px; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; }

/* ========== HERO ========== */
.hero {
  padding: 140px 0 96px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eee8ff 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.hero-content { max-width: 680px; }
.hero-image {
  position: relative;
  right: -80px;
  margin-right: -80px;
}
.hero-image img {
  width: 130%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(26,26,46,0.15));
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e0deff;
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c63ff;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { font-size: 1.2rem; color: #555; margin-bottom: 36px; max-width: 540px; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.hero-stat-value { font-size: 2rem; font-weight: 800; color: #6c63ff; }
.hero-stat-label { font-size: 0.85rem; color: #777; margin-top: 4px; }

/* ========== TRUST BAR ========== */
.trust-bar { padding: 48px 0; border-bottom: 1px solid #f0f0f0; }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #777; font-weight: 500; }
.trust-icon {
  width: 36px; height: 36px; border-radius: 8px; background: #f0eeff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}

/* ========== FEATURES ========== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}
.feature-card:hover { border-color: #d4d0ff; box-shadow: 0 8px 30px rgba(108,99,255,0.08); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, #6c63ff, #a78bfa);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.3rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; color: #666; }

/* ========== HOW IT WORKS ========== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, #d4d0ff, #6c63ff, #d4d0ff);
}
.step { text-align: center; position: relative; }
.step-number {
  width: 64px; height: 64px; border-radius: 50%;
  background: #6c63ff; color: #fff;
  font-size: 1.5rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
  box-shadow: 0 4px 14px rgba(108,99,255,0.3);
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.9rem; color: #666; }

/* ========== PROOF HIGHLIGHT ========== */
.highlight-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 100%);
  color: #fff;
}
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.highlight-content .section-label { color: #a78bfa; }
.highlight-content .section-title { color: #fff; }
.highlight-content p { color: #b0aed0; font-size: 1.05rem; margin-bottom: 24px; }
.highlight-list { margin-bottom: 36px; }
.highlight-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: #d4d0ff; font-size: 0.95rem; }
.check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(108,99,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #a78bfa; margin-top: 2px;
}
.highlight-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 40px;
}
.proof-flow-step { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.proof-flow-step:last-child { border-bottom: none; }
.proof-flow-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(108,99,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.proof-flow-text strong { display: block; color: #fff; font-size: 0.95rem; }
.proof-flow-text span { font-size: 0.8rem; color: #8886b0; }

/* ========== FILE FORMATS ========== */
.formats-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.format-badge {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #eee; border-radius: 10px;
  padding: 16px 24px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s;
}
.format-badge:hover { border-color: #6c63ff; box-shadow: 0 4px 12px rgba(108,99,255,0.1); }
.format-dot { width: 10px; height: 10px; border-radius: 50%; }
.format-dot.dst { background: #6c63ff; }
.format-dot.pes { background: #f59e0b; }
.format-dot.vp3 { background: #10b981; }
.format-dot.png { background: #ef4444; }
.format-dot.svg { background: #3b82f6; }
.format-dot.pdf { background: #ec4899; }

/* ========== PRICING ========== */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pricing-card {
  background: #fff; border: 2px solid #eee; border-radius: 16px;
  padding: 36px 28px; text-align: center; position: relative;
  transition: all 0.3s;
}
.pricing-card:hover { border-color: #d4d0ff; transform: translateY(-4px); box-shadow: 0 12px 40px rgba(108,99,255,0.1); }
.pricing-card.featured { border-color: #6c63ff; box-shadow: 0 8px 30px rgba(108,99,255,0.15); }
.pricing-popular {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #6c63ff; color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 2.75rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price .currency { font-size: 1.25rem; vertical-align: top; margin-right: 2px; }
.pricing-price .period { font-size: 0.9rem; font-weight: 400; color: #999; }
.pricing-desc { font-size: 0.85rem; color: #888; margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: #555; }
.pricing-check { color: #6c63ff; font-weight: 700; }

/* ========== FAQ ========== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 24px 0; font-size: 1.05rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question:hover { color: #6c63ff; }
.faq-chevron { font-size: 1.25rem; transition: transform 0.3s; flex-shrink: 0; color: #999; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 0 24px; font-size: 0.95rem; color: #666; line-height: 1.7; }

/* ========== CTA ========== */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #6c63ff 0%, #a78bfa 100%);
  text-align: center;
}
.cta-section .section-title { color: #fff; font-size: 2.5rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 520px; margin: 0 auto 36px; }

/* ========== FOOTER ========== */
.site-footer {
  padding: 48px 0;
  background: #1a1a2e;
  color: #8886b0;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: #a78bfa; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 16px; }

/* ========== BLOG LISTING ========== */
.blog-hero {
  padding: 140px 0 64px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eee8ff 100%);
}
.blog-section { padding: 64px 0 96px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.blog-card:hover { border-color: #d4d0ff; box-shadow: 0 8px 30px rgba(108,99,255,0.08); transform: translateY(-2px); }
.blog-card-image { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.8rem; color: #999; }
.blog-card-cat {
  background: #f0eeff;
  color: #6c63ff;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.blog-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.blog-card-title a { color: #1a1a2e; transition: color 0.2s; }
.blog-card-title a:hover { color: #6c63ff; }
.blog-card-excerpt { font-size: 0.9rem; color: #666; margin-bottom: 16px; line-height: 1.6; }
.blog-card-link { font-size: 0.9rem; font-weight: 600; color: #6c63ff; transition: color 0.2s; }
.blog-card-link:hover { color: #5a52e0; }
.blog-empty { padding: 80px 0; }
.blog-empty h2 { margin-bottom: 12px; }
.blog-empty p { color: #666; margin-bottom: 24px; }
.blog-pagination { margin-top: 48px; text-align: center; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; color: #555;
  border: 1px solid #eee; transition: all 0.2s;
}
.blog-pagination .page-numbers:hover { border-color: #6c63ff; color: #6c63ff; }
.blog-pagination .page-numbers.current { background: #6c63ff; color: #fff; border-color: #6c63ff; }
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 16px; }

/* ========== SINGLE POST ========== */
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.post-header {
  padding: 140px 0 48px;
  background: linear-gradient(135deg, #f8f9fc 0%, #eee8ff 100%);
}
.post-meta-top { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; font-size: 0.85rem; color: #888; }
.post-meta-sep { color: #ccc; }
.post-title { font-size: 2.5rem; font-weight: 800; line-height: 1.15; }
.post-subtitle { font-size: 1.15rem; color: #666; margin-top: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.post-featured-image { padding: 32px 0 0; }
.post-featured-image img { width: 100%; border-radius: 12px; }
.post-content {
  padding: 48px 0 64px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.post-content h2 { font-size: 1.6rem; font-weight: 700; margin: 48px 0 16px; color: #1a1a2e; }
.post-content h3 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; color: #1a1a2e; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: #6c63ff; text-decoration: underline; }
.post-content a:hover { color: #5a52e0; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content blockquote {
  border-left: 4px solid #6c63ff;
  padding: 16px 24px;
  margin: 24px 0;
  background: #f8f9fc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}
.post-content img { border-radius: 8px; margin: 24px 0; }
.post-content pre {
  background: #1a1a2e;
  color: #e0def4;
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.post-content code {
  background: #f0eeff;
  color: #6c63ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-footer { padding: 0 0 64px; border-top: 1px solid #eee; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; margin-bottom: 32px; }
.post-tag {
  background: #f0eeff;
  color: #6c63ff;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.post-nav-prev, .post-nav-next { }
.post-nav-next { text-align: right; }
.post-nav-label { display: block; font-size: 0.8rem; color: #999; margin-bottom: 4px; }
.post-nav a { font-weight: 600; color: #6c63ff; font-size: 0.95rem; }
.post-nav a:hover { color: #5a52e0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .section-title { font-size: 1.75rem; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { margin-top: 40px; right: 0; margin-right: 0; }
  .hero-image img { width: 100%; max-width: 100%; }
  .features-grid, .highlight-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 24px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
  .btn-group { flex-direction: column; align-items: stretch; }
  .blog-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .post-title { font-size: 1.75rem; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
}
