:root {
  --bg: #d7d2d0;
  --panel: rgba(248, 248, 246, 0.98);
  --text: #373737;
  --muted: #93a065;
  --line: rgba(146, 167, 124, 0.18);
  --hero-left: #eef26d;
  --hero-right: #cff9e3;
  --hero-badge: rgba(237, 242, 173, 0.9);
  --pill: #e6e6e6;
  --pill-text: #9e9e9e;
  --user: #79af7a;
  --user-text: #f8fff8;
  --bot: #ffffff;
  --shadow: 0 30px 90px rgba(91, 71, 56, 0.18);
  --soft-shadow: 0 20px 40px rgba(119, 141, 95, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.35), transparent 24%),
    radial-gradient(circle at bottom center, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #ccc6c3 0%, var(--bg) 100%);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
  min-height: 142px;
  padding: 28px 56px 0 156px;
  background: linear-gradient(100deg, var(--hero-left) 0%, var(--hero-right) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 38%, rgba(255, 255, 255, 0.38), transparent 28%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.24), transparent 26%);
  pointer-events: none;
}

.hero__band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(90.04deg, #B5E7BF 0.04%, #E8F5C4 100%);
  opacity: 0.9;
  z-index: 0;
}

.hero__badge {
  z-index: 2;
  justify-self: end;
  align-self: start;
  margin-top: 16px;
  padding: 18px 32px;
  border-radius: 16px;
  background: var(--hero-badge);
  color: #9da15f;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero__avatar {
  z-index: 2;
  width: 164px;
  height: 164px;
  margin-bottom: -52px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 44px rgba(154, 177, 52, 0.22);
  background: #e2dc22;
}

.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08);
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 6px;
}

.hero__content h1 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(3rem, 4.2vw, 65.14px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: hsl(0 0% 24%);
}

.hero__subline {
  position: relative;
  margin-top: 18px;
  padding: 8px 0 9px;
}

.hero__content p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Inter", sans-serif;
  color: hsl(91 24% 50%);
  font-size: clamp(0.95rem, 1.15vw, 17.66px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 72px 56px 52px;
}

.intro {
  width: min(100%, 640px);
  text-align: center;
  color: #9ba66a;
  transition: opacity 220ms ease, transform 220ms ease;
}

.intro.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.intro__seal {
  width: 112px;
  height: 112px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 3rem;
  font-weight: 800;
  color: #98ac57;
  background: radial-gradient(circle at 35% 35%, #c8ffb8, #d6f39f 55%, #c5df8f 100%);
  box-shadow: 0 0 34px rgba(169, 233, 154, 0.75);
}

.intro h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.intro p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.45;
}

.message-list {
  width: min(100%, 860px);
  display: none;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 10px 8px 4px;
  overflow-y: auto;
}

.message-list.is-active {
  display: flex;
}

.message {
  display: flex;
}

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

.message__bubble {
  max-width: min(78%, 700px);
  padding: 18px 22px;
  border-radius: 24px;
  background: var(--bot);
  box-shadow: var(--soft-shadow);
  white-space: pre-wrap;
  line-height: 1.5;
}

.message__bubble p {
  margin: 0;
}

.message__bubble p + p {
  margin-top: 12px;
}

.message__bubble ul {
  margin: 0;
  padding-left: 1.2rem;
}

.message__bubble ul + p,
.message__bubble p + ul {
  margin-top: 12px;
}

.message__bubble li + li {
  margin-top: 6px;
}

.message__bubble strong {
  font-weight: 800;
}

.message--user .message__bubble {
  background: var(--user);
  color: var(--user-text);
}

.message--typing .message__bubble {
  color: #84965f;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.quick-actions.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
}

.quick-action {
  border: 1px solid rgba(200, 200, 200, 0.65);
  background: var(--pill);
  color: var(--pill-text);
  padding: 18px 40px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.quick-action:hover,
.quick-action:focus-visible {
  transform: translateY(-2px);
  background: #dce8cd;
  color: #6b7f4d;
  box-shadow: var(--soft-shadow);
  outline: none;
}

.composer {
  width: min(100%, 1000px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px 18px 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 16px 40px rgba(202, 202, 202, 0.2);
}

.composer input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  outline: none;
}

.composer input::placeholder {
  color: #a5a5a5;
}

.disclaimer {
  width: min(100%, 1000px);
  margin: -4px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 14.21px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  color: hsl(0 0% 64%);
  font-synthesis: none;
}

.send-button {
  flex: 0 0 auto;
  width: 106px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #8cc28a 0%, #72a870 100%);
  color: #f4ffe8;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(104, 156, 104, 0.36);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.send-button:hover,
.send-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(104, 156, 104, 0.45);
  outline: none;
}

.send-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.send-button svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 32px 24px;
    row-gap: 18px;
    text-align: center;
  }

  .hero__badge {
    justify-self: center;
    align-self: center;
    margin-top: 0;
    order: 0;
  }

  .hero__avatar {
    width: 180px;
    height: 180px;
    margin: 6px auto -44px;
  }

  .hero__content {
    padding-top: 0;
  }

  .hero__band {
    height: 32px;
  }

  .chat-panel {
    padding: 60px 20px 28px;
  }

  .message-list {
    max-height: none;
  }

  .disclaimer {
    font-size: 0.945rem;
  }
}

@media (max-width: 640px) {
  .site-shell {
    min-height: 100dvh;
  }

  body {
    background: #f4f4f4;
  }

  .hero {
    min-height: 252px;
    padding: 20px 24px 0;
    align-items: start;
    justify-items: stretch;
    text-align: left;
    overflow: visible;
  }

  .hero__badge {
    position: absolute;
    top: 20px;
    right: 12px;
    padding: 11px 16px;
    margin-top: 0;
    border-radius: 12px;
    font-size: 0.72rem;
    order: initial;
    z-index: 3;
  }

  .hero__avatar {
    position: absolute;
    left: 22px;
    bottom: -34px;
    width: 136px;
    height: 136px;
    margin: 0;
    border-width: 6px;
  }

  .hero__content {
    grid-column: 1 / -1;
    align-self: end;
    width: calc(100% - 150px);
    margin-left: auto;
    padding: 58px 0 34px;
  }

  .hero__content h1 {
    max-width: 235px;
    font-size: clamp(1.82rem, 8.1vw, 2.5rem);
    line-height: 0.95;
  }

  .hero__content p {
    font-size: 0.42rem;
    line-height: 1;
    white-space: nowrap;
  }

  .hero__subline {
    position: absolute;
    left: 0;
    right: -24px;
    bottom: 6px;
    margin-top: 0;
    padding: 0;
    z-index: 2;
  }

  .hero__band {
    height: 28px;
  }

  .chat-panel {
    gap: 30px;
    padding: 112px 14px 18px;
    justify-content: space-between;
  }

  .intro {
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .intro__seal {
    width: 88px;
    height: 88px;
    margin-bottom: 28px;
    font-size: 2.25rem;
    box-shadow: 0 0 28px rgba(169, 233, 154, 0.72);
  }

  .intro h2 {
    margin-bottom: 10px;
    font-size: 1.28rem;
  }

  .intro p {
    max-width: 260px;
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .quick-actions {
    width: 100%;
    gap: 12px;
    justify-content: center;
  }

  .quick-action {
    width: calc(33.333% - 8px);
    min-width: 0;
    padding: 15px 10px;
    font-size: 0.69rem;
    line-height: 1.15;
  }

  .composer {
    gap: 14px;
    padding: 12px 14px 12px 16px;
    border-radius: 22px;
  }

  .composer input {
    font-size: 0.92rem;
  }

  .send-button {
    width: 96px;
    height: 60px;
  }

  .send-button svg {
    width: 26px;
    height: 26px;
  }

  .disclaimer {
    margin-top: -10px;
    font-size: 0.4725rem;
    line-height: 1.2;
  }

  .message-list {
    width: 100%;
    padding: 0;
  }

  .message__bubble {
    max-width: 100%;
    padding: 14px 16px;
  }
}
