@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
  --primary-color: #0055FF;
  --secondary-color: #00C853;
  --background-color: #111111;
  --text-color: #EAEAEA;
  --text-light: #B0B0B0;
  --card-bg-color: #1C1C1C;
  --border-color: #333333;
  --button-bg-color: #2A2A2A;
  --button-hover-bg-color: #3A3A3A;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #0044CC;
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-ghost:hover {
  background-color: rgba(0, 85, 255, 0.1);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  background-color: var(--background-color);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand .logo {
  height: 32px;
  width: 32px;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav .btn {
  margin-left: 2rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  background-color: var(--card-bg-color);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.note svg {
  flex-shrink: 0;
  color: var(--primary-color);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-color);
  width: 350px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.preview-header {
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1rem;
  font-weight: 500;
  text-align: center;
}

.preview-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
}

.preview-body .bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 15px;
  line-height: 1.4;
  font-size: 0.9rem;
}

.preview-body .bubble.bot {
  background-color: var(--button-bg-color);
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.preview-body .bubble.user {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Sections */
.section {
  padding: 5rem 0;
  text-align: center;
}

.section:nth-of-type(even) {
  background-color: #1A1A1A;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--card-bg-color);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-color);
}

.feature-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
}

/* How It Works */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
  background-color: var(--card-bg-color);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.steps li span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* FAQ */
details {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: left;
}

details summary {
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-color);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

details p {
  padding: 0 1.5rem 1.2rem 1.5rem;
  color: var(--text-light);
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--background-color);
  color: var(--text-light);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.site-footer .brand .logo {
  height: 28px;
  width: 28px;
}

.site-footer .brand-name {
  font-size: 1.3rem;
}

.copyright {
  font-size: 0.9rem;
}

/* Chat Toggle Button */
.chat-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 1001;
}

.chat-toggle:hover {
  transform: translateY(-3px) scale(1.05);
  background-color: #0044CC;
}

.chat-toggle svg {
  width: 28px;
  height: 28px;
}

/* Chat Overlay */
.chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-overlay.open {
  opacity: 1;
  visibility: visible;
}

.chat-overlay .chatbot-widget {
  width: 90%;
  max-width: 400px;
  height: 90%;
  max-height: 600px;
  background-color: var(--background-color);
  border-radius: 15px;
  box-shadow: 0 0 20px var(--shadow-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-overlay .chatbot-header {
  background-color: var(--card-bg-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.chat-overlay .chatbot-header h1 {
  font-size: 1.3rem;
  margin: 0;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.chatbot-close:hover {
  color: var(--primary-color);
}

.chat-overlay .chatbot-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-overlay .chatbot-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-overlay .chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-overlay .chatbot-messages::-webkit-scrollbar-thumb {
  background-color: var(--button-bg-color);
  border-radius: 6px;
}

.chat-overlay .message-bubble {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-in-out;
}

.chat-overlay .message-bubble.user {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-overlay .message-bubble.bot {
  background-color: var(--button-bg-color);
  color: var(--text-color);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-overlay .chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-color);
}

.chat-overlay .quick-reply-button {
  background-color: var(--button-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.2s, transform 0.2s;
}

.chat-overlay .quick-reply-button:hover {
  background-color: var(--button-hover-bg-color);
  transform: translateY(-2px);
}

.chat-overlay .chatbot-input-container {
  display: flex;
  align-items: center;
  background-color: var(--card-bg-color);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
}

.chat-overlay #chatbot-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-color);
  font-size: 1rem;
  padding: 0.5rem;
}

.chat-overlay #chatbot-input::placeholder {
  color: var(--text-light);
}

.chat-overlay #chatbot-send {
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s;
}

.chat-overlay #chatbot-send:hover {
  background-color: #0044CC;
}

.chat-overlay #chatbot-send svg {
  width: 20px;
  height: 20px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

  .hero-text {
    order: 2;
  }

  .hero-visual {
    order: 1;
    margin-bottom: 2rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .note {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav a {
    margin: 0 0.5rem;
  }

  .nav .btn {
    margin-left: 0;
    margin-top: 1rem;
  }

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

  .hero-text p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .steps li {
    font-size: 1rem;
    padding: 1rem;
  }

  .steps li span {
    font-size: 1.5rem;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1rem;
    right: 1rem;
  }

  .chat-toggle svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .note {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .preview-card {
    width: 100%;
  }
}