:root {
  --primary-color: #6c5ce7;
  --accent-color: #8b5cf6;
  --bg-dark: #2f2f4f;
  --bg-dark-lighter: #3f3f6f;
  --text-light: #ffffff;
  --text-muted: #cccccc;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

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

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

.navbar-dark.bg-dark-custom {
  background-color: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(13px);
  border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.logo-img {
  max-width: 47px;
  height: auto;
}

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

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

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

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

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

.btn-danger-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-danger-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-danger-custom:hover::before {
  opacity: 1;
}

.btn-danger-custom:hover {
  background-color: #dc2626;
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(239, 68, 68, 0.3);
}

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

.btn-outline-light:hover {
  background-color: white;
  color: var(--bg-dark);
  transform: translateY(-2px);
}

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

.btn-outline-danger:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}

.card:hover::before {
  opacity: 0.1;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 19px 40px rgba(0, 0, 0, 0.3);
}

.feature-card .card-body {
  position: relative;
}

.feature-icon, .service-icon, .threat-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon,
.service-card:hover .service-icon,
.threat-card:hover .threat-icon {
  transform: scale(1.1) rotate(5deg);
}

.hero-section {
  position: relative;
  padding-top: 120px;
}

.hero-particles {
  background-image: radial-gradient(circle, rgba(239, 68, 68, 0.1) 1px, transparent 1px);
  background-size: 52px 47px;
  position: absolute;
  pointer-events: none;
}

.security-dashboard {
  animation: float 6s ease-in-out infinite;
}

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

.threat-badge .badge {
  font-size: 0.875rem;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.stat-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  background-color: rgba(239, 68, 68, 0.05) !important;
  transform: scale(1.05);
}

.compliance-badge {
  transition: all 0.3s ease;
}

.compliance-badge:hover {
  transform: scale(1.1);
}

.threat-card {
  position: relative;
}

.threat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.threat-card:hover::after {
  opacity: 1;
}

.footer {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-top: 1px solid rgba(239, 68, 68, 0.1);
}

.footer a {
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color) !important;
  transform: translateX(5px);
}

.social-links a {
  display: inline-block;
  width: 41px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
  background-color: var(--bg-dark-lighter);
  color: var(--text-light);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
  background-color: var(--bg-dark-lighter);
  color: var(--text-light);
}

.dropdown-menu-dark {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.dropdown-item:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.process-step {
  position: relative;
}

.step-number {
  transition: all 0.3s ease;
  position: relative;
}

.process-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.3);
}

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

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

.table-dark {
  --bs-table-bg: var(--bg-dark);
  --bs-table-border-color: rgba(239, 68, 68, 0.1);
}

.table-dark thead {
  background-color: var(--bg-dark-lighter);
}

.pricing-card {
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 23px 52px rgba(0, 0, 0, 0.4);
}

.badge {
  padding: 0.5rem 1rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }

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

  .hero-section {
    padding-top: 103px;
    min-height: auto !important;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
