/* =========================================
   RemoveMarca – Main Stylesheet
   ========================================= */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #6c3ef4;
  --primary-dark: #5128d4;
  --primary-light: #9b73ff;
  --accent: #f43eb7;
  --bg-dark: #0d0d1a;
  --bg-card: #14142a;
  --bg-card2: #1a1a35;
  --border: rgba(108, 62, 244, 0.25);
  --text: #f0eeff;
  --text-muted: #9896b8;
  --success: #22d383;
  --error: #f43e3e;
  --radius: 16px;
  --shadow: 0 8px 40px rgba(108, 62, 244, 0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* =========================================
   HEADER
   ========================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.logo-text strong { color: var(--primary-light); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--text); }

.btn-nav {
  background: var(--primary);
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.1s !important;
}

.btn-nav:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* =========================================
   HERO
   ========================================= */
#hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 100px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 62, 244, 0.15);
  border: 1px solid var(--border);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 440px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(108, 62, 244, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 62, 244, 0.55);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  width: 160px;
}

.card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.before-label { color: var(--error); }
.after-label  { color: var(--success); }

.mock-image {
  height: 100px;
  background: linear-gradient(135deg, #2a2a4a, #1e1e3a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mock-watermark {
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: rotate(-15deg);
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 8px rgba(255,255,255,0.1);
}

.mock-image.clean {
  background: linear-gradient(135deg, #1a3a2a, #0d2a1a);
}

.clean-icon {
  font-size: 2rem;
  color: var(--success);
  opacity: 0.7;
}

.arrow-between {
  font-size: 1.4rem;
  color: var(--primary-light);
  opacity: 0.7;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
#how-it-works {
  padding: 80px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-container {
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

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

.step-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 260px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step-connector {
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0.5;
  padding: 0 12px;
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .step-connector { display: none; }
  .steps-grid { gap: 28px; }
}

/* =========================================
   TOOL SECTION
   ========================================= */
#tool-section {
  padding: 80px 24px;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
  background: var(--bg-card);
  position: relative;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--primary);
  background: rgba(108, 62, 244, 0.06);
}

.upload-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.upload-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.upload-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.upload-hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 24px;
  opacity: 0.7;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 24px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-upload:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Processing Panel */
.processing-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* Preview Row */
.preview-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.preview-col {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-box {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  max-height: 360px;
}

.preview-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 4px;
}

.divider-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  min-height: 30px;
}

.divider-icon {
  color: var(--primary-light);
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Result Placeholder */
.result-placeholder,
.result-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  width: 100%;
}

.placeholder-icon {
  font-size: 2.2rem;
  opacity: 0.4;
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-light);
}

.loading-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Progress Bar */
.progress-bar-wrap {
  width: 100%;
  max-width: 200px;
  height: 4px;
  background: var(--bg-dark);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
  animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Compare Slider */
.compare-container {
  margin-bottom: 24px;
}

.compare-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

.compare-wrapper {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
  border: 1px solid var(--border);
  user-select: none;
  background: var(--bg-card2);
}

.compare-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 400px;
}

.compare-after {
  position: relative;
  z-index: 1;
}

.compare-before-wrap {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}

.compare-before {
  width: auto;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.handle-line {
  flex: 1;
  width: 2px;
  background: #fff;
  opacity: 0.85;
}

.handle-btn {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 0.85rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

/* Action Row */
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, box-shadow 0.15s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 18px rgba(108, 62, 244, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(108, 62, 244, 0.5);
}

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

.btn-secondary {
  background: var(--bg-card2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

.btn-download {
  background: var(--success);
  color: #0d1a10;
  box-shadow: 0 4px 18px rgba(34, 211, 131, 0.3);
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(34, 211, 131, 0.45);
}

/* Error Toast */
.error-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 62, 62, 0.12);
  border: 1px solid rgba(244, 62, 62, 0.4);
  color: #ff8080;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 18px;
  font-size: 0.88rem;
}

.error-toast i:first-child { color: var(--error); }

.error-toast span { flex: 1; }

.toast-close {
  background: none;
  border: none;
  color: #ff8080;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.toast-close:hover { opacity: 1; }

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  background: var(--bg-card);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* =========================================
   UTILITIES
   ========================================= */
.hidden { display: none !important; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  #hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 40px;
  }

  .hero-subtitle { margin: 0 auto 36px; }

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

  .preview-row {
    flex-direction: column;
  }

  .preview-divider {
    flex-direction: row;
    padding: 0;
    height: auto;
    gap: 8px;
  }

  .divider-line {
    width: auto;
    height: 1px;
    flex: 1;
    min-height: unset;
  }

  .action-row {
    justify-content: center;
  }

  .header-nav a:not(.btn-nav) { display: none; }
}

@media (max-width: 480px) {
  .hero-visual { flex-direction: column; gap: 12px; }
  .arrow-between { transform: rotate(90deg); }
  .hero-card { width: 140px; }
}
