/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  gap: 0;
}

.logo img {
  height: 2.5rem;
  width: auto;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    margin-left: 2rem;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.nav-link:hover {
  color: #14b8a6;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.dropdown-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.dropdown.active .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 18rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 50;
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: #f9fafb;
  color: #14b8a6;
}

.dropdown-title {
  font-weight: 500;
}

.dropdown-desc {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 16rem;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  padding: 1.25rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-header h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1f2937;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
}

.mobile-menu-close:hover {
  color: #374151;
}

.mobile-menu-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav > ul > li {
  margin-bottom: 1rem;
}

.mobile-nav a {
  color: #374151;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #14b8a6;
}

.mobile-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.mobile-dropdown-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active .mobile-dropdown-icon {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  list-style: none;
  margin-top: 0.5rem;
  margin-left: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown-menu.active {
  max-height: 200px;
}

.mobile-dropdown-menu a {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero .container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-content {
  width: 100%;
}

.hero-text {
  max-width: 32rem;
  text-align: left;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: left;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-align: left;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #14b8a6;
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #0f766e;
}

.cta-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Section Styles */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.25rem;
  background: #14b8a6;
}

.section-title.centered {
  text-align: center;
  padding-left: 0;
  position: relative;
}

.section-title.centered::before {
  display: none;
}

.section-title.centered::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1rem;
  width: 5rem;
  height: 0.25rem;
  background: #14b8a6;
}

.section-title.white {
  color: white;
}

/* About Section */
.about {
  background: white;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-description {
  color: #374151;
  line-height: 1.75;
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 4rem;
  height: 4rem;
  background: #14b8a6;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: #0f766e;
  transform: scale(1.1);
}

.play-button svg {
  width: 2rem;
  height: 2rem;
}

/* Benefits Section */
.benefits {
  background: #f9fafb;
}

.benefits-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.benefit-description {
  color: #6b7280;
}

/* Try It Section */
.try-it {
  background: #f9fafb;
}

.try-it-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .try-it-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.try-it-description {
  color: #6b7280;
  margin-bottom: 2rem;
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .app-buttons {
    flex-direction: row;
  }
}

.app-buttons img {
  height: auto;
}

.try-it-image {
  display: flex;
  justify-content: center;
}

.try-it-image img {
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Clients Section */
.clients {
  background: #14b8a6;
  color: white;
}

.clients-content {
  text-align: center;
}

.clients-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0.8;
}

.clients-logos img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Contact Section */
.contact {
  background: white;
}

.contact-description {
  color: #6b7280;
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 3rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

.contact-item {
  text-align: center;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #ecfdf5;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #14b8a6;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-logo img {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-description {
  color: #9ca3af;
}

.footer-links h3,
.footer-connect h3,
.footer-products h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-products ul {
  list-style: none;
}

.footer-links li,
.footer-products li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-products a,
.social-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
}

.footer-legal {
  margin-top: 1rem;
}

.footer-legal a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-legal span {
  margin: 0 0.5rem;
  color: #6b7280;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #14b8a6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #0f766e;
}

/* Video Modal */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 64rem;
}

.video-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.video-modal-close:hover {
  color: #d1d5db;
}

.video-modal-close svg {
  width: 2rem;
  height: 2rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Product Pages Styles */
.product-hero {
  padding: 6rem 0;
  background: linear-gradient(to right, #e6f7f5, #e6f1fa);
}

.webar-hero {
  background: linear-gradient(to right, #f0e7ff, #e6f1fa);
}

.blue-hero {
  background: linear-gradient(to right, #dbeafe, #e0f2fe);
}

.product-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .product-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 3rem;
  }
}

.product-description {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2rem;
}

.product-hero-image {
  display: flex;
  justify-content: center;
}

.rounded-image {
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

/* Product Features */
.product-features {
  padding: 6rem 0;
  background: white;
}

.features-grid {
  display: grid;
  gap: 2rem;
}

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

.feature-item {
  text-align: center;
}

.feature-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: #e6f7f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  color: #14b8a6;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: #6b7280;
}

/* Product Benefits */
.product-benefits {
  padding: 6rem 0;
  background: white;
}

.benefit-item {
  text-align: center;
}

.benefit-icon-wrapper {
  width: 4rem;
  height: 4rem;
  background: #e6f7f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.benefit-icon-wrapper.purple {
  background: #f3e8ff;
}

.benefit-icon-wrapper.purple .benefit-icon {
  color: #8b5cf6;
}

.benefit-icon-wrapper.blue {
  background: #dbeafe;
}

.benefit-icon-wrapper.blue .benefit-icon {
  color: #3b82f6;
}

.benefit-icon {
  width: 2rem;
  height: 2rem;
  color: #14b8a6;
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
  background: white;
}

.steps-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.step-item {
  text-align: center;
}

.step-number {
  width: 3rem;
  height: 3rem;
  background: #14b8a6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  font-weight: bold;
}

.step-number.purple {
  background: #8b5cf6;
}

.step-number.blue {
  background: #3b82f6;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-description {
  color: #6b7280;
}

/* Product CTA */
.product-cta {
  padding: 6rem 0;
  background: #14b8a6;
  color: white;
  text-align: center;
}

.purple-cta {
  background: #8b5cf6;
}

.blue-cta {
  background: #3b82f6;
}

.cta-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.app-buttons.centered {
  justify-content: center;
}

/* Use Cases */
.use-cases {
  padding: 6rem 0;
  background: #f9fafb;
}

.use-cases-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.use-case-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.use-case-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.use-case-description {
  color: #4b5563;
  margin-bottom: 1rem;
}

.use-case-examples {
  list-style: none;
  color: #6b7280;
  font-size: 0.875rem;
}

.use-case-examples li {
  margin-bottom: 0.5rem;
}

/* Technical Features */
.technical-features {
  padding: 6rem 0;
  background: white;
}

.technical-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .technical-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.technical-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.technical-features-list {
  list-style: none;
}

.technical-features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.check-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #14b8a6;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.technical-features-list .check-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Tally Form */
.tally-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-section {
  padding: 6rem 0;
  background: #f9fafb;
}

.product-cta .tally-form-container {
  background: rgba(255, 255, 255, 0.9);
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  section {
    padding: 4rem 0;
  }

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

  .benefit-card {
    padding: 1.5rem;
  }
}
