:root {
  --bg: #0e0f15;
  --bg-secondary: #171a24;
  --accent: #f97316;
  --accent-soft: #ffb27a;
  --text: #f7f7f9;
  --muted: #a5adbb;
  --card: rgba(19, 22, 32, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: radial-gradient(circle at top, #1e2433, #0b0c12 55%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.hero {
  text-align: left;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 60px var(--shadow);
  backdrop-filter: blur(12px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.label {
  font-weight: 600;
  font-size: 0.95rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

input[type='url'] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 12, 18, 0.8);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type='url']:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

button {
  border: none;
  background: var(--accent);
  color: #1b0f07;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.status {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(12, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status-message {
  font-size: 0.95rem;
  color: var(--text);
}

.status-message.muted {
  color: var(--muted);
}

.status-message.error {
  color: #ff7b7b;
}

.download-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
}

.download-link:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .page {
    padding: 48px 18px 36px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .status {
    flex-direction: column;
    align-items: flex-start;
  }
}
