:root {
  --bg: #0f1115;
  --panel: #151820;
  --panel-2: #1b1f29;
  --line: #2a2f3b;
  --text: #f6f7fb;
  --muted: #b3b7c3;
  --red: #e50914;
  --red-2: #b60710;
  --ok: #6ad18f;
  --warn: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans KR', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(229, 9, 20, 0.23), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(229, 9, 20, 0.16), transparent 42%),
    var(--bg);
  min-height: 100vh;
}

.layout {
  width: min(920px, 92vw);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.card {
  width: min(780px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  padding: clamp(22px, 4vw, 36px);
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.5rem, 4.3vw, 2.4rem);
  letter-spacing: -0.02em;
}

.badge {
  margin: 0;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 9, 20, 0.6);
  color: #ff7a80;
  font-size: 0.75rem;
  font-weight: 600;
}

.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-form {
  margin-top: 24px;
}

.label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 600;
}

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

input[type='url'],
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type='url']::placeholder {
  color: #7d8596;
}

input[type='url']:focus,
select:focus {
  border-color: rgba(229, 9, 20, 0.8);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.22);
}

select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.option-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

button {
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  min-width: 116px;
  background: linear-gradient(180deg, var(--red), var(--red-2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.2s ease;
}

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

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 0.95rem;
}

.status.idle,
.status.loading {
  color: var(--warn);
}

.status.success {
  color: var(--ok);
}

.status.error {
  color: #ff8e8e;
}

.notice {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #8d93a3;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .input-row,
  .option-grid {
    grid-template-columns: 1fr;
  }

  button {
    height: 48px;
  }
}
