:root {
  --primary-color: #4caf50;
  --primary-dark: #2e7d32;
  --text-primary: #212121;
  --text-secondary: #757575;
  --bg-light: #f5f5f5;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

[data-theme="dark"] {
  --text-primary: #e0e0e0;
  --text-secondary: #9e9e9e;
  --bg-light: #1e1e1e;
  --card-bg: #252525;
  --border-color: #444;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-primary);
  transition: all 0.3s ease;
  overflow-x: hidden;
  line-height: 1.5;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.logo i {
  font-size: 2rem;
  flex-shrink: 0;
}

.logo span {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.container {
  padding-left: 15px;
  padding-right: 15px;
  max-width: 100%;
}

.hero-section {
  padding: 40px 15px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1),
    rgba(76, 175, 80, 0.05)
  );
  margin-bottom: 30px;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 20px;
}

.lead {
  font-size: clamp(1rem, 3vw, 1.25rem);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.cta-section {
  padding: 40px 15px;
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.1),
    rgba(76, 175, 80, 0.05)
  );
  border-radius: 15px;
  margin: 40px 0;
}

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.theme-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.workflow-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  flex-direction: column;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 0;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.use-case-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

footer {
  background: var(--card-bg);
  padding: 25px 15px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

footer .logo {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

footer .logo i {
  font-size: 1.5rem;
}

footer .logo span {
  font-size: 1.2rem;
}

footer a {
  white-space: nowrap;
  margin: 0 8px;
  display: inline-block;
  margin-bottom: 5px;
}

.terms-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.terms-content h2 {
  color: var(--primary-color);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  font-size: 1.5rem;
}

.terms-content ul {
  padding-left: 20px;
}

.terms-content li {
  margin-bottom: 8px;
}

[data-theme="dark"] .terms-content {
  background: var(--card-bg);
  border-color: var(--border-color);
}

[data-theme="dark"] .terms-content h2 {
  color: var(--primary-color);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .terms-content .bg-light {
  background-color: #333 !important;
  color: var(--text-primary);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  background-color: var(--card-bg);
}

.modal-title {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.modal-title i {
  font-size: 1.2em;
  color: var(--primary-color);
}

.btn-close {
  filter: invert(0.6);
  transition: filter 0.2s;
}

[data-theme="dark"] .btn-close {
  filter: invert(0.8);
}

.btn-close:hover {
  filter: invert(0.4);
}

[data-theme="dark"] .btn-close:hover {
  filter: invert(1);
}

.modal-body {
  padding: 20px;
  color: var(--text-primary);
  background-color: var(--card-bg);
}

.modal-body p {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.modal-body a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s;
}

.modal-body a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 15px 20px;
  background-color: var(--card-bg);
}

.modal-footer .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 8px 20px;
  transition: all 0.2s;
}

.modal-footer .btn-primary {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.modal-footer .btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .modal-content {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .modal-body a:hover {
  color: #6fbf73;
}

@media (max-width: 576px) {
  .modal-content {
    border-radius: 8px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 15px;
  }

  .modal-title {
    font-size: 1.1rem;
  }

  .modal-body p {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (min-width: 576px) {
  .logo {
    flex-direction: column;
    gap: 5px;
  }

  .logo span {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  footer .logo span {
    font-size: 1.3rem;
  }

  .workflow-step {
    padding: 15px;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    padding: 60px 20px;
  }
  .logo {
    font-size: 2.5rem;
  }

  .logo span {
    font-size: 2rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  .feature-card {
    padding: 30px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .btn-primary {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .logo span {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

.video-demo {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.video-demo iframe {
  border-radius: 10px;
  overflow: hidden;
}

[data-theme="dark"] p {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .video-demo {
    padding: 20px 15px;
  }
}
