/**
 * Section Styles
 * VerbaCall Landing Theme
 */

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 160px 120px 120px;
    gap: 100px;
    overflow: hidden;
    background-color: #eefbff;
    border-radius: 30px;
    margin: 0 24px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--color-border-light) 0px,
            var(--color-border-light) 1px,
            transparent 1px,
            transparent 23.18px
        ),
        repeating-linear-gradient(
            0deg,
            var(--color-border-light) 0px,
            var(--color-border-light) 1px,
            transparent 1px,
            transparent 22.11px
        );
    pointer-events: none;
    z-index: var(--z-background);
}

/* Large colored ellipses in corners */
.hero-ellipse {
    position: absolute;
    border-radius: 50%;
    width: 786px;
    height: 786px;
    pointer-events: none;
    z-index: 1;
}

.hero-ellipse-1 {
    background-color: #89c7d5;
    top: -393px;
    right: -200px;
}

.hero-ellipse-2 {
    background-color: #89cfd5;
    bottom: -393px;
    right: -200px;
}

.hero-ellipse-3 {
    background-color: #89d5cc;
    top: 50%;
    left: -393px;
    transform: translateY(-50%);
}

/* Concentric ripple circles */
.hero-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid #d9ecea;
    pointer-events: none;
    z-index: 2;
}

.hero-ripple-1 { width: 315px; height: 315px; }
.hero-ripple-2 { width: 388px; height: 388px; }
.hero-ripple-3 { width: 459px; height: 459px; }
.hero-ripple-4 { width: 528px; height: 528px; }
.hero-ripple-5 { width: 596px; height: 596px; }
.hero-ripple-6 { width: 668px; height: 668px; }
.hero-ripple-7 { width: 755px; height: 755px; }

.hero-background {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1392px;
    height: 620px;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom left;
    pointer-events: none;
    z-index: var(--z-background);
}

.hero-vector {
    position: absolute;
    top: 0;
    right: 0;
    width: 495px;
    height: 430px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
}

.hero-vector img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 789px;
    width: 789px;
    text-align: center;
    animation: fadeInUp 1s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: var(--font-weight-normal);
    color: var(--color-dark);
    width: 710px;
    margin: 0;
    animation: fadeInUp 1s var(--ease-out) 0.2s backwards;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.3;
    font-weight: var(--font-weight-normal);
    color: var(--color-dark);
    width: 338px;
    margin: 0;
    animation: fadeInUp 1s var(--ease-out) 0.4s backwards;
}

.hero-cta {
    animation: fadeInUp 1s var(--ease-out) 0.6s backwards;
}

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

@media (max-width: 767px) {
    .hero-section {
        min-height: 80vh;
        padding: var(--space-4xl) var(--side-padding);
    }

    .hero-ellipse {
        display: none;
    }

    .hero-background,
    .hero-vector {
        display: none;
    }
}

/* ========================================
   DEMO SECTION (Inside Hero)
   ======================================== */

.demo-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
}

.demo-container {
    background: #f9feff;
    border: 12px solid #ffffff;
    border-radius: 30px;
    box-shadow: 0px 23px 144.2px 0px rgba(0, 0, 0, 0.03);
    height: 540px;
    width: 1030px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 48px;
}

/* Hide all stages by default */
.demo-stage {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Show active stage based on data-stage attribute */
.demo-wrapper[data-stage="industry-selection"] .demo-stage--industry-selection {
    display: flex;
    opacity: 1;
}

.demo-wrapper[data-stage="information"] .demo-stage--information {
    display: flex;
    opacity: 1;
}

.demo-wrapper[data-stage="initializing"] .demo-stage--initializing {
    display: flex;
    opacity: 1;
}

.demo-wrapper[data-stage="calling"] .demo-stage--calling {
    display: flex;
    opacity: 1;
}

.demo-wrapper[data-stage="ongoing"] .demo-stage--ongoing {
    display: flex;
    opacity: 1;
}

.demo-wrapper[data-stage="rate"] .demo-stage--rate {
    display: flex;
    opacity: 1;
}

.demo-wrapper[data-stage="complete"] .demo-stage--complete {
    display: flex;
    opacity: 1;
}

/* ========================================
   DEMO STAGE ELEMENTS
   ======================================== */

/* Stage Titles */
.demo-stage-title,
.demo-rate-title {
    font-size: 28px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    line-height: 1.2;
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Stage 2: Information Form */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.demo-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-dark);
    background: var(--color-white);
    border: 1px solid rgba(42, 50, 51, 0.2);
    border-radius: 12px;
    transition: all var(--duration-base) var(--ease-in-out);
    font-family: inherit;
}

.demo-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(95, 194, 228, 0.1);
}

.demo-input::placeholder {
    color: rgba(42, 50, 51, 0.4);
}

.demo-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(180deg, #5FC2E4 0%, #1290AC 100%);
    color: var(--color-white);
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-in-out);
    font-family: inherit;
}

.demo-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 144, 172, 0.3);
}

.demo-submit-btn svg {
    width: 16px;
    height: 16px;
}

/* Stage 3: Initializing Call (Countdown) */
.demo-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.demo-countdown__text {
    font-size: 24px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    margin: 0;
}

.demo-countdown__number {
    font-size: 120px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    line-height: 1;
    animation: pulse 1s ease-in-out infinite;
}

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

/* Stage 4: Calling Animation */
.demo-calling-animation {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-calling-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: calling-pulse 2s ease-out infinite;
}

.demo-calling-pulse:nth-child(2) {
    animation-delay: 0.7s;
}

.demo-calling-pulse:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes calling-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Stage 5: Ongoing Call */
.demo-call-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.demo-call-avatar {
    width: 67px;
    height: 67px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5FC2E4 0%, #1290AC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-call-avatar svg {
    width: 40px;
    height: 40px;
    color: var(--color-white);
}

.demo-call-details {
    text-align: left;
}

.demo-call-status {
    font-size: 14px;
    color: rgba(42, 50, 51, 0.6);
    margin: 0 0 4px 0;
}

.demo-call-agent {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    margin: 0;
}

.demo-call-timer {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    padding: 8px 16px;
    background: rgba(95, 194, 228, 0.1);
    border-radius: 100px;
}

.demo-chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 24px;
}

.demo-chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 70%;
}

.demo-chat-bubble--agent {
    background: rgba(95, 194, 228, 0.1);
    color: var(--color-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.demo-chat-bubble--user {
    background: var(--color-primary);
    color: var(--color-white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.demo-chat-bubble--active {
    animation: fadeIn 0.4s ease-in-out;
}

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

.demo-end-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 100px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-in-out);
    font-family: inherit;
}

.demo-end-call-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.demo-end-call-btn svg {
    width: 16px;
    height: 16px;
}

/* Stage 6 & 7: Rating */
.demo-rating {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.demo-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(42, 50, 51, 0.2);
    transition: all var(--duration-base) var(--ease-in-out);
}

.demo-star:hover {
    color: #FFC107;
    transform: scale(1.1);
}

.demo-star svg {
    width: 48px;
    height: 48px;
    display: block;
}

.demo-star--filled {
    color: #FFC107;
    pointer-events: none;
}

.demo-star--half {
    position: relative;
    color: #FFC107;
    pointer-events: none;
}

.demo-star--half svg:first-child {
    position: relative;
    z-index: 2;
}

.demo-rating--filled .demo-star {
    pointer-events: none;
}

.demo-book-btn,
.demo-reset-btn {
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-in-out);
    font-family: inherit;
    border: none;
}

.demo-book-btn {
    background: linear-gradient(180deg, #5FC2E4 0%, #1290AC 100%);
    color: var(--color-white);
    margin-bottom: 16px;
}

.demo-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 144, 172, 0.3);
}

.demo-reset-btn {
    background: transparent;
    color: var(--color-primary);
    text-decoration: underline;
}

.demo-reset-btn:hover {
    color: #1290AC;
}

/* Stage 1: Industry Selection (Existing styles) */
.demo-header {
    max-width: 662px;
    margin: 0 auto var(--space-4xl);
    text-align: center;
}

.demo-title {
    font-size: var(--font-size-3xl);
    line-height: 1.2;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    margin-bottom: var(--space-base);
}

.demo-subtitle {
    font-size: var(--font-size-base);
    line-height: 1.3;
    color: rgba(42, 50, 51, 0.7);
}

.demo-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-base);
}

.industry-card {
    position: relative;
    height: 230px;
    width: 230px;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(180deg, #1290ac 0%, #5ab1a9 92%);
    transition: transform var(--duration-base) var(--ease-out);
}

.industry-card:hover {
    transform: translateY(-8px);
}

.industry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

/* Specific background images for each industry */
.industry-card:nth-child(1)::before {
    background-image: url('../images/industry-senior-living.png');
}

.industry-card:nth-child(2)::before {
    background-image: url('../images/industry-realtor.png');
}

.industry-card:nth-child(3)::before {
    background-image: url('../images/industry-healthcare.png');
}

.industry-card:nth-child(4)::before {
    background-image: url('../images/industry-verbacall.png');
}

.industry-card__header {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.industry-card__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.industry-card__title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: var(--font-weight-medium);
    color: var(--color-white);
    white-space: nowrap;
}

.industry-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.industry-card__description {
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-white);
    font-weight: var(--font-weight-normal);
}

.industry-card__cta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 0;
    background-color: var(--color-white);
    color: var(--color-dark);
    text-decoration: none;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    transition: all var(--duration-base) var(--ease-in-out);
    width: 100%;
    cursor: pointer;
    font-family: var(--font-family);
}

.industry-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.industry-card__cta svg {
    width: 12px;
    height: 24px;
}

@media (max-width: 1023px) {
    .demo-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 639px) {
    .demo-wrapper {
        padding-top: var(--space-4xl);
    }

    .demo-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   FEATURES SECTION - 3-Column Carousel
   ======================================== */

.features-section {
    padding: 96px 120px;
    background-color: var(--color-white);
    overflow: hidden;
}

.features-header {
    max-width: 608px;
    margin: 0 auto 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.features-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: var(--font-weight-normal);
    color: #110229;
    max-width: 576px;
    margin: 0;
}

.features-subtitle {
    font-size: 16px;
    line-height: 1.3;
    font-weight: var(--font-weight-normal);
    color: rgba(42, 50, 51, 0.7);
    margin: 0;
}

/* Carousel Container */
.features-carousel {
    max-width: 1440px;
    margin: 0 auto;
}

.features-carousel__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    position: relative;
}

/* Preview Slides (Left & Right) - 3D Perspective Effect */
.features-carousel__preview {
    width: 491px;
    height: 645px;
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    perspective: 1200px;
}

.features-carousel__preview--left {
    /* Fade effect for left preview */
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.9) 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.9) 100%);
}

.features-carousel__preview--right {
    /* Fade effect for right preview */
    mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.9) 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.9) 100%);
}

.features-carousel__preview-inner {
    position: absolute;
    width: 600px;
    height: 645px;
    transform-style: preserve-3d;
}

.features-carousel__preview--left .features-carousel__preview-inner {
    /* Position so right side is visible + 3D rotation */
    right: 0;
    left: auto;
    transform: rotateY(25deg) scale(0.95);
    transform-origin: right center;
}

.features-carousel__preview--right .features-carousel__preview-inner {
    /* Position so left side is visible + 3D rotation */
    left: 0;
    right: auto;
    transform: rotateY(-25deg) scale(0.95);
    transform-origin: left center;
}

/* Main Active Slide */
.features-carousel__main {
    width: 600px;
    height: 645px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Feature Card Styles */
.feature-card {
    background: var(--color-white);
    border: 1px solid #efefef;
    border-radius: 32px;
    padding: 48px 64px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.feature-card--active {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
}

.feature-card--preview {
    opacity: 0.9;
    transform: scale(0.98);
}

/* Card Content */
.feature-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    width: 100%;
}

.feature-card__title {
    font-size: 28px;
    line-height: 1.17;
    font-weight: var(--font-weight-normal);
    color: #110229;
    letter-spacing: -1.4px;
    margin: 0;
}

.feature-card__description {
    font-size: 16px;
    line-height: 1.3;
    font-weight: var(--font-weight-normal);
    color: rgba(42, 50, 51, 0.7);
    margin: 0;
}

/* Card Graphic */
.feature-card__graphic {
    width: 100%;
    height: 438px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Navigation Controls */
.features-carousel__controls {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.features-carousel__btn {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 50%;
}

.features-carousel__btn--prev {
    opacity: 0.4;
}

.features-carousel__btn--prev:hover {
    opacity: 0.7;
}

.features-carousel__btn--next:hover {
    opacity: 0.7;
}

.features-carousel__btn:active {
    transform: scale(0.95);
}

.features-carousel__btn svg {
    width: 48px;
    height: 48px;
}

/* Carousel Transition Animations */
.features-carousel__main,
.features-carousel__preview {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card__content,
.feature-card__graphic {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Transition states */
.features-carousel.is-transitioning .feature-card--active .feature-card__content,
.features-carousel.is-transitioning .feature-card--active .feature-card__graphic {
    opacity: 0;
    transform: translateY(10px);
}

.features-carousel.is-transitioning .features-carousel__preview {
    opacity: 0.5;
}

/* Slide direction animations */
.features-carousel.slide-next .features-carousel__main {
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-carousel.slide-prev .features-carousel__main {
    animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(50px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .features-carousel__container {
        gap: 32px;
    }

    .features-carousel__preview {
        width: 350px;
    }
}

@media (max-width: 1200px) {
    .features-section {
        padding: 80px 60px;
    }

    .features-carousel__preview {
        width: 280px;
    }

    .features-carousel__main {
        width: 520px;
    }

    .features-carousel__preview-inner {
        width: 520px;
    }

    .feature-card {
        padding: 40px 48px;
    }

    .feature-card__graphic {
        height: 360px;
    }
}

@media (max-width: 1023px) {
    .features-section {
        padding: 64px 40px;
    }

    .features-title {
        font-size: 40px;
    }

    .features-carousel__preview {
        display: none;
    }

    .features-carousel__container {
        justify-content: center;
    }

    .features-carousel__main {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    .features-section {
        padding: 48px 24px;
    }

    .features-title {
        font-size: 32px;
    }

    .feature-card {
        padding: 32px 24px;
        border-radius: 24px;
    }

    .feature-card__title {
        font-size: 24px;
    }

    .feature-card__graphic {
        height: 280px;
    }

    .features-carousel__controls {
        gap: 16px;
    }

    .features-carousel__btn {
        width: 40px;
        height: 40px;
    }

    .features-carousel__btn svg {
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   FEATURE ANIMATION TEMPLATES
   ======================================== */

/* Base Animation Styles */
.feature-animation {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

/* ===== Image-Based Feature Animations (from Figma) ===== */

/* Live Transfer - 5 frame animation */
.feature-animation--live-transfer-img {
    background-image: url('../images/features/live-transfer-1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: liveTransferFrames 5s steps(1) infinite;
}

@keyframes liveTransferFrames {
    0%, 20% { background-image: url('../images/features/live-transfer-1.png'); }
    20%, 40% { background-image: url('../images/features/live-transfer-2.png'); }
    40%, 60% { background-image: url('../images/features/live-transfer-3.png'); }
    60%, 80% { background-image: url('../images/features/live-transfer-4.png'); }
    80%, 100% { background-image: url('../images/features/live-transfer-5.png'); }
}

/* Lead Nurturing - 9 frame animation */
.feature-animation--lead-nurturing-img {
    background-image: url('../images/features/lead-nurturing-1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: leadNurturingFrames 9s steps(1) infinite;
}

@keyframes leadNurturingFrames {
    0%, 11.11% { background-image: url('../images/features/lead-nurturing-1.png'); }
    11.11%, 22.22% { background-image: url('../images/features/lead-nurturing-2.png'); }
    22.22%, 33.33% { background-image: url('../images/features/lead-nurturing-3.png'); }
    33.33%, 44.44% { background-image: url('../images/features/lead-nurturing-4.png'); }
    44.44%, 55.55% { background-image: url('../images/features/lead-nurturing-5.png'); }
    55.55%, 66.66% { background-image: url('../images/features/lead-nurturing-6.png'); }
    66.66%, 77.77% { background-image: url('../images/features/lead-nurturing-7.png'); }
    77.77%, 88.88% { background-image: url('../images/features/lead-nurturing-8.png'); }
    88.88%, 100% { background-image: url('../images/features/lead-nurturing-9.png'); }
}

/* Outbound Call - 14 frame animation */
.feature-animation--outbound-img {
    background-image: url('../images/features/outbound-01.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: outboundFrames 7s steps(1) infinite;
}

@keyframes outboundFrames {
    0%, 7.14% { background-image: url('../images/features/outbound-01.png'); }
    7.14%, 14.28% { background-image: url('../images/features/outbound-02.png'); }
    14.28%, 21.42% { background-image: url('../images/features/outbound-03.png'); }
    21.42%, 28.57% { background-image: url('../images/features/outbound-04.png'); }
    28.57%, 35.71% { background-image: url('../images/features/outbound-05.png'); }
    35.71%, 42.85% { background-image: url('../images/features/outbound-06.png'); }
    42.85%, 50% { background-image: url('../images/features/outbound-07.png'); }
    50%, 57.14% { background-image: url('../images/features/outbound-08.png'); }
    57.14%, 64.28% { background-image: url('../images/features/outbound-09.png'); }
    64.28%, 71.42% { background-image: url('../images/features/outbound-10.png'); }
    71.42%, 78.57% { background-image: url('../images/features/outbound-11.png'); }
    78.57%, 85.71% { background-image: url('../images/features/outbound-12.png'); }
    85.71%, 92.85% { background-image: url('../images/features/outbound-13.png'); }
    92.85%, 100% { background-image: url('../images/features/outbound-14.png'); }
}

/* Call Summary - static image */
.feature-animation--call-summary-img {
    background-image: url('../images/features/call-summary.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* SPAM Filtering - 2 frame alternating animation */
.feature-animation--spam-img {
    background-image: url('../images/features/spam-1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: spamFrames 4s steps(1) infinite;
}

@keyframes spamFrames {
    0%, 50% { background-image: url('../images/features/spam-1.png'); }
    50%, 100% { background-image: url('../images/features/spam-2.png'); }
}

/* Appointment Booking - 2 frame alternating animation */
.feature-animation--appointment-img {
    background-image: url('../images/features/appointment-1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    animation: appointmentFrames 4s steps(1) infinite;
}

@keyframes appointmentFrames {
    0%, 50% { background-image: url('../images/features/appointment-1.png'); }
    50%, 100% { background-image: url('../images/features/appointment-2.png'); }
}

.feature-animation__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 144, 172, 0.03) 0%, rgba(46, 168, 46, 0.02) 100%);
    border-radius: 16px;
    z-index: 0;
}

/* Dots background pattern (matching Figma) */
.feature-animation__dots-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 1;
}

/* ===== Appointment Booking Animation ===== */
/*
   Figma sequence (14 frames, ~8s loop):
   Frame 1-2: Olivia's message appears
   Frame 2-4: VerbaCall Agent responds
   Frame 4-6: "Appointment Booked!" card appears
   Frame 6-10: Calendar icon floats away
   Frame 10-14: Reset/fade out
*/
.feature-animation--appointment {
    gap: 16px;
    padding: 32px 24px;
    background-color: #fafafa;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}

.feature-animation__chat-bubble {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 320px;
    position: relative;
    z-index: 1;
}

.feature-animation__chat-bubble--incoming {
    align-self: flex-start;
    animation: appointmentStep1 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.feature-animation__chat-bubble--outgoing {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.5);
    animation: appointmentStep2 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.feature-animation__chat-bubble--outgoing .feature-animation__name {
    color: #110229;
}

.feature-animation__chat-bubble--outgoing .feature-animation__text {
    color: rgba(42, 50, 51, 0.7);
}

.feature-animation__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-animation__message {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.feature-animation__name {
    font-size: 16px;
    font-weight: 600;
    color: #110229;
}

.feature-animation__text {
    font-size: 14px;
    line-height: 1.3;
    color: rgba(42, 50, 51, 0.7);
}

.feature-animation__agent-icon {
    width: 37.5px;
    height: 37.5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-animation__agent-icon svg {
    width: 100%;
    height: 100%;
}

/* Booked card */
.feature-animation__booked-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    border: 1px solid #1290AC;
    border-radius: 12px;
    box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    animation: appointmentStep3 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.feature-animation__calendar-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.feature-animation__booked-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-animation__booked-label {
    font-size: 14px;
    font-weight: 600;
    color: #1290AC;
}

.feature-animation__booked-time {
    font-size: 12px;
    color: rgba(42, 50, 51, 0.7);
}

/* Floating calendar icon */
.feature-animation__floating-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1290AC 0%, #0D7A8F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(18, 144, 172, 0.4);
    z-index: 3;
    animation: appointmentStep4 8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.feature-animation__floating-icon svg {
    width: 24px;
    height: 24px;
}

.feature-animation__floating-icon svg rect,
.feature-animation__floating-icon svg path {
    stroke: white;
}

/* Step 1: Olivia's message - appears at 0%, visible 0-75%, fades 75-85% */
@keyframes appointmentStep1 {
    0% { opacity: 0; transform: translateY(20px); }
    8% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    85% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Step 2: Agent response - appears at 12%, visible 12-75%, fades with step 1 */
@keyframes appointmentStep2 {
    0%, 12% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    85% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Step 3: Booked card - appears at 30%, visible 30-65%, fades as icon floats */
@keyframes appointmentStep3 {
    0%, 30% { opacity: 0; transform: translateY(20px) scale(0.9); }
    40% { opacity: 1; transform: translateY(0) scale(1); }
    60% { opacity: 1; transform: translateY(0) scale(1); }
    70% { opacity: 0; transform: translateY(-10px) scale(0.95); }
    100% { opacity: 0; transform: translateY(20px) scale(0.9); }
}

/* Step 4: Floating icon - appears at 50%, floats up 50-80%, fades 80-90% */
@keyframes appointmentStep4 {
    0%, 50% { opacity: 0; transform: translateY(40px) scale(0.5); }
    60% { opacity: 1; transform: translateY(0) scale(1); }
    70% { opacity: 1; transform: translateY(-30px) scale(1.1); }
    80% { opacity: 0.5; transform: translateY(-60px) scale(0.9); }
    90%, 100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}

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

/* ===== SPAM Filtering Animation ===== */
/*
   Figma sequence (11 stages, ~7s loop):
   Start: Lead (21), Spam (1482), Protection Enabled
   Stage 3: Spam item highlighted red, count increases to 1483
   Stage 6: Spam count increases to 1484
   Stage 10: Lead item turns GREEN, count goes to 22 (good lead captured!)
*/
.feature-animation--spam {
    flex-direction: row;
    gap: 16px;
    padding: 20px;
    background-color: #fafafa;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.06) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}

.feature-animation__spam-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    position: relative;
    z-index: 1;
    width: 185px;
}

.feature-animation__spam-box {
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(18, 144, 172, 0.1);
    border: 1px solid #1290AC;
    border-radius: 4px 4px 0 0;
    padding: 8px;
}

.feature-animation__spam-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    animation: spamPanelSlideIn 7s ease-in-out infinite;
}

.feature-animation__spam-item--lead {
    animation: spamLeadPulse 7s ease-in-out infinite;
}

.feature-animation__spam-item--spam {
    animation: spamSpamPulse 7s ease-in-out infinite;
}

.feature-animation__spam-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature-animation__spam-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #110229;
}

.feature-animation__count {
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.feature-animation__count--good {
    color: #1290AC;
    animation: spamLeadCountPulse 7s ease-in-out infinite;
}

.feature-animation__count--bad {
    color: #BC2B2D;
    animation: spamCountIncrement 7s ease-in-out infinite;
}

.feature-animation__protection {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 8px;
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(18, 144, 172, 0.1);
    border: 1px solid #1290AC;
    border-radius: 0 0 4px 4px;
    animation: protectionPulse 7s ease-in-out infinite;
}

.feature-animation__protection svg {
    width: 22px;
    height: 19px;
    fill: #1290AC;
}

.feature-animation__protection span {
    font-size: 14px;
    font-weight: 500;
    color: #1290AC;
}

.feature-animation__spam-preview {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 12px;
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    width: 225px;
    height: 316px;
    position: relative;
    z-index: 1;
    animation: spamPreviewPulse 7s ease-in-out infinite;
}

.feature-animation__line {
    height: 13px;
    background: #eef6f7;
    border-radius: 8px;
    animation: lineShimmer 2s ease-in-out infinite;
}

.feature-animation__line--short {
    width: 63%;
    animation-delay: 0.2s;
}

.feature-animation__line--medium {
    width: 83%;
    animation-delay: 0.4s;
}

/* Panel slides in at start */
@keyframes spamPanelSlideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    10% { opacity: 1; transform: translateX(0); }
    90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-20px); }
}

/* Lead item - pulses green at 70% when good lead is captured */
@keyframes spamLeadPulse {
    0%, 65% {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
    70%, 85% {
        background: rgba(18, 144, 172, 0.15);
        box-shadow: 0 0 20px rgba(18, 144, 172, 0.3), 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
    90%, 100% {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
}

/* Spam item - pulses red at 30% and 50% when spam is blocked */
@keyframes spamSpamPulse {
    0%, 25% {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
    30%, 35% {
        background: rgba(188, 43, 45, 0.1);
        box-shadow: 0 0 15px rgba(188, 43, 45, 0.2), 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
    40%, 45% {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
    50%, 55% {
        background: rgba(188, 43, 45, 0.1);
        box-shadow: 0 0 15px rgba(188, 43, 45, 0.2), 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
    60%, 100% {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 15px 36.4px rgba(0, 0, 0, 0.1);
    }
}

/* Lead count pulses at 70% when incremented */
@keyframes spamLeadCountPulse {
    0%, 65% { transform: scale(1); }
    70% { transform: scale(1.3); }
    75%, 100% { transform: scale(1); }
}

/* Spam count pulses at 30% and 50% */
@keyframes spamCountIncrement {
    0%, 25% { transform: scale(1); }
    30% { transform: scale(1.3); }
    35%, 45% { transform: scale(1); }
    50% { transform: scale(1.3); }
    55%, 100% { transform: scale(1); }
}

/* Protection bar glows throughout */
@keyframes protectionPulse {
    0%, 100% {
        box-shadow: inset 0 0 0 rgba(18, 144, 172, 0);
    }
    25%, 75% {
        box-shadow: inset 0 0 10px rgba(18, 144, 172, 0.2);
    }
}

/* Preview card pulses with activity */
@keyframes spamPreviewPulse {
    0%, 20% { opacity: 0.7; }
    30%, 35% { opacity: 1; border-color: rgba(188, 43, 45, 0.3); }
    40%, 45% { opacity: 0.8; border-color: transparent; }
    50%, 55% { opacity: 1; border-color: rgba(188, 43, 45, 0.3); }
    60%, 65% { opacity: 0.8; border-color: transparent; }
    70%, 80% { opacity: 1; border-color: rgba(18, 144, 172, 0.3); }
    85%, 100% { opacity: 0.7; border-color: transparent; }
}

@keyframes lineShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== Call Summary / CRM Integration Animation ===== */
/*
   Figma sequence (4 variants, ~6s loop):
   Frame 1: Tags, hub, integrations with gray lines
   Frame 3: Connection lines turn GREEN (syncing data)
   Frame 4: Lines fade back to gray
*/
.feature-animation--call-summary {
    gap: 20px;
    background: url('../images/feature-bg-dots.png') center/contain no-repeat;
}

.feature-animation__tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.feature-animation__tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #eeeff3;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: #110229;
    animation: crmTagSync 6s ease-in-out infinite;
}

.feature-animation__tag:nth-child(1) { animation-delay: 0s; }
.feature-animation__tag:nth-child(2) { animation-delay: 0.1s; }
.feature-animation__tag:nth-child(3) { animation-delay: 0.2s; }

.feature-animation__tag svg {
    width: 24px;
    height: 24px;
}

/* Tags pulse green during sync */
@keyframes crmTagSync {
    0%, 30% {
        border-color: #eeeff3;
        box-shadow: none;
    }
    40%, 70% {
        border-color: #1290AC;
        box-shadow: 0 0 12px rgba(18, 144, 172, 0.25);
    }
    80%, 100% {
        border-color: #eeeff3;
        box-shadow: none;
    }
}

.feature-animation__hub {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    background: linear-gradient(135deg, #1290AC 0%, #0D7A8F 100%);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(18, 144, 172, 0.3);
    position: relative;
    z-index: 2;
    animation: crmHubPulse 6s ease-in-out infinite;
}

.feature-animation__hub-icon {
    width: 56px;
    height: 56px;
}

.feature-animation__hub-icon svg {
    width: 100%;
    height: 100%;
}

.feature-animation__hub-icon svg path[fill="#1290AC"] {
    fill: #fff;
}

.feature-animation__hub-icon svg path[stroke="#1290AC"] {
    stroke: rgba(255, 255, 255, 0.8);
}

/* Hub pulses stronger during sync */
@keyframes crmHubPulse {
    0%, 30% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(18, 144, 172, 0.3);
    }
    40%, 70% {
        transform: scale(1.1);
        box-shadow: 0 16px 48px rgba(18, 144, 172, 0.5);
    }
    80%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(18, 144, 172, 0.3);
    }
}

.feature-animation__integrations {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.feature-animation__integration-img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    border: 1px solid #eeeff3;
    background: #fff;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
    animation: crmIntegrationSync 6s ease-in-out infinite;
}

.feature-animation__integration-img:nth-child(1) { animation-delay: 0s; }
.feature-animation__integration-img:nth-child(2) { animation-delay: 0.08s; }
.feature-animation__integration-img:nth-child(3) { animation-delay: 0.16s; }
.feature-animation__integration-img:nth-child(4) { animation-delay: 0.24s; }
.feature-animation__integration-img:nth-child(5) { animation-delay: 0.32s; }

/* Integrations get green border during sync */
@keyframes crmIntegrationSync {
    0%, 30% {
        border-color: #eeeff3;
        box-shadow: none;
        transform: scale(1);
    }
    40%, 70% {
        border-color: #1290AC;
        box-shadow: 0 0 15px rgba(18, 144, 172, 0.3);
        transform: scale(1.05);
    }
    80%, 100% {
        border-color: #eeeff3;
        box-shadow: none;
        transform: scale(1);
    }
}

.feature-animation__integration-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    animation: crmIntegrationSync 6s ease-in-out infinite;
    background: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.feature-animation__integration-icon svg {
    width: 28px;
    height: 28px;
}

.feature-animation__integration-icon:nth-child(2) { animation-delay: 0.2s; }
.feature-animation__integration-icon:nth-child(3) { animation-delay: 0.4s; }
.feature-animation__integration-icon:nth-child(4) { animation-delay: 0.6s; }
.feature-animation__integration-icon:nth-child(5) { animation-delay: 0.8s; }

/* Call Summary Background Pattern - connection lines */
.feature-animation__bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Connection lines that turn green during sync */
.feature-animation__bg-pattern::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    width: 2px;
    height: 20%;
    background: #E2E8F0;
    transform: translateX(-50%);
    animation: crmLineSync 6s ease-in-out infinite;
}

.feature-animation__bg-pattern::after {
    content: '';
    position: absolute;
    bottom: 25%;
    left: 50%;
    width: 2px;
    height: 20%;
    background: #E2E8F0;
    transform: translateX(-50%);
    animation: crmLineSync 6s ease-in-out infinite;
    animation-delay: 0.1s;
}

@keyframes crmLineSync {
    0%, 30% {
        background: #E2E8F0;
        box-shadow: none;
    }
    40%, 70% {
        background: #1290AC;
        box-shadow: 0 0 8px rgba(18, 144, 172, 0.5);
    }
    80%, 100% {
        background: #E2E8F0;
        box-shadow: none;
    }
}

/* ===== Lead Nurturing Animation ===== */
/*
   Figma sequence (9 variants, ~9s loop):
   Frame 1: All gray person icons with "zzz" (dormant leads)
   Frame 3: First lead transforms - photo avatar with green border
   Frame 6: Two leads are now photos with green borders
   Frame 9: Four leads are now real photos (being nurtured)
*/
.feature-animation--lead-nurturing {
    justify-content: center;
    background: url('../images/feature-bg-dots.png') center/contain no-repeat;
}

.feature-animation__connecting-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.feature-animation__connecting-lines line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: lineDrawIn 9s ease-in-out infinite;
}

.feature-animation__connecting-lines line:nth-child(1) { animation-delay: 0s; }
.feature-animation__connecting-lines line:nth-child(2) { animation-delay: 0.2s; }
.feature-animation__connecting-lines line:nth-child(3) { animation-delay: 0.4s; }
.feature-animation__connecting-lines line:nth-child(4) { animation-delay: 0.6s; }
.feature-animation__connecting-lines line:nth-child(5) { animation-delay: 0.8s; }
.feature-animation__connecting-lines line:nth-child(6) { animation-delay: 1.0s; }
.feature-animation__connecting-lines line:nth-child(7) { animation-delay: 1.2s; }
.feature-animation__connecting-lines line:nth-child(8) { animation-delay: 1.4s; }

@keyframes lineDrawIn {
    0%, 10% {
        stroke-dashoffset: 200;
        stroke: #E2E8F0;
        opacity: 0.3;
    }
    30% {
        stroke-dashoffset: 0;
        stroke: #E2E8F0;
        opacity: 0.6;
    }
    50%, 70% {
        stroke-dashoffset: 0;
        stroke: #1290AC;
        opacity: 1;
    }
    90%, 100% {
        stroke-dashoffset: 200;
        stroke: #E2E8F0;
        opacity: 0.3;
    }
}

.feature-animation--lead-nurturing .feature-animation__hub {
    width: 85px;
    height: 85px;
    z-index: 3;
    animation: leadHubPulse 9s ease-in-out infinite;
}

@keyframes leadHubPulse {
    0%, 20% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(18, 144, 172, 0.3);
    }
    40%, 70% {
        transform: scale(1.1);
        box-shadow: 0 16px 48px rgba(18, 144, 172, 0.5);
    }
    85%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(18, 144, 172, 0.3);
    }
}

.feature-animation--lead-nurturing .feature-animation__hub-icon {
    width: 45px;
    height: 45px;
}

.feature-animation__leads {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.feature-animation__lead {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(211, 226, 227, 0.6);
    border-radius: 50%;
    border: 2px solid #d7dddf;
    transition: all 0.5s ease;
}

.feature-animation__lead svg {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

/* Sleeping "zzz" indicator - visible when dormant */
.feature-animation__lead::after {
    content: 'zzz';
    position: absolute;
    top: -10px;
    right: -8px;
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
    letter-spacing: -1px;
    animation: zzzFloat 2s ease-in-out infinite;
}

@keyframes zzzFloat {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0) rotate(-10deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-4px) rotate(5deg);
    }
}

/* 7 leads positioned around the center hub (matching Figma positions) */
.feature-animation__lead--1 { top: 15%; left: 10%; }
.feature-animation__lead--2 { top: 8%; left: 35%; }
.feature-animation__lead--3 { top: 8%; right: 22%; }
.feature-animation__lead--4 { top: 40%; right: 6%; }
.feature-animation__lead--5 { bottom: 18%; right: 22%; }
.feature-animation__lead--6 { bottom: 22%; left: 30%; }
.feature-animation__lead--7 { top: 48%; left: 6%; }
.feature-animation__lead--8 { display: none; }

/* Lead activation animations - staggered to simulate nurturing */
/* Lead 1 - first to wake up at 25% */
.feature-animation__lead--1 {
    animation: leadWakeUp1 9s ease-in-out infinite;
}
.feature-animation__lead--1::after {
    animation: zzzFade1 9s ease-in-out infinite;
}

/* Lead 3 - wakes up at 40% */
.feature-animation__lead--3 {
    animation: leadWakeUp2 9s ease-in-out infinite;
}
.feature-animation__lead--3::after {
    animation: zzzFade2 9s ease-in-out infinite;
}

/* Lead 5 - wakes up at 55% */
.feature-animation__lead--5 {
    animation: leadWakeUp3 9s ease-in-out infinite;
}
.feature-animation__lead--5::after {
    animation: zzzFade3 9s ease-in-out infinite;
}

/* Lead 7 - wakes up at 70% */
.feature-animation__lead--7 {
    animation: leadWakeUp4 9s ease-in-out infinite;
}
.feature-animation__lead--7::after {
    animation: zzzFade4 9s ease-in-out infinite;
}

/* Other leads stay dormant but pulse slightly */
.feature-animation__lead--2,
.feature-animation__lead--4,
.feature-animation__lead--6 {
    animation: leadDormant 9s ease-in-out infinite;
}

/* Lead wakes up - border turns green, glow appears */
@keyframes leadWakeUp1 {
    0%, 20% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
    30%, 80% {
        background: rgba(18, 144, 172, 0.15);
        border-color: #1290AC;
        box-shadow: 0 0 15px rgba(18, 144, 172, 0.4);
        transform: scale(1.1);
    }
    90%, 100% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
}

@keyframes leadWakeUp2 {
    0%, 35% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
    45%, 80% {
        background: rgba(18, 144, 172, 0.15);
        border-color: #1290AC;
        box-shadow: 0 0 15px rgba(18, 144, 172, 0.4);
        transform: scale(1.1);
    }
    90%, 100% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
}

@keyframes leadWakeUp3 {
    0%, 50% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
    60%, 80% {
        background: rgba(18, 144, 172, 0.15);
        border-color: #1290AC;
        box-shadow: 0 0 15px rgba(18, 144, 172, 0.4);
        transform: scale(1.1);
    }
    90%, 100% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
}

@keyframes leadWakeUp4 {
    0%, 65% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
    75%, 85% {
        background: rgba(18, 144, 172, 0.15);
        border-color: #1290AC;
        box-shadow: 0 0 15px rgba(18, 144, 172, 0.4);
        transform: scale(1.1);
    }
    95%, 100% {
        background: rgba(211, 226, 227, 0.6);
        border-color: #d7dddf;
        box-shadow: none;
        transform: scale(1);
    }
}

/* zzz fades out when lead wakes up */
@keyframes zzzFade1 {
    0%, 20% { opacity: 1; }
    30%, 80% { opacity: 0; }
    90%, 100% { opacity: 1; }
}

@keyframes zzzFade2 {
    0%, 35% { opacity: 1; }
    45%, 80% { opacity: 0; }
    90%, 100% { opacity: 1; }
}

@keyframes zzzFade3 {
    0%, 50% { opacity: 1; }
    60%, 80% { opacity: 0; }
    90%, 100% { opacity: 1; }
}

@keyframes zzzFade4 {
    0%, 65% { opacity: 1; }
    75%, 85% { opacity: 0; }
    95%, 100% { opacity: 1; }
}

/* Dormant leads just pulse gently */
@keyframes leadDormant {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.9;
        transform: scale(1);
    }
}

/* ===== Outbound Call Automation Animation ===== */
/*
   Figma sequence (8 variants, ~8s loop):
   Frame 1: Phone icon + "Automate Calls!" button + cursor nearby
   Frame 3: Cursor moves to button, clicks
   Frame 6: Three scheduled call cards appear stacked
   Frame 8: "Automation Complete!" card replaces button
*/
.feature-animation--outbound {
    gap: 32px;
    background: url('../images/feature-bg-dots.png') center/contain no-repeat;
}

.feature-animation__phone-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 127px;
    height: 127px;
    z-index: 1;
}

.feature-animation__ring {
    position: absolute;
    border-radius: 50%;
    animation: outboundRing 8s ease-out infinite;
    background: rgba(18, 144, 172, 0.08);
}

.feature-animation__ring--1 {
    width: 127px;
    height: 127px;
}

.feature-animation__ring--2 {
    width: 160px;
    height: 160px;
}

.feature-animation__ring--3 {
    width: 200px;
    height: 200px;
}

/* Rings expand in sequence when automation activates */
@keyframes outboundRing {
    0%, 30% {
        transform: scale(0.8);
        opacity: 0;
    }
    40% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.3);
        opacity: 0.4;
    }
    80%, 100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.feature-animation__ring--1 { animation-delay: 0s; }
.feature-animation__ring--2 { animation-delay: 0.15s; }
.feature-animation__ring--3 { animation-delay: 0.3s; }

.feature-animation__phone-icon {
    width: 127px;
    height: 127px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    animation: outboundPhonePulse 8s ease-in-out infinite;
}

@keyframes outboundPhonePulse {
    0%, 25% {
        transform: scale(1);
    }
    35%, 70% {
        transform: scale(1.1);
    }
    80%, 100% {
        transform: scale(1);
    }
}

.feature-animation__phone-icon svg {
    width: 48px;
    height: 48px;
}

.feature-animation__phone-icon svg path {
    fill: #1290AC;
}

.feature-animation__cta-btn {
    padding: 10px 32px;
    background: #1290AC;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    animation: outboundButtonClick 8s ease-in-out infinite;
}

/* Button gets clicked at 25%, pulses success at 70% */
@keyframes outboundButtonClick {
    0%, 20% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(18, 144, 172, 0.2);
        background: #1290AC;
    }
    25% {
        transform: scale(0.95);
        box-shadow: 0 2px 10px rgba(18, 144, 172, 0.3);
        background: #0D7A8F;
    }
    30%, 65% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(18, 144, 172, 0.2);
        background: #1290AC;
    }
    70%, 85% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(46, 168, 46, 0.4);
        background: #2EA82E;
    }
    95%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(18, 144, 172, 0.2);
        background: #1290AC;
    }
}

/* Cursor animation (add ::after pseudo for cursor) */
.feature-animation--outbound::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2l12 11.5-5.5 1 3.5 7-2.5 1-3.5-7-4 3z'/%3E%3C/svg%3E") center/contain no-repeat;
    z-index: 10;
    animation: outboundCursor 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes outboundCursor {
    0%, 10% {
        opacity: 1;
        transform: translate(80px, 20px);
    }
    20%, 25% {
        opacity: 1;
        transform: translate(0, 60px);
    }
    26% {
        opacity: 1;
        transform: translate(0, 62px) scale(0.9);
    }
    30%, 60% {
        opacity: 0;
        transform: translate(0, 60px);
    }
    70%, 100% {
        opacity: 0;
        transform: translate(80px, 20px);
    }
}

.feature-animation__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(18, 144, 172, 0.45);
}

/* ===== Live Transfer Animation ===== */
/*
   Figma sequence (5 variants, ~6s loop):
   Static layout with animated flow lines pulsing
   People on left -> Center hub -> Advisors on right
   Lines pulse in sequence showing transfer flow
*/
.feature-animation--live-transfer {
    flex-direction: row;
    gap: 16px;
    padding: 24px 12px;
    background: url('../images/feature-bg-dots.png') center/contain no-repeat;
    align-items: center;
    justify-content: center;
}

.feature-animation__transfer-left,
.feature-animation__transfer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.feature-animation__person,
.feature-animation__advisor {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #eeeff3;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: #110229;
}

.feature-animation__person svg,
.feature-animation__advisor svg {
    width: 24px;
    height: 24px;
}

/* Staggered rotations for people (matching Figma) */
.feature-animation__transfer-left .feature-animation__person:nth-child(1) {
    transform: rotate(-5deg);
    animation: liveTransferLeft 6s ease-in-out infinite;
    animation-delay: 0s;
}
.feature-animation__transfer-left .feature-animation__person:nth-child(2) {
    transform: rotate(6deg);
    animation: liveTransferLeft 6s ease-in-out infinite;
    animation-delay: 0.1s;
}
.feature-animation__transfer-left .feature-animation__person:nth-child(3) {
    animation: liveTransferLeft 6s ease-in-out infinite;
    animation-delay: 0.2s;
}
.feature-animation__transfer-left .feature-animation__person:nth-child(4) {
    transform: rotate(-6deg);
    animation: liveTransferLeft 6s ease-in-out infinite;
    animation-delay: 0.3s;
}
.feature-animation__transfer-left .feature-animation__person:nth-child(5) {
    transform: rotate(7deg);
    animation: liveTransferLeft 6s ease-in-out infinite;
    animation-delay: 0.4s;
}

/* Left side people highlight in sequence as they get transferred */
@keyframes liveTransferLeft {
    0%, 20% {
        border-color: #eeeff3;
        box-shadow: none;
    }
    30%, 40% {
        border-color: #1290AC;
        box-shadow: 0 0 12px rgba(18, 144, 172, 0.3);
    }
    50%, 100% {
        border-color: #eeeff3;
        box-shadow: none;
    }
}

.feature-animation__advisor {
    border: 1px solid #eeeff3;
}

.feature-animation__transfer-right .feature-animation__advisor:nth-child(1) {
    animation: liveTransferRight 6s ease-in-out infinite;
    animation-delay: 0.6s;
}
.feature-animation__transfer-right .feature-animation__advisor:nth-child(2) {
    animation: liveTransferRight 6s ease-in-out infinite;
    animation-delay: 0.7s;
}
.feature-animation__transfer-right .feature-animation__advisor:nth-child(3) {
    animation: liveTransferRight 6s ease-in-out infinite;
    animation-delay: 0.8s;
}

/* Right side advisors receive the transfer */
@keyframes liveTransferRight {
    0%, 40% {
        border-color: #eeeff3;
        box-shadow: none;
    }
    50%, 70% {
        border-color: #2EA82E;
        box-shadow: 0 0 12px rgba(46, 168, 46, 0.3);
    }
    80%, 100% {
        border-color: #eeeff3;
        box-shadow: none;
    }
}

.feature-animation__transfer-center {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    background: linear-gradient(to right, rgba(18, 144, 172, 0.1), rgba(75, 224, 83, 0.1));
    border: 1px solid #1290AC;
    border-radius: 8px;
    position: relative;
    z-index: 2;
    animation: liveTransferCenter 6s ease-in-out infinite;
}

.feature-animation__transfer-center svg {
    width: 22px;
    height: 19px;
}

.feature-animation__transfer-center svg path[fill="#1290AC"],
.feature-animation__transfer-center svg path {
    fill: #1290AC;
}

.feature-animation__transfer-center svg path[stroke="#1290AC"] {
    stroke: #1290AC;
}

/* Center hub pulses during transfer */
@keyframes liveTransferCenter {
    0%, 25% {
        box-shadow: 0 0 0 0 rgba(18, 144, 172, 0);
        transform: scale(1);
    }
    35%, 65% {
        box-shadow: 0 0 25px 8px rgba(18, 144, 172, 0.3);
        transform: scale(1.05);
    }
    75%, 100% {
        box-shadow: 0 0 0 0 rgba(18, 144, 172, 0);
        transform: scale(1);
    }
}

.feature-animation__transfer-center span {
    font-size: 14px;
    font-weight: 500;
    color: #1290AC;
    white-space: nowrap;
}

.feature-animation__transfer-lines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* SVG-based connection lines matching Figma mask lines */
.feature-animation__transfer-lines {
    background-image: url('../images/live-transfer-lines.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: liveTransferFlow 6s ease-in-out infinite;
}

@keyframes liveTransferFlow {
    0%, 25% {
        opacity: 0.3;
    }
    35%, 65% {
        opacity: 1;
    }
    75%, 100% {
        opacity: 0.3;
    }
}

/* ===== Warm Handoff Animation ===== */
/*
   Figma sequence (6 variants, ~7s loop):
   Frame 1: Two dashed waveform cards on left
   Frame 4: Cursor appears, hovers over a card
   Frame 6: Card transfers to right side with green border (handoff complete)
*/
.feature-animation--warm-handoff {
    padding: 24px;
    background: url('../images/feature-bg-dots.png') center/contain no-repeat;
}

.feature-animation__handoff-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    height: 100%;
}

.feature-animation__handoff-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 203px;
}

.feature-animation__handoff-right {
    width: 203px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
}

.feature-animation__handoff-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(42, 50, 51, 0.7);
    margin-bottom: 16px;
    text-align: center;
}

.feature-animation__handoff-right .feature-animation__handoff-label {
    color: #110229;
}

.feature-animation__handoff-divider {
    width: 1px;
    height: 391px;
    background: #c0e6e9;
    position: relative;
    margin: 0 12px;
    animation: handoffDividerPulse 7s ease-in-out infinite;
}

@keyframes handoffDividerPulse {
    0%, 40% {
        background: #c0e6e9;
    }
    50%, 70% {
        background: #1290AC;
        box-shadow: 0 0 10px rgba(18, 144, 172, 0.3);
    }
    80%, 100% {
        background: #c0e6e9;
    }
}

.feature-animation__handoff-divider::before,
.feature-animation__handoff-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: #c0e6e9;
    border-radius: 50%;
    animation: handoffDotPulse 7s ease-in-out infinite;
}

@keyframes handoffDotPulse {
    0%, 40% {
        background: #c0e6e9;
        transform: translateX(-50%) scale(1);
    }
    50%, 70% {
        background: #1290AC;
        transform: translateX(-50%) scale(1.3);
    }
    80%, 100% {
        background: #c0e6e9;
        transform: translateX(-50%) scale(1);
    }
}

.feature-animation__handoff-divider::before {
    top: 0;
}

.feature-animation__handoff-divider::after {
    bottom: 0;
}

/* Grid lines */
.feature-animation--warm-handoff::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: #c0e6e9;
}

.feature-animation__handoff-card {
    padding: 16px 20px;
    background: transparent;
    border: 1px solid #1290AC;
    border-radius: 8px;
    min-width: 140px;
}

.feature-animation__handoff-card--dashed {
    border-style: dashed;
}

/* First card (top) - gets selected and transferred */
.feature-animation__handoff-left .feature-animation__handoff-card:nth-child(2) {
    animation: handoffCardSelect 7s ease-in-out infinite;
}

/* Second card (bottom) - stays in place */
.feature-animation__handoff-left .feature-animation__handoff-card:nth-child(3) {
    animation: handoffCardStay 7s ease-in-out infinite;
}

@keyframes handoffCardSelect {
    0%, 30% {
        border-color: #1290AC;
        border-style: dashed;
        transform: translateX(0);
        opacity: 1;
    }
    40%, 45% {
        border-color: #1290AC;
        border-style: solid;
        transform: translateX(0) scale(1.02);
        box-shadow: 0 0 15px rgba(18, 144, 172, 0.3);
        opacity: 1;
    }
    55%, 60% {
        border-color: #2EA82E;
        border-style: solid;
        transform: translateX(120px);
        box-shadow: 0 0 20px rgba(46, 168, 46, 0.4);
        opacity: 0;
    }
    70%, 100% {
        border-color: #1290AC;
        border-style: dashed;
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes handoffCardStay {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* Card appears on right side after transfer */
.feature-animation__handoff-right::after {
    content: '';
    position: absolute;
    top: 60px;
    right: 20px;
    width: 140px;
    height: 90px;
    border: 2px solid #2EA82E;
    border-radius: 8px;
    background: rgba(46, 168, 46, 0.05);
    animation: handoffCardReceive 7s ease-in-out infinite;
}

@keyframes handoffCardReceive {
    0%, 50% {
        opacity: 0;
        transform: translateX(-20px) scale(0.9);
    }
    60%, 80% {
        opacity: 1;
        transform: translateX(0) scale(1);
        box-shadow: 0 0 20px rgba(46, 168, 46, 0.3);
    }
    90%, 100% {
        opacity: 0;
        transform: translateX(0) scale(0.95);
    }
}

/* Cursor animation */
.feature-animation--warm-handoff::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 2l12 11.5-5.5 1 3.5 7-2.5 1-3.5-7-4 3z'/%3E%3C/svg%3E") center/contain no-repeat;
    z-index: 10;
    animation: handoffCursor 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes handoffCursor {
    0%, 20% {
        opacity: 0;
        top: 30%;
        left: 50%;
    }
    30%, 35% {
        opacity: 1;
        top: 35%;
        left: 25%;
    }
    40% {
        opacity: 1;
        top: 36%;
        left: 25%;
        transform: scale(0.9);
    }
    45%, 55% {
        opacity: 1;
        top: 35%;
        left: 45%;
    }
    60%, 100% {
        opacity: 0;
        top: 35%;
        left: 60%;
    }
}

.feature-animation__waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
}

.feature-animation__waveform span {
    width: 4px;
    background: rgba(18, 144, 172, 0.4);
    border-radius: 2px;
    animation: waveform 1.5s ease-in-out infinite;
}

.feature-animation__waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.feature-animation__waveform span:nth-child(2) { height: 50%; animation-delay: 0.08s; }
.feature-animation__waveform span:nth-child(3) { height: 75%; animation-delay: 0.12s; }
.feature-animation__waveform span:nth-child(4) { height: 40%; animation-delay: 0.16s; }
.feature-animation__waveform span:nth-child(5) { height: 65%; animation-delay: 0.20s; }
.feature-animation__waveform span:nth-child(6) { height: 35%; animation-delay: 0.24s; }
.feature-animation__waveform span:nth-child(7) { height: 55%; animation-delay: 0.28s; }

@keyframes waveform {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ===== Lead Qualification Animation ===== */
/*
   Figma sequence (2 variants, ~6s loop):
   Frame 1: Gray bars + "Without VerbaCall" badge (spam leads)
   Frame 2: Blue/teal bars appear + "With VerbaCall" badge (qualified leads)
*/
.feature-animation--lead-qualification {
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: url('../images/feature-bg-dots.png') center/contain no-repeat;
}

.feature-animation__qualification-layout {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-animation__chart-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-animation__chart-icon-top {
    position: relative;
    width: 50px;
    height: 50px;
    z-index: 2;
    margin-bottom: 16px;
    animation: qualifyIconPulse 6s ease-in-out infinite;
}

@keyframes qualifyIconPulse {
    0%, 40% {
        transform: translateY(0) scale(1);
        filter: grayscale(100%);
    }
    50%, 90% {
        transform: translateY(-5px) scale(1.1);
        filter: grayscale(0%);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: grayscale(100%);
    }
}

.feature-animation__chart-icon-top svg {
    width: 100%;
    height: 100%;
}

/* Vertical dashed line from icon */
.feature-animation__chart-icon-top::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 280px;
    border-left: 1px dashed #1290AC;
    transform: translateX(-50%);
    animation: qualifyLinePulse 6s ease-in-out infinite;
}

@keyframes qualifyLinePulse {
    0%, 40% {
        border-color: #94A3B8;
        opacity: 0.5;
    }
    50%, 90% {
        border-color: #1290AC;
        opacity: 1;
    }
    100% {
        border-color: #94A3B8;
        opacity: 0.5;
    }
}

.feature-animation__chart {
    display: flex;
    align-items: flex-end;
    gap: 23px;
    height: 300px;
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.feature-animation__bar {
    width: 32px;
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
}

/* 4 bars matching Figma - heights from left: 199px, 225px, 164px, 298px */
.feature-animation__bar--1 { height: 199px; animation: qualifyBar 6s ease-in-out infinite; animation-delay: 0s; }
.feature-animation__bar--2 { height: 225px; animation: qualifyBar 6s ease-in-out infinite; animation-delay: 0.1s; }
.feature-animation__bar--3 { height: 164px; animation: qualifyBar 6s ease-in-out infinite; animation-delay: 0.2s; }
.feature-animation__bar--4 { height: 298px; animation: qualifyBar 6s ease-in-out infinite; animation-delay: 0.3s; }

@keyframes qualifyBar {
    0%, 40% {
        background: #e0ebed;
        transform: scaleY(0.6);
        box-shadow: none;
    }
    50%, 90% {
        background: linear-gradient(180deg, #5FC2E4 0%, #1290AC 100%);
        transform: scaleY(1);
        box-shadow: 0 4px 12px rgba(18, 144, 172, 0.3);
    }
    100% {
        background: #e0ebed;
        transform: scaleY(0.6);
        box-shadow: none;
    }
}

.feature-animation__qualification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    backdrop-filter: blur(4.15px);
    -webkit-backdrop-filter: blur(4.15px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
    position: absolute;
    bottom: 40px;
    left: 20px;
    z-index: 2;
    animation: qualifyBadge 6s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes qualifyBadge {
    0%, 40% {
        border: 1px solid #94A3B8;
        box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
    }
    50%, 90% {
        border: 2px solid #1290AC;
        box-shadow: 0 0 20px rgba(18, 144, 172, 0.3);
    }
    100% {
        border: 1px solid #94A3B8;
        box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
    }
}

.feature-animation__qualification-badge svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 5px;
    animation: qualifyBadgeIcon 6s ease-in-out infinite;
}

@keyframes qualifyBadgeIcon {
    0%, 40% {
        background: #e0ebed;
    }
    50%, 90% {
        background: rgba(18, 144, 172, 0.15);
    }
    100% {
        background: #e0ebed;
    }
}

.feature-animation__qualification-badge div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-animation__qualification-badge strong {
    font-size: 13px;
    font-weight: 600;
    animation: qualifyBadgeText 6s ease-in-out infinite;
}

@keyframes qualifyBadgeText {
    0%, 40% {
        color: #64748B;
    }
    50%, 90% {
        color: #1290AC;
    }
    100% {
        color: #64748B;
    }
}

.feature-animation__qualification-badge span {
    font-size: 11px;
    color: #94A3B8;
}

.feature-animation__chart-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2EA82E 0%, #259125 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(46, 168, 46, 0.35);
}

.feature-animation__chart-icon svg {
    width: 24px;
    height: 24px;
}

.feature-animation__chart-icon svg path[fill="#1290AC"] {
    fill: #fff;
}

.feature-animation__chart-icon svg path[stroke="#1290AC"] {
    stroke: rgba(255, 255, 255, 0.8);
}

/* Animation Restart on Slide Change */
.feature-card--active .feature-animation {
    animation: restartAnimations 0.1s;
}

/* Responsive Adjustments for Animations */
@media (max-width: 1200px) {
    .feature-animation__chat-bubble {
        padding: 12px 16px;
    }

    .feature-animation__spam-panel {
        min-width: 240px;
        padding: 20px;
    }

    .feature-animation--live-transfer {
        gap: 16px;
    }

    .feature-animation__person,
    .feature-animation__advisor {
        padding: 6px 10px;
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .feature-animation {
        padding: 16px;
    }

    .feature-animation__chat-bubble {
        padding: 10px 14px;
        max-width: 95%;
    }

    .feature-animation__spam-panel {
        min-width: 200px;
        padding: 16px;
    }

    .feature-animation__tag {
        padding: 8px 12px;
        font-size: 12px;
    }

    .feature-animation__hub {
        width: 60px;
        height: 60px;
    }

    .feature-animation__hub-icon {
        width: 30px;
        height: 30px;
    }

    .feature-animation--lead-nurturing .feature-animation__hub {
        width: 70px;
        height: 70px;
    }

    .feature-animation__lead svg {
        width: 28px;
        height: 28px;
    }

    .feature-animation__phone-ring {
        width: 90px;
        height: 90px;
    }

    .feature-animation__phone-icon {
        width: 48px;
        height: 48px;
    }

    .feature-animation__cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .feature-animation--live-transfer {
        gap: 8px;
        padding: 16px 8px;
    }

    .feature-animation__transfer-center {
        padding: 14px 16px;
    }

    .feature-animation__handoff-card {
        padding: 16px 20px;
        min-width: 120px;
    }

    .feature-animation__chart {
        height: 100px;
        gap: 8px;
        padding: 12px;
    }

    .feature-animation__bar {
        width: 24px;
    }
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits-section {
    padding: var(--space-5xl) 0;
    background-color: var(--color-white);
    position: relative;
    /* Note: overflow: hidden breaks sticky positioning, removed */
}

/* Grid design on both sides of benefits section */
.benefits-section::before,
.benefits-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 40px
        );
    pointer-events: none;
    z-index: 0;
}

.benefits-section::before {
    left: 0;
}

.benefits-section::after {
    right: 0;
}

.benefits-header {
    max-width: 598px;
    margin: 0 auto;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-xl);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Horizontal line animation under benefits header */
.benefits-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: #ebedf1;
}

.benefits-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: var(--font-weight-normal);
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-subtitle {
    font-size: 17px;
    line-height: 1.2;
    font-weight: var(--font-weight-medium);
    color: #000318;
}

/* Scroll container for parallax effect */
.benefits-scroll {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 71px;
}

.benefits-cards {
    display: block;
    max-width: 1297px;
    margin: 0 auto;
    position: relative;
}

/* Wrapper provides the scroll height for each card */
.benefit-card-wrapper {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    position: relative;
}

/* Progressive z-index - LATER cards stack ON TOP of earlier ones */
.benefit-card-wrapper:nth-child(1) .benefit-card { z-index: 10; }
.benefit-card-wrapper:nth-child(2) .benefit-card { z-index: 20; }
.benefit-card-wrapper:nth-child(3) .benefit-card { z-index: 30; }
.benefit-card-wrapper:nth-child(4) .benefit-card { z-index: 40; }

/* The card - starts in normal flow */
.benefit-card {
    position: relative;
    background: var(--color-white);
    border-radius: 32px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.08), 0px 16px 40px 0px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card becomes fixed when in "stuck" state - stays fixed to stack behind newer cards */
.benefit-card.is-stuck {
    position: fixed;
    top: 280px; /* Below the sticky header */
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 1200px;
    max-width: calc(100% - 142px); /* Don't exceed viewport minus padding */
}

.benefit-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .benefit-card-wrapper {
        height: auto;
        margin-bottom: var(--space-3xl);
    }

    .benefit-card,
    .benefit-card.is-stuck {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
    }
}

@media (max-width: 1023px) {
    .benefits-scroll {
        padding: 0 24px;
    }

    .benefit-card-wrapper {
        height: 90vh;
        min-height: 550px;
    }

    .benefit-card.is-stuck {
        top: 240px; /* Below the sticky header on tablet */
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
    }
}

@media (max-width: 767px) {
    .benefits-section {
        padding: var(--space-4xl) 0;
    }

    .benefits-scroll {
        padding: 0 16px;
    }

    .benefit-card-wrapper {
        height: auto;
        margin-bottom: 24px;
    }

    .benefit-card,
    .benefit-card.is-stuck {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto !important;
        border-radius: 24px;
    }
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */

.testimonial-section {
    padding: var(--space-5xl) 0;
    background-color: var(--color-gray-50);
}

.testimonial-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--side-padding);
    text-align: center;
}

.testimonial-header {
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.testimonial-title {
    font-size: 48px;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-normal);
}

.testimonial-subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-3xl);
    max-width: 100%;
}

.testimonial-carousel__track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-out;
    align-items: stretch;
    padding-left: calc((100% - 934px) / 2);
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 350px;
    background: var(--color-white);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Split Card Layout (Text + Image side by side) */
.testimonial-card--split {
    flex: 0 0 934px;
    width: 934px;
    max-width: 934px;
    min-width: 934px;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 0;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    overflow: hidden;
}

.testimonial-card--split .testimonial-card__content {
    flex: 1;
    padding: 56px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.testimonial-card--split .testimonial-card__logo {
    height: auto;
    margin-bottom: 0;
}

.testimonial-card--split .testimonial-card__logo img {
    height: auto;
    max-height: 62px;
    width: auto;
    max-width: 150px;
}

.testimonial-card--split .testimonial-card__quote {
    font-size: 28px;
    line-height: 1.2;
    color: #110229;
    font-weight: 400;
}

.testimonial-card--split .testimonial-card__author {
    font-size: 16px;
    line-height: 1.3;
    color: rgba(42, 50, 51, 0.7);
}

.testimonial-card--split .testimonial-card__image {
    flex: 1;
    min-height: 320px;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}

.testimonial-card--split .testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card--featured {
    padding: 0;
    overflow: hidden;
}

.testimonial-card__logo {
    height: 64px;
    display: flex;
    align-items: center;
}

.testimonial-card__logo img {
    height: 100%;
    max-height: 64px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.testimonial-card__quote {
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-dark);
    margin: 0;
    font-style: normal;
    flex: 1;
}

.testimonial-card__author {
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: normal;
}

.testimonial-card__image {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls */
.testimonial-carousel__controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: var(--space-xl);
}

.testimonial-carousel__btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.testimonial-carousel__btn:hover {
    transform: scale(1.05);
}

.testimonial-carousel__btn svg {
    width: 48px;
    height: 48px;
}

.testimonial-cta {
    margin-top: var(--space-xl);
}

@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
        min-width: 300px;
    }

    .testimonial-carousel__track {
        padding-left: calc((100% - 700px) / 2);
    }

    .testimonial-card--split {
        flex: 0 0 700px;
        width: 700px;
        min-width: 700px;
        max-width: 700px;
    }

    .testimonial-card--split .testimonial-card__quote {
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .testimonial-carousel__track {
        padding-left: 24px;
        padding-right: 24px;
    }

    .testimonial-card--split {
        flex-direction: column;
        flex: 0 0 calc(100vw - 48px);
        width: calc(100vw - 48px);
        min-width: calc(100vw - 48px);
        max-width: 500px;
    }

    .testimonial-card--split .testimonial-card__content {
        padding: 40px 24px;
    }

    .testimonial-card--split .testimonial-card__image {
        border-radius: 0 0 12px 12px;
        min-height: 250px;
    }

    .testimonial-card--split .testimonial-card__quote {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .testimonial-title {
        font-size: 32px;
    }

    .testimonial-card {
        flex: 0 0 100%;
        min-width: 280px;
    }

    .testimonial-card--split {
        min-width: 280px;
    }

    .testimonial-card--split .testimonial-card__quote {
        font-size: 20px;
    }

    .testimonial-card--split .testimonial-card__author {
        font-size: 14px;
    }

    .testimonial-carousel__track {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .testimonial-carousel__track::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        scroll-snap-align: center;
    }
}

/* ========================================
   PARTNERS SECTION
   ======================================== */

.partners-section {
    padding: var(--space-4xl) 0;
    background-color: var(--color-white);
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--side-padding);
    text-align: center;
}

.partners-title {
    font-size: var(--font-size-3xl);
    color: var(--color-dark);
    margin-bottom: var(--space-base);
}

.partners-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3xl);
}

.partners-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.partners-track {
    display: flex;
    gap: 40px;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.partner-logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 24px;
    transition: transform var(--duration-base) var(--ease-in-out);
}

.partner-logo:hover {
    transform: scale(1.05);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

@media (max-width: 767px) {
    .partners-track {
        gap: 24px;
    }

    .partner-logo {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    padding: var(--space-5xl) 0;
    background-color: var(--color-white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--side-padding);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.faq-title {
    font-size: 48px;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: var(--space-base);
    font-weight: var(--font-weight-normal);
}

.faq-subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question span {
    flex: 1;
    padding-right: 16px;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

.faq-cta {
    text-align: center;
    margin-top: var(--space-4xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.faq-cta p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

@media (max-width: 767px) {
    .faq-title {
        font-size: 32px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 60px 120px;
    background: var(--color-white);
}

.cta-container {
    background: #000000;
    border-radius: 32px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 423px;
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 479px;
    z-index: 2;
}

.cta-title {
    font-size: 53px;
    line-height: 1.1;
    color: var(--color-white);
    margin: 0;
}

.cta-description {
    font-size: 16px;
    line-height: 1.3;
    color: var(--color-white);
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-start;
    align-items: center;
}

.btn-cta {
    background: var(--color-white);
    color: #000318;
    border: 3px solid var(--color-accent);
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    box-shadow: 0px 0px 10px 0px rgba(95, 194, 228, 0.5);
    transition: all var(--transition-normal);
}

.btn-cta:hover {
    box-shadow: 0px 0px 20px 0px rgba(95, 194, 228, 0.8);
    transform: translateY(-2px);
}

.cta-visual {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 435px;
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
}

.cta-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 639px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: #EEFCFF;
    color: var(--color-dark);
    padding: 96px 120px 156px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    margin: 0 24px 24px 24px;
}

.footer-ellipse {
    position: absolute;
    width: 786px;
    height: 786px;
    pointer-events: none;
}

.footer-ellipse::before {
    content: '';
    position: absolute;
    inset: -63.61%;
    background: radial-gradient(circle, rgba(18, 144, 172, 0.2) 0%, rgba(18, 144, 172, 0.05) 40%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
}

.footer-ellipse--top {
    top: -495px;
    left: 797px;
}

.footer-ellipse--bottom {
    top: 307px;
    left: -273px;
}

.footer-content {
    max-width: 1152px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: flex;
    gap: 197px;
    align-items: flex-start;
}

.footer-brand {
    width: 295px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo img {
    height: 33.627px;
    width: auto;
    max-width: 194px;
}

.footer-copyright {
    font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: rgba(2, 35, 41, 0.7);
    margin: 0;
}

.footer-description {
    font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: rgba(2, 35, 41, 0.7);
    margin: 0;
    white-space: pre-wrap;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(2, 35, 41, 0.7);
    transition: color var(--duration-base) var(--ease-in-out);
}

.footer-social a:hover {
    color: var(--color-primary);
}

.footer-grant {
    margin-top: 16px;
}

.footer-grant__logo {
    width: 180px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-grant__logo:hover {
    opacity: 1;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

.footer-links-wrapper {
    display: flex;
    flex: 1;
    gap: 24px;
}

.footer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-section h3 {
    font-family: 'IBM Plex Mono', 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
    font-style: normal;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: rgba(2, 35, 41, 0.6);
    text-decoration: none;
    transition: color var(--duration-base) var(--ease-in-out);
    white-space: pre-wrap;
}

.footer-links a:hover {
    color: var(--color-primary);
}

@media (max-width: 1023px) {
    .site-footer {
        padding: 60px 60px 100px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 60px;
    }

    .footer-brand {
        width: 100%;
    }

    .footer-links-wrapper {
        flex-wrap: wrap;
    }
}

@media (max-width: 639px) {
    .site-footer {
        padding: 40px 24px 80px;
        border-radius: 20px;
    }

    .footer-grid {
        gap: 40px;
    }

    .footer-links-wrapper {
        flex-direction: column;
    }

    .footer-ellipse {
        width: 400px;
        height: 400px;
    }

    .footer-ellipse--top {
        top: -200px;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-ellipse--bottom {
        top: auto;
        bottom: -200px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ========================================
   DEMO MODAL
   ======================================== */

.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.demo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 3, 24, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.demo-modal__container {
    position: relative;
    background: var(--color-white);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.demo-modal.is-open .demo-modal__container {
    transform: translateY(0) scale(1);
}

.demo-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-50);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-dark);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.demo-modal__close:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.demo-modal__content {
    padding: 48px 40px;
}

.demo-modal__header {
    text-align: center;
    margin-bottom: 32px;
}

.demo-modal__title {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 12px;
    line-height: 1.2;
}

.demo-modal__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.demo-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-modal__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.demo-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-modal__field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
}

.demo-modal__field label .required {
    color: #EF4444;
}

.demo-modal__field input,
.demo-modal__field select,
.demo-modal__field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-dark);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.demo-modal__field input::placeholder,
.demo-modal__field textarea::placeholder {
    color: var(--color-text-muted);
}

.demo-modal__field input:focus,
.demo-modal__field select:focus,
.demo-modal__field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(95, 194, 228, 0.15);
}

.demo-modal__field textarea {
    resize: vertical;
    min-height: 100px;
}

.demo-modal__field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23828282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.demo-modal__actions {
    margin-top: 12px;
}

.demo-modal__submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
}

.demo-modal__submit .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.demo-modal__submit .spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.demo-modal__message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.demo-modal__message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.demo-modal__message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

/* Success State */
.demo-modal__success {
    text-align: center;
    padding: 20px 0;
}

.demo-modal__success-icon {
    margin-bottom: 24px;
}

.demo-modal__success-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 12px;
}

.demo-modal__success-text {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 639px) {
    .demo-modal__content {
        padding: 40px 24px;
    }

    .demo-modal__title {
        font-size: 24px;
    }

    .demo-modal__form-row {
        grid-template-columns: 1fr;
    }

    .demo-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ========================================
   CONTACT MODAL (inherits from demo modal)
   ======================================== */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.contact-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 3, 24, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.contact-modal__container {
    position: relative;
    background: var(--color-white);
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-modal.is-open .contact-modal__container {
    transform: translateY(0) scale(1);
}

.contact-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-50);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-dark);
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.contact-modal__close:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.contact-modal__content {
    padding: 48px 40px;
}

.contact-modal__header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-modal__title {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 12px;
    line-height: 1.2;
}

.contact-modal__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-modal__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-modal__field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
}

.contact-modal__field label .required {
    color: #EF4444;
}

.contact-modal__field input,
.contact-modal__field select,
.contact-modal__field textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--color-dark);
    background: var(--color-gray-50);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.contact-modal__field input::placeholder,
.contact-modal__field textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-modal__field input:focus,
.contact-modal__field select:focus,
.contact-modal__field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(95, 194, 228, 0.15);
}

.contact-modal__field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-modal__field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23828282' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.contact-modal__actions {
    margin-top: 12px;
}

.contact-modal__submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
}

.contact-modal__submit .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-modal__submit .spinner {
    animation: spin 1s linear infinite;
}

.contact-modal__message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.contact-modal__message.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.contact-modal__message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.contact-modal__success {
    text-align: center;
    padding: 20px 0;
}

.contact-modal__success-icon {
    margin-bottom: 24px;
}

.contact-modal__success-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0 0 12px;
}

.contact-modal__success-text {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 32px;
    line-height: 1.5;
}

@media (max-width: 639px) {
    .contact-modal__content {
        padding: 40px 24px;
    }

    .contact-modal__title {
        font-size: 24px;
    }

    .contact-modal__form-row {
        grid-template-columns: 1fr;
    }

    .contact-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}
