:root {
  --bg: #0b0d0c;
  --panel: #151816;
  --panel-2: #1c211e;
  --border: #303630;
  --text: #f4f5f2;
  --muted: #a8afa8;
  --gold: #e3b341;
  --gold-soft: #ffe49c;
  --green: #68c77b;
  --danger: #ff7e75;
  --shadow: 0 22px 70px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(227, 179, 65, .14), transparent 34rem),
    radial-gradient(circle at 100% 22%, rgba(49, 117, 80, .14), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0 40px;
}

.hero { max-width: 760px; margin-bottom: 34px; }
.eyebrow {
  display: inline-flex;
  color: var(--gold-soft);
  background: rgba(227, 179, 65, .1);
  border: 1px solid rgba(227, 179, 65, .28);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 14px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(28, 33, 30, .94), rgba(19, 22, 20, .96));
  box-shadow: var(--shadow);
}

.section-heading,
.section-heading > div,
.password-row,
.run-status {
  display: flex;
  align-items: center;
}

.section-heading { justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-heading > div { gap: 12px; }
.section-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }

.step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(227, 179, 65, .13);
  color: var(--gold);
  font-weight: 800;
}

.step.complete { background: rgba(104, 199, 123, .15); color: var(--green); }
.format-pill {
  padding: 6px 9px;
  border-radius: 8px;
  background: #0e110f;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.drop-zone {
  display: flex;
  min-height: 220px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1.5px dashed #4c554d;
  border-radius: 17px;
  background: rgba(6, 8, 7, .4);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--gold);
  background: rgba(227, 179, 65, .055);
  transform: translateY(-1px);
}

.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(227, 179, 65, .14);
  color: var(--gold);
  font-size: 25px;
}
.drop-zone strong { margin-bottom: 6px; font-size: 18px; }
.drop-zone span:last-child { color: var(--muted); font-size: 14px; }

.status {
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(104, 199, 123, .09);
  border: 1px solid rgba(104, 199, 123, .25);
  color: #bdebc6;
  font-size: 14px;
}

.status.error {
  background: rgba(255, 126, 117, .09);
  border-color: rgba(255, 126, 117, .28);
  color: #ffc0bb;
}

.card-grid,
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.preview-card,
.result-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #0d100e;
}

.preview-card img,
.result-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #060706;
}

.preview-copy { padding: 15px; }
.card-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.preview-copy h3 { margin: 0 0 7px; color: var(--gold); font-size: 17px; }
.preview-copy p { margin: 0; color: #ecf0eb; font-size: 13px; line-height: 1.45; }

.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.password-row { align-items: stretch; gap: 9px; }
.password-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid #3a423b;
  border-radius: 12px;
  outline: none;
  background: #0d100e;
  color: var(--text);
  padding: 0 14px;
}
.password-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 179, 65, .12); }
.field-help { margin: 8px 0 17px; color: var(--muted); font-size: 12px; }

.primary-button,
.ghost-button {
  cursor: pointer;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
}
.primary-button {
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  background: var(--gold);
  color: #171307;
  transition: transform .16s ease, filter .16s ease;
}
.primary-button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.primary-button:disabled { cursor: not-allowed; opacity: .38; }
.ghost-button { padding: 10px 13px; background: #282e29; color: var(--text); }

.run-status {
  gap: 13px;
  margin-top: 15px;
  padding: 15px;
  border-radius: 13px;
  background: #0d100e;
  border: 1px solid var(--border);
}
.run-status strong,
.run-status span { display: block; }
.run-status span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 3px solid rgba(227, 179, 65, .22);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-copy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; }
.result-copy strong { font-size: 14px; }
.result-copy a { color: var(--gold-soft); font-size: 13px; font-weight: 800; text-decoration: none; }
.temporary-note { margin: 15px 0 0; color: var(--muted); font-size: 12px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 4px 0;
  color: #6f766f;
  font-size: 11px;
}

.hidden { display: none !important; }

@media (max-width: 700px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 38px; }
  .panel { padding: 17px; border-radius: 17px; }
  .card-grid, .results-grid { grid-template-columns: 1fr; }
  .password-row { flex-direction: column; }
  footer { flex-direction: column; }
}
