* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --success: #10b981;
  --error: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 20px;
  color: white;
  padding: 20px 0;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
  font-size: 16px;
  opacity: 0.95;
  font-weight: 300;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
  padding: 40px 0;
}

.hero-content {
  color: white;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
  display: block;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.hero-demo {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.before-after-demo {
  text-align: center;
}

.demo-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
  opacity: 0.9;
}

.demo-image {
  width: 200px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.arrow {
  font-size: 32px;
  color: #10b981;
  font-weight: bold;
}

/* Hero Upload */
.hero-upload {
  margin-top: 40px;
}

.quick-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  max-width: 400px;
  margin: 0 auto;
}

.quick-upload-area:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.quick-upload-area.dragover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  border-style: solid;
}

.quick-upload-prompt .upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: #10b981;
}

.quick-upload-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.quick-upload-hint {
  font-size: 14px;
  color: white;
  opacity: 0.7;
}

.hero-preview-container {
  text-align: center;
  margin-top: 20px;
}

.hero-preview-container.hidden {
  display: none;
}

.hero-preview-image {
  max-width: 200px;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Social Proof */
.social-proof {
  margin-bottom: 80px;
  padding: 60px 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-content {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: white;
  font-style: italic;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-name {
  font-weight: 600;
  color: white;
  font-size: 16px;
}

.author-title {
  font-size: 14px;
  opacity: 0.8;
  color: white;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 16px;
  font-weight: 500;
}

.trust-icon {
  font-size: 20px;
}

/* Gallery Section */
.gallery-section {
  margin-bottom: 80px;
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-size: 18px;
  color: white;
  opacity: 0.8;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

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

.gallery-label {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

/* Features Section */
.features-section {
  margin-bottom: 80px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: transform 0.2s;
}

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

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

.feature-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: white;
  opacity: 0.9;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-bottom: 80px;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: white;
  opacity: 0.9;
}

.cta-guarantee {
  margin-top: 20px;
  font-size: 14px;
  color: white;
  opacity: 0.8;
}

/* Main */
.main {
  margin-bottom: 40px;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

/* Card */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}

.card h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

.subtitle {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 16px;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
  margin-bottom: 24px;
}

.upload-area:hover {
  border-color: var(--primary);
  background: #f3f4f6;
}

.upload-area.dragover {
  border-color: var(--primary);
  background: #eef2ff;
  border-style: solid;
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.upload-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.upload-hint {
  font-size: 14px;
  color: var(--text-light);
}

/* Preview */
.preview-container {
  text-align: center;
  margin-bottom: 24px;
}

.preview-container.hidden {
  display: none;
}

.preview-container img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
  width: 100%;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Features */
.features {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  opacity: 0.95;
}

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

/* Processing */
.loading-spinner {
  text-align: center;
  margin: 40px 0;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

.processing-status {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.processing-time {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

/* Comparison Slider */
.comparison-container {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.comparison-image {
  width: 100%;
  display: block;
  pointer-events: none;
}

.comparison-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 2;
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  gap: 2px;
}

.slider-button svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Result Actions */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guarantee {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: 16px;
}

/* Success */
.success-card {
  text-align: center;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 16px;
}

.success-actions {
  margin-top: 16px;
}

.receipt-note {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: 16px;
}

/* Footer */
.footer {
  text-align: center;
  color: white;
  opacity: 0.8;
  font-size: 14px;
}

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

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

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

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

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

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

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

  .demo-image {
    width: 150px;
    height: 225px;
  }

  .quick-upload-area {
    padding: 30px 15px;
    max-width: 100%;
  }

  .quick-upload-text {
    font-size: 16px;
  }

  .hero-preview-image {
    max-width: 150px;
    max-height: 225px;
  }

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

  .trust-badges {
    flex-direction: column;
    gap: 20px;
  }

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

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

  .card {
    padding: 24px;
  }

  .logo {
    font-size: 28px;
  }

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

  .cta-content h2 {
    font-size: 28px;
  }
}

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

  .demo-image {
    width: 120px;
    height: 180px;
  }

  .arrow {
    font-size: 24px;
  }

  .stat-number {
    font-size: 24px;
  }
}

