:root {
  color-scheme: light;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #17211b;
  background: #f6f7f2;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(206, 239, 208, 0.65), transparent 24rem),
    #f6f7f2;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(23, 33, 27, 0.12);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #1f6b43;
  box-shadow: 0 8px 20px rgba(31, 107, 67, 0.22);
}

.brand-mark svg {
  width: 24px;
  fill: none;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand-mark circle {
  fill: #fff;
  stroke: none;
}

.status {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #526058;
  font-size: 14px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35a367;
  box-shadow: 0 0 0 5px rgba(53, 163, 103, 0.12);
}

main {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  min-height: calc(100vh - 166px);
  padding-block: 68px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgba(31, 107, 67, 0.18);
  border-radius: 999px;
  color: #1f6b43;
  background: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 26px 0 22px;
  font-size: clamp(62px, 7vw, 102px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

h1 span {
  color: #1f6b43;
  font-style: italic;
  font-weight: 500;
}

.intro {
  max-width: 510px;
  margin: 0;
  color: #526058;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.hint {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
}

.hint-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 50%;
  background: #fff;
  font-size: 21px;
}

.hint div {
  display: grid;
  gap: 3px;
}

.hint strong {
  font-size: 14px;
}

.hint div span {
  color: #7b857f;
  font-size: 13px;
}

.preview {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
  overflow: hidden;
  border-radius: 40px;
  background: #1f6b43;
  box-shadow: 0 35px 80px rgba(27, 61, 42, 0.18);
}

.preview::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

.orb-one {
  top: -90px;
  right: -80px;
  width: 310px;
  height: 310px;
  background: rgba(170, 227, 169, 0.32);
}

.orb-two {
  bottom: -140px;
  left: -100px;
  width: 330px;
  height: 330px;
  background: rgba(243, 208, 129, 0.3);
}

.chat-card {
  position: relative;
  z-index: 1;
  width: min(350px, calc(100% - 50px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 60px rgba(10, 34, 21, 0.3);
  backdrop-filter: blur(14px);
  transform: rotate(1.5deg);
}

.chat-card-header {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e8ece9;
}

.avatar {
  position: relative;
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #1f6b43;
  font-size: 13px;
  font-weight: 700;
}

.online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #52c982;
}

.chat-card-header div:last-child {
  display: grid;
  gap: 3px;
}

.chat-card-header strong {
  font-size: 14px;
}

.chat-card-header span {
  color: #748079;
  font-size: 11px;
}

.messages {
  display: flex;
  min-height: 265px;
  padding: 24px 18px;
  flex-direction: column;
  gap: 12px;
  background: #f7f8f5;
}

.message {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 15px;
  font-size: 12px;
  line-height: 1.45;
}

.message-in {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(31, 45, 36, 0.06);
}

.message-out {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  color: #fff;
  background: #1f6b43;
}

.typing {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 15px;
  border-bottom-left-radius: 4px;
  background: #fff;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a3aca6;
  animation: bounce 1.2s infinite ease-in-out;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.mock-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px;
  color: #a1aaa4;
  font-size: 12px;
}

.send {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #1f6b43;
  font-size: 16px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-top: 1px solid rgba(23, 33, 27, 0.12);
  color: #7b857f;
  font-size: 12px;
}

@media (max-width: 820px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 620px);
  }

  main {
    grid-template-columns: 1fr;
    padding-block: 50px;
  }

  .hero {
    text-align: center;
  }

  .intro {
    margin-inline: auto;
  }

  .hint {
    justify-content: center;
    text-align: left;
  }

  .preview {
    min-height: 510px;
  }
}

@media (max-width: 480px) {
  .status {
    font-size: 0;
  }

  h1 {
    font-size: clamp(56px, 19vw, 78px);
  }

  .preview {
    min-height: 470px;
    border-radius: 28px;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

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