:root {
  --plum: #5b285f;
  --berry: #a83a77;
  --coral: #ff7a7a;
  --peach: #ffd2b8;
  --cream: #fff8ef;
  --gold: #f4bd5a;
  --ink: #2f2235;
  --muted: #7c6a80;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(91, 40, 95, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 210, 184, .95), transparent 34%),
    radial-gradient(circle at top right, rgba(244, 189, 90, .55), transparent 28%),
    linear-gradient(135deg, #fff8ef 0%, #fff1f6 45%, #f7efff 100%);
}

.page-shell {
  width: min(1080px, 94vw);
  margin: 0 auto;
  padding: 34px 0 24px;
}

.hero {
  text-align: center;
  position: relative;
  padding: 26px 18px 30px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--berry);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: .95;
  letter-spacing: -0.06em;
  color: var(--plum);
  text-shadow: 0 6px 0 rgba(255, 210, 184, .85);
}

.subtitle {
  max-width: 690px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.sparkle {
  position: absolute;
  color: var(--gold);
  font-size: 2rem;
  filter: drop-shadow(0 4px 8px rgba(168, 58, 119, .25));
}

.sparkle-one { left: 10%; top: 22px; }
.sparkle-two { right: 12%; bottom: 24px; }

.app-card {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow);
  border-radius: 34px;
  padding: clamp(18px, 4vw, 34px);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--berry), var(--plum));
}

.progress-wrap { margin-top: 8px; }

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: .92rem;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 10px;
}

.progress-track {
  height: 12px;
  background: #f1e5ee;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  width: 8%;
  height: 100%;
  background: linear-gradient(90deg, var(--berry), var(--coral), var(--gold));
  border-radius: inherit;
  transition: width .25s ease;
}

.chat-window {
  margin: 24px 0;
  min-height: 390px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 8px 4px 18px;
}

.message {
  margin: 16px 0;
  display: flex;
}

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

.bubble {
  max-width: min(760px, 92%);
  border-radius: 24px;
  padding: 18px 20px;
  line-height: 1.55;
  box-shadow: 0 10px 28px rgba(91, 40, 95, .09);
}

.bot .bubble {
  background: var(--white);
  border: 1px solid rgba(168, 58, 119, .14);
}

.user .bubble {
  background: linear-gradient(135deg, var(--plum), var(--berry));
  color: white;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.option-pill {
  background: #fff7fb;
  border: 1px solid rgba(168, 58, 119, .16);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 18px;
  font-weight: 800;
}

.option-pill span {
  color: var(--berry);
  margin-right: 8px;
}

.prompt-box {
  background: #211827;
  color: #fff8ef;
  padding: 20px;
  border-radius: 20px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, .16);
}

.disclaimer {
  margin-top: 18px;
  padding: 16px;
  background: #fff6e7;
  border: 1px solid rgba(244, 189, 90, .35);
  border-radius: 18px;
  color: #6e4c18;
  font-weight: 700;
}

.input-area {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(168, 58, 119, .18);
  border-radius: 24px;
  padding: 10px;
}

input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  padding: 12px 14px;
  color: var(--ink);
}

button {
  border: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 12px 18px;
  font-weight: 900;
  color: white;
  background: linear-gradient(135deg, var(--berry), var(--coral));
  box-shadow: 0 10px 22px rgba(168, 58, 119, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(168, 58, 119, .28);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.action-row button {
  background: var(--plum);
  font-size: .9rem;
}

footer {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  padding: 24px 0 0;
  font-size: .9rem;
}

@media (max-width: 680px) {
  .input-area { flex-direction: column; }
  button { width: 100%; }
  .bubble { max-width: 100%; }
}
