/* =====================================================================
   PRODUCTS PAGE - Hero + Left-Right Feature Layout
   ===================================================================== */

/* ==========================================
   SHARED SECTION STYLES
   ========================================== */

.section-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ==========================================
   SECTION 1: HERO (Text left, Image right)
   ========================================== */

.product-hero {
    padding: var(--space-8) var(--space-8) var(--space-20);
    background: var(--color-bg);
}

@media (min-width: 768px) {
    .product-hero {
        padding: var(--space-10) var(--space-8) var(--space-24);
    }
}

@media (min-width: 1024px) {
    .product-hero {
        padding: var(--space-12) var(--space-8) var(--space-24);
    }
}

.product-hero .section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Grid - Two columns */
.product-hero .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (min-width: 768px) {
    .product-hero .hero-grid {
        grid-template-columns: 48% 52%;
        gap: var(--space-10);
    }
}

@media (min-width: 1024px) {
    .product-hero .hero-grid {
        grid-template-columns: 45% 55%;
        gap: var(--space-12);
    }
}

/* Hero Illustration (Right Column) */
.product-hero .hero-illustration {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.product-hero .hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.product-hero .hero-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    color: var(--color-text-subtle);
}

/* Hero Content (Left Column) */
.product-hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    order: 1;
}

@media (min-width: 768px) {
    .product-hero .hero-content {
        align-items: flex-start;
        text-align: left;
        padding-right: var(--space-6);
    }
}

.product-hero .hero-headline {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: var(--tracking-tighter);
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .product-hero .hero-headline {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .product-hero .hero-headline {
        font-size: var(--text-5xl);
    }
}

.product-hero .hero-subheadline {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-weight: var(--font-normal);
    max-width: 440px;
}

@media (min-width: 768px) {
    .product-hero .hero-subheadline {
        font-size: var(--text-md);
        margin-bottom: var(--space-8);
    }
}

@media (min-width: 1024px) {
    .product-hero .hero-subheadline {
        font-size: var(--text-lg);
    }
}

/* Primary CTA Button */
.product-hero .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out);
}

.product-hero .btn-primary:hover {
    background: #333333;
}

/* ==========================================
   SECTION 2: FEATURES (Left-Right Alternating)
   ========================================== */

.section-features {
    padding: var(--space-16) 0;
    background: var(--color-bg);
}

@media (min-width: 768px) {
    .section-features {
        padding: var(--space-20) 0;
    }
}

/* Feature Row - Base styles */
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    padding: var(--space-10) 0;
}

@media (min-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
        padding: var(--space-12) 0;
    }
}

@media (min-width: 1024px) {
    .feature-row {
        gap: var(--space-16);
        padding: var(--space-16) 0;
    }
}

/* Feature Row - Left variant (content left, visual right) */
.feature-row--left .feature-content {
    order: 2;
}

.feature-row--left .feature-visual {
    order: 1;
}

@media (min-width: 768px) {
    .feature-row--left .feature-content {
        order: 1;
    }

    .feature-row--left .feature-visual {
        order: 2;
    }
}

/* Feature Row - Right variant (visual left, content right) */
.feature-row--right .feature-content {
    order: 2;
}

.feature-row--right .feature-visual {
    order: 1;
}

@media (min-width: 768px) {
    .feature-row--right .feature-content {
        order: 2;
    }

    .feature-row--right .feature-visual {
        order: 1;
    }
}

/* Feature Content */
.feature-content {
    text-align: center;
}

@media (min-width: 768px) {
    .feature-content {
        text-align: left;
    }
}

.feature-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

@media (min-width: 768px) {
    .feature-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-5);
    }
}

.feature-description {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
    .feature-description {
        font-size: var(--text-lg);
    }
}

/* Feature Visual */
.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
}

.feature-number {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    color: var(--color-text-subtle);
    opacity: 0.3;
}

.feature-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-xl);
}

/* ==========================================
   CHAT ANIMATION (SVG with CSS)
   ========================================== */

.chat-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.chat-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .chat-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Message animations - staggered entrance */
.chat-msg {
    opacity: 0;
    transform: translateY(20px);
    animation: chatMsgIn 0.5s ease-out forwards;
}

.chat-msg-1 { animation-delay: 0.5s; }
.chat-msg-2 { animation-delay: 2.5s; }
.chat-msg-3 { animation-delay: 4.5s; }
.chat-msg-4 { animation-delay: 6.5s; }

@keyframes chatMsgIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator */
.chat-typing,
.chat-typing-2 {
    opacity: 0;
}

.chat-typing {
    animation: typingShow 2s ease-out 1s forwards;
}

.chat-typing-2 {
    animation: typingShow 2s ease-out 5s forwards;
}

@keyframes typingShow {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Typing dots bounce */
.typing-dot,
.typing-dot-2-1,
.typing-dot-2-2,
.typing-dot-2-3 {
    animation: dotBounce 1.4s ease-in-out infinite;
}

.typing-dot-1, .typing-dot-2-1 { animation-delay: 0s; }
.typing-dot-2, .typing-dot-2-2 { animation-delay: 0.2s; }
.typing-dot-3, .typing-dot-2-3 { animation-delay: 0.4s; }

@keyframes dotBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Success badge */
.chat-success {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    animation: successIn 0.6s ease-out 8s forwards;
}

@keyframes successIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Success checkmark draw animation */
.success-check {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: checkDraw 0.4s ease-out 8.3s forwards;
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Loop the entire animation */
.chat-animation {
    animation: loopReset 10s infinite;
}

@keyframes loopReset {
    0%, 95% { opacity: 1; }
    98% { opacity: 0; }
    100% { opacity: 1; }
}

/* Reset child animations on loop */
.chat-animation:hover .chat-msg,
.chat-animation:hover .chat-typing,
.chat-animation:hover .chat-typing-2,
.chat-animation:hover .chat-success,
.chat-animation:hover .success-check {
    animation-play-state: paused;
}

/* ==========================================
   TASK ANIMATION (SVG with CSS)
   ========================================== */

.task-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.task-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .task-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Task check that's already done */
.task-check-1 {
    stroke-dasharray: 20;
    stroke-dashoffset: 0;
}

/* Circle fill animation */
.task-circle-fill {
    opacity: 0;
    transform-origin: center;
    transform: scale(0);
}

.task-circle-fill-2 {
    animation: circleFill 0.3s ease-out 1s forwards;
}

.task-circle-fill-3 {
    animation: circleFill 0.3s ease-out 2.5s forwards;
}

.task-circle-fill-4 {
    animation: circleFill 0.3s ease-out 4s forwards;
}

@keyframes circleFill {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Checkmark draw animation */
.task-check-2,
.task-check-3,
.task-check-4 {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}

.task-check-2 {
    animation: checkDraw 0.3s ease-out 1.2s forwards;
}

.task-check-3 {
    animation: checkDraw 0.3s ease-out 2.7s forwards;
}

.task-check-4 {
    animation: checkDraw 0.3s ease-out 4.2s forwards;
}

/* Done badge */
.done-badge {
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center;
    animation: doneBadgeIn 0.5s ease-out 5s forwards;
}

@keyframes doneBadgeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loop the task animation */
.task-animation {
    animation: taskLoopReset 8s infinite;
}

@keyframes taskLoopReset {
    0%, 90% { opacity: 1; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}

/* Pause on hover */
.task-animation:hover .task-circle-fill,
.task-animation:hover .task-check-2,
.task-animation:hover .task-check-3,
.task-animation:hover .task-check-4,
.task-animation:hover .done-badge {
    animation-play-state: paused;
}

/* ==========================================
   LEARNING ANIMATION (SVG with CSS)
   ========================================== */

.learning-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.learning-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .learning-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Central hub pulse animation */
.central-core {
    animation: corePulse 2s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Connection lines draw in */
.connection-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: lineDrawIn 0.5s ease-out forwards;
}

.line-1 { animation-delay: 0.2s; }
.line-2 { animation-delay: 0.4s; }
.line-3 { animation-delay: 0.6s; }
.line-4 { animation-delay: 0.8s; }
.line-5 { animation-delay: 1.0s; }
.line-6 { animation-delay: 1.2s; }
.line-7 { animation-delay: 1.4s; }
.line-8 { animation-delay: 1.6s; }

@keyframes lineDrawIn {
    to {
        stroke-dashoffset: 0;
    }
}

/* Knowledge nodes scale in */
.knowledge-node {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: nodePopIn 0.4s ease-out forwards;
}

.node-1 { animation-delay: 0.5s; }
.node-2 { animation-delay: 0.7s; }
.node-3 { animation-delay: 0.9s; }
.node-4 { animation-delay: 1.1s; }
.node-5 { animation-delay: 1.3s; }
.node-6 { animation-delay: 1.5s; }
.node-7 { animation-delay: 1.7s; }
.node-8 { animation-delay: 1.9s; }

@keyframes nodePopIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Node inner glow animation */
.node-inner {
    animation: nodeGlow 3s ease-in-out infinite;
}

.node-1 .node-inner { animation-delay: 0s; }
.node-2 .node-inner { animation-delay: 0.4s; }
.node-3 .node-inner { animation-delay: 0.8s; }
.node-4 .node-inner { animation-delay: 1.2s; }
.node-5 .node-inner { animation-delay: 1.6s; }
.node-6 .node-inner { animation-delay: 2s; }
.node-7 .node-inner { animation-delay: 2.4s; }
.node-8 .node-inner { animation-delay: 2.8s; }

@keyframes nodeGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.9); }
}

/* Data pulse glow */
.data-pulse {
    filter: drop-shadow(0 0 4px currentColor);
}

/* Progress bar animation */
.progress-bar {
    animation: progressFill 6s ease-out 2s forwards;
}

@keyframes progressFill {
    0% { width: 0; }
    100% { width: 200px; }
}

/* Smarter label fade in */
.smarter-label {
    opacity: 0;
    animation: labelFadeIn 0.5s ease-out 2.5s forwards;
}

@keyframes labelFadeIn {
    to { opacity: 1; }
}

/* Smarter label pulse */
.smarter-label text {
    animation: textPulse 2s ease-in-out infinite 3s;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Loop the learning animation */
.learning-animation {
    animation: learningLoopReset 10s infinite;
}

@keyframes learningLoopReset {
    0%, 92% { opacity: 1; }
    96% { opacity: 0; }
    100% { opacity: 1; }
}

/* Pause on hover */
.learning-animation:hover .connection-line,
.learning-animation:hover .knowledge-node,
.learning-animation:hover .progress-bar,
.learning-animation:hover .smarter-label,
.learning-animation:hover .central-core,
.learning-animation:hover .node-inner {
    animation-play-state: paused;
}

/* ==========================================
   INTEGRATION ANIMATION (SVG with CSS)
   ========================================== */

.integration-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.integration-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .integration-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Orbit path fade in */
.orbit-path {
    opacity: 0;
    animation: orbitPathIn 0.5s ease-out 0.2s forwards;
}

@keyframes orbitPathIn {
    to { opacity: 0.5; }
}

/* Central person pulse */
.central-person {
    animation: personPulse 2.5s ease-in-out infinite;
    transform-origin: 200px 200px;
}

@keyframes personPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Orbit wrapper - rotates the dots around center */
.orbit-wrapper {
    transform-origin: 200px 200px;
    animation: orbitFloat 12s linear infinite;
}

/* Slow gentle orbit rotation */
@keyframes orbitFloat {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Orbit dots glow */
.orbit-dot {
    filter: drop-shadow(0 0 6px currentColor);
}

/* Pause on hover */
.integration-animation:hover .orbit-wrapper,
.integration-animation:hover .central-person {
    animation-play-state: paused;
}

/* ==========================================
   CUSTOMER PROFILE ANIMATION (SVG with CSS)
   ========================================== */

.customer-profile-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.customer-profile-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .customer-profile-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Profile card fade in */
.profile-card {
    opacity: 0;
    animation: profileFadeIn 0.5s ease-out 0.2s forwards;
}

@keyframes profileFadeIn {
    to { opacity: 1; }
}

/* Profile name shimmer */
.profile-name {
    opacity: 0;
    animation: profileFadeIn 0.4s ease-out 0.6s forwards;
}

/* Profile badge pop */
.profile-badge {
    opacity: 0;
    transform: scale(0.8);
    transform-origin: center;
    animation: badgePop 0.4s ease-out 0.8s forwards;
}

@keyframes badgePop {
    0% { opacity: 0; transform: scale(0.8); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Info rows slide in */
.info-row {
    opacity: 0;
    transform: translateX(-20px);
    animation: infoSlideIn 0.4s ease-out forwards;
}

.info-row-1 { animation-delay: 1s; }
.info-row-2 { animation-delay: 1.2s; }
.info-row-3 { animation-delay: 1.4s; }
.info-row-4 { animation-delay: 1.6s; }

@keyframes infoSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Recognition badge */
.recognition-badge {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: recognitionPop 0.5s ease-out 1.8s forwards;
}

@keyframes recognitionPop {
    0% { opacity: 0; transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Check mark draw */
.recognition-badge .check-mark {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkDraw 0.3s ease-out 2.1s forwards;
}

/* Loop animation */
.customer-profile-animation {
    animation: profileLoopReset 8s infinite;
}

@keyframes profileLoopReset {
    0%, 90% { opacity: 1; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}

/* Pause on hover */
.customer-profile-animation:hover .profile-card,
.customer-profile-animation:hover .info-row,
.customer-profile-animation:hover .recognition-badge {
    animation-play-state: paused;
}

/* ==========================================
   MULTI-CHANNEL ANIMATION (SVG with CSS)
   ========================================== */

.multichannel-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.multichannel-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .multichannel-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Central agent */
.central-agent {
    opacity: 0;
    animation: agentFadeIn 0.5s ease-out 0.2s forwards;
}

@keyframes agentFadeIn {
    to { opacity: 1; }
}

/* Channel icons pop in */
.channel {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: channelPop 0.4s ease-out forwards;
}

.channel-whatsapp { animation-delay: 0.4s; }
.channel-sms { animation-delay: 0.6s; }
.channel-messenger { animation-delay: 0.8s; }
.channel-app { animation-delay: 1.0s; }
.channel-website { animation-delay: 1.2s; }
.channel-email { animation-delay: 1.4s; }

@keyframes channelPop {
    0% { opacity: 0; transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Connection lines */
.multichannel-animation .connection-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: connectionDraw 0.5s ease-out forwards;
}

.multichannel-animation .connection-line:nth-child(1) { animation-delay: 1.6s; }
.multichannel-animation .connection-line:nth-child(2) { animation-delay: 1.7s; }
.multichannel-animation .connection-line:nth-child(3) { animation-delay: 1.8s; }
.multichannel-animation .connection-line:nth-child(4) { animation-delay: 1.9s; }
.multichannel-animation .connection-line:nth-child(5) { animation-delay: 2.0s; }
.multichannel-animation .connection-line:nth-child(6) { animation-delay: 2.1s; }

@keyframes connectionDraw {
    to { stroke-dashoffset: 0; }
}

/* Pulse rings */
.pulse-ring {
    transform-origin: center;
    animation: pulseExpand 2s ease-out infinite;
}

.pulse-ring-1 { animation-delay: 0s; }
.pulse-ring-2 { animation-delay: 1s; }

@keyframes pulseExpand {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Loop animation */
.multichannel-animation {
    animation: multichannelLoopReset 10s infinite;
}

@keyframes multichannelLoopReset {
    0%, 90% { opacity: 1; }
    95% { opacity: 0; }
    100% { opacity: 1; }
}

/* Pause on hover */
.multichannel-animation:hover .channel,
.multichannel-animation:hover .central-agent,
.multichannel-animation:hover .pulse-ring {
    animation-play-state: paused;
}

/* ==========================================
   ACTION ANIMATION (SVG with CSS)
   ========================================== */

.action-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.action-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .action-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Action items slide in */
.action-item {
    opacity: 0;
    transform: translateY(20px);
    animation: actionSlideIn 0.4s ease-out forwards;
}

.action-item-1 { animation-delay: 0.3s; }
.action-item-2 { animation-delay: 0.6s; }
.action-item-3 { animation-delay: 0.9s; }

@keyframes actionSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action status checkmarks */
.action-status {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: statusPop 0.3s ease-out forwards;
}

.action-status-1 { animation-delay: 1.2s; }
.action-status-2 { animation-delay: 2.0s; }
.action-status-3 { animation-delay: 2.8s; }

@keyframes statusPop {
    0% { opacity: 0; transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Completion message */
.completion-message {
    opacity: 0;
    transform: translateY(10px);
    animation: completionSlideIn 0.5s ease-out 3.5s forwards;
}

@keyframes completionSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loop animation */
.action-animation {
    animation: actionLoopReset 8s infinite;
}

@keyframes actionLoopReset {
    0%, 88% { opacity: 1; }
    94% { opacity: 0; }
    100% { opacity: 1; }
}

/* Pause on hover */
.action-animation:hover .action-item,
.action-animation:hover .action-status,
.action-animation:hover .completion-message {
    animation-play-state: paused;
}

/* ==========================================
   HANDOFF ANIMATION (SVG with CSS)
   ========================================== */

.handoff-animation {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    background: transparent;
}

.handoff-animation svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .handoff-animation {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Agents fade in */
.ai-agent, .human-agent {
    opacity: 0;
    animation: agentAppear 0.4s ease-out forwards;
}

.ai-agent { animation-delay: 0.2s; }
.human-agent { animation-delay: 0.4s; }

@keyframes agentAppear {
    to { opacity: 1; }
}

/* Handoff arrow */
.handoff-arrow {
    opacity: 0;
    animation: arrowAppear 0.5s ease-out 0.8s forwards;
}

@keyframes arrowAppear {
    to { opacity: 1; }
}

.arrow-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: arrowDraw 0.6s ease-out 1s forwards;
}

@keyframes arrowDraw {
    to { stroke-dashoffset: 0; }
}

.arrow-head {
    opacity: 0;
    animation: arrowHeadPop 0.3s ease-out 1.5s forwards;
}

@keyframes arrowHeadPop {
    to { opacity: 1; }
}

/* Context bubble slide */
.context-bubble {
    opacity: 0;
    transform: translateX(-30px);
    animation: contextSlide 1s ease-out 1.2s forwards;
}

@keyframes contextSlide {
    0% { opacity: 0; transform: translateX(-30px); }
    30% { opacity: 1; }
    100% { opacity: 1; transform: translateX(60px); }
}

/* Chat history */
.chat-history {
    opacity: 0;
    animation: historyAppear 0.4s ease-out 0.6s forwards;
}

@keyframes historyAppear {
    to { opacity: 1; }
}

.history-msg {
    opacity: 0;
    animation: msgAppear 0.3s ease-out forwards;
}

.history-msg-1 { animation-delay: 0.8s; }
.history-msg-2 { animation-delay: 1.0s; }
.history-msg-3 { animation-delay: 1.2s; }

@keyframes msgAppear {
    to { opacity: 1; }
}

/* Context label */
.context-label {
    opacity: 0;
    transform: scale(0.8);
    animation: labelPop 0.4s ease-out 2.2s forwards;
}

@keyframes labelPop {
    0% { opacity: 0; transform: scale(0.8); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Seamless badge */
.seamless-badge {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    animation: seamlessPop 0.5s ease-out 2.5s forwards;
}

@keyframes seamlessPop {
    0% { opacity: 0; transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.seamless-check {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: checkDraw 0.3s ease-out 2.8s forwards;
}

/* Loop animation */
.handoff-animation {
    animation: handoffLoopReset 8s infinite;
}

@keyframes handoffLoopReset {
    0%, 88% { opacity: 1; }
    94% { opacity: 0; }
    100% { opacity: 1; }
}

/* Pause on hover */
.handoff-animation:hover .ai-agent,
.handoff-animation:hover .human-agent,
.handoff-animation:hover .handoff-arrow,
.handoff-animation:hover .context-bubble,
.handoff-animation:hover .context-label,
.handoff-animation:hover .seamless-badge {
    animation-play-state: paused;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 640px) {
    .product-hero {
        padding: var(--space-6) var(--space-6) var(--space-16);
    }

    .product-hero .hero-grid {
        gap: var(--space-8);
    }

    .product-hero .hero-headline {
        font-size: var(--text-2xl);
    }

    .product-hero .hero-subheadline {
        font-size: var(--text-sm);
        margin-bottom: var(--space-5);
        line-height: 1.6;
    }

    .section-features {
        padding: var(--space-10) 0;
    }

    .feature-row {
        padding: var(--space-8) 0;
    }

    .feature-title {
        font-size: var(--text-xl);
    }

    .feature-description {
        font-size: var(--text-base);
    }

    .feature-number {
        font-size: var(--text-5xl);
    }
}

/* ==========================================
   SECTION 3: FAQS
   ========================================== */

.section-faqs {
    padding: var(--space-20) var(--space-8);
    background: var(--color-bg-alt);
}

.section-faqs .section-container {
    max-width: 800px;
    margin: 0 auto;
}

.faqs-headline {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin: 0 0 var(--space-10);
    letter-spacing: var(--tracking-tight);
}

.faqs-list {
    display: flex;
    flex-direction: column;
}

.section-faqs .faq-item {
    border-bottom: 1px solid var(--color-border);
    overflow: visible;
    max-height: none;
}

.section-faqs .faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.section-faqs .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    cursor: pointer;
    list-style: none;
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--color-text);
    transition: color var(--duration-fast) var(--ease-out);
}

.section-faqs .faq-question::-webkit-details-marker {
    display: none;
}

.section-faqs .faq-question:hover {
    color: var(--color-text-muted);
}

.section-faqs .faq-chevron {
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: transform var(--duration-fast) var(--ease-out);
}

.section-faqs .faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.section-faqs .faq-answer {
    display: block;
    padding-bottom: var(--space-6);
    padding-right: var(--space-10);
    overflow: visible;
    max-height: none;
    height: auto;
}

.section-faqs .faq-answer p {
    margin: 0;
    padding: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.75;
}

@media (max-width: 480px) {
    .section-faqs {
        padding: var(--space-16) var(--space-6);
    }

    .faqs-headline {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-8);
    }

    .section-faqs .faq-question {
        font-size: var(--text-sm);
        padding: var(--space-4) 0;
    }

    .section-faqs .faq-answer {
        padding-bottom: var(--space-5);
        padding-right: 0;
    }

    .section-faqs .faq-answer p {
        font-size: var(--text-xs);
        line-height: 1.7;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .feature-row {
        transition: none;
    }
}
