@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0a;
  --surface: #161616;
  --border: #2a2a2a;
  --accent: #f5a623;
  --accent-hover: #e6951a;
  --text: #f0f0f0;
  --text-dim: #888;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 900px;
  padding: 2rem 1.5rem;
  text-align: center;
}

header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 5rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-shadow: 0 0 40px rgba(245, 166, 35, 0.3);
  line-height: 1;
}

.tagline {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

.screen { display: none; }
.screen.active { display: block; }

/* Upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 4rem 2rem;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: #1a1a1a;
}
.upload-icon { font-size: 4rem; margin-bottom: 1rem; }
.upload-zone p { font-size: 1.1rem; color: var(--text-dim); }
.upload-zone .sub { font-size: 0.9rem; margin: 0.5rem 0; }
.upload-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.upload-btn:hover { background: var(--accent-hover); }

/* Loading */
.loader {
  padding: 4rem;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loader p {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

/* Before/After */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 1.5rem auto;
  max-width: 800px;
}
.compare-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: var(--surface);
}
.compare-card img {
  display: block;
  width: 100%;
  height: auto;
}
.compare-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

/* Buttons */
.action-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-dim); }
.btn-text {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 1rem;
  font-family: 'Inter', sans-serif;
  text-decoration: underline;
}
.btn-text:hover { color: var(--text); }

footer {
  margin-top: 3rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-style: italic;
}

@media (max-width: 600px) {
  header h1 { font-size: 3.5rem; }
  .upload-zone { padding: 3rem 1.5rem; }
  .compare-wrap { grid-template-columns: 1fr; }
}
