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

:root {
  --purple: #7C3AED;
  --pink: #EC4899;
  --orange: #F97316;
  --green: #10B981;
  --blue: #3B82F6;
  --yellow: #F59E0B;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.section {
  padding: 100px 0;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  transform: translateY(-3px);
}

.btn-white {
  background: var(--white);
  color: var(--purple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(180deg, #F3EEFF 0%, #FFF0F6 50%, #FFF7ED 100%);
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--purple);
  top: -100px;
  right: -100px;
  animation-delay: 0s !important;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--pink);
  bottom: 10%;
  left: -50px;
  animation-delay: 2s !important;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--orange);
  top: 30%;
  right: 10%;
  animation-delay: 4s !important;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: var(--green);
  top: 60%;
  left: 20%;
  animation-delay: 1s !important;
}

.shape-5 {
  width: 80px;
  height: 80px;
  background: var(--blue);
  bottom: 20%;
  right: 25%;
  animation-delay: 3s !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

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

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(0, 0, 0, 0.1);
}

/* Floating cards */
.hero-visual {
  position: relative;
  height: 450px;
  animation: fadeInUp 1s ease 0.5s both;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  animation: cardFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.floating-card:hover {
  transform: scale(1.05) !important;
}

.card-xhs {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.card-douyin {
  top: 45%;
  right: 5%;
  animation-delay: 2s;
}

.card-auto {
  bottom: 5%;
  left: 15%;
  animation-delay: 4s;
}

.fc-icon {
  font-size: 36px;
}

.fc-text {
  display: flex;
  flex-direction: column;
}

.fc-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.fc-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

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

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features {
  background: var(--white);
}

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

.feature-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon {
  font-size: 26px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Screenshots ===== */
.screenshots {
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}

.screenshots-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.screenshot-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: var(--bg);
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.screenshot-main:hover img {
  transform: scale(1.02);
}

.screenshot-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}

.screenshot-thumbs::-webkit-scrollbar {
  height: 4px;
}

.screenshot-thumbs::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.thumb {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.thumb:hover,
.thumb.active {
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
}

.thumb img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}

.thumb span {
  display: block;
  text-align: center;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
}

.thumb.active span {
  color: var(--purple);
  font-weight: 600;
}

/* ===== Platforms ===== */
.platforms {
  background: var(--white);
}

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

.platform-card {
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  background: var(--white);
}

.platform-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.xhs-card {
  border-top: 4px solid #FF2442;
}

.douyin-card {
  border-top: 4px solid #000000;
}

.coming-card {
  border-top: 4px solid var(--text-secondary);
  opacity: 0.7;
}

.coming-card:hover {
  opacity: 0.85;
}

.platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.platform-logo {
  font-size: 36px;
}

.platform-header h3 {
  font-size: 20px;
  font-weight: 700;
  flex: 1;
}

.platform-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
}

.platform-tag.coming {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
}

.platform-features {
  list-style: none;
}

.platform-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.platform-features li:last-child {
  border-bottom: none;
}

.check {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

.check.coming {
  color: var(--text-secondary);
}

/* ===== Results ===== */
.results {
  background: linear-gradient(180deg, #F3EEFF 0%, #FFF0F6 50%, var(--white) 100%);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.result-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--bg);
}

.result-item.result-large {
  grid-row: span 2;
  aspect-ratio: auto;
}

.result-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.result-item:hover img {
  transform: scale(1.08);
}

.result-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(124, 58, 237, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.result-item:hover .result-overlay {
  opacity: 1;
}

.result-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--white);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  flex-shrink: 0;
  width: 60px;
  padding-top: 80px;
}

.step-connector svg {
  width: 60px;
  height: 24px;
}

/* ===== Use Cases ===== */
.use-cases {
  background: var(--bg);
}

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

.case-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.creator-card::before {
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.enterprise-card::before {
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.case-icon {
  font-size: 44px;
  margin-bottom: 20px;
}

.case-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.case-list {
  list-style: none;
  margin-bottom: 24px;
}

.case-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
}

.case-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

.creator-card .case-tag {
  background: rgba(124, 58, 237, 0.1);
  color: var(--purple);
}

.enterprise-card .case-tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  overflow: hidden;
  padding: 100px 0;
}

.cta-bg-shapes .cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-shape-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -150px;
}

.cta-shape-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -100px;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.cta-actions {
  margin-bottom: 32px;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

/* ===== Footer ===== */
.footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-icon {
  font-size: 24px;
}

.footer-brand .logo-text {
  font-size: 18px;
  -webkit-text-fill-color: var(--white);
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-title {
    font-size: 40px;
  }

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

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

  .hero-visual {
    height: 300px;
  }

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

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .platform-card:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-badge {
    margin-top: 20px;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-visual {
    height: 260px;
  }

  .floating-card {
    padding: 14px 20px;
    gap: 10px;
  }

  .fc-icon {
    font-size: 28px;
  }

  .fc-title {
    font-size: 14px;
  }

  .fc-desc {
    font-size: 12px;
  }

  .section-title {
    font-size: 28px;
  }

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

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

  .result-item.result-large {
    grid-row: span 1;
  }

  .platform-cards {
    grid-template-columns: 1fr;
  }

  .platform-card:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

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

  .cta-title {
    font-size: 30px;
  }

  .cta-trust {
    flex-direction: column;
    gap: 12px;
  }

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

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

  .screenshot-thumbs {
    gap: 8px;
  }

  .thumb {
    width: 100px;
  }

  .thumb img {
    height: 60px;
  }
}

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

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

  .btn-lg {
    padding: 14px 28px;
    font-size: 15px;
  }

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

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
