
/* ==================== PRODUCT PAGE SPECIFIC STYLES ==================== */

/* Set a single gradient background for the entire site */
body {
  background: linear-gradient(145deg, #ffffff 0%, #ffeaea 50%, #ffffff 100%) !important;
  background-attachment: fixed !important; /* Ensures the gradient stays fixed during scroll */
  min-height: 100vh !important; /* Ensures the gradient covers the full viewport height */
}

/* Ensure all sections except CTA have transparent backgrounds */
.hero,
.insights-section,
.how-it-works-section,
.data-learning-section,
.architecture-section,
.layers-section,
.security-section {
  background: transparent !important; /* Remove section-specific gradient */
}

/* Restore red gradient for CTA section */
.cta {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%) !important;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 200px;
  animation: float 6s ease-in-out infinite;
}

.stat-card:nth-child(2) {
  animation-delay: -2s;
}

.stat-card:nth-child(3) {
  animation-delay: -4s;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.stat-change.positive {
  background: #e8f5e8;
  color: #2e7d32;
}

.stat-change.secure {
  background: #e3f2fd;
  color: #1565c0;
}

/* --- AI Insights Section --- */
.insights-section {
  padding: 4rem 0;
}

.insights-dashboard {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.insights-dashboard h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.insight-item:nth-child(1) { animation-delay: 0.1s; }
.insight-item:nth-child(2) { animation-delay: 0.3s; }
.insight-item:nth-child(3) { animation-delay: 0.5s; }

.insight-item.warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
  color: #e65100;
}

.insight-item.info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.insight-item.success {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.insight-item i {
  font-size: 1.2rem;
  min-width: 20px;
}

/* --- How It Works Section --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.step-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 50, 38, 0.4);
}

.step-content h3 {
  margin: 1rem 0;
  font-size: 1.4rem;
  color: var(--text-dark);
}

.step-content p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Step Visuals */
.step-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.learning-visual {
  position: relative;
}

.data-flow {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.data-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  animation: bounceIn 0.8s ease-out;
}

.data-source:nth-child(2) { animation-delay: 0.2s; }
.data-source:nth-child(3) { animation-delay: 0.4s; }

.data-source i {
  font-size: 1.5rem;
  color: var(--color-red);
  padding: 0.5rem;
  background: rgba(213, 34, 24, 0.1);
  border-radius: 0.5rem;
}

.ai-brain {
  position: relative;
  margin-top: 1rem;
}

.ai-brain i {
  font-size: 2rem;
  color: var(--color-red);
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-red-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

.dashboards-visual {
  overflow: hidden;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  animation: slideIn 1s ease-out;
}

.mini-dashboard {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.7rem;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
}

.mini-dashboard:hover {
  transform: scale(1.05);
}

.dashboard-header {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.metric {
  margin: 0.25rem 0;
  color: var(--text-light);
}

.ceo { border-left: 3px solid #ff6b35; }
.hr { border-left: 3px solid #4ecdc4; }
.sales { border-left: 3px solid #45b7d1; }

.alerts-visual {
  flex-direction: column;
  gap: 0.5rem;
}

.alert-stream {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.alert-bubble {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  animation: slideInRight 0.6s ease-out;
}

.alert-bubble:nth-child(2) { animation-delay: 0.2s; }
.alert-bubble:nth-child(3) { animation-delay: 0.4s; }

.alert-bubble.warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffecb3 100%);
  color: #e65100;
}

.alert-bubble.info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.alert-bubble.compliance {
  background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.security-visual {
  position: relative;
}

.security-shield {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-shield i {
  font-size: 3rem;
  color: var(--color-red);
  position: relative;
  z-index: 3;
}

.security-layers {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.layer {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid var(--color-red-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.layer:nth-child(1) {
  width: 40px;
  height: 40px;
  animation: securityPulse 3s infinite;
}

.layer:nth-child(2) {
  width: 60px;
  height: 60px;
  animation: securityPulse 3s infinite 0.5s;
}

.layer:nth-child(3) {
  width: 80px;
  height: 80px;
  animation: securityPulse 3s infinite 1s;
}

/* --- Data Learning Section --- */
.data-flow-showcase {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.data-inputs h4,
.ai-outputs h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.input-systems,
.output-insights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.system-card,
.insight-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.system-card {
  height: 80px; /* Fixed height for 6 cards in 3 rows */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.insight-card {
  height: 128px; /* Adjusted to make 2 rows + 1 gap = 272px (matches 3 * 80px + 2 * 16px) */
  display: flex;
  flex-direction: column; /* Stack icon above text */
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Reduced gap for vertical layout */
}

.system-card:hover,
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.system-card i,
.insight-card i {
  font-size: 1.5rem;
  color: var(--color-red);
  min-width: 24px;
}

.insight-card i {
  margin-bottom: 0.5rem; /* Space between icon and text */
}

.insight-card span {
  display: block; /* Ensure text is centered below icon */
}

.insight-card.predictive i {
  font-size: 1.5rem;
  color: var(--color-red);
  min-width: 24px;
}

.processing-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-processor {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(255, 50, 38, 0.4);
}

.ai-processor i {
  font-size: 2.5rem;
  color: white;
  position: relative;
  z-index: 2;
}

.processing-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.data-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: particleOrbit 4s linear infinite;
}

.data-particle:nth-child(1) {
  animation-delay: 0s;
}

.data-particle:nth-child(2) {
  animation-delay: 1.33s;
}

.data-particle:nth-child(3) {
  animation-delay: 2.66s;
}

/* --- Architecture Section --- */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.arch-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.arch-card.central {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-mid) 100%);
  color: white;
  box-shadow: 0 12px 40px rgba(255, 50, 38, 0.3);
}

.arch-card.central h3,
.arch-card.central p {
  color: white;
}

.arch-card:not(.central):hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.arch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-light) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.arch-card:not(.central):hover::before {
  transform: scaleX(1);
}

.arch-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-red);
}

.arch-card.central .arch-icon {
  color: white;
}

.arch-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* --- Layered Architecture Section --- */
.architecture-stack {
  max-width: 600px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.layer-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.layer-card:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.layer-header i {
  font-size: 1.5rem;
  color: var(--color-red);
  width: 30px;
}

.layer-header h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 0;
}

.layer-card p {
  margin: 0;
  padding-left: 46px;
  color: var(--text-light);
}

.layer-card.presentation { border-left: 4px solid #ff6b35; }
.layer-card.ai { border-left: 4px solid #4ecdc4; }
.layer-card.business { border-left: 4px solid #45b7d1; }
.layer-card.data { border-left: 4px solid #96ceb4; }

/* --- Security Section --- */
.security-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 3rem;
}

.security-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  height: 100%;
}

.security-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.security-card i {
  font-size: 2rem;
  color: var(--color-red);
  margin-bottom: 1rem;
}

.security-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.security-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

.security-dashboard {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  height: fit-content;
}

.dashboard-header h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.security-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-value {
  font-weight: 600;
  color: var(--text-dark);
}

.security-score {
  color: var(--color-red);
  font-size: 1.1rem;
}

.security-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #e2efe2 0%, #e4f7e5 100%);
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: #20a026;
}

.status-indicator {
  width: 12px;
  height: 9px;
  background: #4caf50;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

.compliance-badges {
  text-align: center;
  margin-top: 3rem;
}

.compliance-badges p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--color-red-light);
  color: var(--color-red);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.badge:hover {
  background: var(--color-red);
  color: white;
  transform: scale(1.05);
}

/* --- Animations --- */
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

@keyframes securityPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes particleOrbit {
  0% {
    transform: rotate(0deg) translateX(50px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

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

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .architecture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arch-card.central {
    grid-column: 1 / -1;
  }

  .security-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .security-features {
    grid-template-columns: 1fr;
  }

  .data-flow-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .processing-center {
    order: 2;
  }

  .ai-outputs {
    order: 3;
  }

  .system-card,
  .insight-card {
    height: auto; /* Reset fixed heights for mobile */
    display: flex;
    flex-direction: row; /* Revert to row for mobile to maintain original layout */
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .insight-card i {
    margin-bottom: 0; /* Reset margin for mobile */
  }

  .insight-card span {
    display: inline; /* Revert to inline for mobile */
  }
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .status-indicator {
    width: 10px;
    height: 10px;
  }

  .stat-card {
    min-width: 280px;
    max-width: 100%;
  }

  .insights-dashboard {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .step-card {
    padding: 2rem 1.5rem;
  }

  .architecture-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .security-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .input-systems,
  .output-insights {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .badges {
    gap: 0.5rem;
  }

  .badge {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 1.5rem;
  }

  .step-card {
    padding: 1.5rem;
  }

  .step-visual {
    height: 100px;
  }

  .ai-processor {
    width: 80px;
    height: 80px;
  }

  .ai-processor i {
    font-size: 2rem;
  }

  .arch-card {
    padding: 1.5rem;
  }

  .security-dashboard {
    padding: 1.5rem;
  }

  .layer-card {
    padding: 1rem 1.5rem;
  }
}