:root {
  --primary: #f43f5e;
  --secondary: #393939;
  --accent: #e11d48;
  --light: #f4f4f4;
  --dark: #161616;
  --light-pink: #fff1f2;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'IBM Plex Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: white;
  color: var(--secondary);
  line-height: 1.6;
  font-size: 16px;
}

header {
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  color: var(--dark);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

.container-hero {
  background-color: var(--light);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.floating-element {
  position: absolute;
  background-color: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
}

.float-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.float-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  left: -50px;
}

.float-3 {
  width: 150px;
  height: 150px;
  top: 200px;
  right: 30%;
}

.container-hero-h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.h1-hero {
  font-size: 3rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.h1-hero span {
  color: var(--primary);
}

.container-hero-p {
  text-align: center;
  margin-bottom: 3rem;
}

.hp-title {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.hero-cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.hero-cta-button:hover {
  background-color: var(--accent);
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 100%;
  height: 100%;
  stroke: var(--secondary);
  stroke-width: 2;
  fill: none;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-20px) translateX(-50%);
  }

  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

section {
  padding: 4rem 0;
}

section h2 {
  font-size: 2rem;
  color: var(--dark);
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: center;
}

section h3 {
  font-size: 1.4rem;
  color: var(--dark);
  font-weight: 500;
  margin: 1.5rem 0 1rem 0;
}

.container-presentation-and-sales {
  background-color: white;
}

.container-presentation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 3rem;
}

.presentation-text {
  flex: 1;
}

.presentation-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.presentation-video {
  flex: 1;
  text-align: center;
}

.presentation-video video {
  max-width: 100%;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#benefits,
#features {
  background-color: var(--light);
}

#benefits ul,
#features ul,
.service ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

#benefits li,
#features li,
.service li {
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

#benefits li:before,
#features li:before,
.service li:before {
  content: "•";
  color: var(--primary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

#benefits strong,
#features strong,
.service strong {
  color: var(--dark);
  font-weight: 500;
}

.service {
  background-color: white;
}

.service p {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
}

#how-it-works {
  background-color: var(--light-pink);
  text-align: center;
}

#how-it-works p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--accent);
}

#testimonials {
  background-color: white;
}

.testimonial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial div {
  background-color: var(--light);
  padding: 2rem;
  border-radius: 5px;
  text-align: center;
}

.testimonial img {
  width: 100px;
  height: auto;
  margin-bottom: 1.5rem;
}

.testimonial p {
  font-style: italic;
  color: var(--secondary);
}

#onboarding {
  background-color: var(--light);
}

#onboarding p {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.1rem;
}

#onboarding ol {
  list-style-type: decimal;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
}

#onboarding li {
  margin-bottom: 1rem;
}

#onboarding strong {
  color: var(--dark);
  font-weight: 500;
}

#cta {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 5rem 0;
}

#cta h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

#cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.formClientify {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: 5px;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 4rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary);
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #333;
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary);
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}


/* Footer logo styling */
.footer-logo {
  color: white;
  margin-bottom: 1.5rem;
}

/* Footer description text */
.footer-description {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Footer link styling */
.footer-policy-link {
  color: #999;
  text-decoration: none;
}


/* BEGIN ======================== integration of chat =========================================*/

.chat-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out, height 0.3s ease-in-out, bottom 0.3s ease-in-out, right 0.3s ease-in-out;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transform: translateZ(0);
  transform-origin: bottom right;
  z-index: 1000;
}

.chat-container.expanded {
  width: 70vw;
  height: 80vh;
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%) translateZ(0);
  transform-origin: top left;
}

.chat-container:not(.expanded) {
  transform-origin: bottom right;
}

.chat-header {
  padding: 12px 15px;
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  height: 52px;
  z-index: 1002;
  position: relative;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1001;
}

.messages-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.message {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.5;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.message.received {
  background: linear-gradient(45deg, #e8e8e8 0%, #f1f0f0 100%);
  align-self: flex-start;
  color: #373737;
  border-bottom-left-radius: 2px;
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.05),
    inset -1px 1px 1px rgba(255, 255, 255, 0.7),
    inset 1px -1px 1px rgba(0, 0, 0, 0.05);
}

.message.sent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 2px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1),
    inset -1px 1px 1px rgba(255, 255, 255, 0.2),
    inset 1px -1px 1px rgba(0, 0, 0, 0.1);
}

.message.received strong {
  font-weight: 700;
  color: #222;
}

.message.received h3 {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  margin: 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
}

.chat-input {
  padding: 15px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #eee;
  margin-top: auto;
  position: relative;
  background: white;
  z-index: 1002;
}

.chat-input input {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}

.send-btn {
  padding: 8px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.send-btn:hover {
  background: var(--accent);
}

.send-icon {
  font-size: 18px;
}

.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.3s ease;
  z-index: 999;
}

.chat-toggle:hover {
  background: var(--accent);
}

.chat-toggle-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.typing-indicator {
  padding: 10px;
  display: none;
  align-items: center;
  margin-top: auto;
  margin-bottom: 16px;
  width: fit-content;
}

.chat-container:not(.expanded) .typing-indicator {
  margin-bottom: 24px;
}

.chat-container.expanded .typing-indicator {
  margin-bottom: 16px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 1px;
}

.clear-history-btn,
.expand-btn,
.close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  border-radius: 3px;
  transition: background-color 0.3s;
  line-height: 1;
  color: white;
}

.chat-title span {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  line-height: 1;
}

.markdown-content {
  width: 100%;
}

.markdown-content p {
  margin: 0;
  padding: 0;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin: 8px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 700;
  color: #222;
}

.markdown-content h1 {
  font-size: 16px;
}

.markdown-content h2 {
  font-size: 15px;
}

.markdown-content h3 {
  font-size: 14px;
}

.markdown-content strong {
  font-weight: 700;
  color: #222;
}

.markdown-content code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
}

.markdown-content ul,
.markdown-content ol {
  margin: 8px 0;
  padding-left: 20px;
}

.markdown-content li {
  margin: 4px 0;
}

.markdown-content blockquote {
  border-left: 3px solid #6c5ce7;
  margin: 8px 0;
  padding-left: 10px;
  color: #666;
}

.clear-history-btn:hover,
.expand-btn:hover,
.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* END ======================== integration of chat =========================================*/

@media (max-width: 992px) {
  .container-presentation {
    flex-direction: column;
  }

  .testimonial {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }

  nav {
    flex-direction: column;
  }

  .nav-links {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li {
    margin: 0 0.5rem;
    margin-bottom: 0.5rem;
  }

  .h1-hero {
    font-size: 2.5rem;
  }

  .chat-container {
    width: 90%;
    height: 70vh;
    right: 5%;
    left: 5%;
  }
}