/* =========================================
   UPSCALE TOOL — Dezens Design System
   ========================================= */

.upscale-app {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.upscale-header {
  text-align: center;
  margin-bottom: 3rem;
}

.upscale-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.upscale-title {
  font-family: 'Syne', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.upscale-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Tool Card ──────────────────────────────────── */
.upscale-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* ─── Drop Zone ─────────────────────────────────── */
.drop-zone {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  border-bottom: 1px solid var(--border);
}

.drop-zone.drag-over {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
}

.drop-label {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.drop-sublabel {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Preview ──────────────────────────────────── */
.preview-wrap {
  position: relative;
  display: inline-block;
  margin: 1.5rem;
}

.preview-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  display: block;
}

.btn-remove {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.btn-remove:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ─── Controls ──────────────────────────────────── */
.controls-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scale-btns {
  display: flex;
  gap: 0.4rem;
}

.scale-btn {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: 'Figtree', sans-serif;
}

.scale-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scale-btn:hover:not(.active) {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.btn-upscale {
  margin-left: auto;
  padding: 0.6rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  transition: opacity 0.15s;
}

.btn-upscale:hover { opacity: 0.88; }

/* ─── Process State ────────────────────────────── */
.process-state {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Result State ─────────────────────────────── */
.result-state {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.result-info {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-info span {
  background: var(--surface-2);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  transition: opacity 0.15s;
}

.btn-download:hover { opacity: 0.88; }

.btn-try-again {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Figtree', sans-serif;
  transition: color 0.15s, border-color 0.15s;
}

.btn-try-again:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ─── Error State ─────────────────────────────── */
.error-state {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

#errorMsg {
  color: #ff6b6b;
  font-size: 0.9rem;
}

/* ─── Feature Chips ─────────────────────────────── */
.feature-chips {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link--active {
  color: var(--accent) !important;
}

/* ─── How It Works ─────────────────────────────── */
.how-it-works {
  margin-top: 4rem;
  text-align: center;
}

.how-it-works .section-label {
  margin-bottom: 0.5rem;
}

.how-it-works .section-heading {
  margin-bottom: 2.5rem;
}

.how-it-works .process-steps {
  justify-content: center;
}

.how-it-works .step-number {
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-family: var(--font-display);
}

.how-it-works .step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.how-it-works .step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── Social Proof ──────────────────────────────── */
.social-proof {
  margin-top: 3.5rem;
  text-align: center;
}

.social-proof .section-label {
  margin-bottom: 2rem;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}

.testimonial-card:hover {
  border-color: rgba(255, 107, 53, 0.3);
  transform: translateY(-3px);
}

.stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
}

.testimonial-quote {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.author-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cta-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}