:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f10;
  --surface: #141416;
  --surface-2: #19191c;
  --border: #232327;
  --border-strong: #2c2c31;
  --text: #ededed;
  --muted: #8a8a8f;
  --muted-2: #5e5e63;
  --accent: #5ee3b0;
  --accent-soft: rgba(94, 227, 176, .12);
  --danger: #ff7a7a;
  --radius: 12px;
  --radius-sm: 8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.dot { color: var(--accent); }

.download-main {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding: 80px 56px 0;
  flex: 1;
  display: flex;
  align-items: center;
}
.download-card {
  width: 100%;
  min-width: 0;
  min-height: 520px;
  padding: 64px clamp(32px, 7vw, 120px) 88px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
}
.progress {
  display: flex;
  align-items: center;
  max-width: 760px;
  margin: 0 auto 88px;
  padding: 0;
  list-style: none;
}
.progress li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 17px; white-space: nowrap; }
.progress li:not(:last-child) { flex: 1; }
.progress li:not(:last-child)::after { content: ""; height: 1px; background: var(--border-strong); flex: 1; margin: 0 24px; }
.progress .current { color: var(--text); }
.step-no {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 2px solid var(--muted-2);
  border-radius: 50%;
  font-size: 18px;
}
.current .step-no, .complete .step-no { border-color: var(--accent); color: var(--accent); }
.step-content { max-width: 980px; margin: 0 auto; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
h1:focus { outline: none; }
.intro { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 48px; }
.license-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.license-field { position: relative; min-width: 0; }
.license-field > svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
input {
  min-width: 0;
  width: 100%;
  min-height: 72px;
  padding: 20px 20px 20px 68px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: 400 clamp(13px, 1.3vw, 18px) Inter, system-ui, sans-serif;
  outline: none;
  text-transform: uppercase;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 227, 176, .15);
  background: var(--surface-2);
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 72px;
  padding: 20px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #06291f;
  font-size: 18px;
  font-weight: 600;
  transition: background .15s, border-color .15s, opacity .15s;
}
.primary-button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-button:hover:not(:disabled) { background: #6df0bc; border-color: #6df0bc; }
button:disabled { opacity: .45; cursor: not-allowed; }
.download-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 24px 0 12px; }
.text-button { padding: 10px 0; background: none; border: 0; color: var(--text); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.channel {
  min-height: 104px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.channel:hover { border-color: var(--border-strong); background: var(--surface-2); }
.channel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.channel-icon svg { width: 24px; height: 24px; fill: currentColor; }
.channel-icon.dev svg { fill: none; }
.channel strong, .channel small { display: block; }
.channel strong { font-size: 14px; margin-bottom: 4px; }
.channel small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.arrow { color: var(--muted); font-size: 17px; }

.error {
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 122, 122, .35);
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 122, .06);
  color: var(--danger);
  font-size: 13px;
}

@media (max-width: 900px) {
  .download-main { padding: 52px 24px 0; }
  .download-card { min-height: 460px; padding: 44px 36px 64px; }
  .progress { margin-bottom: 64px; }
  .progress li:not(:last-child)::after { margin: 0 16px; }
}
@media (max-width: 720px) {
  .download-main { padding: 42px 16px 0; }
  .download-card { padding: 36px 24px 48px; }
  .progress li { gap: 8px; font-size: 14px; }
  .progress li:not(:last-child)::after { margin: 0 12px; }
  .step-no { width: 30px; height: 30px; font-size: 15px; }
  .license-form { grid-template-columns: 1fr; }
  .intro { font-size: 16px; margin-bottom: 32px; }
  input { font-size: 15px; }
  .primary-button { min-height: 60px; font-size: 16px; }
}
@media (max-width: 520px) {
  .download-main { padding: 36px 14px 0; }
  .download-card { min-height: 420px; padding: 28px 18px 40px; }
  .progress { align-items: flex-start; margin-bottom: 48px; }
  .progress li { position: relative; flex: 1; flex-direction: column; gap: 10px; font-size: 12px; }
  .progress li:not(:last-child)::after { position: absolute; top: 15px; left: calc(50% + 24px); width: calc(100% - 48px); margin: 0; }
  h1 { font-size: 30px; }
  input { min-height: 60px; padding-left: 42px; padding-right: 10px; font-size: 12px; }
  .license-field > svg { left: 12px; width: 20px; height: 20px; }
  .channels { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .license-field > svg { display: none; }
  input { padding-left: 12px; padding-right: 12px; font-size: 11px; }
}
