/* =========================================
   UI/UX Pro Max Enhancements
   Based on: AI-Native UI + Modern Dark Cinema
   Skill recommendations: Calistoga display font,
   enhanced glassmorphism, scroll progress,
   stat chips, radar CTA, agent pulse, storytelling
========================================= */

/* --- Display Font (Calistoga — adds human warmth to AI branding) --- */
.font-display {
  font-family: 'Calistoga', serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

/* --- Scroll Progress Bar (top of page) --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-amber));
  z-index: 99999;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* --- Hero Mesh Grid Background --- */
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 130, 180, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 130, 180, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 90%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 20%, transparent 90%);
}

/* --- Enhanced Glass Cards (deeper blur + top-edge shimmer) --- */
/* Override existing .glass-card */
.glass-card {
  background: rgba(9, 17, 31, 0.68) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-radius: var(--radius-md);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important; /* top-edge shimmer */
  position: relative;
}

/* --- Chat Mock: fixed size (no layout jump as messages load) --- */
.chat-mock-wrapper {
  position: relative;
  width: 100%;
  max-width: 370px;
  flex-shrink: 0;
}

.chat-mock {
  width: 100% !important;
  max-width: 100% !important;
  transform: translateY(0) !important;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(70, 130, 180, 0.18),
    0 0 80px rgba(70, 130, 180, 0.07) !important;
}

.chat-mock-wrapper:hover .chat-mock {
  transform: translateY(-5px) !important;
}

/* --- Floating Stat Chips (hero visual proof) --- */
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: rgba(8, 16, 30, 0.92);
  border: 1px solid rgba(70, 130, 180, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  position: absolute;
  z-index: 20;
}

.stat-chip-green { border-color: rgba(16, 185, 129, 0.28); }
.stat-chip-amber { border-color: rgba(245, 158, 11, 0.28); }

.stat-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.stat-chip-dot.green {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.stat-chip-dot.amber {
  background: var(--color-amber);
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
  animation-delay: 1s;
}

.stat-chip-top {
  top: -1.25rem;
  right: -1.25rem;
  animation: chipFloat 5s ease-in-out infinite;
}

.stat-chip-bottom {
  bottom: -1.5rem;    /* sits below the card, not over the chat content */
  left: 1rem;
  animation: chipFloat 5s ease-in-out infinite 2.5s;
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* --- Agent Live Indicator Badge --- */
.agent-card {
  position: relative;
}

.agent-live-badge {
  position: absolute;
  bottom: 0.85rem;   /* bottom-right — away from the emoji in the top row */
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.agent-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: agentLivePulse 2.5s ease-in-out infinite;
}

@keyframes agentLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Animated Gradient Border on Featured Pricing Card --- */
.pricing-featured {
  border: 1px solid transparent !important;
  background-clip: padding-box;
}

.pricing-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    rgba(70, 130, 180, 0.35) 35%,
    var(--color-amber) 68%,
    var(--color-primary) 100%
  );
  background-size: 300% 300%;
  animation: borderGlow 5s ease infinite;
  z-index: 0;
}

.pricing-featured::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-md) - 1px);
  background: rgba(9, 17, 31, 0.95);
  z-index: 0;
}

.pricing-featured > * {
  position: relative;
  z-index: 1;
}

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

/* --- CTA Section Radar / Signal Rings --- */
.cta-radar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(70, 130, 180, 0.1);
  animation: radarExpand 7s ease-out infinite;
}

.radar-ring:nth-child(1) { width: 260px;  height: 260px;  animation-delay: 0s; }
.radar-ring:nth-child(2) { width: 460px;  height: 460px;  animation-delay: 1.75s; }
.radar-ring:nth-child(3) { width: 660px;  height: 660px;  animation-delay: 3.5s; }
.radar-ring:nth-child(4) { width: 860px;  height: 860px;  animation-delay: 5.25s; }

@keyframes radarExpand {
  0%   { opacity: 0.5; transform: scale(0.82); }
  100% { opacity: 0;   transform: scale(1.12); }
}

/* --- Chapter / Storytelling Dividers --- */
.chapter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 0;
  overflow: visible;
}

.chapter-divider::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(70, 130, 180, 0.25), transparent);
}

.chapter-label {
  background: rgba(70, 130, 180, 0.1);
  border: 1px solid rgba(70, 130, 180, 0.25);
  padding: 0.35rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(126, 186, 230, 0.85);
  font-weight: 700;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(70, 130, 180, 0.15);
}

/* --- Button hover lift (magnetic feel) --- */
.glow-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    0 10px 30px rgba(70, 130, 180, 0.4),
    0 0 0 1px rgba(70, 130, 180, 0.2) !important;
}

.btn-whatsapp:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35) !important;
}

/* --- Testimonial card enhanced depth --- */
.testimonial-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal) !important;
}

.testimonial-card:hover {
  transform: translateY(-5px) !important;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* --- Process step node glow --- */
.step-num {
  position: relative;
  display: inline-block;
}

/* --- Hover-glow stronger border on agent cards --- */
.hover-glow:hover {
  border-color: rgba(70, 130, 180, 0.5) !important;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    inset 0 0 24px rgba(70, 130, 180, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* --- Pain cards subtle left border accent --- */
.pain-card {
  border-left: 2px solid rgba(248, 113, 113, 0.35) !important;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.pain-card:hover {
  border-left-color: rgba(248, 113, 113, 0.6) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
}

/* --- FAQ item subtle hover --- */
.faq-item {
  transition: border-color var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(70, 130, 180, 0.2) !important;
}

/* --- Reduced motion: disable all new animations --- */
@media (prefers-reduced-motion: reduce) {
  .stat-chip,
  .stat-chip-top,
  .stat-chip-bottom    { animation: none !important; }
  .chat-mock           { transform: none !important; }
  .agent-pulse-dot     { animation: none !important; }
  .pricing-featured::before { animation: none !important; }
  .radar-ring          { animation: none !important; }
  .dotPulse            { animation: none !important; }
  .chipFloat           { animation: none !important; }
}

/* --- Transformation Matrix Styles --- */
.transformation-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(70, 130, 180, 0.03), transparent 70%);
  border-top: 1px solid var(--color-white-5);
  border-bottom: 1px solid var(--color-white-5);
  position: relative;
  z-index: 10;
}

.transformation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .transformation-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.transformation-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.25rem 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.transformation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 130, 180, 0.3) !important;
}

.transformation-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.transformation-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trans-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trans-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.trans-dot.red {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.trans-dot.blue {
  background: var(--color-primary);
  box-shadow: 0 0 8px rgba(70, 130, 180, 0.5);
}

.trans-dot.amber {
  background: var(--color-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.trans-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.trans-text strong {
  color: var(--color-text-white);
}

.transformation-card .problem .trans-text {
  color: rgba(255, 255, 255, 0.55);
}

.transformation-card .problem .trans-label {
  color: #EF4444;
}

.transformation-card .solution .trans-label {
  color: #7EBAE6;
}

.transformation-card .impact .trans-label {
  color: var(--color-amber);
}

.transformation-card .impact .trans-text {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Visual Pipeline Steps (replaces text list workflow) --- */
.agent-pipeline {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.pipeline-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(70, 130, 180, 0.12);
  border: 1px solid rgba(70, 130, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.pipeline-step-body {
  padding-top: 0.3rem;
  padding-bottom: 0.75rem;
  border-left: 1px dashed rgba(70, 130, 180, 0.18);
  padding-left: 0.9rem;
  margin-left: -0.48rem;
  flex: 1;
}

.pipeline-step:last-child .pipeline-step-body {
  border-left-color: transparent;
  padding-bottom: 0;
}

.pipeline-step-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-light);
  opacity: 0.7;
  margin-bottom: 0.1rem;
}

.pipeline-step-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* Impact Stat Pill at bottom of agent card */
.agent-impact-pill {
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-amber);
  width: fit-content;
}

.agent-impact-pill svg {
  width: 12px;
  height: 12px;
}

/* --- Visual Knowledge Center --- */
.knowledge-section {
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at 50% 100%, rgba(70, 130, 180, 0.04), transparent 70%);
  border-top: 1px solid var(--color-white-5);
  position: relative;
  z-index: 10;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .knowledge-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.knowledge-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.25rem 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.knowledge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(70, 130, 180, 0.28) !important;
  box-shadow: 
    0 16px 48px rgba(0, 0, 0, 0.6), 
    inset 0 0 24px rgba(70, 130, 180, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.knowledge-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(70, 130, 180, 0.1);
  border: 1px solid rgba(70, 130, 180, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.knowledge-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary-light);
  background: rgba(70, 130, 180, 0.1);
  border: 1px solid rgba(70, 130, 180, 0.2);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.knowledge-question {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text-white);
}

/* Knowledge card stat highlight block */
.knowledge-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
}

.knowledge-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-amber);
  white-space: nowrap;
  line-height: 1;
}

.knowledge-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

/* Knowledge bullet list */
.knowledge-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.knowledge-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

.knowledge-bullets li::before {
  content: "✓";
  color: var(--color-primary-light);
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}


