.chatbot-section,
.chatbot-section * {
  box-sizing: border-box;
}

.service-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
}

.service-copy-panel,
.service-demo-panel {
  position: relative;
}

.service-copy-panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(19, 27, 47, 0.94), rgba(10, 15, 28, 0.82));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.service-badge--whatsapp {
  color: #bbf7d0;
  border: 1px solid rgba(52, 211, 153, 0.26);
  background: rgba(52, 211, 153, 0.1);
}

.service-badge--voice {
  color: #bae6fd;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.1);
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 0.98;
  font-weight: 700;
  margin-bottom: 18px;
}

.service-description,
.service-support-copy {
  color: #9ca3af;
  font-size: 1.02rem;
  line-height: 1.75;
}

.service-description {
  margin-bottom: 22px;
}

.service-points {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.service-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #e5e7eb;
  line-height: 1.55;
}

.service-points i {
  color: #25d366;
  margin-top: 3px;
}

.service-points--voice i {
  color: #22d3ee;
}

.service-showcase--whatsapp .service-demo-panel,
.service-showcase--voice .service-demo-panel {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(19, 27, 47, 0.72), rgba(10, 15, 28, 0.4));
  overflow: visible;
}

.chatbot-section {
  position: relative;
  min-height: 100%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  background:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.16), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.12), transparent 28%),
    #050807;
}

.chatbot-wrapper {
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 9px 18px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  animation: fadeUp 0.8s ease both;
}

.main-title {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.12s both;
}

.main-title span {
  display: inline-block;
  background: linear-gradient(90deg, #34d399, #22d3ee, #a7f3d0, #34d399);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShine 4s linear infinite, titleFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 35px rgba(16, 185, 129, 0.28));
}

.case-title-box {
  min-height: 64px;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.8s ease 0.24s both;
}

.case-title {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 20px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: rgba(34, 211, 238, 0.1);
  color: #cffafe;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.12);
}

.case-title.change {
  animation: caseTitleChange 0.55s ease both;
}

.phone-stage {
  position: relative;
  height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.phone-wrap {
  position: relative;
  z-index: 3;
  width: 350px;
  height: 680px;
  transform: translateY(720px) rotate(-10deg) scale(0.84);
  opacity: 0;
}

.phone-wrap.enter {
  animation: phoneEnter 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.phone-light {
  position: absolute;
  inset: -130px;
  z-index: -3;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.48), rgba(34, 211, 238, 0.22) 39%, transparent 72%);
  filter: blur(42px);
  animation: lightPulse 4s ease-in-out infinite;
}

.phone-ring {
  position: absolute;
  inset: -42px;
  z-index: -2;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.22);
  animation: ringRotate 18s linear infinite;
}

.phone-shadow {
  position: absolute;
  left: 50%;
  bottom: -34px;
  z-index: -2;
  width: 290px;
  height: 54px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.24);
  filter: blur(24px);
}

.phone {
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #09090b;
  box-shadow: 0 35px 100px rgba(16, 185, 129, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b141a;
}

.chat-header {
  height: 74px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #075e54;
  color: white;
}

.avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 22px;
}

.chat-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.chat-info h3 {
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-info p {
  margin-top: 6px;
  font-size: 12px;
  color: #d1fae5;
}

.online-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 18px rgba(110, 231, 183, 0.9);
}

.online-dot.active {
  animation: onlinePulse 1.2s ease-in-out infinite;
}

.chat-body {
  position: relative;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.13), transparent 26%), radial-gradient(circle at 90% 30%, rgba(34, 211, 238, 0.1), transparent 24%), #111b21;
}

.chat-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: linear-gradient(45deg, #fff 1px, transparent 1px);
  background-size: 18px 18px;
}

.messages {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: 20px 14px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.messages::-webkit-scrollbar {
  display: none;
}

.preparing {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.preparing-card {
  padding: 22px 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  animation: fadeScale 0.45s ease both;
}

.preparing-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  font-size: 23px;
}

.preparing-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.preparing-card span {
  color: #a1a1aa;
  font-size: 13px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  justify-content: flex-end;
}

.message-row {
  display: flex;
  animation: messageIn 0.35s ease both;
}

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

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

.bubble {
  max-width: 82%;
  padding: 10px 13px 8px;
  border-radius: 18px;
  color: #f4f4f5;
  font-size: 14px;
  line-height: 1.42;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow-wrap: anywhere;
}

.message-row.user .bubble {
  border-bottom-right-radius: 5px;
  background: #005c4b;
  color: #ffffff;
}

.message-row.bot .bubble {
  border-bottom-left-radius: 5px;
  background: #202c33;
  color: #f4f4f5;
}

.time {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  text-align: right;
}

.typing-cursor {
  display: inline-block;
  width: 4px;
  height: 15px;
  margin-left: 2px;
  border-radius: 99px;
  background: #6ee7b7;
  transform: translateY(2px);
  animation: cursorBlink 0.75s ease-in-out infinite;
}

.typing-label {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  text-align: right;
}

.chat-input {
  position: relative;
  z-index: 3;
  height: 66px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 15px;
  background: #111b21;
}

.fake-input {
  height: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #2a3942;
  color: #a1a1aa;
  font-size: 13px;
}

.send-button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: white;
  font-size: 20px;
  cursor: default;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.22);
}

.demo-ended {
  margin-top: 14px;
  text-align: center;
  color: #a7f3d0;
  font-size: 13px;
  animation: fadeUp 0.45s ease both;
}

.restart-demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #22d3ee);
  color: #04110d;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(16, 185, 129, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  animation: fadeUp 0.45s ease both;
}

.restart-demo-button:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 24px 58px rgba(34, 211, 238, 0.28);
}

.restart-demo-button:active {
  transform: translateY(0) scale(0.98);
}

@keyframes phoneEnter {
  0% { transform: translateY(720px) rotate(-10deg) scale(0.84); opacity: 0; }
  58% { opacity: 1; }
  78% { transform: translateY(-18px) rotate(12deg) scale(1.01); }
  100% { transform: translateY(0) rotate(9deg) scale(1); opacity: 1; }
}

@keyframes titleShine {
  0% { background-position: 240% center; }
  100% { background-position: -240% center; }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes caseTitleChange {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lightPulse {
  0%, 100% { opacity: 0.38; transform: scale(0.94); }
  50% { opacity: 0.82; transform: scale(1.08); }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes onlinePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes messageIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

@media (max-width: 1100px) {
  .service-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .service-copy-panel {
    padding: 24px;
  }

  .chatbot-section {
    padding: 42px 14px;
  }

  .phone-stage {
    height: 690px;
  }

  .phone-wrap {
    width: 315px;
    height: 630px;
  }

  .bubble {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-label,
  .main-title,
  .case-title-box,
  .phone-light,
  .phone-ring,
  .online-dot.active,
  .message-row,
  .typing-cursor,
  .restart-demo-button,
  .phone-wrap.enter,
  .main-title span,
  .case-title.change {
    animation: none !important;
    transition: none !important;
  }
}
