/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) 57px;
  border-radius: 30px;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 212px;
  height: 60px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #F6F7F8;
  color: #101517;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 247, 248, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #F6F7F8;
  border: 1px solid #F6F7F8;
}

.btn-secondary:hover {
  background: #F6F7F8;
  color: #101517;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 247, 248, 0.3);
}

.btn:focus {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Feature Cards */
.feature-card {
  background: radial-gradient(circle at 5% 2%, #17171E 0%, rgba(23, 23, 30, 0) 100%), linear-gradient(
172deg, rgba(23, 23, 30, 0) 60%, #1F54FE 100%) !important;
  border: 1px solid #2c2c31 !important;
  border-radius: 24px !important;
  padding: 36px !important;
  text-align: left !important;
  transition: all 0.3s ease;
  position: relative !important;
  overflow: hidden;
  height: 342px !important;
  width: 299px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
  overflow: hidden;
}
.feature-card:after{content:"";position: absolute;left: 0px;top: 0;background: #fff;width: 50px;height: 50px;border-radius: 100%;filter: blur(35px);}
.feature-card:hover {
  background: radial-gradient(circle at 5% 2%, rgba(255, 255, 255, 0.25) 0%, rgba(23, 23, 30, 0) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, #002bb3 100%) !important;
}

.feature-card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px;
  background: linear-gradient(312deg, rgba(210, 221, 255, 1) 0%, rgba(76, 118, 254, 1) 50%, #D2DDFF 100%);
  border-radius: 24px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(31, 84, 254, 0.3);
}

.feature-icon {
  width: 55px;
  height: 55px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.33;
}

.feature-desc {
  font-size: 16px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.5;
}

/* Module Cards */
.module {
  background: var(--gradient-card);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius-2xl);
  padding: var(--space-2xl);
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  height: 216px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.module:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 255, 255, 0.5);
}

.module-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.167;
  margin-bottom: var(--space-md);
}

.module-desc {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-light);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
}

/* Connection dots for architecture diagram */
.connection-dot {
  width: 6px;
  height: 6px;
  background: var(--color-text-primary);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  position: absolute;
}

/* Glassmorphism utility */
.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 1.5s infinite;
}

/* Hover glow effect */
.glow-on-hover {
  position: relative;
  transition: all 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(121, 152, 254, 0.5);
}

/* Focus states for accessibility */
.focusable:focus {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

/* Scroll reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.6s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.6s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation for lists */
.stagger-item {
  opacity: 1;
  transition: all 0.4s ease;
}
.problem-list .stagger-item:nth-child(2),.problem-list .stagger-item:nth-child(3){
    position: relative;
    left: 240px;
}
.problem-list .stagger-item:nth-child(2){
    margin-bottom: 145px;
}
.problem-list .stagger-item:nth-child(4){
    position: relative;
    top: 65px;
}
.stagger-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* Chart tooltip */
.chart-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-caption);
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chart-tooltip.visible {
  opacity: 1;
}

/* Mobile-specific components */
@media (max-width: 768px) {
  .btn {
    min-width: 280px;
    padding: var(--space-md) var(--space-2xl);
  }
  
  .feature-card {
    height: auto;
    min-height: 280px;
    padding: var(--space-lg);
  }
  
  .module {
    height: auto;
    min-height: 180px;
    padding: var(--space-lg);
  }
  
  .module-title {
    font-size: var(--font-size-h5);
  }
  
  .module-desc {
    font-size: var(--font-size-body);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .feature-card,
  .module {
    border-width: 2px;
    border-color: var(--color-text-primary);
  }
  
  .btn-secondary {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .feature-card,
  .module,
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .stagger-item {
    transition: none;
  }
  
  .hero-stars {
    animation: none;
  }
}

/* Print styles */
@media print {
  .btn,
  .hero-stars,
  .connection-lines {
    display: none;
  }
  
  .feature-card,
  .module {
    border: 1px solid #000;
    background: #fff;
    color: #000;
  }
}
