:root {
  --primary-color: #03a9f4;
  --accent-color: #00bcd4;
  --bg-light: #f7f7f7;
  --dark-bg: #212121;
  --dark-secondary: #333333;
  --text-light: #ffffff;
  --text-muted: #666666;
  --border-color: #cccccc;
}

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

body {
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  overflow-x: hidden;
}

.bg-dark-custom {
  background-color: var(--dark-bg) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
}

.text-accent {
  color: var(--accent-color);
}

.text-light-muted {
  color: #94a3b8;
}

.logo-img {
  max-width: 51px;
  height: auto;
  border-radius: 8px;
}

img:not(.logo-img):not(.logo) {
  max-width: 100%;
  height: auto;
}

.site-name {
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.navbar {
  padding: 1rem 0;
  backdrop-filter: blur(8px);
  background-color: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
  pointer-events: none;
}

.nav-link:hover::after {
  width: 80%;
}

.dropdown-menu-dark {
  background-color: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.dropdown-item {
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: rgba(99, 102, 241, 0.1);
  padding-left: 1.5rem;
}

main {
  padding-top: 77px;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-image-wrapper {
  position: relative;
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  right: 18px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.5rem;
  border-radius: 51px;
  box-shadow: 0 13px 31px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.code-showcase {
  background: linear-gradient(135deg, var(--bg-light), #ffffff);
}

.code-window {
  background: var(--dark-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 17px 58px rgba(0, 0, 0, 0.3);
}

.code-header {
  background: var(--dark-secondary);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-dot {
  width: 11px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
}

.code-dot:nth-child(1) { background: #ef4444; }
.code-dot:nth-child(2) { background: #f59e0b; }
.code-dot:nth-child(3) { background: #22c55e; }

.code-title {
  margin-left: auto;
  color: #94a3b8;
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  font-size: 0.875rem;
}

.code-content {
  padding: 1.5rem;
  margin: 0;
  color: #e2e8f0;
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif, monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  background: var(--dark-bg);
  overflow-x: auto;
}

.feature-card,
.service-card,
.testimonial-card,
.team-card,
.pricing-card,
.blog-card,
.case-study-card {
  background: white;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 4px 21px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card::before,
.service-card::before,
.testimonial-card::before,
.team-card::before,
.pricing-card::before,
.blog-card::before,
.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::before,
.service-card:hover::before,
.testimonial-card:hover::before,
.team-card:hover::before,
.pricing-card:hover::before,
.blog-card:hover::before,
.case-study-card:hover::before {
  opacity: 1;
}

.feature-card:hover,
.service-card:hover,
.testimonial-card:hover,
.team-card:hover,
.pricing-card:hover,
.blog-card:hover,
.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 9px 39px rgba(99, 102, 241, 0.2);
}

.feature-icon,
.service-icon {
  width: 67px;
  height: 67px;
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-body {
  padding: 2rem;
}

.testimonial-rating i {
  color: #fbbf24;
}

.testimonial-avatar {
  width: 48px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.team-card {
  text-align: center;
  padding: 1.5rem;
}

.team-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 11px;
  margin-bottom: 1rem;
}

.team-social a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.pricing-card {
  position: relative;
  overflow: visible;
}

.pricing-card-featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 21px;
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 19px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.blog-card {
  padding: 0;
  overflow: hidden;
}

.blog-image,
.case-study-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-body,
.case-study-body {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.875rem;
}

.stats-section {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
}

.stat-item i {
  opacity: 0.9;
}

.integration-logo,
.tech-badge {
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.integration-logo:hover,
.tech-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.demo-form-card {
  background: white;
  padding: 3rem;
  border-radius: 17px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.15);
}

.contact-info-card,
.contact-form-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.contact-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.footer {
  background: var(--dark-bg);
  color: var(--text-light);
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.article-header {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.article-content h2,
.article-content h3 {
  font-weight: 700;
  color: var(--dark-bg);
}

.article-content p {
  margin-bottom: 1.5rem;
  color: #475569;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.75rem;
  color: #475569;
}

.blockquote-custom {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  font-style: italic;
  font-size: 1.25rem;
  color: #64748b;
}

.legal-content {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--dark-bg);
  font-weight: 700;
}

.legal-content p,
.legal-content li {
  color: #475569;
}

.mission-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 42px rgba(99, 102, 241, 0.2);
}

.mission-icon {
  width: 81px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.accordion-item {
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  background: white;
  color: var(--dark-bg);
}

.accordion-button:not(.collapsed) {
  background: var(--bg-light);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

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

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 9px 27px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-color);
}

.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}

@media (max-width: 991px) {
  .hero-section {
    min-height: auto !important;
    padding: 3rem 0;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .site-name {
    font-size: 1.1rem;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  main {
    padding-top: 72px;
  }
}

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

  .py-5 {
    padding: 2rem 0 !important;
  }

  .feature-card,
  .service-card,
  .testimonial-card,
  .team-card,
  .pricing-card,
  .blog-card,
  .case-study-card {
    padding: 1.5rem;
  }

  .demo-form-card {
    padding: 2rem 1.5rem;
  }

  .code-content {
    font-size: 0.75rem;
  }

  .article-content {
    font-size: 1rem;
  }
}
