:root {
  color-scheme: dark;
  --ink: #f7f8fa;
  --muted: #9ba7b6;
  --background: #090c10;
  --surface: #11161d;
  --surface-raised: #171e27;
  --line: #2a3441;
  --accent: #ff6b35;
  --accent-strong: #ff8558;
  --success: #4fd1a1;
  --danger: #ff7272;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 107, 53, 0.13), transparent 28rem),
    linear-gradient(145deg, #07090c, var(--background) 62%, #0d1218);
}

button,
input {
  font: inherit;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.card {
  width: min(100%, 47rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.38);
}

header,
.intro,
form,
.status-panel,
footer {
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--accent);
  box-shadow: 0 0 2rem rgba(255, 107, 53, 0.22);
}

.brand-mark span {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-top: 0.43rem solid transparent;
  border-bottom: 0.43rem solid transparent;
  border-left: 0.72rem solid white;
}

.eyebrow,
h1,
h2,
p {
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.1rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.intro {
  padding-top: clamp(2.5rem, 8vw, 4.5rem);
}

h2 {
  max-width: 11ch;
  font-size: clamp(2.25rem, 7vw, 4.4rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.intro p {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

form {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 0.65rem;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  outline: none;
  padding: 0.95rem 1rem;
  color: var(--ink);
  background: #0c1117;
  font-size: 1rem;
  line-height: 1.35;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input::placeholder {
  color: #697585;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.23rem rgba(255, 107, 53, 0.16);
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.95rem 1.2rem;
  color: #15100e;
  background: var(--accent);
  font-weight: 760;
  transition: background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

button:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 0.2rem solid white;
  outline-offset: 0.2rem;
}

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

.field-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.status-panel {
  margin-inline: clamp(1.25rem, 5vw, 3rem);
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-raised);
}

.status-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.status-label {
  font-weight: 740;
  line-height: 1.35;
}

.status-detail {
  overflow-wrap: anywhere;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.status-badge {
  flex: 0 0 auto;
  border: 1px solid #4a3a34;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  color: #ffc1aa;
  background: #2a1b16;
  font-size: 0.75rem;
  font-weight: 700;
}

.progress-track {
  height: 0.35rem;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 999px;
  background: #28313c;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 1rem rgba(255, 107, 53, 0.35);
  transition: width 350ms ease;
}

.status-panel.ready .status-badge {
  border-color: #285a49;
  color: #9bf0d0;
  background: #143328;
}

.status-panel.error .status-badge {
  border-color: #663838;
  color: #ffb7b7;
  background: #351c1c;
}

.save-button {
  width: 100%;
  margin-top: 1rem;
}

.text-button {
  margin-top: 0.65rem;
  padding: 0.55rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.86rem;
}

.text-button:hover:not(:disabled) {
  color: var(--ink);
  background: transparent;
}

footer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.privacy-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0.75rem rgba(79, 209, 161, 0.55);
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .shell {
    align-items: start;
    padding: 0;
  }

  .card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .input-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
