/* ==============================================
   TRACTION & MOMENTUM STYLES
   For SDEK Landing Page Transformation
   Created: January 2025
   ============================================== */

/* ==============================================
   ANIMATIONS
   ============================================== */

@keyframes pulse-dot {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1); 
  }
  50% { 
    opacity: 0.6; 
    transform: scale(1.1); 
  }
}

@keyframes pulse-ring {
  0% { 
    transform: scale(1); 
    opacity: 0.5; 
  }
  100% { 
    transform: scale(1.5); 
    opacity: 0; 
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ==============================================
   PULSE INDICATORS
   ============================================== */

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  margin-right: 8px;
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.pulse-dot-small {
  width: 6px;
  height: 6px;
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==============================================
   HERO ENHANCEMENTS
   ============================================== */

.traction-badge {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 1rem;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.live-cta {
  position: relative;
  overflow: visible;
}

.live-cta .pulse-indicator {
  margin-right: 0.5rem;
}

/* ==============================================
   WAITLIST STATS
   ============================================== */

.waitlist-stats {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius);
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.5;
}

/* ==============================================
   SOCIAL PROOF SECTION
   ============================================== */

.social-proof {
  padding: 3rem 0;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 400;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.partner-logo {
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: grayscale(100%);
  transform: scale(1);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 140px;
  height: auto;
  display: block;
}

/* ==============================================
   TESTIMONIALS
   ============================================== */

.testimonials {
  padding: 4rem 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  flex-shrink: 0;
}

.testimonial-avatar svg {
  display: block;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 1rem;
  font-style: normal;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin: 0;
  color: var(--text);
}

/* ==============================================
   CHANGELOG / WHAT'S NEW
   ============================================== */

.changelog {
  padding: 4rem 0;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--card-border);
}

.changelog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.changelog-header h2 {
  margin: 0;
}

.changelog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.changelog-badge::before {
  content: '●';
  color: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.changelog-item {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.changelog-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.changelog-version {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  letter-spacing: 0.5px;
}

.changelog-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.changelog-title-item {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-weight: 600;
}

.changelog-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.changelog-features li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.changelog-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ==============================================
   ACTIVITY FEED WIDGET
   ============================================== */

.activity-feed {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 320px;
  background: var(--card-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 40;
  padding: 1rem;
  max-height: 280px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

.activity-feed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.activity-feed-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  animation: slideInRight 0.4s ease-out;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.activity-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.activity-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ==============================================
   PRESS / MENTIONS SECTION
   ============================================== */

.press {
  padding: 4rem 0;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.press-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.press-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.press-card-coming {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.press-card-coming:hover {
  transform: none;
}

.press-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.press-card:hover .press-icon {
  color: var(--primary);
}

.press-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.press-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  line-height: 1.4;
}

.press-source {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==============================================
   ENHANCED SIGNUP CTA
   ============================================== */

.signup-traction {
  display: block;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.signup-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.signup-trust span::before {
  content: '✓';
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
  .activity-feed {
    width: 280px;
  }
  
  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .activity-feed {
    bottom: 1rem;
    right: 1rem;
    width: calc(100% - 2rem);
    max-width: 320px;
  }
  
  .logo-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .press-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .signup-trust {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
}

@media (max-width: 640px) {
  /* Hide activity feed on mobile to avoid clutter */
  .activity-feed {
    display: none;
  }
  
  .waitlist-stats {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .social-proof {
    padding: 2rem 0;
  }
  
  .testimonials,
  .changelog,
  .press {
    padding: 3rem 0;
  }
  
  .testimonial-card,
  .changelog-item {
    padding: 1.25rem;
  }
}

/* ==============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================== */

/* Focus visible styles for keyboard navigation */
.press-card:focus-visible,
.testimonial-card:focus-visible,
.changelog-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .pulse-dot,
  .pulse-dot::before,
  .changelog-badge::before {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .partner-logo {
    filter: none;
    opacity: 1;
  }
  
  .press-card,
  .testimonial-card,
  .changelog-item {
    border-width: 2px;
  }
}

/* ==============================================
   PRINT STYLES
   ============================================== */

@media print {
  .activity-feed,
  .pulse-dot,
  .pulse-indicator {
    display: none !important;
  }
  
  .testimonial-grid,
  .changelog-list,
  .press-grid {
    break-inside: avoid;
  }
}

/* ==============================================
   DARK MODE OVERRIDES (if theme toggle added)
   ============================================== */

[data-theme="light"] .waitlist-stats {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .activity-item {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .social-proof,
[data-theme="light"] .changelog {
  background: rgba(241, 245, 249, 0.5);
}
