/* UI stylesheet copied from the static prototype */
:root {
  --purple: #5e2779;
  --orange: #db3f00;
  --yellow: #f8e200;
  --ink: #0f0b13;
  --muted: #62586a;
  --border: #e7dfec;
  --bg: #f6f2fa;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(27, 12, 38, 0.18);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, rgba(94, 39, 121, 0.08), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(219, 63, 0, 0.08), transparent 30%),
    linear-gradient(135deg, #fdfafe 0%, #f1ebf6 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.page {
  padding: clamp(32px, 4vw, 56px);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 50px rgba(94, 39, 121, 0.08);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 39, 121, 0.05), rgba(219, 63, 0, 0.05));
  pointer-events: none;
}

.hero__content {
  padding: clamp(24px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: #2d1f33;
  font-family: "Gabarito", "Manrope", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 14px 0 12px;
}

.hero__lede {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  max-width: 54ch;
}

.hero__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__art {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 5vw, 56px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb--purple {
  width: 180px;
  height: 180px;
  background: rgba(94, 39, 121, 0.2);
  top: 22%;
  left: 20%;
}

.orb--yellow {
  width: 120px;
  height: 120px;
  background: rgba(248, 226, 0, 0.35);
  top: 10%;
  right: 14%;
}

.orb--orange {
  width: 160px;
  height: 160px;
  background: rgba(219, 63, 0, 0.25);
  bottom: 6%;
  right: 18%;
}

.button {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button--primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(94, 39, 121, 0.25);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(94, 39, 121, 0.28);
}

.button--ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
}

.button--pill {
  border-radius: 999px;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 420px;
  max-height: 533px;
  max-width: calc(100% - 32px);
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.25s ease;
  z-index: 10;
}

.chat-panel[data-open="false"] {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
}

.chat-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header__copy .eyebrow {
  font-size: 12px;
  color: var(--muted);
}

.chat-header__copy .title {
  font-weight: 800;
  font-size: 16px;
}

.chat-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-body {
  padding: 14px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg);
}

.chat-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: #fffaf5;
  color: var(--muted);
  font-weight: 600;
}

.chat-loading[hidden] {
  display: none !important;
}

.spinner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spinner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.4;
  animation: pulse 1s infinite ease-in-out;
}

.spinner__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.spinner__dot:nth-child(3) {
  animation-delay: 0.4s;
}

.spinner__label {
  font-size: 13px;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

.message {
  display: flex;
  margin-bottom: 12px;
}

.message--bot .bubble {
  background: #ffffff;
  border: 1px solid var(--border);
}

.message--user {
  justify-content: flex-end;
}

.message--user .bubble {
  background: var(--purple);
  color: var(--white);
  border: 1px solid transparent;
}

.bubble {
  max-width: 90%;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(27, 12, 38, 0.12);
  position: relative;
}

.bubble__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.bubble__heading {
  font-weight: 700;
  margin-bottom: 4px;
}

.bubble__text {
  line-height: 1.5;
  font-size: 14px;
}

.bubble__text p {
  margin: 0 0 8px;
}

.bubble__text ul,
.bubble__text ol {
  margin: 0 0 8px 18px;
  padding: 0;
}

.bubble__text strong {
  font-weight: 800;
}

.bubble__actions,
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-reply {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  padding: 8px 12px;
  cursor: pointer;
}

.job-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.job-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(15, 11, 19, 0.05);
}

.job-card__title {
  font-weight: 800;
  margin-bottom: 6px;
}

.job-card__meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.job-card__salary,
.job-card__contract {
  font-size: 13px;
  margin-bottom: 4px;
}

.job-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  margin-top: 8px;
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.chat-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
}

.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chat-launcher__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse 2s infinite;
}

.chat-launcher__icon {
  font-size: 16px;
}

.chat-launcher__text {
  font-weight: 700;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5e2779, #db3f00);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.avatar__ring {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 2px solid rgba(94, 39, 121, 0.15);
}

.avatar__label {
  font-weight: 800;
}

.chip {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip--highlight {
  background: rgba(94, 39, 121, 0.1);
  color: var(--purple);
  border-color: rgba(94, 39, 121, 0.2);
}

.chip--ghost {
  background: transparent;
}

.icon-button {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 640px) {
  .chat-panel {
    width: 100%;
    right: 0;
    bottom: 0;
    border-radius: 0;
  }
}
