/* Feature cards with Linear.app inspired design */
.feature-cards-section {
  padding: 6rem 0;
  position: relative;
}

.feature-cards-section .section-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.feature-cards-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  border-radius: 1px;
}
  
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* First card spans both columns */
.cards-grid .feature-card:nth-child(1) {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .cards-grid {
    max-width: 90%;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1.5rem;
  }
  
  .cards-grid .feature-card:nth-child(1) {
    grid-column: 1;
  }
}
    

.feature-card {
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.12) 0%, 
      rgba(255, 255, 255, 0.08) 40%,
      rgba(255, 255, 255, 0.04) 100%),
    radial-gradient(
      circle at 20% 80%,
      rgba(139, 92, 246, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(6, 182, 212, 0.08) 0%,
      transparent 50%
    );
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Hover glow effect */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    rgba(6, 182, 212, 0.04) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 0 2px rgba(139, 92, 246, 0.3),
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 10px 25px rgba(139, 92, 246, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.18) 0%, 
      rgba(255, 255, 255, 0.12) 40%,
      rgba(255, 255, 255, 0.06) 100%),
    radial-gradient(
      circle at 20% 80%,
      rgba(139, 92, 246, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(6, 182, 212, 0.12) 0%,
      transparent 50%
    );
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover .card-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.feature-card:hover .card-title {
  color: var(--text-primary, #ffffff);
}
  
.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, 
    var(--accent-purple, #8b5cf6) 0%, 
    var(--accent-cyan, #06b6d4) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: white;
  stroke-width: 1.5;
}

/* Pulse animation for special cards */
.card-icon.pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  border-radius: inherit;
  animation: pulse-ring 2.5s ease-out infinite;
}
  
.card-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
  margin-bottom: 1rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
  
.card-description {
  color: var(--text-secondary, #a0a0a0);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  font-size: 1rem;
  opacity: 0.9;
}
  
  .card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    
    li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.25rem 0;
      color: var(--text-secondary);
      font-size: 0.875rem;
      
      &::before {
        content: '✓';
        color: var(--accent-cyan);
        font-weight: 600;
        font-size: 0.75rem;
      }
    }
  }
  
.card-demo {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.demo-text {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-tertiary, #6b7280);
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.demo-result {
  color: var(--text-primary, #ffffff);
  font-size: 0.875rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.15) 0%, 
    rgba(6, 182, 212, 0.08) 100%);
  border-radius: 8px;
  border-left: 3px solid var(--accent-purple, #8b5cf6);
  line-height: 1.5;
}
  
/* Special card types */
.feature-card.featured {
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.08) 0%, 
    rgba(6, 182, 212, 0.04) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 4px 16px rgba(139, 92, 246, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card.featured .card-title {
  background: linear-gradient(135deg, 
    var(--accent-purple, #8b5cf6) 0%, 
    var(--accent-cyan, #06b6d4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
  
  &.interactive {
    cursor: pointer;
    
    .card-demo {
      transition: all 0.3s ease-out;
      
      &:hover {
        background: rgba(0, 0, 0, 0.3);
        transform: scale(1.02);
      }
    }
  }
}

/* Staggered animation for cards */
.cards-grid .feature-card {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cards-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.cards-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.cards-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulse ring animation */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Interactive demo animations */
.typing-animation {
  position: relative;
}

.typing-animation::after {
  content: '|';
  color: var(--accent-purple, #8b5cf6);
  animation: blink 1.2s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Performance metrics styling */
.performance-metrics {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.metric-item:last-child {
  margin-bottom: 0;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary, #a0a0a0);
  font-weight: 500;
}

.metric-value {
  font-size: 0.875rem;
  color: var(--accent-cyan, #06b6d4);
  font-weight: 600;
  margin-left: 1rem;
}

/* Chart animation for performance cards */
.chart-bar {
  width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 1rem;
  flex: 1;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--accent-purple, #8b5cf6) 0%, 
    var(--accent-cyan, #06b6d4) 100%);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0%;
}

.bar-fill.animate.fill-80 { width: 80%; }
.bar-fill.animate.fill-65 { width: 65%; }
.bar-fill.animate.fill-90 { width: 90%; }
.bar-fill.animate.fill-75 { width: 75%; }