/* ========================================
   PostPilot — Custom Landing Page CSS
   ======================================== */

:root {
  --bg: #FDF6EE;
  --fg: #1A1A2E;
  --accent: #FF5722;
  --accent-soft: #FFF0E8;
  --periwinkle: #6B7FD7;
  --periwinkle-soft: #E8EEFF;
  --green: #22C55E;
  --green-soft: #E8FFF5;
  --amber: #F59E0B;
  --amber-soft: #FFF8E8;
  --muted: #7A7A9D;
  --light: #EDE8E0;
  --card-shadow: 0 4px 24px rgba(26,26,46,0.08);
  --card-hover: 0 8px 40px rgba(26,26,46,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
  color: var(--fg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,87,34,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(107,127,215,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-logo-mark {
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 18px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.7;
}

/* Post Mosaic */
.hero-right { position: relative; height: 520px; }

.post-mosaic {
  position: relative;
  width: 100%;
  height: 100%;
}

.post-card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.post-card:hover { transform: translateY(-4px) rotate(1deg); box-shadow: var(--card-hover); }

.post-card-img { width: 100%; height: 140px; overflow: hidden; }
.post-card-img svg { display: block; }

.post-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: white;
}

.avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--periwinkle));
}

.post-meta {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* Card positions */
.card-a { top: 0; left: 0; width: 200px; animation: float1 6s ease-in-out infinite; }
.card-b { top: 20px; right: 0; width: 180px; animation: float2 7s ease-in-out infinite; animation-delay: -2s; }
.card-c { bottom: 40px; left: 20px; width: 210px; animation: float3 8s ease-in-out infinite; animation-delay: -4s; }
.card-d { bottom: 0; right: 30px; width: 170px; animation: float1 9s ease-in-out infinite; animation-delay: -1s; }

/* Sparkle badge */
.card-e { top: 50%; right: 10%; animation: float2 5s ease-in-out infinite; }

.sparkle-badge {
  background: white;
  border-radius: 100px;
  padding: 8px 16px 8px 12px;
  box-shadow: 0 4px 16px rgba(255,87,34,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Stat card */
.card-f { bottom: 120px; right: 0; animation: float3 7s ease-in-out infinite; }

.stat-card {
  background: var(--fg);
  color: white;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  text-align: center;
  min-width: 110px;
}

.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #4ADE80;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.stat-sub {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* Float animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.how-it-works {
  padding: 100px 0;
  background: white;
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.step-card {
  padding: 32px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--light);
  transition: var(--transition);
}

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

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 20px;
  line-height: 1;
}

.step-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
  padding: 100px 0;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--light);
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(107,127,215,0.3);
  box-shadow: 0 8px 40px rgba(26,26,46,0.07);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.feature-visual { margin-top: 24px; }

/* Feature 1: Content Machine Grid */
.feature-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  position: relative;
}

.fake-post {
  background: var(--bg);
  border: 1.5px solid var(--light);
  border-radius: var(--radius-sm);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
}

.fp1 { background: var(--accent-soft); border-color: rgba(255,87,34,0.2); color: var(--accent); }
.fp2 { background: var(--periwinkle-soft); border-color: rgba(107,127,215,0.2); color: var(--periwinkle); }
.fp3 { background: var(--green-soft); border-color: rgba(34,197,94,0.2); color: var(--green); }
.fp4 { background: var(--amber-soft); border-color: rgba(245,158,11,0.2); color: var(--amber); }
.fp5 { background: var(--accent-soft); border-color: rgba(255,87,34,0.2); color: var(--accent); }
.fp6 { background: var(--periwinkle-soft); border-color: rgba(107,127,215,0.2); color: var(--periwinkle); }
.fp7 { background: var(--green-soft); border-color: rgba(34,197,94,0.2); color: var(--green); }
.fp8 { background: var(--amber-soft); border-color: rgba(245,158,11,0.2); color: var(--amber); }

.fake-sparkle {
  position: absolute;
  top: -10px;
  right: -10px;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Feature 2: Video Mockup */
.video-mockup {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #333;
}

.vm-screen {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 20px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.vm-caption-bar {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.vm-caption-text {
  color: white;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.vm-audio {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.audio-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  animation: audioWave 0.8s ease-in-out infinite alternate;
}

.ab1 { height: 60%; animation-delay: 0s; }
.ab2 { height: 100%; animation-delay: 0.1s; }
.ab3 { height: 80%; animation-delay: 0.2s; }
.ab4 { height: 40%; animation-delay: 0.3s; }

@keyframes audioWave {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

.vm-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.vm-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.vm-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.vm-progress-fill {
  width: 35%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.vm-time {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.vm-tags {
  display: flex;
  gap: 6px;
  padding: 10px 16px 16px;
}

.vm-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* Feature 3: Pricing Tiers mini */
.price-tiers {
  display: flex;
  gap: 12px;
}

.price-tier {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--light);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.price-tier:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pt-featured {
  border-color: var(--accent);
  background: var(--accent-soft);
  position: relative;
}

.pt-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.pt-name {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--fg);
}

.pt-price {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--fg);
}

.pt-price span { font-size: 14px; font-weight: 400; color: var(--muted); }

.pt-period {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}

.pt-features {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}

/* Feature 4: Business Types */
.business-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--light);
  border-radius: 100px;
  padding: 8px 14px 8px 10px;
  transition: var(--transition);
  cursor: default;
}

.bt-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.bt-icon { font-size: 18px; }

.bt-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
  padding: 100px 0;
  background: white;
  border-top: 1px solid var(--light);
}

.pricing-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 48px;
}

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

.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--light);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--periwinkle);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,26,46,0.08);
}

.pricing-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #FFF8F4 0%, white 100%);
  box-shadow: 0 8px 32px rgba(255,87,34,0.12);
}

.pricing-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(255,87,34,0.2);
}

.pc-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pc-header { margin-bottom: 28px; }

.pc-tier {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pricing-featured .pc-tier { color: var(--accent); }

.pc-price {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
}

.pc-price span { font-size: 18px; font-weight: 400; color: var(--muted); }

.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}

.check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========================================
   MANIFESTO
   ======================================== */
.manifesto {
  padding: 120px 0;
  background: var(--fg);
  color: white;
}

.manifesto-inner {
  text-align: center;
}

.manifesto-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 40px;
}

.manifesto-text strong { color: var(--accent); }

.manifesto-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 48px 0;
  background: var(--fg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-right { height: 340px; }

  .card-a { top: 0; left: 10px; width: 150px; }
  .card-b { top: 10px; right: 10px; width: 140px; }
  .card-c { bottom: 30px; left: 0; width: 160px; }
  .card-d { bottom: 0; right: 10px; width: 130px; }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .price-tiers {
    flex-direction: column;
  }

  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 40px; }

  .hero-desc { font-size: 16px; }

  .post-card-img { height: 100px; }

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

  .feature-card, .step-card, .pricing-card {
    padding: 28px;
  }
}
