/* ==========================================================================
   MODERN PREMIUM HOMEPAGE STYLES
   ========================================================================== */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  animation: slideInLeft 0.8s ease-out 0.1s both;
}

.badge-icon {
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
  font-family: "Sora", "Manrope", sans-serif;
}

.hero-title-word {
  display: inline-block;
  animation: slideInLeft 0.8s ease-out backwards;
}

.hero-title-word-1 { animation-delay: 0.2s; }
.hero-title-word-2 { animation-delay: 0.3s; }
.hero-title-word-3 { animation-delay: 0.4s; }
.hero-title-word-4 { animation-delay: 0.5s; }

.hero-title-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 500px;
  animation: slideInLeft 0.8s ease-out 0.3s both;
}

.hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  font-size: 1.2rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  animation: slideInLeft 0.8s ease-out 0.5s both;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.feature-icon {
  font-size: 1.3rem;
}

.hero-upload-area {
  animation: slideInRight 0.8s ease-out;
}

.hero-image-card {
  margin: 0 0 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(10, 22, 44, 0.22);
}

.hero-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.upload-box {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.upload-box:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(29, 110, 240, 0.02) 100%);
  box-shadow: 0 20px 50px rgba(29, 110, 240, 0.1);
  transform: translateY(-5px);
}

.upload-box.drag-over {
  border-color: var(--primary);
  background: rgba(29, 110, 240, 0.05);
  transform: scale(1.02);
}

.upload-icon-wrapper {
  margin-bottom: 20px;
}

.upload-icon {
  width: 60px;
  height: 60px;
  color: var(--primary);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.upload-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.upload-subtext {
  color: var(--muted);
  margin: 8px 0 0;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  cursor: pointer;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.5; transform: translateY(10px); }
}

/* ==========================================================================
   FLOATING STATS
   ========================================================================== */

.floating-stats {
  position: relative;
  z-index: 5;
  padding: 40px 20px;
  margin-top: -80px;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-label {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text);
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   QUICK TOOLS SECTION
   ========================================================================== */

.quick-tools-section {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-icon {
  margin: 0 auto 18px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-icon {
  transform: scale(1.1) rotateY(10deg);
}

.tool-icon-shell {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14), rgba(var(--accent-rgb), 0.08));
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), 0.16);
}

.tool-icon-shell::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  z-index: 0;
}

.tool-icon-svg {
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 1;
}

.tool-format-badge {
  position: absolute;
  right: -8px;
  bottom: -7px;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.tool-icon-image {
  color: #0f9f7a;
  background: linear-gradient(135deg, rgba(15, 159, 122, 0.15), rgba(29, 110, 240, 0.08));
}

.tool-icon-text {
  color: #2563eb;
}

.tool-icon-sheet {
  color: #16834a;
  background: linear-gradient(135deg, rgba(22, 131, 74, 0.15), rgba(29, 110, 240, 0.08));
}

.tool-icon-slide {
  color: #c2410c;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.14), rgba(29, 110, 240, 0.08));
}

.tool-icon-pages,
.tool-icon-compress {
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.13), rgba(29, 110, 240, 0.08));
}

.tool-icon-lock {
  color: #b91c1c;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.12), rgba(29, 110, 240, 0.08));
}

.tool-icon-data,
.tool-icon-edit {
  color: #0f766e;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.13), rgba(29, 110, 240, 0.08));
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.tool-card-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tool-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  transition: all 0.3s ease;
}

.tool-card-btn:hover {
  gap: 12px;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.tool-card-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.view-all-tools {
  text-align: center;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon-bg {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-bg {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.1) 100%);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */

.how-it-works-section {
  padding: 80px 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  align-items: start;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 300;
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */

.categories-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.03) 0%, transparent 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.category-count {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.category-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.tool-badge {
  display: inline-block;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.category-link:hover {
  gap: 10px;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */

.testimonials-section {
  padding: 80px 20px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.testimonial-stars {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.author-role {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03) 0%, transparent 100%);
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  animation: fadeInUp 0.8s ease-out;
}

.faq-question {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  outline: none;
}

.faq-question:hover {
  background: var(--surface-2);
  border-color: var(--primary);
}

.faq-question.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, transparent 100%);
  border-color: var(--primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 300px;
}

.faq-answer p {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
}

/* ==========================================================================
   BLOG PREVIEW SECTION
   ========================================================================== */

.blog-preview-section {
  padding: 80px 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.blog-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--accent-rgb), 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: all 0.3s ease;
}

.blog-card:hover .blog-image-placeholder {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.1) 100%);
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  padding: 20px 20px 10px;
  margin: 0;
  line-height: 1.4;
}

.blog-card p {
  color: var(--muted);
  padding: 0 20px 15px;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  padding: 0 20px 20px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.blog-link:hover {
  gap: 10px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  text-align: center;
  margin-top: 40px;
}

.cta-content {
  animation: slideInUp 0.8s ease-out;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: white;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  margin-top: 10px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 110, 240, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 110, 240, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-upload-area {
    order: -1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta-buttons {
    flex-direction: column;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 15px;
    min-height: auto;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .upload-box {
    padding: 25px;
  }

  .upload-icon {
    width: 40px;
    height: 40px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .tools-grid,
  .features-grid,
  .categories-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .faq-container {
    max-width: 100%;
  }

  .feature-card,
  .tool-card,
  .category-card,
  .testimonial-card,
  .blog-card {
    padding: 20px;
  }
}

/* ==========================================================================
   THEME VARIANTS
   ========================================================================== */

/* Midnight Theme */
body.theme-midnight {
  --primary-rgb: 29, 110, 240;
  --accent-rgb: 10, 160, 167;
}

/* Sunset Theme */
body.theme-sunset {
  --primary-rgb: 255, 140, 66;
  --accent-rgb: 255, 99, 107;
}

body.theme-aurora {
  --primary-rgb: 13, 148, 136;
  --accent-rgb: 124, 58, 237;
}

/* Professional 2026 homepage refresh */
.hero-section {
  min-height: calc(100vh - 76px);
  padding: 72px 20px 110px;
  background:
    linear-gradient(120deg, rgba(7, 37, 61, 0.9), rgba(15, 118, 110, 0.76) 48%, rgba(194, 65, 12, 0.72)),
    url("../images/pdf-suite-hero.png") center / cover no-repeat;
  color: #fff;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 27, 0.16), rgba(6, 16, 27, 0.58)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 88px);
  pointer-events: none;
  z-index: 1;
}

.hero-background {
  opacity: 0.54;
}

.hero-grid-pattern {
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: rotate(-3deg);
  transition: transform 0.2s ease-out;
}

.hero-container {
  gap: 52px;
}

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

.hero-badge {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f7fbff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #53f3c7;
  box-shadow: 0 0 0 6px rgba(83, 243, 199, 0.15);
}

.hero-title,
.hero-subtitle,
.hero-feature {
  color: #fff;
}

.hero-title {
  letter-spacing: 0;
  line-height: 1.03;
}

.hero-title-gradient {
  color: #fff;
  background: linear-gradient(90deg, #ffffff 0%, #d9fff3 46%, #ffe1cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
}

.hero-features {
  gap: 14px;
}

.hero-feature {
  padding: 0.58rem 0.76rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #e1fff6;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-image-card,
.upload-box {
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.upload-box {
  color: #fff;
  box-shadow: 0 26px 60px rgba(5, 20, 35, 0.24);
}

.upload-box:hover,
.upload-box.drag-over {
  border-color: rgba(83, 243, 199, 0.78);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}

.upload-icon,
.upload-text {
  color: #fff;
}

.upload-subtext {
  color: rgba(255, 255, 255, 0.72);
}

.floating-stats {
  margin-top: -82px;
}

.stat-card,
.tool-card,
.feature-card,
.step-card,
.category-card,
.testimonial-card,
.blog-card,
.faq-question {
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(27, 27, 34, 0.1);
}

.stat-card:hover,
.tool-card:hover,
.feature-card:hover,
.step-card:hover,
.category-card:hover,
.testimonial-card:hover,
.blog-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 56px rgba(27, 27, 34, 0.14);
}

.section-label,
.category-count,
.tool-badge {
  border-radius: 8px;
}

.cta-section {
  background:
    linear-gradient(135deg, rgba(19, 38, 52, 0.96), rgba(15, 118, 110, 0.9) 52%, rgba(194, 65, 12, 0.88)),
    url("../images/pdf-suite-hero.png") center / cover no-repeat;
}

body.theme-aurora .hero-section {
  background:
    linear-gradient(120deg, rgba(6, 78, 95, 0.9), rgba(13, 148, 136, 0.78) 48%, rgba(124, 58, 237, 0.72)),
    url("../images/pdf-suite-hero.png") center / cover no-repeat;
}

body.theme-aurora .hero-title-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #d7fff7 48%, #eadfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-aurora .badge-dot {
  background: #67e8f9;
  box-shadow: 0 0 0 6px rgba(103, 232, 249, 0.16);
}

body.theme-aurora .tool-icon-shell {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(124, 58, 237, 0.1));
  color: #0f766e;
}

body.theme-aurora .section-label,
body.theme-aurora .category-count,
body.theme-aurora .tool-badge {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

body.theme-aurora .cta-section {
  background:
    linear-gradient(135deg, rgba(6, 78, 95, 0.96), rgba(13, 148, 136, 0.9) 52%, rgba(124, 58, 237, 0.86)),
    url("../images/pdf-suite-hero.png") center / cover no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Main UI/UX refresh: icon-led, responsive, app-like */
.ui-svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: block;
  flex: 0 0 auto;
}

.hero-section {
  min-height: calc(100vh - 72px);
  padding: clamp(3.5rem, 7vw, 6rem) 20px clamp(5rem, 9vw, 7rem);
}

.hero-section::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(720px, 80vw);
  height: min(240px, 28vw);
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(34px);
  z-index: 1;
  pointer-events: none;
}

.hero-container {
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.hero-title {
  max-width: 760px;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 650px;
}

.hero-btn {
  min-height: 52px;
  padding-inline: 1.05rem;
  border-radius: 13px;
}

.hero-btn .ui-svg-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.hero-feature {
  min-height: 46px;
}

.feature-icon .ui-svg-icon {
  width: 15px;
  height: 15px;
}

.hero-upload-area {
  position: relative;
  transform-style: preserve-3d;
}

.hero-upload-area::before,
.hero-upload-area::after {
  content: "";
  position: absolute;
  border-radius: 18px;
  pointer-events: none;
}

.hero-upload-area::before {
  inset: -18px 18px 34px -18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateZ(-1px) rotate(-2deg);
}

.hero-upload-area::after {
  right: -18px;
  bottom: 72px;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(83, 243, 199, 0.28), rgba(255, 255, 255, 0.08));
  filter: blur(1px);
  animation: homeFloatBadge 5.5s ease-in-out infinite;
}

.hero-image-card {
  position: relative;
}

.hero-image-card::after {
  content: "Live PDF workspace";
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 0.48rem 0.68rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(6, 16, 27, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.upload-icon-wrapper {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.upload-box {
  min-height: 205px;
  display: grid;
  place-items: center;
  align-content: center;
}

.floating-stats .stats-grid {
  align-items: stretch;
}

.stat-card {
  display: grid;
  align-content: center;
  min-height: 132px;
}

.section-header {
  max-width: 760px;
  margin-inline: auto;
}

.section-label {
  letter-spacing: 0.08em;
}

.tool-card,
.feature-card,
.step-card,
.category-card,
.testimonial-card,
.blog-card {
  text-align: left;
  isolation: isolate;
}

.tool-card {
  min-height: 276px;
  display: flex;
  flex-direction: column;
}

.tool-card-icon {
  justify-content: flex-start;
  margin-inline: 0;
}

.tool-card-title,
.feature-card h3,
.step-card h3,
.category-card h3,
.blog-card h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

.tool-card-desc {
  flex: 1;
}

.tool-card-btn,
.category-link,
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  width: fit-content;
}

.tool-card-btn .ui-svg-icon,
.category-link .ui-svg-icon,
.blog-link .ui-svg-icon,
.view-all-tools .ui-svg-icon,
.cta-section .btn .ui-svg-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.tool-card-btn:hover .ui-svg-icon,
.category-link:hover .ui-svg-icon,
.blog-link:hover .ui-svg-icon,
.view-all-tools .btn:hover .ui-svg-icon,
.cta-section .btn:hover .ui-svg-icon {
  transform: translateX(3px);
}

.feature-icon-bg,
.step-icon,
.blog-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.13), rgba(var(--accent-rgb), 0.1));
  border: 1px solid rgba(var(--primary-rgb), 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44), 0 14px 30px rgba(17, 33, 58, 0.08);
}

.feature-icon-bg {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  font-size: 1.55rem;
}

.step-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 1.6rem;
}

.blog-image-placeholder {
  width: 100%;
  min-height: 150px;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.feature-card:hover .feature-icon-bg,
.step-card:hover .step-icon,
.blog-card:hover .blog-image-placeholder {
  transform: translateY(-3px) scale(1.03);
}

.feature-icon-bg,
.step-icon,
.blog-image-placeholder,
.tool-icon-shell {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.steps-grid {
  align-items: stretch;
}

.step-card {
  position: relative;
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.category-card {
  min-height: 240px;
}

.testimonial-author {
  margin-top: 1.1rem;
}

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 12% -10% auto auto;
  width: min(420px, 48vw);
  height: min(420px, 48vw);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(20px);
  pointer-events: none;
}

@keyframes homeFloatBadge {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(4deg);
  }
  50% {
    transform: translate3d(-12px, -16px, 0) rotate(-3deg);
  }
}

@media (max-width: 1040px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

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

  .hero-upload-area {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .hero-section {
    min-height: auto;
    padding: 2.5rem 14px 5rem;
  }

  .hero-container {
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 12vw, 3.15rem);
  }

  .hero-cta-buttons,
  .hero-features {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-btn,
  .hero-feature {
    width: 100%;
    justify-content: center;
  }

  .upload-box {
    padding: 1.4rem;
  }

  .floating-stats {
    margin-top: -54px;
    padding-inline: 14px;
  }

  .tools-grid,
  .features-grid,
  .categories-grid,
  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .tool-card,
  .feature-card,
  .step-card,
  .category-card,
  .testimonial-card,
  .blog-card {
    padding: 1.1rem;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}

/* Final hero polish: colorful, professional, responsive, no blurry cursor shadow */
.hero-section {
  --hero-cursor-x: 50%;
  --hero-cursor-y: 42%;
  background:
    radial-gradient(circle at var(--hero-cursor-x) var(--hero-cursor-y), rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 16% 18%, rgba(34, 211, 238, 0.22), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(168, 85, 247, 0.2), transparent 28%),
    radial-gradient(circle at 74% 74%, rgba(16, 185, 129, 0.18), transparent 28%),
    linear-gradient(128deg, rgba(7, 18, 38, 0.96), rgba(24, 71, 171, 0.9) 42%, rgba(13, 148, 136, 0.82) 72%, rgba(194, 65, 12, 0.72)),
    url("../images/pdf-suite-hero.png") center / cover no-repeat;
}

.hero-section::before {
  width: min(760px, 82vw);
  height: min(220px, 26vw);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.2), rgba(168, 85, 247, 0.18), rgba(16, 185, 129, 0.18));
  filter: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 36px 90px rgba(0, 0, 0, 0.18);
  opacity: 0.72;
}

.hero-section::after {
  background:
    linear-gradient(180deg, rgba(6, 16, 27, 0.1), rgba(6, 16, 27, 0.5)),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: auto, 86px 86px, 86px 86px;
}

.hero-title {
  font-size: clamp(2.8rem, 7.2vw, 5.85rem);
  line-height: 0.96;
  font-weight: 900;
  max-width: 840px;
}

.hero-title-word {
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.hero-title-gradient {
  background: linear-gradient(90deg, #ffffff 0%, #8cf6ff 26%, #c4b5fd 52%, #86efac 76%, #fed7aa 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: heroGradientSweep 8s ease-in-out infinite;
}

.hero-subtitle {
  max-width: 680px;
  font-size: clamp(1rem, 1.9vw, 1.18rem);
}

.hero-upload-area {
  transition: box-shadow 0.28s ease, transform 0.28s ease;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 70px rgba(2, 8, 23, 0.28);
}

.hero-upload-area.is-cursor-lit {
  box-shadow:
    0 0 0 1px rgba(140, 246, 255, 0.22),
    12px 18px 0 rgba(255, 255, 255, 0.06),
    0 34px 84px rgba(2, 8, 23, 0.34);
}

.hero-upload-area::after {
  filter: none;
  background: linear-gradient(135deg, rgba(140, 246, 255, 0.28), rgba(196, 181, 253, 0.2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(2, 8, 23, 0.18);
}

.hero-image-card::after {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(6, 16, 27, 0.72);
  box-shadow: 0 14px 28px rgba(2, 8, 23, 0.18);
}

.cta-section::after {
  filter: none;
  box-shadow: 0 24px 70px rgba(255, 255, 255, 0.12);
}

@keyframes heroGradientSweep {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: clamp(2.35rem, 13vw, 3.65rem);
    line-height: 1;
  }

  .hero-title-gradient {
    display: inline;
  }

  .hero-upload-area {
    box-shadow: 0 22px 56px rgba(2, 8, 23, 0.24);
  }
}

/* New main hero visual: fast animated product preview instead of static image */
.hero-image-card {
  padding: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(140, 246, 255, 0.12), rgba(196, 181, 253, 0.12));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 30px 80px rgba(2, 8, 23, 0.32),
    16px 16px 0 rgba(255, 255, 255, 0.06);
}

.hero-image-card::after {
  content: "Live conversion preview";
}

.hero-preview-window {
  min-height: clamp(260px, 30vw, 380px);
  color: #eafcff;
  background:
    radial-gradient(circle at 18% 18%, rgba(140, 246, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 8%, rgba(196, 181, 253, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 18, 38, 0.9), rgba(13, 42, 79, 0.86));
}

.hero-preview-topbar {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-height: 46px;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.hero-preview-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-preview-topbar span:nth-child(1) { background: #fb7185; }
.hero-preview-topbar span:nth-child(2) { background: #fbbf24; }
.hero-preview-topbar span:nth-child(3) { background: #34d399; }

.hero-preview-topbar strong {
  margin-left: auto;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-preview-body {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(150px, 0.72fr);
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.hero-preview-sidebar,
.hero-preview-document,
.hero-preview-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-preview-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-radius: 18px;
}

.hero-preview-sidebar span {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-preview-sidebar span.is-active {
  background: linear-gradient(135deg, #8cf6ff, #86efac);
  box-shadow: 0 10px 24px rgba(140, 246, 255, 0.22);
}

.hero-preview-document {
  min-height: 240px;
  border-radius: 22px;
  padding: 1.05rem;
  position: relative;
  overflow: hidden;
}

.hero-preview-document::before {
  content: "";
  position: absolute;
  inset: 18px 24px auto auto;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(140, 246, 255, 0.18), rgba(196, 181, 253, 0.14));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: previewTileFloat 4.8s ease-in-out infinite;
}

.hero-preview-file {
  width: min(150px, 54%);
  aspect-ratio: 0.74;
  border-radius: 18px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #ffffff, #eaf6ff);
  color: #0f3f95;
  box-shadow:
    0 18px 34px rgba(2, 8, 23, 0.18),
    10px 10px 0 rgba(140, 246, 255, 0.08);
  position: relative;
  animation: previewDocumentIn 4.8s ease-in-out infinite;
}

.hero-preview-file span {
  display: inline-flex;
  min-height: 26px;
  padding: 0 0.55rem;
  align-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #1463ff, #00a889);
  font-size: 0.75rem;
  font-weight: 900;
}

.hero-preview-file i {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 1rem;
  height: 44%;
  border-radius: 12px;
  background:
    linear-gradient(#dbeafe 0 0) 0 0 / 100% 8px no-repeat,
    linear-gradient(#bfdbfe 0 0) 0 18px / 78% 8px no-repeat,
    linear-gradient(#dbeafe 0 0) 0 36px / 62% 8px no-repeat;
}

.hero-preview-lines {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-preview-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-preview-lines span:nth-child(2) { width: 78%; }
.hero-preview-lines span:nth-child(3) { width: 58%; }

.hero-preview-panel {
  border-radius: 22px;
  padding: 1rem;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.hero-preview-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.hero-preview-status span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 6px rgba(134, 239, 172, 0.12);
}

.hero-preview-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-preview-progress span {
  display: block;
  height: 100%;
  width: 64%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8cf6ff, #c4b5fd, #86efac);
  animation: previewProgress 3.8s ease-in-out infinite;
}

.hero-preview-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.hero-preview-stack i {
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  animation: previewStackPulse 3.8s ease-in-out infinite;
}

.hero-preview-stack i:nth-child(2) { animation-delay: 0.18s; }
.hero-preview-stack i:nth-child(3) { animation-delay: 0.36s; }

/* Unique modern card hover */
.tool-card,
.feature-card,
.category-card,
.blog-card,
.testimonial-card,
.stat-card {
  transform-style: preserve-3d;
}

.tool-card::after,
.feature-card::after,
.category-card::after,
.blog-card::after,
.testimonial-card::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.46) 44%, transparent 54% 100%);
  transform: translateX(-120%);
  transition: transform 0.62s var(--saas-ease, cubic-bezier(0.22, 1, 0.36, 1));
  pointer-events: none;
  z-index: 1;
}

.tool-card:hover,
.feature-card:hover,
.category-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.stat-card:hover {
  transform: translateY(-9px) scale(1.012);
  border-color: rgba(var(--primary-rgb), 0.42);
  box-shadow:
    0 0 0 1px rgba(var(--primary-rgb), 0.12),
    0 22px 0 -18px rgba(var(--accent-rgb), 0.5),
    0 34px 80px rgba(2, 8, 23, 0.16);
}

.tool-card:hover::after,
.feature-card:hover::after,
.category-card:hover::after,
.blog-card:hover::after,
.testimonial-card:hover::after,
.stat-card:hover::after {
  transform: translateX(120%);
}

.tool-card:hover .tool-icon-shell,
.feature-card:hover .feature-icon-bg,
.category-card:hover .category-count,
.blog-card:hover .blog-image-placeholder {
  animation: cardIconPop 0.56s ease both;
}

@keyframes previewProgress {
  0%, 100% { width: 42%; }
  50% { width: 92%; }
}

@keyframes previewDocumentIn {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(8px, -8px, 0) rotate(2deg); }
}

@keyframes previewTileFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-10px, 8px, 0); }
}

@keyframes previewStackPulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes cardIconPop {
  0% { transform: translateY(0) scale(1) rotate(0); }
  45% { transform: translateY(-4px) scale(1.08) rotate(-3deg); }
  100% { transform: translateY(0) scale(1.03) rotate(0); }
}

@media (max-width: 760px) {
  .hero-preview-body {
    grid-template-columns: 42px 1fr;
  }

  .hero-preview-panel {
    grid-column: 1 / -1;
    min-height: 128px;
  }

  .hero-preview-document {
    min-height: 198px;
  }
}
