/* Conversell homepage — light, airy, brand #418987 */

.home-page {
  --brand: #1D9E75;
  --brand-soft: rgba(29, 158, 117, 0.08);
  --brand-muted: rgba(29, 158, 117, 0.2);
  --teal: #1D9E75;
  --teal-dark: #0F6E56;
  --text: #101828;
  --text-secondary: #475467;
  --text-muted: #667085;
  --border: #E2E4DF;
  --bg: #F7F8F6;
  --bg-subtle: #f0f2ef;
  --section-x: clamp(1.25rem, 5vw, 3rem);
  --max: 1120px;
  --radius: 12px;
  background: var(--bg);
  /* Override Bootstrap default blue links */
  --bs-link-color: var(--brand);
  --bs-link-hover-color: var(--teal-dark);
  --bs-link-color-rgb: 29, 158, 117;
  --bs-link-hover-color-rgb: 15, 110, 86;
}

/* No blue links anywhere on homepage */
.home-page main a:link,
.home-page main a:visited {
  color: inherit;
}

.home-page main a.home-feature-link,
.home-page main a.home-feature-link:link,
.home-page main a.home-feature-link:visited,
.home-page main a.home-uc-link,
.home-page main a.home-uc-link:link,
.home-page main a.home-uc-link:visited,
.home-page main a.home-channel-chip,
.home-page main a.home-channel-chip:link,
.home-page main a.home-channel-chip:visited {
  color: var(--brand) !important;
  -webkit-text-fill-color: var(--brand);
}

.home-page header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06) !important;
  border-bottom: 1px solid var(--border);
}

.home-page header.nav-scroll {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.08) !important;
}

.home-page .navbar .menu-links li a,
.home-page .navbar .menu-links li a.dropdown-toggle {
  color: var(--text-secondary) !important;
}

.home-page .navbar .menu-links li a:hover,
.home-page .navbar .menu-links li a.active {
  color: var(--brand) !important;
}

.home-page header .container-fluid {
  padding: 0;
}

.home-page header .navbar {
  max-width: 100%;
  padding: 0 !important;
  margin: 0;
  display: block !important;
  height: auto !important;
  width: 100% !important;
}

.home-page .flex-menu {
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(1rem, 2vw, 2rem);
  display: flex;
  align-items: center;
}

.home-page .navbar .menu-links {
  gap: clamp(0.35rem, 1.2vw, 1rem);
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 1200px) {
  .home-page .navbar .menu-links {
    display: flex !important;
    position: static !important;
    height: auto !important;
    max-width: none !important;
    width: 100% !important;
    padding-left: clamp(1.75rem, 3.5vw, 3rem) !important;
    padding-right: clamp(0.75rem, 1.5vw, 1.25rem) !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    justify-content: flex-start !important;
  }

  .home-page .menu-links .menu-close-item {
    display: none !important;
  }

  .home-page .navbar .menu-links li a,
  .home-page .navbar .menu-links li a.dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    white-space: nowrap;
    font-size: 0.875rem !important;
  }
}

.home-page header .navbar a.logo img {
  max-height: 36px;
  margin-right: 0;
}

@media (min-width: 1200px) {
  .home-page .conv-navbar__inner > .logo {
    margin-right: 0;
    padding-right: clamp(1.75rem, 3.5vw, 3rem);
    border-right: 1px solid rgba(16, 24, 40, 0.1);
  }
}

/* Header actions — desktop only (mobile uses drawer) */
@media (min-width: 1200px) {
  .home-page .nav-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 0;
  }
}

@media (max-width: 1199px) {
  .home-page .nav-actions {
    display: none !important;
  }
}

.home-page .nav-action-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.home-page .nav-action-link:hover {
  color: var(--brand);
}

.home-page .nav-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--brand) !important;
  border: 1px solid var(--brand) !important;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background 0.2s ease;
}

.home-page .nav-action-primary:hover {
  background: var(--teal-dark) !important;
  border-color: var(--teal-dark) !important;
  color: #fff !important;
}

.home-page .nav-action-primary::before {
  display: none !important;
}

.home-page .nav-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-page .nav-action-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

@media (max-width: 1199px) {
  .home-page #hamburger-btn,
  .home-page .conv-navbar__toggle {
    display: inline-flex !important;
    cursor: pointer;
    line-height: 0;
    justify-self: end;
  }
}

@media (min-width: 1200px) {
  .home-page #hamburger-btn,
  .home-page .conv-navbar__toggle {
    display: none !important;
  }
}

.home-page #hamburger-btn svg {
  display: block;
}

.home-page .col-5.d-block.d-lg-none,
.home-page .col-auto.d-block.d-lg-none {
  flex-shrink: 0;
  width: auto;
  max-width: none;
  padding: 0;
}

.home-page #hamburger-btn svg path,
.home-page #close-menu-btn svg path {
  fill: var(--text);
}

/* Mobile menu actions */
.home-page .nav-mobile-actions .nav-action-link,
.home-page .nav-mobile-actions .nav-action-primary,
.home-page .nav-mobile-actions .nav-action-secondary {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.home-page .nav-mobile-actions .nav-action-primary {
  padding: 12px 20px;
}

@media (max-width: 1199px) {
  .home-page .nav-actions {
    gap: 8px;
  }

  .home-page .nav-action-secondary {
    display: none;
  }
}

@media (min-width: 1200px) {
  .home-page .col.flex-menu {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 991px) {
  .home-page header.show-mobile-menu .navbar .menu-links {
    background: var(--bg);
  }
}

.home-page main.home-main {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Hero */
.home-hero {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 70%);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--section-x) clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.home-hero__badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--bg);
  border: 1px solid var(--brand-muted);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.home-hero__title {
  color: var(--text);
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.home-hero__title em {
  color: var(--brand);
  font-style: normal;
}

.home-hero__body {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.home-btn-primary {
  background: var(--brand);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.home-btn-secondary {
  background: var(--bg);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-btn-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.home-hero__trust {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.home-channel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.home-cpill {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Chat preview */
.home-chat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(29, 158, 117, 0.08);
  max-width: 380px;
  margin-left: auto;
  width: 100%;
}

.home-chat-header {
  background: var(--brand-soft);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--brand-muted);
}

.home-chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.home-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.home-chat-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.home-chat-status {
  font-size: 0.75rem;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.home-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: home-status-pulse 2s ease-in-out infinite;
}

@keyframes home-status-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.home-chat-platform {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.home-chat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--bg-subtle);
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
  scroll-behavior: smooth;
  transition: opacity 0.35s ease;
}

.home-chat-body--fadeout {
  opacity: 0;
}

.home-cmsg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 90%;
  margin: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-cmsg--entering {
  opacity: 0;
  transform: translateY(8px);
}

.home-cmsg--sent {
  animation: home-msg-pop 0.3s ease;
}

@keyframes home-msg-pop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Typing indicator (3 dots) */
.home-cmsg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  width: fit-content;
}

.home-cmsg-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: home-typing-dot 1.2s ease-in-out infinite;
}

.home-cmsg-typing span:nth-child(2) { animation-delay: 0.15s; }
.home-cmsg-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes home-typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.home-cmsg-bot {
  background: var(--bg);
  color: var(--text);
  align-self: flex-start;
  border: 1px solid var(--border);
}

.home-cmsg-user {
  background: var(--brand);
  color: #fff;
  align-self: flex-end;
}

.home-chat-footer {
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.home-chat-input {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg-subtle);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-chat-input.is-active {
  background: #fff;
  border-color: var(--brand-muted);
}

.home-chat-input-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-chat-input-text:empty::before {
  content: 'Type a message…';
  color: var(--text-muted);
}

.home-chat-input.is-active .home-chat-input-text:empty::before {
  content: none;
}

.home-chat-cursor {
  display: none;
  width: 2px;
  height: 1em;
  background: var(--brand);
  margin-left: 1px;
  flex-shrink: 0;
  animation: home-cursor-blink 0.9s step-end infinite;
}

.home-chat-cursor.is-visible {
  display: inline-block;
}

@keyframes home-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.home-chat-send {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: none;
  padding: 0;
  cursor: default;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-chat-send.is-sent {
  transform: scale(0.88);
  background: var(--teal-dark, #0F6E56);
}

@media (prefers-reduced-motion: reduce) {
  .home-cmsg-typing span,
  .home-chat-cursor,
  .home-chat-status-dot {
    animation: none;
  }

  .home-cmsg--entering,
  .home-cmsg--sent {
    animation: none;
    transition: none;
  }
}

/* Shared section */
.home-section {
  padding: clamp(3rem, 8vw, 5rem) var(--section-x);
  max-width: var(--max);
  margin: 0 auto;
}

.home-section--center {
  text-align: center;
}

.home-section--center .home-section-sub {
  margin-left: auto;
  margin-right: auto;
}

.home-section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.home-section-title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.home-section-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 2rem;
}

/* Features */
.home-features {
  background: var(--bg);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.home-feature-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-feature-card:hover {
  border-color: var(--brand-muted);
  box-shadow: 0 8px 24px rgba(29, 158, 117, 0.06);
}

.home-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.home-feature-icon img {
  max-height: 28px;
  width: auto;
}

.home-feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.home-feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.home-feature-link,
.home-feature-link:link,
.home-feature-link:visited,
.home-feature-link:hover,
.home-feature-link:active,
.home-feature-link:focus {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand) !important;
  text-decoration: none;
  -webkit-text-fill-color: var(--brand);
}

.home-feature-link:hover {
  text-decoration: underline;
  color: var(--teal-dark, #0F6E56) !important;
  -webkit-text-fill-color: var(--teal-dark, #0F6E56);
}

/* Channels — simple row */
.home-channels {
  background: var(--bg-subtle);
  border-radius: 0;
  max-width: 100%;
  padding-left: var(--section-x);
  padding-right: var(--section-x);
}

.home-channels .home-section {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(3rem, 8vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 4rem);
}

.home-channels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.home-channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.home-channel-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Use cases — minimal */
.home-usecases {
  background: var(--bg);
}

.home-uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.home-uc-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.home-uc-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.home-uc-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.home-uc-link,
.home-uc-link:link,
.home-uc-link:visited,
.home-uc-link:hover,
.home-uc-link:active {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand) !important;
  text-decoration: none;
  -webkit-text-fill-color: var(--brand);
}

/* CTA */
.home-cta-banner {
  max-width: var(--max);
  margin: 0 auto clamp(3rem, 8vw, 4rem);
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-muted);
  border-radius: 20px;
  width: calc(100% - 2 * var(--section-x));
}

.home-cta-banner h2 {
  color: var(--text) !important;
  font-size: clamp(1.35rem, 3vw, 1.625rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.home-cta-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.home-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.home-btn-white {
  background: var(--brand);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
}

.home-btn-outline-white {
  background: var(--bg);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  cursor: pointer;
}

.home-cta-fine {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Light footer — uses conv-footer-grid from conversell-design.css */
.home-page .footer-section {
  background: #418987 !important;
  border-top: none;
}

.home-page .conv-footer-brand p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.home-page .copyright-area {
  background: #357570 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-page .copyright-text p,
.home-page .footer-menu li a {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-hero__body {
    margin-left: auto;
    margin-right: auto;
  }

  .home-hero__ctas,
  .home-channel-pills {
    justify-content: center;
  }

  .home-chat-card {
    margin: 0 auto;
  }

  .home-features-grid,
  .home-uc-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .home-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-feature-card p {
    font-size: 0.875rem;
  }
}
