/* ============================================
   Pigsty Landing Page Styles
   Modern, clean, professional
   ============================================ */

/* CSS Variables */
:root {
  /* Primary Colors */
  --pigsty-dark: #0f1419;
  --pigsty-darker: #080b0e;
  --pigsty-navy: #1a1f35;
  --pigsty-blue: #3b82f6;
  --pigsty-blue-dark: #2563eb;
  --pigsty-indigo: #6366f1;
  --pigsty-pg-blue: #336791;

  /* Accent Colors */
  --pigsty-green: #22c55e;
  --pigsty-orange: #f59e0b;
  --pigsty-red: #ef4444;
  --pigsty-purple: #8b5cf6;

  /* Neutral Colors */
  --pigsty-white: #ffffff;
  --pigsty-gray-50: #f8fafc;
  --pigsty-gray-100: #f1f5f9;
  --pigsty-gray-200: #e2e8f0;
  --pigsty-gray-300: #cbd5e1;
  --pigsty-gray-400: #94a3b8;
  --pigsty-gray-500: #64748b;
  --pigsty-gray-600: #475569;
  --pigsty-gray-700: #334155;
  --pigsty-gray-800: #1e293b;
  --pigsty-gray-900: #0f172a;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0f1419 0%, #1a1f35 50%, #0f1419 100%);
  --gradient-blue: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);

  /* Spacing */
  --section-padding: 100px;
  --container-max: 1280px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ============================================
   Base Styles
   ============================================ */

/* Ensure html and body have no gaps and match hero background */
html {
  background: var(--pigsty-dark);
}

body.landing-page {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--pigsty-gray-100);
  background: var(--pigsty-dark);
  overflow-x: hidden;
}

.landing-page {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--pigsty-gray-100);
  background: var(--pigsty-dark);
  overflow-x: hidden;
}

.landing-page * {
  box-sizing: border-box;
}

.landing-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .landing-container {
    padding: 0 16px;
  }
}

/* ============================================
   Section Base
   ============================================ */

.landing-section {
  padding: var(--section-padding) 0;
  position: relative;
}

.landing-section--dark {
  background: var(--pigsty-darker);
}

.landing-section--light {
  background: var(--pigsty-gray-50);
  color: var(--pigsty-gray-900);
}

.landing-section--gradient {
  background: var(--gradient-hero);
}

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--pigsty-gray-400);
  max-width: 700px;
  margin: 0 auto;
}

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

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* ============================================
   Navigation Header
   ============================================ */

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: all var(--transition-base);
}

.landing-header.scrolled {
  background: rgba(15, 20, 25, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--pigsty-white);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo {
  height: 32px;
  width: auto;
}

.nav-title {
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--pigsty-gray-300);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--pigsty-white);
}

.nav-link--icon {
  font-size: 1.25rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pigsty-white);
  transition: all var(--transition-fast);
}

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

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(15, 20, 25, 0.98);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-link {
  color: var(--pigsty-gray-300);
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-link:hover {
  color: var(--pigsty-white);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* ============================================
   Hero Section (Cinematic Layout)
   ============================================ */

.hero {
  display: flex;
  align-items: center;
  min-height: 85vh;
  margin-top: 0;
  padding-top: 120px;
  padding-right: 60px;
  padding-bottom: 60px;
  padding-left: 60px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Background Grid Pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}

/* Glow Effect */
.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: 0;
  width: 70%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero Container - Balanced 35:65 Layout */
.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

/* Left Column - Text Content */
.hero-left {
  text-align: left;
}

/* Right Column - Image */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 108%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

/* Legacy centered content support */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--pigsty-blue);
  margin-bottom: 32px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-badge:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title-main {
  display: block;
  color: var(--pigsty-white);
  margin-bottom: 4px;
}

.hero-title-accent {
  display: block;
  font-size: 3.2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--pigsty-gray-400);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--pigsty-white);
  font-weight: 600;
}

/* Command Box */
.command-box {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.hero-content .command-box {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.command-box:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-glow);
}

.command-prompt {
  color: var(--pigsty-green);
  font-family: var(--font-mono);
  font-weight: 600;
}

.command-text {
  color: var(--pigsty-orange);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-copy {
  background: none;
  border: none;
  color: var(--pigsty-gray-400);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.command-copy:hover {
  color: var(--pigsty-white);
  background: rgba(255, 255, 255, 0.1);
}

/* CTA Buttons */
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--pigsty-gray-300);
  border: 1px solid var(--pigsty-gray-600);
}

.btn-outline:hover {
  color: white;
  border-color: var(--pigsty-gray-400);
}

/* Hero Features */
.hero-features {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--pigsty-gray-400);
  font-size: 0.85rem;
}

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

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-feature i {
  color: var(--pigsty-green);
}

/* Hero Responsive - Large Desktop */
@media (max-width: 1400px) {
  .hero {
    padding: 100px 40px 50px;
  }

  .hero-container {
    gap: 32px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-title-accent {
    font-size: 2.8rem;
  }

  .hero-image {
    width: 110%;
  }
}

/* Hero Responsive - Tablet */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 32px 40px;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 700px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-right {
    order: -1;
  }

  .hero-image {
    width: 100%;
    max-width: 550px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-title-accent {
    font-size: 2.4rem;
  }

  .command-box {
    margin-left: auto;
    margin-right: auto;
  }

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

/* Hero Responsive - Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 90px 20px 32px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-title-accent {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .command-box {
    width: 100%;
    justify-content: center;
  }

  .command-text {
    font-size: 0.7rem;
  }

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

  .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}

/* ============================================
   Gallery Section (Full-width Image Carousel)
   ============================================ */

.gallery-section {
  background: linear-gradient(180deg, var(--pigsty-dark) 0%, var(--pigsty-darker) 100%);
  padding: 48px 0;
  overflow: hidden;
}

.gallery-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Fade edges */
.gallery-marquee::before,
.gallery-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.gallery-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--pigsty-dark) 0%, transparent 100%);
}

.gallery-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--pigsty-darker) 100%);
}

.gallery-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: gallery-scroll 50s linear infinite;
}

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

@keyframes gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.gallery-slide {
  flex-shrink: 0;
  width: 720px;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-slide:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(59, 130, 246, 0.3);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .gallery-section {
    padding: 32px 0;
  }

  .gallery-slide {
    width: 560px;
    height: 350px;
  }

  .gallery-track {
    gap: 24px;
  }

  .gallery-marquee::before,
  .gallery-marquee::after {
    width: 60px;
  }
}

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

  .gallery-slide {
    width: 340px;
    height: 220px;
    border-radius: 12px;
  }

  .gallery-track {
    gap: 16px;
  }

  .gallery-marquee::before,
  .gallery-marquee::after {
    width: 40px;
  }
}

/* ============================================
   Pain Points Section
   ============================================ */

.pain-points {
  background: var(--pigsty-darker);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay for depth */
.pain-points::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center top, rgba(239, 68, 68, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.pain-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow effect */
.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.pain-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(239, 68, 68, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(239, 68, 68, 0.05);
}

.pain-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: inline-block;
  animation: pain-icon-float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

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

.pain-card:nth-child(1) .pain-icon { animation-delay: 0s; }
.pain-card:nth-child(2) .pain-icon { animation-delay: 0.5s; }
.pain-card:nth-child(3) .pain-icon { animation-delay: 1s; }

.pain-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--pigsty-white);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pain-desc {
  color: var(--pigsty-gray-300);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.pain-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--pigsty-gray-500);
  font-size: 0.85rem;
  line-height: 1.5;
  font-style: italic;
}

.pain-solution {
  text-align: center;
  font-size: 1.35rem;
  color: var(--pigsty-gray-300);
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.pain-solution strong {
  color: var(--pigsty-blue);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 992px) {
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pain-card {
    padding: 28px 20px;
  }

  .pain-icon {
    font-size: 2.8rem;
  }

  .pain-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .pain-grid {
    gap: 20px;
  }

  .pain-solution {
    font-size: 1.15rem;
  }
}

/* ============================================
   Features Section (Zigzag Layout)
   ============================================ */

.features-zigzag {
  background: var(--pigsty-dark);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

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

/* 技术领域标签 */
.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pigsty-blue);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.feature-emoji {
  font-size: 1.4rem;
}

/* 主标题 Slogan */
.feature-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--pigsty-white);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* 功能说明列表 */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.feature-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 12px;
  color: var(--pigsty-gray-300);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list strong {
  color: var(--pigsty-white);
  font-weight: 600;
}

/* CTA 区域 */
.feature-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-value {
  display: block;
  color: var(--pigsty-gray-400);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 14px;
  font-style: italic;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pigsty-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: gap 0.2s ease;
}

.feature-link:hover {
  gap: 12px;
}

.feature-link i {
  font-size: 0.875rem;
}

/* 视觉区域 */
.feature-visual {
  position: relative;
}

.feature-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 代码块 */
.feature-code {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-x: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-code .comment {
  color: var(--pigsty-gray-500);
}

.feature-code .key {
  color: var(--pigsty-blue);
}

.feature-code .value {
  color: var(--pigsty-green);
}

.feature-code .string {
  color: var(--pigsty-orange);
}

/* Legacy desc style */
.feature-desc {
  color: var(--pigsty-gray-400);
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .feature-row {
    gap: 50px;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .feature-label {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 70px;
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .feature-content {
    max-width: none;
  }

  .feature-title {
    font-size: 1.35rem;
  }

  .feature-label {
    font-size: 0.75rem;
  }

  .feature-list li {
    font-size: 0.85rem;
  }

  .feature-value {
    font-size: 0.825rem;
  }

  .feature-code {
    padding: 18px;
    font-size: 0.75rem;
  }
}

/* ============================================
   Ecosystem Section (Extensions + Kernels Combined)
   ============================================ */

.ecosystem-section {
  background: linear-gradient(180deg, var(--pigsty-dark) 0%, var(--pigsty-darker) 100%);
  overflow: hidden;
}

.section-links {
  display: block;
  margin-top: 16px;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pigsty-blue);
  text-decoration: none;
  font-weight: 500;
  margin: 0 16px;
  transition: all var(--transition-fast);
}

.section-links a:hover {
  color: var(--pigsty-indigo);
}

.section-links a i {
  font-size: 0.75rem;
}

/* Extensions Marquee */
.extensions-marquee {
  margin-bottom: 48px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Fade edges */
.extensions-marquee::before,
.extensions-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.extensions-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--pigsty-dark) 0%, transparent 100%);
}

.extensions-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--pigsty-darker) 100%);
}

.marquee-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 4px 0;
}

.marquee-row:last-child {
  margin-bottom: 0;
}

.marquee-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  will-change: transform;
}

/* Left scrolling animation */
.marquee-row[data-direction="left"] .marquee-content {
  animation: marquee-left 40s linear infinite;
}

/* Right scrolling animation - starts visible, moves right then resets */
.marquee-row[data-direction="right"] .marquee-content {
  animation: marquee-right 40s linear infinite;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Pause animation on hover */
.marquee-row:hover .marquee-content {
  animation-play-state: paused;
}

/* Extension Pill Style */
.ext-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  color: var(--pigsty-gray-300);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.ext-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--pigsty-white);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Kernels Grid - 2 rows x 5 columns */
.kernels-grid-new {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.kernel-card-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.kernel-card-new:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.kernel-icon-new {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kernel-icon-new img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kernel-name-new {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pigsty-white);
  margin-bottom: 4px;
  text-align: center;
}

.kernel-desc-new {
  color: var(--pigsty-gray-500);
  font-size: 0.75rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .kernels-grid-new {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .kernel-card-new {
    padding: 16px 8px;
  }

  .kernel-icon-new {
    width: 32px;
    height: 32px;
  }

  .kernel-name-new {
    font-size: 0.8rem;
  }

  .kernel-desc-new {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  .extensions-marquee::before,
  .extensions-marquee::after {
    width: 40px;
  }

  .ext-pill {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .marquee-row {
    margin-bottom: 8px;
  }

  .kernels-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kernel-card-new {
    padding: 16px 12px;
  }

  .section-links a {
    display: block;
    margin: 8px 0;
  }
}

@media (max-width: 480px) {
  .kernels-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }

  .ext-pill {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* ============================================
   Cost Comparison Section
   ============================================ */

.cost-section {
  background: var(--pigsty-dark);
}

.cost-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 48px;
}

.cost-box {
  text-align: center;
}

.cost-box-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--pigsty-gray-400);
}

.cost-box-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cost-box--rds .cost-box-price {
  color: var(--pigsty-red);
  text-decoration: line-through;
  opacity: 0.7;
}

.cost-box--pigsty .cost-box-price {
  color: var(--pigsty-green);
}

.cost-box-note {
  color: var(--pigsty-gray-500);
  font-size: 0.85rem;
}

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

.cost-vs-text {
  font-size: 1rem;
  color: var(--pigsty-gray-500);
}

.cost-vs-badge {
  background: var(--gradient-blue);
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
}

.cost-note {
  text-align: center;
  margin-top: 32px;
  color: var(--pigsty-gray-500);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cost-comparison {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }

  .cost-vs {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   Social Proof Section
   ============================================ */

.social-proof {
  background: var(--pigsty-darker);
  overflow: hidden;
}

/* Logo Marquee */
.logos-marquee {
  margin-bottom: 48px;
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Fade edges */
.logos-marquee::before,
.logos-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.logos-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--pigsty-darker) 0%, transparent 100%);
}

.logos-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--pigsty-darker) 100%);
}

.logos-marquee-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 8px 0;
}

.logos-marquee-row:last-child {
  margin-bottom: 0;
}

.logos-marquee-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 48px;
  width: max-content;
  will-change: transform;
  align-items: center;
}

/* Slow scrolling animation */
.logos-marquee-row[data-direction="left"] .logos-marquee-content {
  animation: logos-marquee-left 60s linear infinite;
}

@keyframes logos-marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pause animation on hover */
.logos-marquee-row:hover .logos-marquee-content {
  animation-play-state: paused;
}

.logo-item {
  opacity: 0.5;
  transition: all var(--transition-base);
  filter: grayscale(100%);
  flex-shrink: 0;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.logo-item img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logos-marquee::before,
  .logos-marquee::after {
    width: 60px;
  }

  .logos-marquee-content {
    gap: 32px;
  }

  .logo-item img {
    height: 28px;
    max-width: 100px;
  }
}

.testimonial {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--pigsty-gray-300);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  color: var(--pigsty-gray-500);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--pigsty-blue);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--pigsty-gray-500);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   Quick Start Section (CTA)
   ============================================ */

.quickstart-section {
  background: linear-gradient(180deg, var(--pigsty-darker) 0%, var(--pigsty-dark) 100%);
  padding-bottom: 80px;
}

.quickstart-section .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.quickstart-section .section-title i {
  color: var(--pigsty-orange);
}

/* New Steps Grid - Horizontal Layout */
.steps-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.step-card-new {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  transition: all var(--transition-base);
}

.step-card-new:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

.step-number-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gradient-blue);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.step-title-new {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pigsty-white);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.step-title-new:hover {
  color: var(--pigsty-blue);
}

/* Simple Command Box */
.step-cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}

.step-cmd-text {
  flex: 1;
  color: var(--pigsty-orange);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-cmd-copy {
  background: none;
  border: none;
  color: var(--pigsty-gray-500);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  font-size: 0.85rem;
}

.step-cmd-copy:hover {
  color: var(--pigsty-white);
  background: rgba(255, 255, 255, 0.1);
}

/* Asciinema Container */
.asciinema-container {
  max-width: 900px;
  margin: 0 auto 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a2e;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.asciinema-container .ap-player {
  font-size: 14px !important;
}

/* Installation Options */
.install-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.install-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.install-option:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.install-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  color: var(--pigsty-blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.install-option:hover .install-option-icon {
  background: rgba(59, 130, 246, 0.2);
}

.install-option-content {
  flex: 1;
}

.install-option-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pigsty-white);
  margin: 0 0 4px 0;
}

.install-option-desc {
  font-size: 0.85rem;
  color: var(--pigsty-gray-400);
  margin: 0;
}

/* Platforms */
.platforms {
  text-align: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  color: var(--pigsty-gray-400);
  font-size: 0.9rem;
  max-width: 900px;
  margin: 0 auto;
}

.platforms strong {
  color: var(--pigsty-gray-300);
}

/* Responsive */
@media (max-width: 768px) {
  .steps-grid-new {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .install-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .install-option {
    padding: 16px 20px;
  }

  .step-cmd-text {
    font-size: 0.75rem;
  }

  .asciinema-container {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
  }
}

/* ============================================
   Final CTA Section
   ============================================ */

.final-cta {
  background: linear-gradient(135deg, var(--pigsty-navy) 0%, var(--pigsty-dark) 100%);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0.5;
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--pigsty-white);
}

.final-cta .command-box {
  margin-bottom: 40px;
}

.final-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.community-links {
  color: var(--pigsty-gray-400);
}

.community-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pigsty-gray-400);
  text-decoration: none;
  margin: 0 12px;
  transition: color var(--transition-fast);
}

.community-links a:hover {
  color: var(--pigsty-white);
}

@media (max-width: 768px) {
  .final-cta-title {
    font-size: 1.75rem;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   Footer
   ============================================ */

.landing-footer {
  background: var(--pigsty-darker);
  padding: 80px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pigsty-white);
  text-decoration: none;
}

.footer-logo img {
  height: 32px;
}

.footer-tagline {
  color: var(--pigsty-gray-500);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* PIGSTY 首字母配色 - 低饱和度版本 */
.footer-tagline .hl-p { color: #5a8cb8; } /* sky-700 柔和 */
.footer-tagline .hl-i { color: #7aa3c9; } /* blue-400 柔和 */
.footer-tagline .hl-g { color: #cc8a4d; } /* orange-500 柔和 */
.footer-tagline .hl-s { color: #8a8a8a; } /* gray-500 */
.footer-tagline .hl-t { color: #b85c5c; } /* red-700 柔和 */
.footer-tagline .hl-y { color: #5a9a6a; } /* green-600 柔和 */

.footer-slogan {
  color: var(--pigsty-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

/* 好数据库 - 柔和蓝色 */
.footer-slogan .hl-good {
  color: #7da8d4;
}

/* 用好 - 柔和橙色 */
.footer-slogan .hl-use {
  color: #d4a574;
}

.footer-column-title {
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--pigsty-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--pigsty-gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--pigsty-gray-500);
  font-size: 0.85rem;
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
}

.footer-lang-switch a {
  color: var(--pigsty-gray-400);
  text-decoration: none;
  margin-left: 16px;
}

.footer-lang-switch a:hover {
  color: var(--pigsty-white);
}

@media (max-width: 968px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   Animations
   ============================================ */

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gradient {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--pigsty-gray-500); }
.text-white { color: var(--pigsty-white); }
.text-blue { color: var(--pigsty-blue); }
.text-green { color: var(--pigsty-green); }
.text-orange { color: var(--pigsty-orange); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* ============================================
   Community Section with Testimonials Marquee
   ============================================ */

.community-section {
  background: var(--pigsty-dark);
  overflow: hidden;
}

/* Community Buttons */
.community-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--pigsty-gray-300);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-base);
}

.community-btn:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--pigsty-white);
  transform: translateY(-2px);
}

.community-btn i {
  font-size: 1.1rem;
}

/* WeChat icon color */
.community-btn .fa-weixin { color: #07c160; }
/* GitHub icon stays default */
/* Discord icon color */
.community-btn .fa-discord { color: #5865f2; }
/* Telegram icon color */
.community-btn .fa-telegram { color: #26a5e4; }

/* Testimonials Marquee */
.testimonials-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Fade edges */
.testimonials-marquee::before,
.testimonials-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 10;
  pointer-events: none;
}

.testimonials-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--pigsty-dark) 0%, transparent 100%);
}

.testimonials-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--pigsty-dark) 100%);
}

.testimonials-row {
  display: flex;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 8px 0;
}

.testimonials-row:last-child {
  margin-bottom: 0;
}

.testimonials-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

/* Left scrolling animation */
.testimonials-row[data-direction="left"] .testimonials-content {
  animation: testimonials-left 60s linear infinite;
}

/* Right scrolling animation */
.testimonials-row[data-direction="right"] .testimonials-content {
  animation: testimonials-right 60s linear infinite;
}

@keyframes testimonials-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes testimonials-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Pause animation on hover */
.testimonials-row:hover .testimonials-content {
  animation-play-state: paused;
}

/* Testimonial Card */
.testimonial-card {
  flex-shrink: 0;
  width: 380px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--pigsty-white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-title {
  font-size: 0.8rem;
  color: var(--pigsty-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-text {
  color: var(--pigsty-gray-300);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .community-buttons {
    gap: 12px;
  }

  .community-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .testimonials-marquee::before,
  .testimonials-marquee::after {
    width: 60px;
  }

  .testimonial-card {
    width: 300px;
    padding: 20px;
  }

  .testimonials-row {
    margin-bottom: 16px;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
  }

  .testimonial-name {
    font-size: 0.9rem;
  }

  .testimonial-title {
    font-size: 0.75rem;
  }

  .testimonial-text {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 480px) {
  .community-buttons {
    flex-direction: column;
    align-items: center;
  }

  .community-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .testimonial-card {
    width: 260px;
    padding: 16px;
  }

  .testimonials-content {
    gap: 12px;
  }
}

/* ============================================
   Dashboard Gallery Section
   Slow-scrolling showcase with lazy loading
   ============================================ */

.dashboard-gallery-section {
  padding: 48px 0;
  background: linear-gradient(180deg, var(--pigsty-darker) 0%, var(--pigsty-dark) 100%);
  overflow: hidden;
}

.dashboard-gallery-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Fade edges */
.dashboard-gallery-marquee::before,
.dashboard-gallery-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.dashboard-gallery-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--pigsty-darker) 0%, transparent 100%);
}

.dashboard-gallery-marquee::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--pigsty-dark) 100%);
}

.dashboard-gallery-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  animation: dashboard-scroll 300s linear infinite;
}

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

@keyframes dashboard-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.dashboard-gallery-slide {
  flex-shrink: 0;
  width: 560px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  position: relative;
}

/* Loading placeholder */
.dashboard-gallery-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.dashboard-gallery-slide.loaded::before {
  display: none;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.dashboard-gallery-slide:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(59, 130, 246, 0.1);
}

.dashboard-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dashboard-gallery-slide.loaded img {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-gallery-section {
    padding: 32px 0;
  }

  .dashboard-gallery-slide {
    width: 480px;
    height: 300px;
  }

  .dashboard-gallery-track {
    gap: 20px;
  }

  .dashboard-gallery-marquee::before,
  .dashboard-gallery-marquee::after {
    width: 80px;
  }
}

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

  .dashboard-gallery-slide {
    width: 320px;
    height: 200px;
    border-radius: 12px;
  }

  .dashboard-gallery-track {
    gap: 16px;
    animation-duration: 200s;
  }

  .dashboard-gallery-marquee::before,
  .dashboard-gallery-marquee::after {
    width: 40px;
  }
}
