/**
 * Product Pages - Shared CSS Styles
 * Linear-inspired design with modern animations
 */

/* ===== BASE STYLES ===== */
.product-page {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.product-page h1,
.product-page h2,
.product-page h3,
.product-page h4,
.product-page h5,
.product-page h6 {
  letter-spacing: -0.02em;
  font-feature-settings: 'ss01' on, 'cv01' on;
}

.product-page p,
.product-page span,
.product-page a,
.product-page li {
  letter-spacing: -0.01em;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #1877F2, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-animated {
  background: linear-gradient(90deg, #1877F2, #00D4FF, #1877F2);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== HERO SECTION ===== */
.product-hero {
  background: linear-gradient(180deg, #E7F3FF 0%, #F0F7FF 50%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}

.product-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}

/* ===== BENTO GRID ===== */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== BENTO CARD ===== */
.bento-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(24, 119, 242, 0.1);
  border-color: rgba(24, 119, 242, 0.2);
}

.bento-card .card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #E7F3FF, #F0F7FF);
  transition: all 0.3s ease;
}

.bento-card:hover .card-icon {
  background: linear-gradient(135deg, #1877F2, #00D4FF);
  transform: scale(1.1);
}

.bento-card:hover .card-icon svg {
  color: white;
}

/* Large bento card (spans 2 columns) */
.bento-card.large {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-card.large {
    grid-column: span 2;
  }
}

/* ===== STAT CARDS ===== */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  overflow: visible;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(24, 119, 242, 0.1);
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1877F2, #00D4FF);
  white-space: nowrap;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  font-weight: 500;
}

/* Mobile responsive for stat cards */
@media (max-width: 768px) {
  .stat-card {
    padding: 0.3rem 0.1rem;
    border-radius: 0.5rem;
  }
  .stat-value {
    font-size: 0.1rem;
    margin-bottom: 0.05rem;
  }
  .stat-label {
    font-size: 0.1rem;
    letter-spacing: 0;
    line-height: 1;
    word-break: break-word;
  }
}

/* ===== FEATURE SHOWCASE ===== */
.feature-showcase {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .feature-showcase.reverse {
    direction: rtl;
  }

  .feature-showcase.reverse > * {
    direction: ltr;
  }
}

.feature-demo {
  background: linear-gradient(135deg, #F9FAFB, #E7F3FF);
  border-radius: 1.5rem;
  padding: 2rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ===== CHAT DEMO ===== */
.chat-demo {
  max-width: 350px;
  width: 100%;
}

.chat-bubble {
  padding: 0.875rem 1.25rem;
  border-radius: 1.25rem;
  max-width: 85%;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: bubbleAppear 0.4s ease-out forwards;
}

.chat-bubble.user {
  background: #F3F4F6;
  color: #374151;
  margin-left: auto;
  border-bottom-right-radius: 0.375rem;
}

.chat-bubble.bot {
  background: linear-gradient(135deg, #1877F2, #42A5F5);
  color: white;
  margin-right: auto;
  border-bottom-left-radius: 0.375rem;
}

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

/* Staggered delays for chat bubbles */
.chat-bubble:nth-child(1) { animation-delay: 0.3s; }
.chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.chat-bubble:nth-child(3) { animation-delay: 1.3s; }
.chat-bubble:nth-child(4) { animation-delay: 1.8s; }
.chat-bubble:nth-child(5) { animation-delay: 2.3s; }
.chat-bubble:nth-child(6) { animation-delay: 2.8s; }

/* ===== COMING SOON CARD ===== */
.coming-soon-card {
  background: linear-gradient(135deg, #F9FAFB, #E7F3FF);
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  border: 2px dashed rgba(24, 119, 242, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1877F2, #00D4FF);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.coming-soon-icon {
  width: 5rem;
  height: 5rem;
  background: white;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(24, 119, 242, 0.2);
  animation: iconFloat 3s ease-in-out infinite;
}

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

/* ===== EMAIL SIGNUP FORM ===== */
.email-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .email-signup-form {
    flex-direction: row;
  }
}

.email-signup-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.email-signup-form input:focus {
  outline: none;
  border-color: #1877F2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.email-signup-form button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #1877F2, #166FE5);
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.email-signup-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  background: white;
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: #374151;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial-author {
  font-weight: 600;
  color: #111827;
}

.testimonial-role {
  font-size: 0.875rem;
  color: #6B7280;
}

/* ===== CTA SECTION ===== */
.product-cta {
  background: linear-gradient(135deg, #1877F2, #00D4FF);
  border-radius: 2rem;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.product-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-cta p {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.product-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  color: #1877F2;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.product-cta .btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translate(0, 0) scale(1) !important;
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-down"] { transform: translateY(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="zoom-in"] { transform: scale(0.9); }
[data-animate="zoom-out"] { transform: scale(1.1); }

/* Mobile - smaller transforms */
@media (max-width: 768px) {
  [data-animate="fade-up"],
  [data-animate="fade-down"] { transform: translateY(30px); }
  [data-animate="fade-left"],
  [data-animate="fade-right"] { transform: translateX(30px); }
  [data-animate] { transition-duration: 0.5s; }
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ===== FEATURE LIST ===== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: #374151;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: linear-gradient(135deg, #22C55E, #16A34A);
  border-radius: 50%;
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list li::after {
  content: '';
  position: absolute;
  left: 0.375rem;
  top: 0.375rem;
  width: 0.5rem;
  height: 0.25rem;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

/* ===== PULSE ANIMATION ===== */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

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

/* ===== PREVIEW FEATURES LIST ===== */
.preview-features {
  text-align: left;
  max-width: 400px;
  margin: 2rem auto 0;
}

.preview-features h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.preview-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preview-features li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #374151;
  font-size: 0.9375rem;
}

.preview-features li svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #1877F2;
  margin-right: 0.75rem;
}
