:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0d12;
  color: #f4f5f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(116, 82, 255, .16), transparent 35rem),
    radial-gradient(circle at bottom left, rgba(0, 206, 201, .08), transparent 32rem),
    #0b0d12;
}

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

.hero { margin-bottom: 28px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  opacity: .5;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: .95;
  letter-spacing: -.055em;
}

.lede {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  opacity: .68;
}

.card {
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: rgba(20, 23, 31, .88);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
}

.card + .card { margin-top: 18px; }

.card-heading { margin-bottom: 26px; }
.card-heading h2 { margin-bottom: 7px; font-size: 1.35rem; }
.card-heading p { margin-bottom: 0; opacity: .55; font-size: .9rem; line-height: 1.5; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-weight: 650; font-size: .88rem; }
.field small { display: block; margin-top: 8px; font-size: .76rem; line-height: 1.45; opacity: .45; }

input[type="password"], select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  outline: none;
  background: #0e1117;
  color: inherit;
  font: inherit;
}

input[type="password"]:focus, select:focus, input[type="range"]:focus-visible, button:focus-visible, a:focus-visible {
  border-color: rgba(144, 125, 255, .9);
  box-shadow: 0 0 0 3px rgba(144, 125, 255, .18);
}

.range-field { padding: 4px 0; }
.range-label { display: flex; align-items: center; justify-content: space-between; }
.range-label output { font-variant-numeric: tabular-nums; font-size: .9rem; opacity: .7; }

input[type="range"] {
  width: 100%;
  margin: 14px 0 4px;
  accent-color: #9b8cff;
}

.range-hints { display: flex; justify-content: space-between; font-size: .72rem; opacity: .35; }

.estimate {
  margin: 24px 0 16px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  opacity: .68;
}

button, .download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

#generate, .download {
  width: 100%;
  background: #f4f5f7;
  color: #101218;
}

button:disabled { cursor: wait; opacity: .55; }

.status-card { text-align: center; }
.status-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 1.25rem;
}
.status-card h2 { margin-bottom: 8px; }
.status-card p { margin-bottom: 20px; opacity: .62; line-height: 1.55; }
.progress-track { height: 8px; margin: 20px 0 24px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.progress-bar { width: 5%; height: 100%; border-radius: inherit; background: #9b8cff; transition: width .5s ease; }
.download { margin-top: 6px; }
.secondary { width: 100%; margin-top: 10px; background: rgba(255,255,255,.07); color: inherit; }
.status-card.success .status-icon { background: rgba(77, 220, 151, .14); }
.status-card.error .status-icon { background: rgba(255, 107, 107, .14); }

.hidden { display: none !important; }

footer { padding: 24px 0; text-align: center; font-size: .75rem; opacity: .3; }

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 40px; }
  .grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .card { border-radius: 18px; }
}
