/* ============================================================
   HOMEPAGE SECTIONS — ported from the Peruvian staging site
   (fu7uro.space). Provides:
     - .impl-options-section  (Implementation Options, 3 cards)
     - .industry-showcase     (live-call grid, added separately)
   ============================================================ */

/* ===== IMPLEMENTATION OPTIONS ===== */
.impl-options-section {
    padding: 52px 0 80px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.impl-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.impl-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 18px;
}

.impl-title span {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impl-subtitle {
    font-size: 1.05rem;
    color: #475569;
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.impl-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .impl-cards { grid-template-columns: 1fr; max-width: 520px; }
}

.impl-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.impl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #a855f7);
}

.impl-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.12);
}

.impl-icon-area {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.04), rgba(168, 85, 247, 0.07));
    padding: 28px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(168, 85, 247, 0.08);
    height: 190px;
}

.impl-svg {
    width: 100%;
    max-width: 200px;
    height: 150px;
    overflow: visible;
}

.impl-card-content {
    padding: 24px 26px 28px;
}

.impl-option-num {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.impl-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.impl-card-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.75;
}

/* ===== IMPL ANIMATIONS: Card 1 - Conditional Forwarding ===== */
@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    5%  { transform: rotate(-10deg) translateX(-2px); }
    10% { transform: rotate(10deg)  translateX(2px);  }
    15% { transform: rotate(-10deg) translateX(-2px); }
    20% { transform: rotate(10deg)  translateX(2px);  }
    25% { transform: rotate(0deg)   translateX(0);    }
}

@keyframes waveRing {
    0%   { opacity: 0.8; transform: scale(1); }
    60%  { opacity: 0; transform: scale(1.7); }
    100% { opacity: 0; transform: scale(1.7); }
}

@keyframes transferIn {
    0%, 30%   { opacity: 0; transform: translateX(-6px); }
    50%, 80%  { opacity: 1; transform: translateX(0); }
    95%, 100% { opacity: 0; }
}

@keyframes agentIn {
    0%, 42%   { opacity: 0; transform: scale(0.6); }
    62%, 85%  { opacity: 1; transform: scale(1); }
    95%, 100% { opacity: 0; transform: scale(0.9); }
}

.impl-card:nth-child(1) .phone-body {
    animation: phoneRing 5s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.impl-card:nth-child(1) .ring-wave.w1 {
    animation: waveRing 5s ease-in-out infinite 0.2s;
    transform-box: fill-box;
    transform-origin: center;
}

.impl-card:nth-child(1) .ring-wave.w2 {
    animation: waveRing 5s ease-in-out infinite 0.5s;
    transform-box: fill-box;
    transform-origin: center;
}

.impl-card:nth-child(1) .transfer-group {
    animation: transferIn 5s ease-in-out infinite;
}

.impl-card:nth-child(1) .agent-icon {
    animation: agentIn 5s ease-in-out infinite;
}

/* ===== IMPL ANIMATIONS: Card 2 - After Hours ===== */
@keyframes signShowOpen {
    0%, 38%  { opacity: 1; transform: scaleX(1); }
    45%      { opacity: 0; transform: scaleX(0.05); }
    100%     { opacity: 0; transform: scaleX(0.05); }
}

@keyframes signShowClosed {
    0%, 45%  { opacity: 0; transform: scaleX(0.05); }
    52%      { opacity: 1; transform: scaleX(1); }
    100%     { opacity: 1; transform: scaleX(1); }
}

@keyframes moonRise {
    0%, 48%  { opacity: 0; transform: translateY(6px); }
    62%, 90% { opacity: 0.85; transform: translateY(0); }
    100%     { opacity: 0.85; transform: translateY(0); }
}

@keyframes starsTwinkle {
    0%, 50%   { opacity: 0; }
    65%       { opacity: 1; }
    80%       { opacity: 0.5; }
    90%, 100% { opacity: 1; }
}

.impl-card:nth-child(2) .sign-open {
    animation: signShowOpen 6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.impl-card:nth-child(2) .sign-closed {
    animation: signShowClosed 6s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.impl-card:nth-child(2) .moon-icon {
    animation: moonRise 6s ease-in-out infinite;
}

.impl-card:nth-child(2) .stars-icon {
    animation: starsTwinkle 6s ease-in-out infinite 0.4s;
}

/* ===== IMPL ANIMATIONS: Card 3 - Full Integration ===== */
@keyframes dashFlow {
    0%   { stroke-dashoffset: 80;  opacity: 0.4; }
    50%  { stroke-dashoffset: 0;   opacity: 1;   }
    100% { stroke-dashoffset: -80; opacity: 0.4; }
}

@keyframes outerPulse {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50%      { opacity: 0.22; transform: scale(1.18); }
}

@keyframes innerPulse {
    0%, 100% { opacity: 0.18; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(1.08); }
}

.impl-card:nth-child(3) .dl1 { animation: dashFlow 2.8s linear infinite 0s;   }
.impl-card:nth-child(3) .dl2 { animation: dashFlow 2.8s linear infinite 0.5s; }
.impl-card:nth-child(3) .dl3 { animation: dashFlow 2.8s linear infinite 1s;   }
.impl-card:nth-child(3) .dl4 { animation: dashFlow 2.8s linear infinite 1.5s; }

.impl-card:nth-child(3) .center-pulse-outer {
    animation: outerPulse 2.8s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.impl-card:nth-child(3) .center-pulse {
    animation: innerPulse 2.8s ease-in-out infinite 0.3s;
    transform-box: fill-box;
    transform-origin: center;
}
