@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Nunito:wght@700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg-top: #49374c;
  --bg-bottom: #5a656b;
  --card: rgba(21, 20, 28, 0.56);
  --card-line: rgba(255, 255, 255, 0.16);
  --text: #fbf7ff;
  --muted: rgba(241, 233, 249, 0.78);
  --pink: #ff7de7;
  --violet: #b56eff;
  --blue: #64d2ff;
  --blue-strong: #3db8ff;
  --success: #9ef7c9;
  --danger: #ffb6c6;
  --shadow: 0 40px 90px rgba(6, 5, 12, 0.36);
  --radius: 38px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI Variable Text", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 26% 28%, rgba(255, 125, 231, 0.48), transparent 24%),
    radial-gradient(circle at 76% 48%, rgba(100, 210, 255, 0.54), transparent 26%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.experience-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.launch-card {
  position: relative;
  width: min(100%, 760px);
  overflow: hidden;
  padding: 44px 40px 36px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(29, 27, 38, 0.62), rgba(14, 14, 20, 0.74));
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.launch-card-troubleshooting {
  padding-inline: 22px;
}

.ambient {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.9;
  pointer-events: none;
}

.ambient-pink {
  top: 32px;
  left: -32px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 125, 231, 0.8), rgba(255, 125, 231, 0));
}

.ambient-blue {
  right: -28px;
  bottom: 28px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(100, 210, 255, 0.86), rgba(100, 210, 255, 0));
}

.brand-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
}

.brand-badge {
  width: min(100%, 320px);
  display: block;
  filter: drop-shadow(0 24px 50px rgba(255, 117, 229, 0.18));
}

.brand-copy {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

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

.eyebrow {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 240, 251, 0.72);
  font-weight: 800;
}

h1,
h2 {
  font-family: "Nunito", "Segoe UI Variable Display", sans-serif;
  line-height: 0.94;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.lede,
.helper-text,
.status-detail,
#success-detail,
#error-detail {
  color: var(--muted);
}

.lede {
  font-size: 1.06rem;
  line-height: 1.65;
}

.launch-button,
.retry-button {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 28px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 18px 28px;
  font: inherit;
  font-size: 1.04rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.launch-button {
  background: linear-gradient(135deg, var(--pink), var(--violet) 48%, var(--blue-strong));
  box-shadow: 0 18px 36px rgba(129, 118, 255, 0.28);
}

.retry-button {
  background: rgba(255, 255, 255, 0.12);
}

.launch-button:hover,
.retry-button:hover {
  transform: translateY(-1px);
}

.launch-button:disabled,
.retry-button:disabled {
  opacity: 0.68;
  cursor: default;
  transform: none;
}

.helper-text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.94rem;
}

.support-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.helper-note {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(241, 233, 249, 0.72);
}

.troubleshooting-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 14px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease;
}

.troubleshooting-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.troubleshooting-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
}

.flow-panel {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 22px 22px 20px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-panel {
  background: linear-gradient(180deg, rgba(86, 99, 138, 0.18), rgba(255, 255, 255, 0.06));
  border-color: rgba(110, 186, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.progress-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 211, 114, 0.1);
  color: #ffeab7;
  font-weight: 700;
  line-height: 1.45;
}

.progress-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.progress-state-badge[data-tone="working"] {
  background: rgba(100, 210, 255, 0.14);
  color: #d9f6ff;
}

.progress-state-badge[data-tone="action"] {
  background: rgba(255, 211, 114, 0.16);
  color: #ffeab7;
}

.progress-state-badge[data-tone="success"] {
  background: rgba(158, 247, 201, 0.14);
  color: var(--success);
}

.progress-state-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  animation: progress-pulse 1.2s ease-in-out infinite;
}

.progress-timer {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-weight: 800;
  margin-top: 14px;
}

.progress-track {
  height: 12px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pink), var(--violet) 50%, var(--blue));
  box-shadow: 0 0 30px rgba(130, 138, 255, 0.42);
  transition: width 320ms ease;
}

.status-detail,
#success-detail,
#error-detail {
  margin-top: 12px;
  line-height: 1.6;
}

.status-hint {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 242, 255, 0.88);
  line-height: 1.55;
}

.step-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.step-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.step-copy {
  font-weight: 700;
  color: rgba(251, 247, 255, 0.82);
}

.step-state-text {
  color: rgba(241, 233, 249, 0.62);
  font-size: 0.92rem;
  font-weight: 700;
}

.step-row.is-active {
  background: rgba(100, 210, 255, 0.1);
  border-color: rgba(100, 210, 255, 0.24);
}

.step-row.is-active .step-dot {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(100, 210, 255, 0.82);
}

.step-row.is-active .step-state-text {
  color: #d9f6ff;
}

.step-row.is-waiting {
  background: rgba(255, 211, 114, 0.08);
  border-color: rgba(255, 211, 114, 0.18);
}

.step-row.is-waiting .step-dot {
  background: #ffd372;
  box-shadow: 0 0 14px rgba(255, 211, 114, 0.72);
}

.step-row.is-waiting .step-state-text {
  color: #ffeab7;
}

.step-row.is-complete .step-dot {
  background: var(--success);
  box-shadow: 0 0 14px rgba(158, 247, 201, 0.72);
}

.step-row.is-complete .step-state-text {
  color: var(--success);
}

.success-panel,
.error-panel {
  text-align: center;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(158, 247, 201, 0.14);
  color: var(--success);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-panel {
  border-color: rgba(255, 182, 198, 0.34);
  background: rgba(255, 182, 198, 0.08);
}

.error-panel h2 {
  color: var(--danger);
}

.bug-consent {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.recovery-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bug-consent-copy {
  color: rgba(255, 240, 246, 0.86);
}

.bug-consent-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.consent-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
}

.consent-button-muted {
  background: rgba(255, 255, 255, 0.12);
}

.bug-consent-result {
  margin-top: 12px;
  color: rgba(255, 240, 246, 0.78);
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.site-version {
  margin: 18px 0 0;
  text-align: center;
  color: rgba(241, 233, 249, 0.58);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.troubleshooting-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.troubleshooting-list {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.is-hidden {
  display: none;
}

@keyframes progress-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (max-width: 720px) {
  .experience-shell {
    padding: 18px;
  }

  .launch-card {
    padding: 30px 22px 24px;
    border-radius: 30px;
  }

  .brand-badge {
    width: min(100%, 240px);
  }

  .launch-button,
  .retry-button {
    padding: 16px 22px;
  }
}
