@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Manrope:wght@400;600;700&display=swap");

:root {
  --bg: #081018;
  --panel: rgba(17, 30, 44, 0.76);
  --panel-border: rgba(135, 174, 209, 0.26);
  --primary: #63d4b4;
  --primary-strong: #35c6c2;
  --accent: #ffd166;
  --text: #ebf4ff;
  --muted: #9eb2c8;
  --danger: #ff6b6b;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(53, 198, 194, 0.22), transparent 35%),
    radial-gradient(circle at 80% 15%, rgba(255, 209, 102, 0.12), transparent 40%),
    linear-gradient(130deg, #050b11, #0a1622 45%, #091320);
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(26px);
  pointer-events: none;
  z-index: 0;
  animation: drift 8s ease-in-out infinite alternate;
}

.orb-a {
  width: 280px;
  height: 280px;
  left: -80px;
  top: 40px;
  background: rgba(53, 198, 194, 0.24);
}

.orb-b {
  width: 320px;
  height: 320px;
  right: -110px;
  bottom: -100px;
  background: rgba(255, 209, 102, 0.2);
  animation-delay: 1.1s;
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 20px 48px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 1fr;
}

.panel {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  animation: rise 0.55s ease-out both;
}

.hero {
  padding: 34px;
}

.kicker {
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  max-width: 42ch;
}

.note {
  margin: 0;
  display: inline-block;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe3a1;
  font-size: 0.86rem;
}

.source-list {
  margin: 0 0 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.source-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(145, 183, 218, 0.35);
  background: rgba(8, 18, 28, 0.55);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.field-note {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.control {
  padding: 26px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(145, 183, 218, 0.33);
  background: rgba(8, 17, 26, 0.7);
  color: var(--text);
  outline: none;
  padding: 12px 13px;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 3px rgba(53, 198, 194, 0.25);
}

button {
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  color: #04252a;
  background: linear-gradient(100deg, var(--primary), #8be7d0);
  transition: transform 0.12s ease, filter 0.2s ease;
}

button:hover {
  filter: brightness(1.04);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(127, 167, 205, 0.32);
  background: rgba(8, 18, 28, 0.72);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#status-text {
  font-weight: 700;
}

#progress-value {
  color: var(--accent);
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

.progress-track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(160, 189, 218, 0.24);
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #63d4b4, #4bd2cf, #ffd166);
  transition: width 0.4s ease;
}

.status-message {
  margin: 11px 0 0;
  color: var(--muted);
  min-height: 1.2em;
  word-break: break-word;
}

.download-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #052d27;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(100deg, #ffd166, #ffe4a2);
}

.status.failed {
  border-color: rgba(255, 107, 107, 0.46);
}

.status.failed .status-message {
  color: #ff9d9d;
}

.hidden {
  display: none;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -18px, 0) scale(1.07);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero,
  .control {
    padding: 22px;
  }
}
