@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --blue: #155cb8;
  --blue-dark: #0d3f82;
  --blue-light: #eef5ff;
  --text: #101828;
  --muted: #667085;
  --border: #e4eaf2;
  --surface: #ffffff;
  --background: #f7f9fc;
  --green: #16a36a;
  --shadow: 0 12px 40px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  background: var(--background);
  color: var(--text);
}

body {
  min-height: 100vh;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */

.topbar {
  height: 76px;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company-logo {
  width: 126px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.product-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-brand strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.product-brand span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.status-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 163, 106, 0.10);
}

/* MAIN */

.main-area {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
  padding: 62px 0 28px;
}

/* WELCOME */

.welcome-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.ai-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--blue);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(21, 92, 184, 0.18);
}

.ai-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  margin-bottom: 10px;
}

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 800;
}

.welcome-copy p {
  margin: 16px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* TOPICS */

.topics-section {
  margin-top: 48px;
}

.section-label {
  text-align: center;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.topic-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: var(--text);
  transition: 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.025);
}

.topic-card:hover {
  border-color: #a9c8f2;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.topic-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: var(--blue-light);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.topic-card strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.topic-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* CHAT */

.chat-area {
  width: 100%;
  max-width: 900px;
  margin: 38px auto 0;
  min-height: 120px;
}

.empty-chat {
  text-align: center;
  padding: 28px;
  border: 1px dashed #d8e2ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.empty-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.empty-chat h2 {
  margin: 0;
  font-size: 15px;
}

.empty-chat p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* CHAT MESSAGES */

.row {
  display: flex;
  margin-bottom: 16px;
}

.row.user {
  justify-content: flex-end;
}

.bubble {
  max-width: 78%;
  padding: 14px 17px;
  border-radius: 18px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.row.user .bubble {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  border-radius: 18px 18px 5px 18px;
}

/* THINKING */

.typing {
  max-width: 900px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%, 70%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.hidden {
  display: none !important;
}

/* COMPOSER */

.composer {
  width: min(900px, 100%);
  margin: 34px auto 0;
}

.composer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #d6e0ec;
  border-radius: 18px;
  padding: 7px 8px 7px 18px;
  box-shadow: var(--shadow);
}

.composer-box:focus-within {
  border-color: #8db5e8;
  box-shadow: 0 0 0 4px rgba(21, 92, 184, 0.08);
}

#input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  padding: 12px 0;
}

#input::placeholder {
  color: #98a2b3;
}

.composer-box button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  color: white;
  font-size: 19px;
  font-weight: 700;
  transition: 0.2s ease;
}

.composer-box button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.secondary-button,
.whatsapp-button {
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.secondary-button {
  background: white;
  border: 1px solid var(--border);
  color: #475467;
}

.whatsapp-button {
  background: #ecfdf3;
  border: 1px solid #b7ebcf;
  color: #087443;
}

/* FOOTER */

.app-footer {
  padding: 18px 30px 24px;
  text-align: center;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.5;
}

.app-footer span {
  margin: 0 3px;
}

/* RESPONSIVE */

@media (max-width: 800px) {

  .topbar {
    height: auto;
    min-height: 70px;
    padding: 14px 20px;
  }

  .company-logo {
    width: 105px;
    height: 42px;
  }

  .brand-divider {
    display: none;
  }

  .product-brand {
    display: none;
  }

  .main-area {
    width: min(100% - 24px, 680px);
    padding-top: 42px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .welcome-copy h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .bubble {
    max-width: 90%;
  }
}

@media (max-width: 520px) {

  .status-area span:last-child {
    display: none;
  }

  .welcome-copy p {
    font-size: 13px;
  }

  .topics-section {
    margin-top: 34px;
  }

  .topic-card {
    padding: 15px;
  }

  .composer {
    margin-top: 25px;
  }

  .composer-footer {
    gap: 10px;
  }

  .app-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
 .ai-logo {
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}
/* Crystal Feedback Card */
.feedback-card {
    position: fixed;
    top: 42px;
    right: 28px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 150px;
    padding: 8px 10px;

    background: transparent;
    border: none;
    text-decoration: none;
    text-align: left;
}

.feedback-card .feedback-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef5ff;
    color: #155cb8;
    font-size: 15px;
}

.feedback-card .feedback-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.feedback-card .feedback-text strong {
    color: #155cb8;
    font-size: 12px;
    font-weight: 700;
}

.feedback-card .feedback-text small {
    color: #667085;
    font-size: 10px;
    line-height: 1.3;
}
}