/* =============================================
   EditorBox AI — Landing Page Styles
   ============================================= */

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-purple);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-gradient);
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-title .typewriter-text {
  display: inline;
}

.hero-title .cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent-purple);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-mockup-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-mockup-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
}

.hero-mockup {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
}

/* Floating elements around mockup */
.hero-float {
  position: absolute;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  padding: 12px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

.hero-float-1 {
  top: 8%;
  right: -30px;
  animation-delay: 0s;
}

.hero-float-2 {
  bottom: 15%;
  left: -40px;
  animation-delay: 2s;
}

.hero-float-3 {
  bottom: 40%;
  right: -25px;
  animation-delay: 4s;
}

.hero-float-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-float-icon.purple { background: rgba(99, 102, 241, 0.2); }
.hero-float-icon.green { background: rgba(16, 185, 129, 0.2); }
.hero-float-icon.cyan { background: rgba(34, 211, 238, 0.2); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Logos / Stats Bar ---- */
.stats-bar {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---- Features Section ---- */
.features {
  padding: var(--section-padding);
  position: relative;
}

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

.feature-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon.purple-bg {
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
}

.feature-icon.violet-bg {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.feature-icon.cyan-bg {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.feature-icon.green-bg {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.feature-icon.pink-bg {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
}

.feature-icon.amber-bg {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

/* ---- How it Works ---- */
.how-it-works {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

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

/* Connecting line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 48px);
  right: calc(16.67% + 48px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-violet), var(--accent-cyan));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  transition: all var(--transition-base);
}

.step-number-inner {
  font-size: 2rem;
  line-height: 1;
}

.step-card:hover .step-number {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* ---- Demo / Video Section ---- */
.demo-section {
  padding: var(--section-padding);
  position: relative;
}

.demo-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.demo-video-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-default);
  aspect-ratio: 16 / 9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
}

.demo-video-container::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.25;
  filter: blur(30px);
}

.demo-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.demo-play-btn {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-base);
}

.demo-play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 48px rgba(99, 102, 241, 0.6);
}

.demo-play-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  margin-left: 4px;
}

/* ---- Pricing Preview Section ---- */
.pricing-preview {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.1);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0.15;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-tier-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-price-subtitle {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features-list .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.pricing-features-list .cross {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.pricing-card .btn {
  width: 100%;
}

/* ---- Testimonials ---- */
.testimonials {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-marquee 40s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  min-width: 380px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 0.875rem;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Download / CTA Section ---- */
.download-section {
  padding: var(--section-padding);
  position: relative;
}

.download-cta {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 48px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.download-cta .heading-lg {
  margin-bottom: 16px;
  position: relative;
}

.download-cta .text-lg {
  margin-bottom: 36px;
  position: relative;
}

.download-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.download-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  justify-content: center;
  position: relative;
}

.download-badge span {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.download-badge svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

/* ---- FAQ Section ---- */
.faq-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.open {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-purple);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  color: var(--text-dim);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ---- Responsive Landing ---- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-float {
    display: none;
  }

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

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

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

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

  .steps-grid::before {
    display: none;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 450px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .hero-stats {
    gap: 24px;
  }

  .testimonial-card {
    min-width: 300px;
  }

  .download-cta {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .stat-number {
    font-size: 2rem;
  }
}
